Code Highlighting Test

February 3rd, 2009

@regions = Region.find(:all, :conditions => {:country_id => @address.country_id}, :order => :name)

Update and Synchronise in Radrails

June 23rd, 2008

For some reason update and synchronise for SVN don’t work in the ‘Ruby Explorer’ view. You need to use the ‘Project explorer’ view for these actions and everything will work as expected

Kill Rails Process

June 18th, 2008

Just to remind me.pkill -9 -u `whoami` -f dispatch.fcgiwill kill my rails app on hostmonster 

webistrano woes :(

June 13th, 2008

cvs -d /Users/username/mycvs/ checkout modulename this is the line I need to checkout something from cvs. i’ve been trying to figure out why Capistrano/Webistrano won’t read from my repository but something is going wrong.

Links to My Coldfusion Tests

December 6th, 2007

I’ve recently set up a small ColdFusion server on Bluedragon 7.

You can get to the test page here http://raavin.blogsite.org/machblog

My Development Setup

December 6th, 2007

This is incomplete but this is pretty much my setup

Machine
——-
24″ iMac 2.16 Intel core duo, 2Gig ram

OS

OSX + Parallels with Windows XP Pro

Editors
——-
Eclipse 3.2
  CFeclipse Plugin
  Aptana
  Radrails
Textmate
TextWrangler

Version Control
—————
CVS & Subversion

Testing
——-
Selenium

Application Servers
——————-
Coldfusion 8
Bluedragon 7
Ruby on Rails

SVN on OSX Finally

December 6th, 2007

It took a while but finally I got it figured out. After the initial install (which you can do your own search for) I had to do a few more things in the terminal.

While in the home directory…

$svnadmin create svnrepo

Edit the created ~/svnrepo/conf/passwd file with your chosen username and password

Uncomment the following lines in svnserve.conf

auth-access = write
password-db = passwd

$svnserve -d -r ~/svnrepo

That’s it. You now have a working svn repository at svn://localhost

Set Domain to Rails Folder on Hostmonster

December 6th, 2007

To set main domain to your rails folder on your Hostmonster account, do the following.

1. ssh into your account

2. Rename your public_html folder to public_html_old

username@domain.com [~]# mv public_html public_html_old

3. Create a link to your rails/public folder called public_html

username@domain.com [~]# ln -s ~/route/to/app/public public_html

Now the public_html@ link will be treated as if it is the old public_html folder. It’s one of the wonders of *nix.

note: This gives some grief when creating subdomains, showing “Application error Rails application failed to start properly”. I think it’s reading the dispatch files by default rather than doing the subdomain. I’ll have to look into it a bit more. If you only need your main domain though, this works nicely.