Programming

Greasemonkey

Up until now I’ve normally used Safari when browsing the web on my mac, but today I decided to try something new and installed the latest version of Firefox and an extension called Greasemonkey from http://greasemonkey.mozdev.org/. Greasemonkey allows you to run javascript …

mod_perl & session ids

I’ve been trying out a few things in mod_perl just recently, getting together a small basic framework that handles sessions and generates an entire site (apart from images) from a bunch of Perl modules. It’s a lot harder than I thought it would be but I’ve got …

Network programming tutorial

Updated my network programming tutorial to answer a question that someone emailed me about it. Tried to compile the library on my mac last night and found that half the makefile was wrong, some of the includes didn’t exist on OSX and that you have to use ranlib on the .a …

Compiling DBD::mysql on OSX10.3

Having installed MySQL for OSX from Apple’s UNIX & Open Source downloads section and Server Logistics, I found that the Perl module DBD::mysql wouldn’t compile and install. The solution it seems is to compile it by hand (oh, the horror!) Download and unpack …

Template Toolkit (Pt 3)

Doh! It seems that Apache::Template (the mod_perl interface for Template Toolkit and a cool looking module) isn’t compatible with mod_perl 1.99 and Apache 2.0.x. Unfortunately I don’t want to downgrade the server I’m using to mod_perl 1.26 and Apache 1.3.x so …

Template Toolkit (pt 2)

Having had a chance to read through most of the new Template Toolkit book from O’Reilly, I have to admit that it’s far more impressive than I first realised. Extra plugins and filters can be written and added into the basic templating system to provide extra …

Template Toolkit

It’s just typical. I wait a couple of months for the new Template Toolkit book from O’Reilly to appear on Safari (the online bookshelf) and then when I give in and buy the paper copy it appears on Safari a few days later. I don’t know what the book is like yet …

Storing Perl structures…

I’ve been looking at alternatives for storing Perl structures within a database such as MySQL. Here are the main contenders: Storable (freeze/thaw) XML::Dumper Data::Dumper