Install Rmagick on Ubuntu with MagickWand
apt-get install librmagick-ruby1.8
apt-get install libmagickwand-dev
gem install rmagick
The last command will spit out a bunch of "No definition" comments. There are no rdocs available and this is why.
Written by Sean Behan on 06/17/2012
named_scope in Rails
Take advantage of the named_scope method in your models and make find queries simple and beautiful!
#app/models/comment.rb
class Comment < ActiveRecord::Base
belongs_to :post
named_scope :pending, :conditions => ["pending = ?", true]
named_scope :...
Written by Sean Behan on 06/17/2012
NO Table Cell Spacing Please
Remove cell padding on a table you add the cellspacing attribute and set it to "0". Is there a better way to do this with straight up CSS? Nothing seems to work...
<table id='my-favorite-table' cellspacing="0" >
...
Written by Sean Behan on 06/17/2012
How Many Gigs of RAM Are On My Server?
How much memory is on my linux server? Run the free command
free -g
total used free shared buffers cached
Mem: 2 1 0 0 0 1
-/+ buffers/cache: 0 1
Swap: ...
Written by Sean Behan on 06/17/2012
hessian
Written by Sean Behan on 06/17/2012