Articles

A collection of articles and snippets I've collected over the years.


Solved: PHP Imagick ‘unable to open image’ PDF

October 29, 2015

I've recently stumbled across an issue where PHP Imagick can't open a PDF file despite the file being there and readable. This is using Mac OSX El Capitan with Homebrewed PHP5, Imagemagick,...

Magento Snippet: Admin grid currency type with currency symbol

October 6, 2015

Here's a snippet for using a currency column type with the currency symbol prefix in Magento admin grids.

My Current Podcasts

August 30, 2015

Like many web professionals, I listen to a lot of podcasts when I have the time. They generally fall into two categories which cover my interests; tech and music, and so I thought I'd list my current...

TIL: MySQL FLUSH PRIVILEGES isn’t needed

July 17, 2015

Today I learned that `FLUSH PRIVILEGES` isn't needed by Scott Lindsey in the comments. After double checking locally that Scott was correct I looked it up and found a great explanation why MySQL...

MySQL fix: Field ‘xxxx’ doesn’t have a default value

June 22, 2015

I've recently been working on a few of our older websites with newer MySQL installations and am coming across the following error: SQLSTATE[HY000]: General error: 1364 Field...

20 years of PHP #20yearsofphp

June 9, 2015

On 8th June 1995, Rasmus Lerdorf announced the release of Personal Home Page Tools Version 1.0. To celebrate the 20th anniversary, Ben Ramsey has asked the PHP community to share their PHP...

Useful Oh-My-Zsh plugins

May 3, 2015

Oh-My-Zsh describes itself as a 'community driven framework for managing your zsh configuration' and comes with lots of zsh plugins (189 currently) but none are enabled by default. Some zsh plugins...

Install Beanstalkd on Ubuntu 12.04

April 22, 2015

A simple guide on how to install Beanstalkd on Ubuntu 12.04.

How to pear install HTTP2 and HTTP_Request2

April 16, 2015

Whilst working on a project recently I've found the need to install the HTTP2 package from the pear repository. I couldn't find any useful notes on how to install HTTP2 via pear so here's my notes on...

Staffs Web Meetup February 2015

February 21, 2015

On Thursday night I attended the Staffs Web Meetup, a monthly event aimed at providing an informal environment for people involved in all aspects of the web industry to meet up.

You may need to re-run your boot loader[grub]

February 19, 2015

After updating an Ubuntu server I occasionally see the message `you may need to re-run your boot loader[grub]` after updating the kernel. Here's how to actually update Grub.

Exim Command Cheat Sheet

February 13, 2015

I've had this Exim command cheat sheet in Evernote for a while and thought it would prove useful to others.

Using different PHP versions on OSX with Apache and Homebrew

February 4, 2015

By default Apple's OSX (Mavericks) comes with PHP 5.4 installed but if you want to work on a different version you're pretty stuck. My solution to this is to use homebrew to install PHP5.3, 5.4, 5.5...

Sample xdebug.ini file

January 28, 2015

I use Xdebug when working on PHP websites and often have to manually install it before starting and debugging. I usually find myself searching the internet for a sample xdebug.ini file to use after...

How to forward a domain to a Vagrant VM with Apache on OSX

January 27, 2015

I do a lot of my development work using Virtual Machines and Vagrant. This provides an easy way for me to get a working environment up and running locally on the many projects I work on daily....

Using a Standing Desk for Work: Week 1

January 19, 2015

Its been a week since my post last week, "Using a standing desk for work: Day 1" so I thought I'd write a update.