Genetic Algorithms and the Mona Lisa

Way back when I was at university (way, way, waaay back) I did some Artificial Intelligence stuff; genetic algorithms, neural networks, and the like. Honestly, though, I really don’t remember much (any!) of it, though I do remember enjoying the genetic algorithms side of things. I haven’t thought about that kind of thing for quite […]

WCAG colour checker

About five years ago I created a small PHP class that would check the contrast of a foreground and background colour and give a report on whether it was accessible in accordance with the WCAG recommendations (so either AA or AAA compliant). I’ve recently had cause to dig out that script which gave me the […]

Converting JSX to JS on the command line

Yesterday I was starting a small, very stand-alone project that required a pretty dynamic interface. I decided to put together the components using ReactJS but as it was essentially just one JSX file that I had I didn’t want to have to set up a gulp file, babelrc file, and whatever new-fangled build process the […]

My CodeMagic fork (a TinyMCE plugin for code editing)

I’ve used TinyMCE for a while – it’s an excellent WYSIWYG editor for web applications. However, the code editor in it is really simplistic. Enter CodeMagic, a plugin that allows you to replace the standard code editor with one that used the excellent CodeMirror library for syntax highlighting. So I started to use CodeMagic but […]

Easy table sorting with jQuery

I came across a jQuery plug-in the other day to sort tables, and it works great and is exceptionally simple to implement (and as anyone who’s flicked through this blog knows, I like the simple things in life… Don’t need any more gray hairs popping up, you know!). The plug-in is called tablesorter (found at […]