Craig Russell

Web n That

I ♡… the web… php… html… css… linux… shell scripting… folding paper… dog walking… sandwiches… being outside… and most of all @vicuol ☺

Refresh Manifest Cache Without .htaccess

February 4th, 2011

Manifest caching is one of the lovely new features of HTML5. It allows you to define a list of files to be cached for off-line access (among other nice features). One of the points to consider when making changes to cached files, is that the browser won’t know to download…

Responsive Images and Context Aware Image Sizing

January 22nd, 2011

I’ve been thinking about building responsive web sites lately. This has lead me down the path towards fluid image scaling and on to the problem of serving appropriately sized images for the client platform. In other words, how can we serve up small scale images for mobiles and tablets and…

Rapportive and a New GitHub Project

January 11th, 2011

Thanks to this post on Think Vitamin, I’ve today discovered Rapportive. Rapportive is a browser plugin for Firefox, Safari, Chrome and Mailplane, which displays social network information for your mail contacts. That in itself is alright, but the juicy part is the API. You can write your own “raplets” to…

Get CSV Data in to a PHP Array with Field Headings

January 10th, 2011

Here’s how to get data from a CSV file and store put the data in to an array. The function assumes that the first line of the CSV is the field headings, it uses these headings to set the key values in an associative array. So it takes an input…

Get Twitter API Data in to a PHP Array

January 4th, 2011

I’ve been playing around with the Twitter API a bit today. Here’s a handy little code snippet to get data from the api in to a php array. 1 2 3 4 5 6 <?php

Tumblr Style Flipper in CSS3

December 6th, 2010

Tumblr broke today (and still is at the time of writing). This is sad. But at least they have a mighty handsome error message (I’m not the only one to notice). Pretty aint it? But wait, it uses images – bleugh! Us web developers don’t need no Photoshop, we’ve got…

Git Link Roundup

November 17th, 2010

The version tool Git has had quite a bit of attention recently. I don’t know why this is, it’s been around for ages. Zeitgeist perhaps? Either way, here’s some of the better articles and resources I’ve found  over the past few weeks. Why You Should Switch from Subversion to Git…

OoLDAP PHP Library

November 11th, 2010

Yesterday I was looking around for a php library for working with LDAP servers. I couldn’t find much. I did find adLDAP, which is a nice enough implementation but it’s entirely focussed on working with Active Directory (we use eDirectory). It doesn’t allow you to work with custom schemas (which…

Pop-Up Birthday Card

September 20th, 2010

This is a pop-up birthday card that I made for Vicky’s birthday. I had to make it in secret so she wouldn’t suspect anything.