Category Archives: General

JQuery: Checking if an element exists

There are some subtleties to jQuery that still confuse me, compared to how traditional JavaScript acts at least. With traditional JavaScript, you could check for “an element”. The simplest example Read More »

Opening links in a new window with jQuery

With the advent of XHTML Strict 1, you can no longer use target=”_blank” on an A tag in your code. The only solution for this is to use Javascript to Read More »

Using shortcodes in a template file in WordPress

I’m using Contact Form 7 on a website I’m building. Currently, Contact Form 7 uses shortcodes, meaning you can drop forms into posts. Something like

You can’t use shortcodes Read More »

Replacing multiple occurrences of a string in JS

I’m a little disappointed JQuery doesn’t have something uber fancy for this. Something that always catches me out is when trying to replace occurrences of a string, it only replaces Read More »

Only display add a comment if the post is recent in WordPress

I’ve always got quite a lot of comment spam on the blog, and this is mostly for older posts that I assume are already dead and wouldn’t be commented on. Read More »

How to get a Twitter feed into your WordPress theme

Since Twitter changed things, you’re probably better off looking at A WordPress Twitter stream, without the RSS…     WordPress comes with a version of Magpie RSS as part of Read More »

Safari 5 “reader” mode

Interesting article over at theregister about Safari 5’s new “reader” function. And the page is also a living example of a page compatible with it too. Apparently, if Safari 5 Read More »

douglasradburn.co.uk – a redesign

It seems from time to time, I like to refresh the design of this blog and try to re-enter the “blogsphere”. Really, I should just name my blog something obvious, Read More »

BBFC lose game rating classification

Interesting article over at El Reg regarding Elspa taking over gaming classification from BBFC. Elspa’s PEGI system has been in place for a while, with recent updates to the rating Read More »

Facebook Zero – Who cares?

Facebook has released a new version of Facebook aimed specifically at mobile phones in what can only be an effort to save bandwidth for mobile networks. The new version is Read More »

Unicode

It’s been interesting to see the rise of Unicode (now version 5.2). Its’ usage is a boon to programming types, but also to the everyday public as Google have just Read More »

Google Disk Space

Google announced this week on its blog that you will now be able to upload up to 250mb files onto 1gb of storage on it’s cloud system. Many news outlets Read More »