MiniTest, Rails functional tests and Devise

Posted by Steve on July 04, 2012 |  Comments | Read full article
Here's the Gist for my test_helper.rb file which gets you running Rails functional tests as MiniTest specs...

Padrino CMS Template

Posted by Steve on February 28, 2012 |  Comments | Read full article
I have just pushed my first draft of my Padrino CMS Template onto Github. It aims to enhance the standard Padrino Admin app with a Content model which is keyed by path.

Hotrod Hayride

Posted by Steve on August 01, 2011 |  Comments | Read full article
Wall of Death, Drag Racing, Soapbox Derby and loads of Kustom Karzzz...

Most Rated

Posted by Steve on July 28, 2011 |  Comments | Read full article
A developer friend has just launched a very cool new music / event promotion website coupled with streamed audio for registered artists. Each artist's airtime is influenced by the listener's votes. It's a very good looking application with some simple but very effective features. Check out Most Rated

ActionView date_select calendar logic in javascript

Posted by Steve on June 24, 2011 |  Comments | Read full article
ActionView's date_select helper doesn't produce valid dates where the date select element is visible. i.e it's possible to select February 31st for example. Here's my 10 min fix in javascript (using prototype minimally).

Javascript bitwise encoding

Posted by Steve on June 17, 2011 |  Comments | Read full article
A quick example of Javascript bitwise encoding...

Independent Stove Installations

Posted by Steve on February 19, 2011 |  Comments | Read full article
Another Radiant and Heroku site I made wiv my 'ands

RubyProf, Oink and ActiveRecord bloat

Posted by Steve on December 03, 2010 |  Comments | Read full article
A client's CMS application was hogging up to 1.2gb RAM for the passenger ruby processes, we set to work on putting the big fella on a diet and with the help of the ruby profiler, some very useful tips on finding active record bloat and the wonderful oink gem we achieved a huge performance boost and reduced resource usage.

Fun fun fun fun fun

Posted by Steve on November 24, 2010 |  Comments | Read full article
... till the pigs come round.

Ruby 1.9 String encoding shitfest

Posted by Steve on September 16, 2010 |  Comments | Read full article
I've just spent the past 3 days working out a bunch of character encoding problems on an application running in Ruby 1.9 By the end of it I felt like my eyes were bleeding, I shall recount the horror as a lesson to you all...

None Meaner...

Posted by Steve on July 28, 2010 |  Comments | Read full article
DLH funday 2010...

Brown Sauce for life

Posted by Steve on July 26, 2010 |  Comments | Read full article
I recently spent a couple of hours building the Ooh! Saucy! site for a friend who makes her own special recipe brown sauce. The site is content managed using Radiant and freely hosted on Heroku, here's how I jabbed relentlessly at the keyboard until shit appeared right...

Simple content management for Rails

Posted by Steve on July 13, 2010 |  Comments | Read full article
A requirement on a recent project was to have editable content slots throughout the application. Here's what I done wiv my 'ands and my brains...

Le Mans Spotters Guide

Posted by Steve on May 27, 2010 |  Comments | Read full article
I'm off to Le Mans for the 24hr race. Here's the spotters guide from spottersguides.com.

Guerilla BMX

Posted by Steve on May 17, 2010 |  Comments | Read full article
Tucked away in a shady little location in the West Country is this amazing set of hand built dirt jumps. One of the shovel wielding bikers gave us a short demo...

Computers

Posted by Steve on May 13, 2010 |  Comments | Read full article

Ruby Debugger Commands

Posted by Steve on May 06, 2010 |  Comments | Read full article
I can never find or remember these commands when I need them, often frowned upon by the BDD community the debugger is how most programmers cut their teeth. Ruby's is a bit backdoor but it does the job when you know the basic commands.

Don't try this at home kids...

Posted by Steve on April 01, 2010 |  Comments | Read full article
Scratching in the kitchen for Keith...

Mean Wheels

Posted by Steve on March 26, 2010 |  Comments | Read full article
Spotted outside the Electric Ballroom, Camden, night of the Reverend Horton Heat gig...

Active Record for Javascript

Posted by Steve on March 22, 2010 |  Comments | Read full article

The eggheads at activerecordjs.org have brought sunshine to the cloudy world of javascript persistence mechanisms with Active Record js.

His name is called Busta

Posted by Steve on March 03, 2010 |  Comments | Read full article

We got another dog from the RSPCA last week, his name is called Busta and he's a very happy chap...

Cheat sheet gem

Posted by Steve on March 02, 2010 |  Comments | Read full article
cheat is a useful gem for access to command line cheatsheets.

Richard Dawkins would have a seizure...

Posted by Steve on February 15, 2010 |  Comments | Read full article

When you start to think there might be something extraordinary about your giant pet, what do you do? Phone the RSPCA? Consult a vet? Or call a medium.

We don't advise you...

Posted by Steve on February 05, 2010 |  Comments | Read full article

Stuff you shouldn't be doing...

10 minute javascript logger

Posted by Steve on February 03, 2010 |  Comments | Read full article
A quick and cheap js logger class to help you get out of alert hell...