In my blog you'll find my thoughts, hints & tips, experiments and random rants. I hope you find them interesting!

Photo of Michael Smith

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