Set cache-control & expires headers to the content served by S3 using attachment_fu or paperclip

Published on

Using attachment_fu with S3 to save and serve data? Set cache-control headers by applying this patch to improve site performance and save some money: http://www.gozuus.com/blog/2009/03/caching-images-using-attachment_fu-and-amazon-s3/ If using PaperClip then add headers by adding: Find more info about paperclip s3 options here: http://rubydoc.info/gems/paperclip/Paperclip/Storage/S3

Multiple versions of ruby on ubuntu

Published on

Three-Four days ago I was in a situation where I need to have multiple versions of ruby and rubygems on my ubuntu machine. I was lucky, I found an awesome article http://blog.michaelgreenly.com/2008/08/multiple-versions-of-ruby-on-ubuntu-2.html. This really solved my problem, Many thanks to Michael Greenly.