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 ☺

Posts in Software Category

PHP Password Policy

April 15th, 2011

A password policy lets you put restrictions on the format of password allowed in your application. A good password policy forces user to use secure passwords. PHP Password Policy makes it easy to implement a password format policy on your application. It includes functions to return password validation errors and…

New Site Design

April 3rd, 2011

Today I’ve made the first of a series of changes that are coming to my website over the next few months. I’ve wanted to update the WordPress theme for a while. The previous theme was coded a while ago, and a lot of great changes have swept across the web…

Bulk Minify Shell Script

February 7th, 2011

The YUI Compressor is a bad ass little tool for making CSS and JS files as tiny as possible for faster page loading. I’ve written a little shell script to bulk minify CSS and JS files. The script will minify any file in your css and js folders that do…

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…

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…

Configuring Inkscape Default Template

August 4th, 2010

When I open up a new document in Inkscape, the first thing I usually do is set up the grids and page layout in mm for printing. This gets pretty boring having to do this with every new document. Fortunately it’s pretty easy to configure the default template so you…

Geo Relevent Mobile Messaging

July 13th, 2010

I have just this minute heard about a company, Xtify, which produces a communication framework for sending messages to mobile users based upon their location. This could be seriously amazing! You know when you hear something and it sends ideas pinging off in different directions like a particle collision? Reading…

WordPress Loop in a Widget

June 29th, 2010

When I was writing a WordPress widget plugin to display information from a sub set of my posts (that’s it on the side, with the paper toys…) I noticed that the WordPress Loop doesn’t quite behave itself when widgetized in the 2.8+ style. When using the following code, inside a…