The code is so horrible, it’s gone a full circle and become amazing once again. It’s a method of finding
Continue readingMonth: November 2011
PHP – Converting bytes to a readable format
The following function takes in a number of bytes and the number of decimal places required in the output and
Continue readingSolved! phpMyAdmin cannot start session without errors
This was a bit of a ridiculous error. It occurred after a PHP upgrade to 5.2.17 running under Apache with
Continue readingPHP – Obtain the maximum allowed file upload size
This was actually remarkably difficult to do, in terms of the volume of code required. It uses the fact that
Continue readingCabling your house with cat5e… Geeky or essential?
When I bought my house, I wired it with cable for data networking. I ran 2 cables to each of
Continue readingSolved! Debian Wheezy – SASL LOGIN authentication failed: no mechanism available
I’m not sure why I ever run an `apt-get upgrade` on Debian as I usually spend the next week fixing
Continue readingReading a signed 64 bit integer from a file with PHP
This may be a ridiculous way to do this but I couldn’t think of anything better at the time of
Continue readingParsing a darkstat database with PHP
This is something I wrote for the sake of interest more than necessity but I have found it quite useful
Continue readingRandomising the order of posts in WordPress
Just before ‘the loop‘ of a WordPress site, you would normally use query_posts(). Not only does this set a global
Continue readingSimple fix for low pressure or no water in electric showers – change the solenoid coil
Firstly… don’t mistaken me for a shower expert, I’m really not – I just have a pretty crappy shower which
Continue reading