Code that I have online
I've uploaded various pieces of code over the years that I've used to run my site with, and here you can look at some of it. If you already know Perl or PHP you won't learn anything here but if you're learning or curious, you might find it educational.
Right now I'm more interested in PHP, partly because I like to learn new things, and partly because it is a lot quicker to write smallish web apps and "smart pages" in it. I keep up with the Perl though since it is so useful offline. (I've written longer things in Perl, I wrote a whole Movable Type client in it once with Perl/Tk, but such things are not up here. This is about websites.)
Perl for the web
- The following were used for my old phonepics script, before I used Flickr and used to upload phonepics to my site via FTP from my Nokia 3650.
- webcam_status.cgi - CGI script to pick one of two images based on whether a webcam image has been updated in the last X seconds, based on its timestamp. Could be used for any file which needs to be monitored for change.
- zeroeones.cgi - Perl code written to create a list comprising X zeroes and Y ones, randomly placed, relating to this entry.
- wordmess.cgi, an automated letter shuffler used to test a particular theory. See this blog entry.
Perl not for the web
- gutenpod.pl - a program to reformat long text documents so that you can read them on an iPod (2004/10/15).
PHP
- xfn_blogroll_retag - a function to add XFN information to a blogroll or other list, using a flat text file (29 March 2005)
- del.icio.us caching/embed script - script to grab and cache HTML at regular intervals. Designed for use with del.icio.us but could be used for anything. (6 October 2004)
- Livejournal embed - the code that is used on my front page to embed my Livejournal into it (8 October 2004)