You can see the ugly source code here[1]<br><br>[1] <a href="http://code.google.com/p/toolserver/source/browse/trunk/tools/wpcounter.py">http://code.google.com/p/toolserver/source/browse/trunk/tools/wpcounter.py</a><br><br>
<div class="gmail_quote">2010/4/13 emijrp <span dir="ltr"><<a href="mailto:emijrp@gmail.com">emijrp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all;<br><br>The counter page is generated every 5 minutes, using the last data available in site_stats table for every wiki project. So, the editrate can change every 5 minutes, I think that it is a good estimation.<br>
<br>Regards!<br><br>[1] <a href="http://www.mediawiki.org/wiki/Manual:Site_stats_table" target="_blank">http://www.mediawiki.org/wiki/Manual:Site_stats_table</a><br><br><div class="gmail_quote">2010/4/13 Peter Körner <span dir="ltr"><<a href="mailto:osm-lists@mazdermind.de" target="_blank">osm-lists@mazdermind.de</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Cool thing!<br>
<br>
We need sth. similar for OSM! :)<br>
<br>
Peter<br>
<br>
<br>
River Tarnell schrieb:<br>
<div>> Ilmari Karonen:<br>
>> In principle, it should also be possible to make a true live Wikimedia<br>
>> edit counter: all you'd need to do is subscribe to the IRC RecentChanges<br>
>> feed and condense it down to some suitably low-bandwidth, low-latency<br>
>> format for transmitting to the browser. I'm not sure how practical that<br>
>> would be with plain old AJAX, though (you really don't want to make a<br>
>> new request for every edit), but Java or Flash or something like that<br>
>> ought to handle it fine.<br>
><br>
> I did something similar to this in JS alone:<br>
><br>
> <<a href="http://toolserver.org/%7Eriver/recentchanges/" target="_blank">http://toolserver.org/~river/recentchanges/</a>><br>
><br>
> It requires 1 request per second to update, but the backend is a C++<br>
> FastCGI and the database query is trivial, so the requests create no<br>
> noticeable load. I imagine it should be fairly simple to do something<br>
> similar for a plain number-of-edits counter. (You would only need to<br>
> return number of edits, rather than the edits themselves, so a little<br>
> less bandwidth would be used.)<br>
<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
Toolserver-l mailing list (<a href="mailto:Toolserver-l@lists.wikimedia.org" target="_blank">Toolserver-l@lists.wikimedia.org</a>)<br>
<a href="https://lists.wikimedia.org/mailman/listinfo/toolserver-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/toolserver-l</a><br>
Posting guidelines for this list: <a href="https://wiki.toolserver.org/view/Mailing_list_etiquette" target="_blank">https://wiki.toolserver.org/view/Mailing_list_etiquette</a><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>