WP Tempus Dominus Auto

Usually when I blog about programming, it’s Perl stuff, but here’s something that’s mostly Javascript (with a little PHP to act as a shim for WordPress). It’s a script to use Tempus Dominus as a date/time picker for HTML 5 date and time form inputs on Bootstrap/jQuery-based sites. It lets you do stuff like this: […]

Read More…

PHP Debugging with Style -OR- How I Learned to Stop Worrying and Love the Bug

PHP lets you define your own error handler, so I decided to get a bit fancy. MegaErrorHandler (MEH) outputs its errors as specially-formatted HTML comments, with the details of the error encoded using JSON. A small client-side script, with an associated stylesheet then pulls this data out of the comments and formats it as a […]

Read More…

Political Map of the UK

(Requires Javascript.) See below for an explanation on how these placements were calculated. UK-WideCountry-Specific (New) Labour Conservative Liberal Democrats Greens Respect Coalition UK Independence Party (UKIP) British National Party (BNP) Scottish National Party (SNP) Plaid Cymru Democratic Unionist Party (DUP) Sinn Fein Social Democratic & Labour Party (SDLP) Ulster Unionist Party (UUP) Alliance The Axes […]

Read More…