My Life The Broken Key in the Bedroom Lock October 9, 2013 by Craig Lotter No Comments Our main bedroom’s en-suite bathroom is really, really small. It’s a narrow little rectangle that fits in a shower on the one side, a toilet... Read More
CodeUnit PHP: Identify the Offset of a Specific Array Element December 4, 2012 by Craig Lotter No Comments To learn the offset or array key for a specific array element in a given array turns out to be fairly easy, thanks to the... Read More
My Life The Broken Key in the Lock April 9, 2012 by Craig Lotter No Comments I haven’t had to do any DIY for quite some time now, meaning that my tools have been quietly lying packed away, alone in a... Read More
CodeUnit Accessing Values in Javascript JSON Objects with Keys containing Hyphens (Dashes) August 12, 2010 by Craig Lotter No Comments However, if we tried the same thing with the "message-data" key, you will note that this will fall over syntactically straight away - all because... Read More
CodeUnit SQL: Add a Unique Compound Key to an Existing MySQL Table June 21, 2010 by Craig Lotter No Comments A simple question for today: how does one go about preventing duplicate rows based on the value held by more than one column being inserted... Read More
CodeUnit PHP: How to Sort Your Array but Keep Your Keys April 6, 2010 by Craig Lotter No Comments But if you have an associative array, in other words an array with keys, running the sort() function might give you a little shock once... Read More