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. July 2010
  2. April 2010
  3. January 2010
  4. November 2009
  5. September 2009
  6. August 2009
  7. July 2009
  8. June 2009
  9. May 2009
  10. April 2009
  11. March 2009
  12. February 2009
  13. December 2008
  14. November 2008
  15. September 2008
  16. August 2008
  17. July 2008
  18. June 2008
  19. May 2008
  20. April 2008
  21. March 2008
  22. February 2008
  23. January 2008
  24. December 2007
  25. November 2007

Tags

  1. actioncontrollerdispatcher (nameerror)
  2. actionview
  3. active messaging
  4. activerecord
  5. activesupport
  6. actverecord
  7. aes
  8. aggregation
  9. ajax
  10. akismet
  11. amazon
  12. amazon sqs
  13. ami
  14. apache
  15. api
  16. apple
  17. apr
  18. apr-util
  19. async
  20. attachments
  21. attachment_fu
  22. attr_accessible
  23. auto scaling
  24. autotest
  25. availability
  26. aws
  27. backgroundrb
  28. beanstalkd
  29. bindings
  30. bj
  31. block
  32. branding
  33. buckets
  34. bug
  35. bugmash
  36. cache
  37. caching
  38. callbacks
  39. cancer research uk
  40. cdn
  41. centos
  42. charity
  43. cloud
  44. cloudfront
  45. clusters
  46. column information
  47. columns
  48. community
  49. company name
  50. compatibility
  51. compiler
  52. composed_of
  53. consultancy
  54. content
  55. content delivery
  56. controller
  57. convert
  58. cookies
  59. csrf
  60. css
  61. data warehouse
  62. database
  63. dates
  64. defensio
  65. deployment
  66. design
  67. development
  68. dhtml
  69. docrails
  70. documentation
  71. donations
  72. drdb
  73. duplicate key
  74. ebs
  75. ec2
  76. elastic
  77. elastic block store
  78. elastic load balancing
  79. encoding
  80. encryption
  81. erb
  82. error
  83. european
  84. events
  85. ezcrypto
  86. facebook
  87. fckeditor
  88. feedburner
  89. feeds
  90. ffmpeg
  91. filter
  92. fixes
  93. flash
  94. flickr
  95. flickr api
  96. flickr_fu
  97. fuse
  98. geekup
  99. gems
  100. geocode
  101. git
  102. github
  103. god
  104. great south run
  105. greenplum
  106. growl
  107. hacker
  108. haml
  109. haproxy
  110. helper
  111. hmac
  112. holiday
  113. hooks
  114. hosting
  115. howto
  116. hpricot
  117. html
  118. identity
  119. imagemagick
  120. imagescience
  121. infinidb
  122. infiniteftp
  123. infobright
  124. init.d
  125. insert
  126. invalid authenticity token
  127. italy
  128. javascript
  129. jquery
  130. json
  131. leeds media
  132. limit
  133. linux
  134. load balancing
  135. logo
  136. mac
  137. markaby
  138. mass-assignment
  139. memcached
  140. mephisto
  141. messaging
  142. middleware
  143. migrate
  144. migration
  145. model
  146. mod_rails
  147. mod_ruby
  148. monetdb
  149. mongrel
  150. mongrel_cluster
  151. monit
  152. monitoring
  153. mootools
  154. mp3
  155. mq
  156. multiple gems
  157. multiselect
  158. mysql
  159. neon
  160. new site
  161. nginx
  162. observer
  163. offset
  164. open source
  165. opensolaris
  166. openssl
  167. optimisation
  168. paperclip
  169. parameters
  170. params
  171. passenger
  172. patch
  173. performance
  174. permanentredirect
  175. persistence
  176. persistent storage
  177. persistentfs
  178. php
  179. phusion
  180. plugin
  181. plugins
  182. post commit
  183. post-commit
  184. protomultiselect
  185. prototype
  186. query
  187. queues
  188. quotes
  189. race for life
  190. rack
  191. rails
  192. rails development
  193. rails patch
  194. rails plugin
  195. rails-doc
  196. rake
  197. refresh
  198. renderer
  199. respond_to
  200. rich text editor
  201. rmagick
  202. ruby
  203. ruby on rails
  204. rubyinline
  205. running
  206. rvideo
  207. s3
  208. s3fs. elasticdrive
  209. scaling
  210. schema
  211. schwarzenegger
  212. scm
  213. security
  214. services
  215. session
  216. shorthand
  217. snarl
  218. social
  219. solaris
  220. spam filter
  221. sparrow
  222. specify
  223. sponsorship
  224. sql
  225. sqlite3
  226. sql_logging
  227. starling
  228. starter kit
  229. storage
  230. streaming
  231. subversion
  232. sue ryder care
  233. survey
  234. svn
  235. swfupload
  236. swig
  237. sysadmin
  238. tables
  239. tamper
  240. templates
  241. the webfellas
  242. thewebfellas
  243. thin
  244. thumbnail
  245. time zone
  246. tinymce
  247. tip
  248. tips
  249. to-done
  250. training
  251. transcoding
  252. twitter
  253. tzinfo
  254. uk
  255. uk rails
  256. unsigned
  257. update
  258. uploads
  259. url
  260. validation
  261. version
  262. video
  263. view
  264. vmdk
  265. vmware
  266. webfellas
  267. webfellows
  268. wedding
  269. welcome
  270. widgeditor
  271. will_paginate
  272. win32
  273. windows
  274. wysiwyg
  275. xen
  276. xhtml
  277. xvm
  278. youtube
  279. zenoss
  280. zentest
  281. zfs

Flickr snaps