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.
GC Tune Ruby 1.9.2 With RVM
You can GC tune 1.9.2 with RVM just like Ruby Enterprise Edition. This article walks you through updating and patching your 1.9.2 with RVM. It also covers using RVM hooks to apply your GC preferences. Thanks to Sokolov Yura (funny-falcon) for the patch!
passenger_mon
Out of control passenger processes gotcha down? You need passenger_mon, bro. passenger_mon allows you to pick a memory threshold at which to gracefully shutdown passenger processes, so your servers don’t run out of memory. [more inside]
Fetch rss feeds in Rails
This simple article will show you how to fetch rss feeds in your rails application. Lesscode.se
Looksee 1.0.0 - method introspection on steroids
Exploring new codebases, let alone hacking them, can be tricky in a dynamic language like Ruby. Sometimes the best way is to stick a debugger or IRB in the source, and reflect on the objects. Ruby gives us a lot, but leaves it to us to present this information in a useful way. [more inside]
Interview with Michael Hartl
In this post I interview Michael Hartl, author of the popular Rails 3 Tutorial. Plus I’m doing a giveaway of the tutorial’s printed edition.
Why and when you should use Cucumber.
I keep hearing it over and over again; using Cucumber is redundant. Bullshit right? Check out this article.
Message Block (Episode 91 from the SD Ruby podcast)
Ben Hughes shows off message_block, a gem which simplifies generating flash and error messages. Additionally, Ben discusses how to test gem development using Cucumber and Cukigem. Watch episode
Almost Sinatra: Sinatra in eight lines
Did a Sinatra refactoring, it’s only eight lines now: https://github.com/rkh/almost-sinatra.
Goliath: Non-blocking, Ruby 1.9 Web Server
Goliath is an open source version of the non-blocking (asynchronous) Ruby web server framework powering PostRank. It is a lightweight framework designed to meet the following goals: bare metal performance, Rack API and middleware support, simple configuration, fully asynchronous processing, and readable and maintainable code (read: no callbacks). [more inside]
Migrating from Attachment_fu to CarrierWave
Still on Attachment_fu ? Here’s a little help to get you on CarrierWave.
Full Text Searching with Solr and Sunspot
We’re starting a series on Solr and Sunspot because it’s just plain awesome. I posted an intro to solr/sunspot this morning.
Payday: PDF Invoice Generation Gem
I just launched Payday, a gem that helps out with generating PDF invoices.
CSS3 box-sizing and making 50% wide padded elements behave
We just published an article exploring the CSS3 box-sizing property and its possibilities!
Why you should spend some time configuring irb
I just published an article about why you should spend some time configuring irb.
gem install defined
Calls Module#defined AFTER a ruby class or module is (re)defined shuber/defined
gem install attr_encrypted -v 1.2.0
encrypt and decrypt attributes - shuber/attr_encrypted
Thebes: A Thin Sphinx Integration Gem for Rails.
At Harvest, our dev team was having a rough time with ThinkingSphinx and Rails 3. The experience prompted us to create a lightweight alternative for Rails+Sphinx integration we’ve released as Thebes. Read about Thebes on the Harvest blog and find the code at Github.
Hey Apple, please be nice and share
Apple seems to have decided to ship MacRuby as a private Framework in their new OS (Lion), meaning that OS X developers can’t link to it, even tho it ships with the OS. If you would like to not have to embed MacRuby, please take a minute to file a ticket as suggested in the post.
Profiling spork
Spork makes your tests run instantaneously. I wrote about profiling Spork to make it even more instantaneous.
Review of Eloquent Ruby
I wrote a review of Eloquent Ruby in which I draw a parallel with Olsen’s previous book. I’m also doing a giveaway, so a lucky reader will be able to get a free copy.
Ruby 4 Rails Presentation
I just open-sourced the Ruby 4 Rails – Learning Ruby, with Rails in mind ShowOff presentation I wrote to teach Ruby to a friend of mine. The source code is available on GitHub.
The inofficial EuRuKo 2011 waiting list
@phoet forked the official EuRuKo 2011 website, inviting everyone who failed to buy a ticket to add themselves to the inofficial waiting list. Simply fork the project, add yourself to the list and open a pull request :)
Google App Engine, JRuby, Sinatra and some fun!
Check this post on how to use JRuby, Sinatra in Google app engine to parse some feed and send a notification email.
WebSocket-Rack - Rack based WebSocket server
I just released first version of new WebSocket server - WebSocket-Rack. Why next WS server you ask? Because some of you want to have both application and WS server in the same process, and em-websocket won’t allow you to do that. WebSocket-Rack is pure Rack app, so it will work with Sinatra, Rails and Merb! [more inside]