Monthly Archives: March 2006

Handling multiple method_missing cases in Ruby

This is a bit half-arsed, but I think it might be a good way to work with method_missing if you need to cope with a bunch of different method formats for different purposes: class Object def Object.method_matching(regex, &block) if block_given? … Continue reading

Posted in Uncategorized | Leave a comment

“Spying on Yourself”

Alex Barnett points to J Wynia’s guide to setting up and playing with the Attention Trust’s Firefox extension to record your clicks and gubbins. This is something I hoped existed. There’s not a lot you can do with it at … Continue reading

Posted in Uncategorized | Leave a comment

Disabling JavaScript From Selenium

As it turns out, testing your pages for functionality with and without JavaScript is pretty easy if you’re just using Selenium IDE in Firefox. Create a user-extensions.js file containing the following commands (and tell the IDE its location): Selenium.prototype.doDisableJavascript = … Continue reading

Posted in Uncategorized | Leave a comment

Buy It Cheap

Discovered while Paul was trying to prove he was the second result for poo obsession on Google. Fingers crossed for that number one spot, eh?

Posted in Uncategorized | Leave a comment

Undefined 2.0

While everyone is worrying about the difference between version 1.0 and 2.0 of the web, perhaps there are more fundamental questions we need to answer – Internet Explorer made this worrying claim today: Good that Windows Live Mail doesn’t work … Continue reading

Posted in Uncategorized | Leave a comment

MD5 Confessional

Spending a lot of time this week setting up various pieces of bug tracking software, I kept forgetting what passwords I’d given the default admin accounts. Instead of doing the easy thing and just changing the passwords in that database, … Continue reading

Posted in Uncategorized | Leave a comment

Ruby Ad Nauseum

The more I play with Ruby, the more I find myself doing things like: require ‘pathname’ class String def begins_with?(start) self[0, start.length] == start endend class Pathname def hidden? each_filename do |name| return true if name.begins_with? “.” end false endend … Continue reading

Posted in Uncategorized | Leave a comment

SwitchTower(TM)(Apparently)

sudo gem uninstall switchtowersudo gem install capistrano Crappy name, great piece of kit.

Posted in Uncategorized | Leave a comment

OpenOffice.org 2.0 = Office 97 – 1

Shock horror. A threadful of issue dodgers: it’s great that you use it and it’s great that it’s free, but I don’t see many people refuting that it’s a slow clone of Office 97, minus Outlook. I find it fascinating … Continue reading

Posted in Uncategorized | Leave a comment

Innovation Labs

This week, we will be mostly innovating for… the BBC. Excited!

Posted in Uncategorized | Leave a comment