Stuff & Nonsense

Reverse Geocoding in PHP

Reverse Geocoding in PHP

A project I’m working on at the moment had a requirement for reverse geocoding (ie: taking a set of latitude / longitude co-ordinates and returning a placename) of some data coming from an iPhone application. There’s plenty of information available for doing address to long/lat encoding using google maps and the like, but not much […]

CPU / GPU temperature gadgets

CPU / GPU temperature gadgets

Just a quick post today, I found these handy desktop gadgets (for windows 7 and probably vista too) and thought I’d share: The top one, which monitors CPU temperatures is an add on available for CoreTemp. You need to have the coretemp program running for the gadget to work, but the program is fairly unobtrusive […]

WP Akismet plugin behind proxy

WP Akismet plugin behind proxy

The new HTTP Api in wordpress 2.9 is fantastic, it standardises http requests and allows you to define a proxy through which all http requests are routed.  Useful if, like me, you run a wordpress server on a corporate network. You can configure your proxy server by adding the following lines to your ‘wp-config.php’ define('WP_PROXY_HOST', […]

Produce a ‘patch’ from a subversion repository

Produce a ‘patch’ from a subversion repository

I use subversion quite extensively for PHP code versioning (in particular the excellent Redmine software project management tool has a built in subversion server) and recently had a requirement to produce a set of files that had changed from one revision to another. Specifically my repository has some changes committed to it that I don’t […]

PHP: clean up your includes!

PHP: clean up your includes!

If you’ve ever worked on any kind of PHP framework, you’ll likely know the pain that a misplaced ‘space’ in one of your includes can cause.  For the rest of you imagine this scenario: To load a page in my framework, I have an index.php that loads in a ‘core.php’ (which isn’t web accessible for […]

VirtualBox seamless mode

VirtualBox seamless mode

This is my current desktop in the office: As you can see, KDE4 taskbar on the right, windows 7 taskbar on the left.  Windows from the right can move onto the left screen freely (note the linux terminal on the left screen).  Unfortunately due to limitations in the virtualbox seamless mode windows from the left […]

PHP Javascript / CSS loader

PHP Javascript / CSS loader

I’m currently working on an in-house management system here at Tyrrell Systems, and employ a lot (seriously, a lot) of javascript for everything from ajax loading of information to various layout tweaks and so on. When I inherited the project (a good 2 years ago now) the previous coders had made use of various scripts […]