Post categories

Recommended Wordpress Hosting from WPEngine

  • I use these guys for some of my clients; absolutely rock solid and blazingly fast - check them out!

Here are a couple of ads whose clicks and views help me pay for my server hosting

1 2

Free cross-platform dynamic DNS with wildcards

This will roughly explain how to get wildcard DNS working for free ( on a connection which gets assigned dynamic IPs. I’d like to make sure is always up to date with my home IP, and be able to request subdomains (like that resolve to the same IP. These are useful if you want to use multiple virtual hosts in apache hosted from a machine on your home network, accessible to the outside world using a fixed hostname.


VIM quick fix (for arrow keys in insert mode)

When using VIM in insert mode, when I try and move around with the arrow keys, it inserts A, B, C and D instead. Not completely sure why, but typing:

:set nocompatible

seems to fix the problem. You can make this permanent by sticking

set nocompatible

in .vimrc in your home directory. Anyone know why?!

How to create pages outside of the WordPress installation, that use WordPress themes

This is a quick guide on how to get  a file anywhere in your webhost’s file tree to serve its content as if it was part of WordPress – this can be useful if you already have a site that you only want to use WordPress for part of, or if you have WordPress that is installed in a subdirectory separate from the rest of your site, but you want to “export” a bit of it elsewhere.


Let Firefox read local files during development

Use with caution!!

By default, Firefox doesn’t allow resources on the web to access local files. However, when debugging a web application, this is sometimes useful (for example, if you have a remote web system that takes a long time to rebuild/update, and want to make a lot of small trial-and-error changes to javascript/css). This is potentially very dangerous, so only enable whilst you’re debugging, and turn off when you’re done 🙂


Random dev doodling – JavaScript 3D cube

Being a developer, I spend quite a bit of time playing around with programming bits and bobs. A little while ago, I had a relatively old Nokia that supported J2ME (without floating point) so I decided to try and write a simple 3d renderer for it – having no FPU (floating point unit) I had to write an integer math library, and sine/cosine lookup tables against the math library. This was all good stuff, and reminded me some of the maths I learnt at uni, and some good optimization tricks.

A couple of months after that, bored one afternoon, I decided to write something similar in JavaScript – modern browsers have decent JavaScript engines with good floating point support, so it was a lot easier… after proving that it could be done, I lost interest, but here’s where it go to.


Quick howto: init.d script for glassfish 3

Glassfish is a reference implentation of the Java EE 6 application server – it’s fairly easy to download and get running, but I wanted to get it running automatically on system startup on my linux server (which at the moment is running on coLinux – probably post about separately that at some point).

I’m assuming you’ve got the glassfish .zip, and extracted it to /opt/glassfishv3… and you’re running a debian-based OS (like Debian Lenny, or Ubuntu). These commands assume you’re either running as root, or prepend all of them with sudo…


1 2