Prettier Flood Maps

I've been meaning to get rid of the awful chequerboard pattern on my flood tiles for ages. Today, I've finally done it. The flood maps should now look much better on LCD monitors, or when printed out.

Update! I reverted it.

I was overloading Google Maps' getOpacity() to set the …

View comments more ...


Easy Ajax Album

I've finished the first version of my easy online photo gallery software.

Easy Ajax Album is an open source PHP script that enables you to create an online photo album in seconds. Just copy the index.php file into the image directories on your web-server. That's it! Download it here …

View comments more ...

Flood Maps Upgraded

Google have just withdrawn the old version of their "Maps API". That broke Flood Maps and sent me into a tizzy of reading up on the new version and recoding my JavaScript to use it.

The site was down for a few hours, but I've now restored it. The positive …

View comments more ...

EventCalendar 3.1

I've finally released the new version of EventCalendar. I'm really proud of it. It's been updated, with better integration into WordPress and some cool new features.

Even more importantly, I've put loads of effort into making it easy to install and use. WordPress users aren't always the most tech-savvy web-site …

View comments more ...


Timezones in PHP.

How do I convert timestamps between UTC (GMT) and an arbitrary timezone in PHP?

These function work on PHP 4 and 5.

/** Converts a timestamp between arbitrary timezones. */
function tz_to_tz($timestamp,$from_tz,$to_tz) {
  $old_tz = getenv('TZ');
  // Parse $timestamp and extract the Unix time.
  if(!empty($from_tz))
      putenv("TZ=$from_tz");
  $unix_time …
View comments more ...

EventCalendar 3.1 Beta

The first public beta release of EventCalendar 3.1 is now available. This is a significant re-write. Event dates are now kept in their own table, so they are seperate from the post date. There is a new Ajax interface on the post edit screen that allows you to set …

View comments more ...

More about Flood Maps

I've been getting a lot of questions about my Flood Maps web-site. Here's a compilation of all the thing's I've had to say about them so far.

The questions are from Pierre Grumberg ofEmap France.

How did you make the maps?

It breaks down into two parts:

The website …

View comments more ...