The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Ruby HTTP client performance shoot out
I have compared the performance of all major ruby http libs here. I also added tests with apache bench, httperf and java.
Simple Resque Mail Queue
A really simple module to easily enqueue mailers in resque
Convert a Ruby Method to a Lambda
I just published a post about how to convert a Ruby method to a lambda (and why you might not need to).
Filetype, find a files type via its name or extension
I just launched Filetype. An extremely simple library for returning a file type from a file name or file extension. [more inside]
locale_data, translations for country and language names in .yml files
I just released locale_data, a library of .yml files containing translations of all country and language names in over 100 languages that you can use to localize your apps. Read more about it on this blog post.
Adding new resource with ajax and facebox
I wrote tutorial extending Railscast 258. I described how to add new resource with ajax and facebox: http://slawosz.github.com/2011/04/26/add-new-resource-with-ajax/
How We Migrated to Terremark’s Cloud, Part I
Dan Peterson offers a detailed technical rundown of the process and tools involved in migrating customers to a new infrastructure provider.
inline_testing
I’ve released inline_testing, a gem which does just that. Be sure to check out this article explaining what it is and how it works and you can see the Gem or the GitHub repo.
rails-footnotes 3.7.1 has been released.
Before & After hooks have been added for each controller. See README Hooks chapter. Read more…
MongoDB as a Key-Value Solution for Logging Events Data
Altoros walks through their experience selecting a key-value solution for logging events data.
Enabling jQuery support in RubyMine
Are you using RubyMine and wish you’d have instant code completion suggestions and navigation for jQuery? Here’s an efficient way to enable jQuery support in RubyMine in just 3 easy steps.
easy edge rails
A slightly different approach at installing edge rails, because some people at RI were having problems. This should be an easy one-shot way to get a new RVM sandboxed edge app
Searchub - Filter your Github Dashboard!
Introducing Searchub - a bookmarklet for filtering your Github dashboard entries. Too many watched projects? Can’t keep up with what’s going on in the most interesting ones? Here’s your solution!
How to recover from the recent AWS outage on Heroku
Our social commerce application Trol.ly has been out owing to the massive Amazon Web Services outage. We finally got back online after hacking a bit. Thought I’d pen down these steps that might help someone out there.
My talk at RedDotRubyConf 2011: Benefit...
My talk at RedDotRubyConf 2011: Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Heroku's intermittent down-time (Work around)
ror-e.com was recently affected by heroku’s down time. [more inside]
Rollable, pun intended agnostic roles for rails!
Figured I’d make a gem, following up my last post. If you liked it, make sure you check out this article on the gem. If you liked the code, check out the github link in the article :-)
rails_best_practices 0.8.0 released
I just released rails_best_practices 0.8.0, it supports simplify render in views check and simplify render in controllers check, and fix a few bugs, see more here.
Code with me – for free!
2011 has been a good year for me so far – financially as well as in terms of cool work in general. I feel like it’s time to share some of that luck with others and spend a couple of hours per week working pro bono, helping people. Read the blog post for details and spread the word. :-)
I just posted a change I made to our loc...
I just posted a change I made to our local DJ copy to force the worker to fork to handle each job, keeping memory leaks under control.
EdgeRails : Map your identity
Thanks to the fantastic work of Emilio Tagua during the Ruby Summer of Code 2010, Active Record will gain an identity map in 3.1! Read more about it on EdgeRails.
UUID primary keys with ActiveRecord in Rails 3
Sometimes it is useful to have primary keys in ActiveRecord that are independent from a database’s autoincrement implementation. With ActiveSupport::Concern this can be done smoothly in Rails 3
Enabling UJS in Rails3 with jQuery: in 3 easy steps!
Here’s a quick and easy approach to include jQuery in your Rails app, and enable Unobtrusive Javascript support; at least until Rails 3.1 ships out with jQuery as the default Javascript library!
Ruby wrapper for google's cityhash
It’s a FFI wrapper for google’s cityhash library -