Switching to HHVM instead of PHP (Zend) to process your PHP is a painless process these days, and comes with many benefits, including the ability to use the Hack language. I’m going to walk you through switching using Apache on Ubuntu 14.04. This article assumes you have installed Apache2 and PHP and just want to […]Continue
This post will guide you through using an Arduino to capture the temperature of a room and upload it to a server for logging. You can then display the data with a graph using PHP or another language of your choice. Required Parts Arduino Ethernet Shield (Or other network connection) Temperature Sensors LCD Shield (Optional) […]Continue
If you run a public facing SSH server then security is something you need to take seriously. If you use fail2ban (www.fail2ban.org) you can get failed login or attack statistics really easily. Fail2ban will block failed attempts after 3 trys by default, for a total of 600 seconds – however you can change this to […]Continue
Since moving to Mac for my daily development (I’ve completely ditched windows), I’ve come to rely on several tools that I use daily. General Changes Moving from Windows brings a few general changes. Simple things like being used to CTRL+C and CTRL+V for copy and paste become ⌘+C and ⌘+V respectively, the @ key moves, […]Continue
Facebook has recently released a new programming language of sorts, an improvement of PHP called “Hack“. Strictly speaking it’s a modification of the PHP syntax, so not entirely a new language. Hack has been in use over at facebook for a year now and powers nearly all of facebook, taking over from traditional PHP. This […]Continue
Several months ago Google created a visualizer for the trending searches within several different countries, giving the user a browser full of interesting searches presented in a beautiful way: http://www.google.com/trends/hottrends/visualize?nrow=3&ncol=3&pn=p9. I thought this would make a great screensaver, so after not being able to find a suitable way of getting this to happen I decided […]Continue
Composer is a tool designed to make including and using software libraries much easier with your applications. If you’re reading this I assume you already know what it is and how to use it, if not though I recommend reading the excellent and simple SitePoint article. To begin with, you should have your code in […]Continue
As part of my day job I spent a lot of time working with the Barclays eFinance API, part of their Partner Finance package. I realised early on that there were no publicly available PHP libraries available so I ended up having to put my own together. I’ve decided to release the code on GitHub […]Continue
The Levenshtein Distance – it might sound like the title of a crime novel, however it’s actually a formula for finding closely matching text, and is especially useful when trying to find data within your database. Technically, it determines the number of operations needed to turn a given string into another string.Continue
Work with me
I'm available to take on freelance work.
PHP, MySQL and more.