Fixing {{model}} placeholders in Rails 2.3 when Rails 3 is installed

This was causing me all kinds of grief. I am running Rails 2.3 and Rails 3 apps on the same server and on installing Rails 3, the Rails 2.3 apps started displaying {{model}} and similar strings in views. It turns out that Rails 3 uses i18n version 0.5.0 and with this version as far as […]

Completely Flattening a Git Repository

Whilst working on a recent project, I ended up with a massive git repository due to frequent commits of large-ish files. As I was the only one working on the project and I was certain I didn’t need anything from the history, I wanted to be able to flatten all the commits in the repository. […]

Using Artifice to Stub Server Responses

In a recent project I needed a way to fake a response from a server in my Cucumber features. Specifically, I was testing integration with a payment gateway and wanted to stub it’s responses based on different requests. In the past I have used FakeWeb, however it becomes a little hairy when you need to […]

The Solution to Fluid Inconsistencies and Equal Height Columns (revisited)

This is a follow on from my previous article on fluid equal height columns, please consider reading this first if you are interested on how I arrived at this solution. I have been happily using both techniques in my previous article, however was not happy with the use of CSS expressions in the equal height […]

The Solution to Fluid Inconsistencies and Equal Height Columns

Update: There is a follow up article to this one addressing issues raised in the comments. An introduction Being an early adopter of Web Standards back in 2001 and thanks to Jeffrey Zeldman’s Designing with Web Standards released in 2003, I strived for a life without tables and 1 pixel shims and instead one filled […]

Divvy – A great way to keep your windows organised in OSX

I’ve just come across a great little app for organising windows in OSX. It takes a different approach to your usual snapping system by giving you a grid via a HUD (heads up display) to select how much area you want a window take up. You can find it here: www.mizage.com/divvy/.

Super simple jQuery templating

Working with jQuery, it is common to find yourself needing some kind of templating solution. There are plenty out there, however sometimes the use-case is simple enough that you don’t really need a fully blow templating plugin. We’ll take a task list as an example (just to be original). Lets say you have the following […]