Archive for August 2008

Giving composed_of some much needed lovin’

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

It's arrived - Amazon Elastic Block Store

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

Fixed! Image uploads to Flickr with flickr_fu

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

And our survey says…

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.

A List Apart Survey Banner 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

Roll your own pagination links with 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

Recent entries

Archives

  1. November 2008
  2. September 2008
  3. August 2008
  4. July 2008
  5. June 2008
  6. May 2008
  7. April 2008
  8. March 2008
  9. February 2008
  10. January 2008
  11. December 2007
  12. November 2007

Tags

  1. actionview
  2. active messaging
  3. activesupport
  4. actverecord
  5. aes
  6. aggregation
  7. ajax
  8. akismet
  9. amazon
  10. amazon sqs
  11. ami
  12. apache
  13. api
  14. apr
  15. apr-util
  16. async
  17. attachments
  18. attachment_fu
  19. attr_accessible
  20. autotest
  21. availability
  22. aws
  23. backgroundrb
  24. beanstalkd
  25. bindings
  26. bj
  27. branding
  28. bug
  29. cache
  30. caching
  31. cdn
  32. centos
  33. cloud
  34. cloudfront
  35. clusters
  36. community
  37. company name
  38. compiler
  39. composed_of
  40. consultancy
  41. content
  42. content delivery
  43. controller
  44. convert
  45. cookies
  46. css
  47. database
  48. dates
  49. defensio
  50. deployment
  51. design
  52. development
  53. dhtml
  54. docrails
  55. documentation
  56. donations
  57. drdb
  58. ebs
  59. ec2
  60. elastic
  61. elastic block store
  62. encryption
  63. erb
  64. error
  65. events
  66. ezcrypto
  67. fckeditor
  68. feedburner
  69. feeds
  70. filter
  71. flickr
  72. flickr api
  73. flickr_fu
  74. fuse
  75. geekup
  76. geocode
  77. git
  78. github
  79. god
  80. growl
  81. hacker
  82. haml
  83. helper
  84. hmac
  85. holiday
  86. hosting
  87. hpricot
  88. html
  89. identity
  90. imagemagick
  91. imagescience
  92. infiniteftp
  93. init.d
  94. italy
  95. javascript
  96. json
  97. leeds media
  98. linux
  99. logo
  100. mac
  101. markaby
  102. mass-assignment
  103. memcached
  104. mephisto
  105. messaging
  106. migrate
  107. migration
  108. model
  109. mod_rails
  110. mod_ruby
  111. mongrel
  112. mongrel_cluster
  113. monit
  114. monitoring
  115. mp3
  116. mq
  117. mysql
  118. neon
  119. new site
  120. nginx
  121. observer
  122. open source
  123. opensolaris
  124. openssl
  125. optimisation
  126. paperclip
  127. passenger
  128. patch
  129. performance
  130. persistence
  131. persistent storage
  132. persistentfs
  133. php
  134. phusion
  135. plugin
  136. plugins
  137. prototype
  138. queues
  139. rails
  140. rails development
  141. rails patch
  142. rails plugin
  143. rails-doc
  144. refresh
  145. renderer
  146. rich text editor
  147. rmagick
  148. ruby
  149. ruby on rails
  150. rubyinline
  151. rvideo
  152. s3
  153. s3fs. elasticdrive
  154. schema
  155. security
  156. services
  157. snarl
  158. social
  159. solaris
  160. spam filter
  161. sparrow
  162. sql
  163. sql_logging
  164. starling
  165. starter kit
  166. storage
  167. subversion
  168. survey
  169. svn
  170. swig
  171. sysadmin
  172. tamper
  173. templates
  174. the webfellas
  175. time zone
  176. tinymce
  177. to-done
  178. transcoding
  179. tzinfo
  180. uk
  181. uk rails
  182. unsigned
  183. uploads
  184. validation
  185. video
  186. view
  187. vmdk
  188. vmware
  189. webfellas
  190. webfellows
  191. wedding
  192. welcome
  193. widgeditor
  194. will_paginate
  195. win32
  196. windows
  197. wysiwyg
  198. xen
  199. xhtml
  200. xvm
  201. youtube
  202. zentest
  203. zfs

Flickr snaps