Automated Gem deployment (for Ruby on Rails)

Posted by tom November 14th, 2007

Today I came across a nice article and plugin/script which enables easy gem installation on your production and development servers, the script is to be used with Ruby on Rails, but looking at the script it could be adjusted for any purpose very easily.

Here’s the article

Leopard Safari enabling Inspect Element and Debug Menu

Posted by tom November 10th, 2007

Here’s how you can simply enable the Inspect Element and the Safari Debug Menu:

1) Go in terminal and 2) Type (copy paste) the following commands:


defaults write com.apple.Safari WebKitDeveloperExtras -bool true
defaults write com.apple.Safari IncludeDebugMenu 1

PostgreSQL on Mac OSX 10.5

Posted by tom November 10th, 2007

I’ve downloaded PosgreSQL from PostgreSQL for Mac and installed it, immediately after the server runs. From the diskimage I got the folders where the terminal binaries are installed (the GUI tools which come with the package don’t work for me) and it all worked. That saves a lot of compilation time!

Using Ruby on Rails with PostgreSQL is fairly simple, just install the ruby-postgres gem (gem install ruby-postgres) and have your database.yml represent something like:

development:
  adapter: postgresql
  database: my_development
  username: tdegrunt
  password:
  encoding: utf8

Using Coda now

Posted by tom November 5th, 2007

TO

Well just for certain things, like my UniVerse programming, for SFTP access Coda is very fast. For Rails I will continue to use TextMate, which is more brilliant in many ways. If only TextMate had SFTP access built in as fast as Coda did.