Writing

Howto's, snippets, and articles I've written over the years.

Fix for PHP ‘ Warning: Invalid argument supplied for foreach() in …’

February 14th, 2014

I'm getting lots of pages with the PHP warning "Warning: Invalid argument supplied for foreach() in ...". The warning is showing because I like to develop with error reporting turned on.

Can’t find VirtualBox Guest Additions ISO?

February 13th, 2014

Can't find the VirtualBox Guest Additions ISO? Here's a link to the VirtualBox downloads server.

Why NPR’s intern didn’t like Public Enemy’s ‘It Takes A Nation Of Millions To Hold Us Back’

January 23rd, 2014

Today I read a well written blog post over at NPR Music called ‘You’ve never heard Public Enemy’s ‘It Takes a Nation of Millions To Hold Us Back’ in which one of their young interns, Austin Cooper, listens to Public Enemy’s classic album for the first time, and hated it.

My Musical Journey: From Glam Rock to Hip-Hop (and Beyond) – Part Two

My Musical Journey: From Glam Rock to Hip-Hop (and Beyond) – Part Two

January 8th, 2014

So the 1980s had introduced me to Hip-Hop - a new, exciting and fresh sound straight from the USA and I loved it. But there was a new buzz growing in the UK at the time and I'll admit that I hated it - at first. House had been growing for a couple of years and I'd first

My Musical Journey: From Glam Rock to Hip-Hop (and Beyond) – Part One

My Musical Journey: From Glam Rock to Hip-Hop (and Beyond) – Part One

November 10th, 2013

I seem to have been born at a pretty good time for music. My parents aren’t big music fans; my Mother used to be into Glam Rock and bits of Hendrix whilst my Father used to play Country music on Sunday mornings. How that mix started my musical journey from Glam Rock to Hip-Hop and beyond is anyones guess.

How to configure postfix to deliver all mail to one mailbox

October 19th, 2013

How to configure postfix to deliver all mail to a local user account

Filter Apache logs to exclude js, css and images

August 7th, 2013

Quite often I find myself having to filter Apache logs to exclude JS, CSS and images. I use a combination of cat and egrep to achieve this.

MySQL Create Database with UTF8 Character Set Syntax

June 21st, 2013

I always forget the MySQL create database with UTF8 character set syntax, so here it is.

PHP Imagick / ImagickException: "no decode delegate for postscript or PDF files"

May 17th, 2013

This morning I had an issue with a PHP imagick ImagickException when converting a PDF/postscript file to a thumbnail. I have PHP Imagick, Imagemagick and Ghostscript installed and everything verifies as OK in phpinfo output.

Magento admin login problem in Chrome – with solution

April 10th, 2013

Recently I've been experiencing a Magento admin login problem in Chrome which was caused by an invalid domain name and cookies. Here's how I fixed it.

Routing requests to index.php with Apache

March 25th, 2013

Here's how to go about routing requests to index.php with Apache.

PHP backtick gotcha

March 12th, 2013

I got caught out using bacticks in a PHP script.

Newer articles Older articles