Dom asked me on IRC yesterday about the code that generates the OGL node statistics (http://london.openguides.org/statistics/). I've now modulized it. Please test this:
http://downlode.org/tmp/Openguides-Statistics-1.tar.gz
I've not been able to test it against any databases other than the current London one (PgSQL), so I have no idea if it will work for others, although I've tried to write it so that it will. I also only have some very basic tests for it because I don't know how to write tests for something that relies on a database.
Cheers,
Earle.
This one time, at band camp, Earle Martin wrote:
Dom asked me on IRC yesterday about the code that generates the OGL node statistics (http://london.openguides.org/statistics/). I've now modulized it. Please test this:
http://downlode.org/tmp/Openguides-Statistics-1.tar.gz
I've not been able to test it against any databases other than the current London one (PgSQL), so I have no idea if it will work for others, although I've tried to write it so that it will. I also only have some very basic tests for it because I don't know how to write tests for something that relies on a database.
wget http://downlode.org/tmp/Openguides-Statistics-1.tar.gz --07:02:24-- http://downlode.org/tmp/Openguides-Statistics-1.tar.gz => `Openguides-Statistics-1.tar.gz' Resolving downlode.org... 195.82.114.220 Connecting to downlode.org[195.82.114.220]:80... connected. HTTP request sent, awaiting response... 404 Not Found 07:02:25 ERROR 404: Not Found.
Too quick off the mark?
On Fri 07 Jan 2005, Earle Martin openguides@downlode.org wrote:
Actually at http://downlode.org/tmp/OpenGuides-Statistics-1.tar.gz
Kake
This one time, at band camp, Kake L Pugh wrote:
On Fri 07 Jan 2005, Earle Martin openguides@downlode.org wrote:
Actually at http://downlode.org/tmp/OpenGuides-Statistics-1.tar.gz
Hmmm. Module::Build doesn't seem to exist in the Debian packages. Is this Build.pm in the Openguides packages?
This one time, at band camp, Rev Simon Rumble wrote:
This one time, at band camp, Kake L Pugh wrote:
On Fri 07 Jan 2005, Earle Martin openguides@downlode.org wrote:
Actually at http://downlode.org/tmp/OpenGuides-Statistics-1.tar.gz
Hmmm. Module::Build doesn't seem to exist in the Debian packages. Is this Build.pm in the Openguides packages?
Turns out this is in the Debian package libmodule-build-perl.
You also need Chart::Strip, which isn't packaged for Debian. Amazingly, it installed straight out from CPAN. Something that doesn't happen for me very often.
An example script (the one used for the London stats) appears here: http://london.openguides.org/statistics/generate.txt
My test for Tourist Engineer, on last night's backup data: http://chimay.no-ip.org/stuff/
Oh yes I should say, looks good here with sqlite on my test machine. Yay for DBI!
On Fri, Jan 07, 2005 at 12:04:30PM +0000, Kake L Pugh wrote:
On Fri 07 Jan 2005, Earle Martin openguides@downlode.org wrote:
Actually at http://downlode.org/tmp/OpenGuides-Statistics-1.tar.gz
Oop, thank you. And I've just fixed it to use your actual site's name, not "the Open Guide to London" every time. The generate.txt script has been updated to reflect this.
Yet another version uploaded: graph widths and heights are now configurable.
On Fri, Jan 07, 2005 at 11:58:59AM +0000, Earle Martin wrote:
I've not been able to test it against any databases other than the current London one (PgSQL), so I have no idea if it will work for others, although I've tried to write it so that it will. I also only have some very basic tests for it because I don't know how to write tests for something that relies on a database.
Looks good here with MySQL. Nice! (http://nottingham.openguides.org/stats/)
James.
On Fri, Jan 07, 2005 at 11:58:59AM +0000, Earle Martin wrote:
Dom asked me on IRC yesterday about the code that generates the OGL node statistics (http://london.openguides.org/statistics/). I've now modulized it. Please test this:
The question has arisen that this might be better off as a generic CGI::Wiki module, rather than in OpenGuides. Does anyone have any thoughts on this? Earle, would you be able to transform it into such a thing, as a patch to Kake, if that turned out to be the preferred option?
Cheers,
On Tue 18 Jan 2005, Dominic Hargreaves dom@earth.li wrote:
The question has arisen that this might be better off as a generic CGI::Wiki module, rather than in OpenGuides. Does anyone have any thoughts on this? Earle, would you be able to transform it into such a thing, as a patch to Kake, if that turned out to be the preferred option?
If it's going to be a CGI::Wiki module it would be a standalone one rather than part of the core distribution, which is already a bit big.
Kake
On Tue, Jan 18, 2005 at 01:06:13AM +0000, Dominic Hargreaves wrote:
The question has arisen that this might be better off as a generic CGI::Wiki module, rather than in OpenGuides. Does anyone have any thoughts on this? Earle, would you be able to transform it into such a thing, as a patch to Kake, if that turned out to be the preferred option?
At the moment it depends on OpenGuides::Config, so I don't think so. Unless some sort of generic CGI::Wiki configuration device becomes available.
openguides-dev@lists.openguides.org