Category Archives: Programming

DBD::mysql, MySQL and OS X Lion

I downloaded and installed MySQL Community Server 5.5.15 from http://dev.mysql.com/downloads/mysql/5.5.html Using CPAN, I then tried to install DBD::mysql on a fresh install of OS X Lion and was presented with an error saying it was unable to load the library. … Continue reading

Posted in Apple, Mac OSX, Programming | Tagged , | 1 Comment

Shartak internals – Maps and movement

The map for Shartak is held in a database table with over 140,000 rows in it. Each row corresponds to a single location on the map, also called a tile. The initial island map was generated automatically based on a … Continue reading

Posted in Programming, Shartak | Tagged , | Comments Off

IPv6 and Shartak

Over the last couple of weeks I’ve been trying to figure out IPv6. Having worked through some of the IPv6 certification at http://ipv6.he.net/ I now have an IPv6 enabled web server and mail server as well as IPv6 connectivity at … Continue reading

Posted in Linux, Programming, Shartak | Tagged , , | 1 Comment

Programming language that’s a little bit different

Came across this tonight, I’ve seen lolcats before, but not the programming language lolcode. http://lolcode.com/

Posted in Bookmarks, Programming | Tagged | Comments Off

Merging two hashrefs in Perl

I came across an interesting and very simple way to merge the contents of two hashrefs today. A hash is made up of pairs – a key and a corresponding value. As an example, the following can be pasted into … Continue reading

Posted in Programming | Tagged , | Comments Off

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 … Continue reading

Posted in Programming | Tagged , | 1 Comment

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 … Continue reading

Posted in Programming | Comments Off

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 … Continue reading

Posted in Programming | Comments Off

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!)

Posted in Programming | Comments Off

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.

Posted in Programming | Tagged , | Comments Off