Rails 3.1 introduced HTTP streaming, a feature that can speed up the perceived
page load times for your users. This feature doesn’t actually speed up any of
your code, but rather starts sending the response before the entire page is
What this means is that your app can start sending out parts of the page that
do not require any heavy calculation almost immediately. This really helps if
you have some complex actions which take a long time to completely render.
The best part of this feature is that by rendering the top part of the page
quickly, the users browser can begin to download assets such as CSS straight
away, while your application works on getting the rest of the page out the
door. This can speed up end user page load times dramatically.
Previously when I was running Mac OSX Snow Leopard I would use the built
in tool ‘DigitalColor Meter’ to grab RGB values from my screen. Using the
tool is is very quick to grab colours from websites, photoshop files,
When I upgraded to OSX Lion and opened the colour meter for the first
time I realised that it had changed and I could no longer quickly grab
colour values to use. I realised though by changing one of the menu
settings I could get back the previous functionality; here’s how:
For a little while I haven’t had any spare time to do any original open source work. I’d still been contributing to Locomotive CMS, fixing bugs and generally just helping out, but I haven’t had the chance to work on anything new. Thankfully for a client project of mine I had the chance to create a new gem.
So, yesterday at work I released the activemerchant-bpoint gem. A small plugin for Active Merchant that provides a billing gateway for the commonwealth bank’s BPOINT merchant gateway service. It’s really great to work in an environment that encourages open source work. Hopefully this is just the start and I hope in the future that i’ll be able to open source much more of the work I do.
The Ruby MRI 1.9.3 RC1 has just been released and I wanted to try it out, the
latest version of rvm only lists the 1.9.3 preview1 and 1.9.3-head which
doesn’t appear to work correctly. Here’s how I managed to get 1.9.3
installed using rvm:
rvm install ruby-1.9.3-tv1_9_3_rc1 --with-libyaml-dir=$HOME/.rvm/usr
rvm alias create 1.9.3-rc ruby-1.9.3-tv1_9_3_rc1
rvm use 1.9.3-rc
Ruby 1.9.3 works quite well (all of my tests still seem to be green), although
there are a few small issues at the moment. For example ruby-debug19
doesn’t currently install.
Running a quick test shows that 1.9.3 does indeed seem to load up a rails
environment much quicker, here is a comparison of running rspec and cucumber
tests for a rails 3.1 project.
time rspec spec
Finished in 22.81 seconds
time rspec spec
Finished in 25.69 seconds
As you can see the actual tests themselves ran faster but not by much, the
total execution time went down a lot though as 1.9.3 has some new fixes to
dramatically speed up the time it takes to require libraries.
1.9.3rc1 is now available directly through RVM. Simply run:
A few months ago a friend and coworker of mine pointed me towards Locomotive CMS, a content management system built on ruby on rails which has multi site
support out of the box and has a really pretty admin interface.
I have been helping out Locomotive CMS for a while now in my spare time. I’ve been fixing bugs here and there and helping out users that require assistance. A couple of days ago I was appointed as one of the maintainers for the project, YAY.
Locomotive is really neat, you should totally check it out!