yes, i have a map http://stats.zmgc.net
if you open a second window and http://stats.zmgc.net/stats/1.gif on the first window you will get the person icon i have not yet implemented the storage of the data in riak, i am doing this now, but i was wondering how to deal witha page refresh, i would like to for example, load all the unique visitors persons who have been added to the db in the last one hour for example. and then any new persons who 'hits' http://stats.zmgc.net/stats/1.gif is added from that point in time. thanks On Tue, Feb 28, 2012 at 6:08 PM, Nicholas Young <nicho...@nicholaswyoung.com> wrote: > Norman, > > Could you explain what you're attempting to do? I can probably help, but I'm > not exactly sure what problem you're trying to solve, or what feature you're > looking to implement. > > You mentioned a "page refresh" and "map". Do you need to construct a web page > to display the results from your analytics system? > > Nicholas > > ___ > > Nicholas Young > http://nicholaswyoung.com > > On Feb 28, 2012, at 10:48 AM, Norman Khine <nor...@khine.net> wrote: > >> thanks for the advise. >> >> On Tue, Feb 28, 2012 at 5:07 PM, Jeremiah Peschka >> <jeremiah.pesc...@gmail.com> wrote: >>> You can create a secondary index >>> (https://wiki.basho.com/Secondary-Indexes.html) on the timestamp and >>> perform a secondary index query to pull back a range of data that matches >>> what you are looking for. >>> >>> As far as the node.js portions, I have just as much of an idea as you. >>> Perhaps someone else on this list can point you in the appropriate >>> directino. >>> --- >>> Jeremiah Peschka - Managing Director, Brent Ozar PLF, LLC >>> Microsoft SQL Server MVP >>> >>> On Feb 28, 2012, at 7:57 AM, Norman Khine wrote: >>> >>>> Hello, >>>> Not sure if this is the right forum to post this, but i am hoping you can >>>> help. >>>> I have a livestats nodejs tracking site, code for it is here: >>>> >>>> https://github.com/nkhine/livestats >>>> >>>> which is based on the peepcode screencast, with some updates. >>>> >>>> i am planning to extend the >>>> https://github.com/nkhine/livestats/blob/master/lib/livestats.js to >>>> include the riak-js library so as to store the data, something like: >>>> >>>> var db = require('riak-js').getClient({host: "riak.myhost", port: "8098" >>>> }); >>>> db.save('user', 'lat', 'lon', 'city', 'timestamp'}); >>>> >>>> but, i was wondering how to implement a page refresh and for the map >>>> to load all entries within a set period of elapsed time. and place the >>>> entries within the map. >>>> >>>> any pointers much appreciated. >>>> >>>> norman >>>> >>>> -- >>>> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or >>>> chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) >>>> >>>> _______________________________________________ >>>> riak-users mailing list >>>> riak-users@lists.basho.com >>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >>> >> >> >> >> -- >> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or >> chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com -- %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com