INCLUDE_DATA

Entries Tagged 'Uncategorized' ↓

starling yaml config file

I had a bit of trouble figuring how this should look like. Ended up finding it here. Basically, it should look something like:


starling:
queue_path: spool/starling
pid_file: pids/starling.pid
log_file: logs/starling.log
daemonize: true

Setting up starling on ubuntu

I use Enterprise Ruby for anything ruby. Here is the no none-sense process:

  1. sudo apt-get install build-essential zlib1g-dev libssl-dev libreadline5-dev
  2. Go here http://www.rubyenterpriseedition.com/download.html. Download and install
  3. On your server: sudo ln -s /opt/ruby-enterprise-x.x.x /opt/ruby
  4. sudo rm /usr/bin/ruby /usr/bin/gem
  5. sudo ln -s /opt/ruby/bin/ruby /usr/bin/ruby
  6. sudo ln -s /opt/ruby/bin/gem /usr/bin/gem
  7. sudo gem sources -a http://gems.github.com
  8. sudo gem install starling-starling
  9. Create a /etc/init.d/starling file and put this: http://gist.github.com/28849 in it
  10. sudo chmod +x /etc/init.d/starling

Done! Enjoy :)

Reloading a model during a migration

It’s documented, but I’ve somehow missed it. I was running this migration:

This kept failing with: undefined method `original_name=’ for #<Unit:0×3b61aa4>

After some poking around, comes reset_column_information to the rescue. After adding the columns and before looping, just add Unit.reset_column_information. This will reload the Unit model with the new columns, and all will go well.

Hey! Where’s my firebug highlighting??

Just installed firefox 3? Missing firebug highlighting? I guess you probably went to http://getfirebug.com and only saw the link for 1.0?

Fret not, the solution is here: https://addons.mozilla.org/en-US/firefox/addon/1843. Firebug 1.2 beta. The release version should be coming out in a couple of days.

Yippee Kay Yeah!

New design fordevelopergurus.com and for blogs.developergurus.com. I think they’re both pretty nice, and it’s all made by yours truly, and based on the copyblogger theme by Chris Pearson. The nice thing about them, in my opinion is that they are leveraging wordpresses awesome customisation potential. developergurus.com is being powered by the same css as the blog.

I used CSSEdit to make all the modifications and it was a pleasure to use. This program made it really fun to put the CSS together.

What’s planned for this blog? Well, big things I hope. I will strive to make this a blog filled with pertinent information to the developer community in general and the Ruby on Rails community in less general terms. Time will tell how well I reach this goal.