Category Archives: Programming

PHP 4 foreach as references

PHP 4 doesn’t seem to create references for objects in foreach loops. e.g. the following will not change the original objects: foreach($placeholder as $contentBlock) { $contentBlock->setPosition(1); } The value of the position property in the original object will remain unaffected. … Continue reading

Posted in PHP, Programming | 2 Comments

PHP 4 annoyances ( = rant)

After working with PHP 5 for quite some time now, I’ve had to go back to PHP 4 to develop a CMS for a client’s site where we don’t have much over the hosting environment. Going back to the old … Continue reading

Posted in PHP, Programming | 1 Comment

Adding categories to Blogger blogs

27th September 2005 update I’m trialling a new piece of software called Caterblogger. It will add categories to any Blogger blog. You can register interest in it on the site. The original post follows below: Blogger is really ease to … Continue reading

Posted in Programming | 4 Comments

Publishing with aspx extension from Blogger

I wanted to publish my blog with something other than the .html extension and after some experimentation and hunting around I found this:Blogger Forum – Forum The way to do it is to change the main page extension (from index.html … Continue reading

Posted in Programming | Leave a comment

The war on terror, UNIX style

The War on Terror as run from the UNIX command line. Extreme geekiness.

Posted in Programming | Leave a comment

When articificial intelligences collide: Eliza vs Eliza

This conversation set up between two Eliza clients is quite amusing. I didn’t really know about it before, but Eliza appears to be a computer therapist. It doesn’t seem to do a particularly good job of analysing itself. Eliza vs … Continue reading

Posted in Programming | Leave a comment

Blogger adding an extra clear: both div to posts

Lots of people have noticed recently that Blogger has started publishing posts with a tag before the posting text. This broke my layout and have me invalidly nested tags since I was including the opening and closing tags in the … Continue reading

Posted in Programming | 2 Comments

PHP 5 Static class variable inheritence

PHP 5 doesn’t seem to attempt to implement any kind of inheritance for properties within static classes. This can be mean having to duplicate code within static subclasses. As an example, we would like to have a parent class (this … Continue reading

Posted in PHP, Programming | Leave a comment

Technical solutions to web site visitor tracking

There are two main ways that the problem of identifying an individual when they visit a web site. This is assuming they are not willing to put their hand up and identify themselves by logging in. That may not always … Continue reading

Posted in Programming | Leave a comment

Using importNode and appendChild with PHP 5 DOM

importNode is one of the DOM functions in PHP 5 that I struggled with for a while. What I wanted to do was to take an XML node from one document and insert it into another, and somehow that wasn’t … Continue reading

Posted in PHP, Programming | 5 Comments