Magic Quotes In PHP

The Symptoms Recently I was trying to debug a piece of code it worked fine in the development and staging environments. But when the code was uploaded to the production server it would break! Looking at the JSON data it appeared the production web server was adding back slashes to…

Read More
Calculation times for Pi to 5000 digits on a Raspberry Pi

Quick Recursive Code Count

Although the “lines of code” in a project is not the worlds most useful metric. Curiosity sometimes gets the better of us and after many days / weeks of typing you think “gee I wonder exactly how many lines of code are in that project?”. Wonder no more! By embracing…

Read More