Category Archives: Ruby
Implications of the Amazon CloudFront default root object
Amazon recently announced that their CloudFront service now supports serving of an arbitrary object at the root URL of a CloudFront domain. This means that Amazon S3 users can now host entire static sites using only S3 and CloudFront.
Optimising specs for ActiveRecord scopes and other database-dependent functionality
After recently switching to a lower-performance laptop for my regular development tasks, I decided to spend a bit of time cleaning up some long-running rspec examples. I found that some misunderstanding of rspec’s features had led me to write highly … Continue reading
Uploading directly to Amazon S3 from a Rails application
The use cases for Superhug are heavy on uploading and downloading large(ish) files. Rails itself isn’t so well suited to this sort of task, and it’s best to keep state away from application servers wherever possible. We chose to use Amazon S3 … Continue reading
WordPress installation
After years of writing and rewriting various blogging platforms without telling anyone, in various languages including Python, Ruby and PHP, and obsessing over various database backends such as Berkeley DB XML, I’ve decided to just stick WordPress on a subdomain. I … Continue reading