<div class="gmail_quote">On Tue, Apr 13, 2010 at 12:11 AM, Ilmari Karonen <span dir="ltr"><<a href="mailto:nospam@vyznev.net">nospam@vyznev.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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></blockquote><div>You could go the "half" way: make a php script that just makes a count(rev_id) on revisions (or whatever the table is named, haven't worked with MW DBs for ages) of all wikis, maybe make this run by a 10-second-cronjob and just write to a textfile. Then, your "livecounter" makes a request to this every 10 sec and can then see the current number of edits in 10sec based on the difference of revisions.<br>
Sure, this doesn't take into account revision hiding, oversight and log entries, but this should be fairly accurate.<br><br>Marco <br></div></div>-- <br>VMSoft GbR<br>Nabburger Str. 15<br>81737 München<br>Geschäftsführer: Marco Schuster, Volker Hemmert<br>
<a href="http://vmsoft-gbr.de">http://vmsoft-gbr.de</a><br>