Posted by Rob Anderton on August 24th, 2008 @ 11:11 – 4 comments
Updated on August 27th, 2008 @ 10:54
Tagged with actverecord, aggregation, composed_of, patch, rails development
Did you know ActiveRecord includes support for aggregations? If you did, have you ever used them? Despite being part of Rails from the start composed_of tends to lurk in the shadows while newer features like named_scope steal the limelight. It’s time to give composed_of some love again!
Read more of this entry
Posted by Chris Anderton on August 21st, 2008 @ 15:27 – 0 comments
Updated on August 21st, 2008 @ 15:28
Tagged with amazon, aws, cloud, ebs, ec2, elastic, elastic block store, persistent storage
The feature I've been waiting for on EC2 has arrived - persistent storage is now available on the public beta as per an email from the EC2 team:
We are pleased to announce the release of a significant new Amazon EC2 feature, Amazon Elastic Block Store (EBS), which provides persistent storage for your Amazon EC2 instances. With Amazon EBS, storage volumes can be programmatically created, attached to Amazon EC2 instances, and if even more durability is desired, can be backed with a snapshot to the Amazon Simple Storage Service (Amazon S3).
At a high level the features include:
- Volumes from 1Gb to 1Tb
- Multiple volumes can be mounted from one AMI
- Implemented as block devices
- Live in an availability zone
- Automatically replicated within the availability zone
- Support snapshots
- Multiple volumes can be used and striped across to improve I/O
- $0.10/gb allocated per month and $0.10 per 1 million I/O requests
- Sample cost based on 100Gb storage and 100 I/O per second is $36/month
I'm going to get playing with it and it will be interesting to see how it performs and also compare it on the cost front to some of the options I outlined in a previous post - in the meantime you can read more on the Amazon Web Services site.
Discuss this entry
Posted by Chris Anderton on August 11th, 2008 @ 13:37 – 0 comments
Updated on August 11th, 2008 @ 13:41
Tagged with development, flickr, flickr api, flickr_fu, git, github, rails, ruby, webfellas, webfellows
One of the projects we’re working on needs to be able to publish images to Flickr. Rather than re-invent the wheel a quick search on RubyForge and GitHub turned up a number existing Flickr libraries for Ruby. After considering future requirements, we decided to go with flickr_fu.
There was just one teeny tiny problem: uploads to Flickr within flickr_fu were broken, as we discovered when we looked at the comments in the Flickr::Uploader class:
# NOT WORKING ... FILE UPLOADS IN NET::HTTP IS TEH SUCK
A fork, a clone and a few tweaks later and we’ve got uploads working. The changes are currently in our fork but I’ll also be submitting them upstream after a little more testing.
Discuss this entry
Posted by Rob Anderton on August 6th, 2008 @ 16:36 – 0 comments
Updated on August 6th, 2008 @ 16:37
Tagged with development, rails, ruby, survey
There are currently a couple of web-based surveys being carried out that you may want to take a look at. First up is the survey for people who make websites 2008 aimed at anyone involved in web development from designers to Ruby coders from the guys at A List Apart.
Nearly 33,000 people took part in 2007 and it will be interesting to see what has changed and what has remained the same in terms of salary, experience, education and working conditions over the last year.
The second comes from HAML creator Hampton Catlin in the form of the more Ruby-centric Hampton’s Ruby Survey 2008. At the time of writing over 900 people have responded, so if you haven’t already, now’s the time to get your entry in.
The survey covers Ruby and Javascript frameworks, testing, interpreters and in a bizarre twist ends with religious beliefs. It will certainly be interesting to discover if the Ruby community is big on new-age spirituality or is just a godless bunch of coders!
Discuss this entry
Posted by Rob Anderton on August 3rd, 2008 @ 16:10 – 7 comments
Updated on October 29th, 2008 @ 22:03
Tagged with css, helper, html, rails, renderer, view, will_paginate
Mislav’s will_paginate plugin (and Gem) has become the de facto standard for pagination in Rails, replacing the often derided classic pagination from the dark days before Rails 2.0. If you haven’t used will_paginate before then Ryan Bates’ RailsCast is a good introduction, although be warned that it is just over a year old and there have been a number of changes to the plugin in that time (the current version is 2.3.2 2.3.6).
Read more of this entry