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 Programming Category

GEdit: The Missing Keyboard Shortcuts

April 23rd, 2011

I’ve love GEdit, it’s a great text editor, and having added a few plugins, a great IDE too. GEdit has a few keyboard short cuts for working with the application. But there’s also a lot of great short cuts for working within the document. These, however, arn’t documented anywhere. GEdit…

Writing Gedit Plugins – Link Round Up

April 20th, 2011

If you want to write a plugin for Gedit, you’ve probably struggled to find any helpful tutorials and documentation. That’s because there isn’t much out there. On my hunt, I’ve found the following few links to be worthwhile. Python Plugin How To for gedit 3 My first gedit plugin Gedit…

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…

Solarized Colour Theme for Gedit

April 13th, 2011

The Solarized colour scheme is an excellent syntax highlighting colour theme for developers. The theme is available for various editors form the site. Missing from that list is GEdit, the Gnome text editor, which makes an excellent IDE. So I’ve created the necessary theme files for GEdit users. Download them…

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…

Don’t Trust IE9′s Document Modes

March 19th, 2011

Internet Explorer 9 allows you to emulate the behaviour of IE8 and IE7 by switching the Browser Mode and Document Modes. In brief, Browser Mode tells IE9 how to act like older browsers, Document Mode tells it how to render the page. Confusing? Yes. But don’t bother trying to figure…

WordPress Widgets Alpha and Omega Classes

March 16th, 2011

If your using a CSS grid system like the 960 Grid, you’ll recognise the need for styling the first and last column on a row a bit differently from the rest (probably removing some margins or clearing floats). CSS3 lets us do this easily with nth-child. This is great for…

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…