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.
Josh Berkus from the PostgreSQL core team
I interviewed Josh Berkus from the PostgreSQL core team. We talked about the tradeoffs of using MySQL vs Postgres, the history of the databases, and relational database concepts.
Appsent - One more config management solution
This gem provides easy way to handle loading different config files, validations for necessary config values, in a such way: your application will not start until you fill all needed settings, and when you done you will have access to every your in a convenient way.. More at appsent github, appsent relishapp and appsent rubygems.
Shaven - templating without mustaches!
Some time ago i’ve pushed working idea of totally logic-less templating system called shaven. It’s mix of tuned up presenter layer similar to defunkt’s mustache and neat, designers friendly, logic less html templates. Would be great to gather some feedback from you guys and push it to production!
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.
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
http://blog.josephwilk.net/cucumber/mining-cucumber-features.html
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