Monthly Archives: February 2009

what does this return? or ‘why i love ruby’

def x 5 end   if false x = 3 end   puts x # => ?
Posted in ruby | Leave a comment

Ruby’s #each_with_index for Erlang

Ruby has a great method for enumerations called #each_with_index. It’s a handy way to iterate over a list of elements and and know where you’re at while doing it. Erlang has a group of highly optimized list operations in the lists module (Try erl -man lists to see them all). We’re going to be using those [...]
Posted in erlang, programming | 2 Comments

PoolParty s3fs Plugin

Goal A new plugin install and mount s3fs volume on an instance using PoolParty. Getting it git clone git://github.com/jashmenn/poolparty-s3fs-plugin.git Usage NOTICE You must have already created your S3 bucket. This plugin will not create it for you. cloud(:app) ... s3fs(:bucket => "my-fun-bucket") ... end This will be mounted at /mnt/my-fun-bucket You can mount multiple buckets and/or change the mount point: s3fs do [...]
Posted in deployment, ec2, git, ruby | Leave a comment