Getting PHPSpec to work with Laravel

I’ve recently started using PHPSpec to drive my testing efforts in a new Laravel project. The behaviour-driven approach makes a lot of sense to me but I am finding it a little difficult to master.

This post provides a fix if you find PHPSpec throwing Class not found errors after running your test suite on the command line.

Read full post

The day of St. Patrick

I don’t really celebrate St. Patrick’s Day, aka Paddy’s day. However this does not mean that it doesn’t irk me to hear people call it Patty’s Day or St. Paddy’s Day.

There now follows some rambling thoughts about nationalism and patriotism.

Read full post

Don’t work late

Finishing work late in the evening and trying to get to sleep soon thereafter is not a good idea.

Word to the wise – make sure to give plenty of time between finishing work and actually going to bed – and don’t go checking your work email just before bed, that just re-activates all those thought processes.

Read full post

Batch Optimising Images on a Linux server

Here’s a quick guide to batch optimising your website’s images to decrease page load time for your website visitors. It’s easy and only takes a few minutes.

I’ll be looking at two useful Linux command line tools – jpegoptim and optipng – and showing you how to use them and how to batch process all images in a folder (and sub-folders).

Read full post