Category Archives: programming

ActiveScaffold and ‘helper :all’

On a recent project we have been using ActiveScaffold in an effort to learn the tool and judge it’s usefulness. It also seemed like a really good fit for the CRUD application we are working on. ActiveScaffold is interesting in … Continue reading

Posted in programming | Comments Off

Open rdocs for installed gems

By way of Ruby Inside, this site has a .bash(rc|_profile) function/completion to open rdocs for installed gems on your machine. I changed it slightly so that it would just open in a new tab in firefox. Put this in your … Continue reading

Posted in programming | Comments Off

I probably already told you but…

There is a social networking site just for people interested in Ruby Called acts_as_community. It’s somewhat interesting, and of course I signed up, but we’ll see how much it gets used.

Posted in programming | Comments Off

Firebug on Firefox 3

If you are a web developer and you recently installed Firefox 3 you may have realized that the Firebug extension no longer works. I installed the Firebug-1.2 beta this morning and it seems to be working.

Posted in programming | 1 Comment

Capistrano Hangs on Upload

If you find that Capistrano is hanging when you are attempting to deploy, adding: set :synchronous_connect, true to your deploy.rb file should fix you right up.

Posted in programming | 1 Comment

A little more on editors

I have been pretty open about my editor use over the last few months. I switched to emacs a while ago, then was trying Open Komodo, etc. Then I became a consultant. It was cool at first, I have computer … Continue reading

Posted in programming | 3 Comments

Editors and IDE’s

A while ago, I switched from Vim to Emacs. I did this for a couple of reasons. Mostly I was hoping to learn elisp which would enable me to make the editor do what I want, and avoid frustration with … Continue reading

Posted in programming | 2 Comments

Fun with irb

irb can be a lot of fun. I will usually fire it up to test something out as I am looking over some ruby.

Posted in programming | Comments Off

ruby sub-reddit

Just to help the cause, I will post that reddit now has a dedicated sub-reddit for Ruby.

Posted in programming | Comments Off

Random array element in Ruby

Was looking for the Ruby way to return a random array element. array = [foo, bar, baz] puts array[rand(a.size)]

Posted in programming | 1 Comment