Hi there, My name is Michael Smith, I am Developer at On The Beach. I'm a developer specialising in Ruby on Rails, JavaScript, CSS3 & HTML5!

Photo of Michael Smith

Latest posts

How to reach your host machine from VirtualBox

Say you are doing local development for your site (e.g. http://spokefire.dev) and you want to start IE testing using some virtual machines. Only you can't because you have to set up the hosts file to point to your host machines IP address, which constantly changes due to DHCP servers changing your IP.

This gets really old, so a solution (if you are using a VM other than VirtualBox, YMMV) then add a rule for the following into your hosts file.

10.0.2.2 spokefire.dev

Then, from your virtual machine, simply go to http://spokefire.dev in your browser (IE I'm guessing) and it should tunnel back through to your host machine!

Hope that helps someone out, took me ages to track down.

Published on April 12th, 2012 13:52
Read the full post

Handy Rails string functions

Recently I've been making my first custom library at work, and I've needed ways to turn strings into classes and classes into strings, I found some helpful methods for doing so by digging around a bit!

Published on June 28th, 2011 14:20
Read the full post

View more posts in my blog

Latest tweets

@mikespokefire: @gablaxian let me know your battle tag. I'll be on tomorrow at 10am! - 6 days ago.

@mikespokefire: RT @alex_gaynor: Law is just code written in a very free form, error prone, imprecise language. It's basically PHP really. - 6 days ago.

@mikespokefire: First live f1 race of the season! - 7 days ago.

@mikespokefire: @ChuckJHardy trust me there's no thinking. Think the night out in knutsford did it. - 8 days ago.

@mikespokefire: Head hurts... - 8 days ago.