Not much of a battle, really. I was sitting at work today, contemplating doing some “proper” work for once, but in the end I decided on something completely different.
For the last 2 years, in the run-up to the mighty LugRadio Live, I have set myself the task of re-listening to all the previous episodes of LugRadio (yes, even the first one, and yes, even the political special edition) in the months leading up to the event.
Now, in 2005 and 2006, I knew I was going to be attending quite early on in the year (and there were less shows) so it wasn’t too much of a problem. This year, however, the decision to go was only made last week, with less than 70 days to go, and over 70 shows to listen to. Shock horror!
So I decided, in my wisdom, to write a little script in Python to keep track of how many I’d listened to, and how far I had to go, and how many I would need to listen to each day to achieve my target. And, for the hell of it, I thought I would convert the script from a simple command-line script, into a simply CGI script so that you could all revel in my genius. Or madness. Or stalkerdom. Whatever.
You can view the results at http://mrben.jedimoose.org/listener.py and view the code at http://mrben.jedimoose.org/listener.html. (Thanks to Vim for producing nice colour-highlighted HTML from the code) If you’re performing a similar feat, feel free to use the code, but I’d like to know about it. It’s not the best code in the world, but it works
mrBen