David Makin's avatar

Creating a simple REST application with Silex.

So you have come to the conclusion that, rather than having the code to update customer details and that little fix to convert the date from GMT to UTC should happen in once place rather than being copied into several pieces of code, a REST service is the answer. Perhaps you just think you should know how to create a REST service. Either way this post is for you.

In this post we will start off with a blank directory and go through installing Silex and getting it to serve a couple of simple routes. read full article

David Makin's avatar

Hosting your site on GitHub using Jekyll.

I kept seeing posts about Jekyll and how it would create static websites from plain text and you can even add in a little code to help out. Even better some of them mentioned you can get GitHub to host the code, generate the html and display the site for you. Free hosting and a chance to play around with an exciting piece of tech, count me in! read full article

David Makin's avatar

Removing old linux kernels in Ubuntu.

As I always forget how to remove the older kernel headers I am posting this here

sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
and a link back to the originating page

read full article

David Makin's avatar

Fracking IE8 not inheriting background correctly.

Just solved a problem which causes me to hate IE8 even more. If you set a gradient on a section via css and and later on override it to be a solid color it doesn’t work. read full article