Monday, July 30, 2007

This Blog Has Moved!

After more than a year on Blogger, I've bitten the bullet, bought myself a domain and installed WordPress. It's been good so far. Please update your feeds and links. Hope you like the new site and feel free to send me some feedback - the new site even has a contact form :-)

New Address
My blog is now to be found at:

http://jamescrisp.org


New Feeds
  • Full (http://jamescrisp.org/feed)
  • Technical (http://jamescrisp.org/category/technical/feed)
  • Personal (http://jamescrisp.org/category/personal/feed)

This Address
My previous posts will still be hosted on Blogger, but any new posts will be at the new address (http://jamescrisp.org).

Tuesday, July 24, 2007

Ultimate Laptop Protection




Better than money can buy.

Made by my dad :-)

Sunday, July 15, 2007

Monday, July 02, 2007

Adding a New Rails Project under Subversion

I generally use Subversion for source control when given the choice. In day to day usage, I like to use Tortoise SVN as it gives you a GUI with tick boxes for files to check in. However, it's handy to use the command line tool for project setup and automation.

Often, there is a subversion repository already set up and running on another machine. In this situation, I generally:
  1. Check out the repository at the top level into a temporary directory through Tortoise, add a new directory ([appname]) for the new project, and check it in.
  2. Generate the new rails app (rails [appname]).
  3. Check out [appname] from the repository into the local directory [appname] which contains the Rails project.
  4. Add and check in all files through Tortoise.
  5. Run the following commands from the command line to remove logs and tmp from the repository:

svn remove log/*
svn commit -m "removing all log files from subversion"
svn propset svn:ignore "*.log" log/
svn update log/
svn commit -m "Ignoring all files in /log/ ending in .log"
svn remove tmp/*
svn propset svn:ignore "*" tmp/
svn update tmp/
svn commit -m "Ignoring all files in /tmp/"

There's more Rails/Subversion info to be found on the Rails wiki.