Last month I attended Hack Manchester – a 24 coding event as part of the Manchester Science Festival, held at MOSI. Having only arranged to team up with Mike, we ended up joining two guys Shaf introduced us to, his colleagues from the BBC, by the names of Jack and Tom. The four of us formed a team,...
This weekend I attended the fifth (my third) PHPNW annual conference. As a member of the local PHPNW user group and community, I volunteer as a helper which involves getting delegates registered, getting the speakers to the right place and making sure everything's running smoothly. Starting on the...
This trick was inspired by Brian Suda who I saw speak at Whisky Web. Take a string, any string. Hash it using MD5. Substring the hash to get a 6-digit hex code. Take a look at what colour that hex code represents. A really simple, really cool way of generating seemingly random colours, that can...
The ternary operator is a shorthand way of writing an if/else statement where a particular action occurs in both cases, but the value associated with that action depends on the condition stated. For example, the traditional if/else construct (C/Java/JavScript syntax): if (a > b) { result =...