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.
Implementing a video player with Ruby
Here’s a 7 minutes video podcast on implementing a video player (GNU/Linux) using the Ruby extensions hornetseye-ffmpeg, hornetseye-alsa, and hornetseye-xorg. More …
Miso Adventures in Scaling: Setup and Tuning of PostgreSQL
Several months ago, Miso migrated from MySQL to PostgreSQL after considering multiple persistence alternatives. This new post is the first in a series that explains our experiences with PostgreSQL and how to get it running with your applications. Covers why we chose it, how to tune the database and which parameters are most important.
Basic Schema Concepts for Cassandra and the Cassandra Ruby Gem
I released a video that explains the basic schema concepts for cassandra and the cassandra ruby gem. If you’re considering NoSQL options, check this one out!
How to test Rails 3 SSL enforcement with Capybara and Devise
A lot of Rails blog posts recommend that you only turn SSL on in production and don’t try to use it in the test or development environments. I explain why this is a big mistake and and present all the code I used to get SSL working with Rails 3, Capybara, and Devise.
"Test First" avec Ruby
I just launched a blogpost about minitest ( french ) .
Cron tasks for your Rails application with Resque
We had an interesting case with cron tasks implemented with Rake killing performance of our application server. This post discusses the problem in detail and provides a simple and effective solution for it.
How do I test my code with Minitest?
Ruby Hero Steve Klabnik’s new article on RubyLearning “How do I test my code with Minitest?”
LogicalModel - Like ActiveRecord for Restful Resources
I just launched Logical Model, like active_record for RESTful resources. Its code is almost all found on ihower’s slides but since I found no implementation here goes mine. It’s still pretty raw but I’d be glad if you gave it a try and dropped my some issues/advices/praise.
Persist your data in YAML files instead of SQL. Wait what?
A couple weeks ago, we open-sourced a simple library called YamlRecord adding a standalone ActiveModel interface to YAML persistence. Today, Nico Taing published a follow up blog post on the Miso engineering blog about how we built this, what we use it for and why it makes sense for us in particular scenarios.
Taming a Capybara
Simple Rails Deployments with Net/SSH
I just wrote an article on how to use Net/SSH to do simple Rails deployments.
Mining Cucumber Features. Failure rates and change rates
delayed_paperclip 0.7: Delayed processing of Paperclip attachments
We just released the 0.7 version of the delayed_paperclip gem. Delayed_paperclip allows you to do the processing of your Paperclip attachments via Delayed Job or Resque. It’s now also very easy to create a class for other background processors.
How Can We Develop For Tomorrow’s Needs?
James M. Schorr asks you “How Can We Develop For Tomorrow’s Needs?” in a new blog post on RubyLearning.
Fixing Memory Leaks in Ruby C Extensions
I just wrote an article that explores how to find and fix memory leaks in Ruby C extensions. The follows along as I find and debug a memory leak in Nokogiri.
Disabling transactions in single rspec test (describe block)
When database writes in your tests become invisible by other threads/processes. Check it out.
Capybaras, capybaras everywhere!
Found great little nugget while mining in Capybara: Use Capybara on any HTML fragment or page!
Firelinks mirrors your Firefox current web browser page in elinks
I just launched Firelinks, a Ruby gem that lets you sync your Firefox web browser with elinks.
Simplifying ActiveRecord Connections
An easier way to manage database connections with ActiveRecord on your production servers, without having to commit passwords into source control.
Ruby server to manage download of movies with torrents
I’ve just finished polishing off movie_queue, my first draft of a server that makes it super easy to download movies. See more info inside.
Jsonify -- a builder for JSON
I just released Jsonify. Jsonify is Builder for JSON. It allows you to create Rails3 view templates for your JSON representations in much the same way that you can use Builder templates for XML representations. It’s currently an early release and I would love to have some folks “kick the tires” on it.
Introducing "Has Face" for Rails
Latest blog post by Mario. A gem for interacting with face.com: Introducing Has Face for Rails
JavaScript for Rubyists
Slides and handout from my ConferenciaRails JavaScript introduction for Rubyists.
LRE - Easy Interactive Environment
I just launched LRE, an easy interactive environment. Key features: * Specify files to load and code to run whenever LRE is started in a particular directory. * Automatically load changed files into the running IRB session. * Setup different actions to take when different files are changed and loaded.
.rvmrc and Terminal in OSX Lion
In OSX Lion, Terminal now defaults new tabs to open in the same working directory you were just in. That’s nice, but your .rvmrc file will not get executed. That’s because RVM only executes it when you cd into that directory, and opening a new session in that directory doesn’t count. Here’s a fix. Add this to your ~/.bash_profile or whatever you use: cd . Whenever you open a new terminal session, this will automatically cd into the current directory, triggering RVM to execute the .rvmrc. This seems like a quick and dirty trick, so if anybody knows a better way, please comment.