« Polly want a cracker? | [dandruff::main] | Montreal Pet Hates »

Counting votes and SVG

I meant to post this a couple of days ago, but somehow, kind of, for a multitude of reasons, didn't get around to it ...

Some of you would have seen that Karl posted a vote on Oct 2. The supporting script is very simple, and I'm linking it here in case someone finds it useful.

Essentially, it's a Perl script that stores (and counts) votes, and outputs the results in SVG (you should be able to right-click and view the source). It uses the very primitive method of issuing a cookie to prevent re-voting, a method which has many flaws, but the focus of this script was more on generating the graphic. If you don't have a SVG viewer or have problems with your plug-in, the graphic looks like this:

iPod or not iPod - vote results as at 5 Oct 2002

Feel free to bug me with questions or comments, as usual. :)

Posted by sniffles at October 05, 2002 05:35 PM