Sep 06

Put the following code in your .bashrc file:

function open()
{
   if [ "$1" = "" ]
   then
     rundll32 url.dll,FileProtocolHandler .
  else
      rundll32 url.dll,FileProtocolHandler `cygpath -w "$1"`
   fi
}

Now you can use the open command.

  • Type open http://www.franzens.org to fire up your web browser and point it to this site.
  • Type open some_document.doc to start Microsoft Word (or Open Office) with specified document.
  • Type open some_document.txt to start notepad with specified document.
  • Type open to launch the explorer in current directory.
  • Type open //some_network_path/foo/bar to launch the explorer in specified directory.

I think you see the pattern above. I use the open command all the time and it is really useful.

May 12

Visualize Models is a small rake script that will generate .png images for Ruby On Rails models (i.e. the database tables) that will display the table/column information. The associations between tables is based on the default Ruby On Rails naming convention (i.e. <table>_id columns). See image below for the typo blog models:

Typo Blog

Continue reading »

May 09

I’m changing my blog backend to WordPress and this beautiful theme by N.Design Studio