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.
The right way to deal with frozen processes on Unix
This article explains how to debug frozen/stuck processes (including Ruby-specific tips), how frozen processes affect web applications and how Phusion Passenger deals with them.
rails_best_practices 1.11.0 released
I just released rails_best_practices 1.11.0, it’s a big improvement, including code analyzer module extraction and disabling some checkers by default, check out details here.
write ruby code analyzer tool by yourself
I’m working on extracting code analyzer module from rails_best_practices gem these days, now it’s on github, code_analyzer. And here is the document teaching you how to use it.
Rails 4 - Transaction isolation level
Just Recently Jon Leighton (Rails core team member) has added a support for specifying transaction isolation level, in rails 4. Here is link for more information.
Learning pjax (with Sinatra) with a screencast
I just spent a few hours to learn how to use pjax in order to make an application feel more responsive. Hooking it up to Sinatra was trivial and should work with any Rack based application.
Getting efficient when working with Heroku
Heroku provides a great infrastructure, but using their Gem often feels a little bit clunky. Especially when viewing the Heroku logs or getting into the console typing out all of the commands is time consuming. [more inside]
Rails 4 in a MindNode
Compile Vim With Ruby & Python Support on OS X
Learn how to Compile Vim With Ruby & Python Support on OS X, if you are using the terminal Vim.
How to pick the right ruby gem
Ever wonder how or when to pick a Ruby gem? We’ve answered that question for you here.
Mining Twitter Data with Ruby - Visualizing User Mentions
In this post, we’ll show relationships between users based on mentions inside the tweet. After we collected the “who mentions who”, we then construct a directed graph to represent these relationships and convert them to an image so we can actually see it.
Announcing mails_viewer - easiest way to test mails in Rails app
I just release mails_viewer, is a Rails engine to let you easily view and send mails in non-production environment. Checkout on github.
No More Requires: Autoload Classes
Tired of manually adding requires to the top of your files? Autoload your Ruby classes. This post is similar to how Rails does it, but doesn’t use Rails or ActiveRecord directly.
I just released a screencast on how to c...
I just released a screencast on how to create a Turing Complete programming language in 40 minutes and 70 lines of Ruby code. Blog and Screencast
Yell 1.0.0 is out
Yell - Your Extensible Logging Library has officially hit verion 1.0.0 and you will not want to turn back ;-) Yell features highly customizable log formats (with a no-sweat setup), thread safety, multiple adapters, easy setup from YAML and a nice extendable DSL. Browse the source or have a look at the wiki for further information. [more inside]
AdhearsionConf 2012 @ AT&T Foundry in Palo Alto, CA
The third AdhearsionConf will be held in Palo Alto at the stylish digs of the AT&T Foundry on the weekend of October 20-21, 2012. For the first time we are also offering a full day of hands-on training the day before the conference, led by the Adhearsion core team. Last year’s content may be found here.
Passenger vs. Unicorn
TL;DR - Use Unicorn unless you need to run multiple applications on the same host, such as testing environments or shared CMS instances. Unicorn and Passenger fundamentally differ in how they operate. There are a few similarities, however. Both have a master process that can spawn workers; both fork off workers from the master process; and both run Rack-based applications in addition to supporting older rails versions. What follows is a summary of the way the two application servers work, their benefits and problems. Read the whole article here.
Rails 4.0 now supports PostgreSQL arrays
I just blog about my recently accepted pull request that adds support for PostgreSQL arrays in Rails 4.0
Case statements in SQL
Harness the power of sql case statements - http://gaurav-gaglani.blogspot.in/
How Ruby Borrowed a Decades Old Idea From Lisp
I just posted another - the last - free excerpt from “Ruby Under a Microscope:” How Ruby Borrowed a Decades Old Idea From Lisp. I’m planning to finish up the eBook before RubyConf starts on November 1st.
How You Can Extend RSpec And Use Cucumber "Given, When, Then" In Your Test Examples!
Do you know that RSpec can be extended with your own methods? Do you know that you can use Cucumbers “Given, When, Then” in Rspec? No? Then you should read How RSpec Can Be Extended and see for yourself!
Cryptic Dollar Variables & Their Meanings in Ruby
Over the weekend I came across a piece of code that had a $. variable in it. I was intruiged and spent an enjoyable hour playing with global variables. Ruby has quite a few cryptic dollar variables and I’ve written about them and attempted to demonstrate using many of them in Cryptic Dollar Variables & Their Meanings in Ruby