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.
metric_fu Now Includes Flay, Roodi and Reek
metric_fu is a gem that makes it easy to perform Ruby-related code metric analysis on your code. It now brings Flay, Roodi, and Reek into the fold to improve its result-set considerably.
There will be no encore.
Meghann hints at the follow-up to RubyFringe. Short version? Block off July 9-12th to avoid an EPIC FAIL.
The Testing Practice Interviews
Interviews on Rails Testing Practices. So far, we’ve got Noel Rappin, Geoffrey Grosenbach, Gregg Pollack, Ryan Bates, James Golick, and Chad Fowler.
Fan of _why? Check this out.
“When in doubt, turn to _why” is a little article explaining some of the awesomeness of Why the Lucky Stiff.
Make I18n Simple with the Translate Plugin
An excellent web interface for translations so you don’t need to deal with YAML files for translations. Rails plugin, 2.2.
New RubyFlow.com Features
New stuff.. 1) You can now view a “leaderboard” of RubyFlow members - yes, this was requested and I thought it was fun. - 2) The posting interface is much, much improved. - 3) Beta support for search, via /search/[query] - also, each search has an RSS you can subscribe to if you want filtered news! - 4) Lots of minor tweaks, improved HTML sanitizing, stuff like that. Thoughts? Love the new features? Hate the new features? Got some ideas of your own? Leave a comment! (And, at the same time, work your way up the leaderboard - lol! [more inside]
Drag&Drop Rails Application Deployments with Dropbox and mod_rails
A short overview of how Dropbox, git and Phusion Passenger a.k.a. mod_rails can play together to make your application deployments dead easy. You don’t even need a shell anymore! Have a look at our Techlog
Centostrano 0.2 Released
Easy Rails stack installation and setup on Centos now with Phusion Passenger (a.k.a mod_rails / mod_rack) support! Interested in migration to Phusion Passenger, check this out!
Ruby Swarms: Visualizing Rails & Git
Turns out ‘08 was a banner year for Rails, and here’s video proof. Also, visualizations and code to produce visualizations for any GitHub contributor.
Full-text search plugin for MS SQL Server
I’ve just published the MSFTESQL (that’s Microsoft Full-Text Engine for SQL Server) plugin that I developed in a client project. It has been tested with Rails 2.1.0, works pretty well and is fully documented. Share and enjoy!
Writing a compiler in Ruby bottom up, part 13
This part on writing a compiler in Ruby deals with adding support for local variables.
New Rails plugin - Quick Scopes
Quick Scopes adds a few quick named_scopes to all your models. These named_scopes are helpful when working with associations.
jzForm initial release
JZForms (Full Blog Post here) is a framework agnostic library for describing data that an application need to acquire from the user. In particular, this library targets web applications that use forms for data acquisition. This is a first release and the library is not production ready. I am releasing under the theory of release early, release often with the hope that other who might find this project interesting will contribute to it.
Multi-staging environment for Rails using Capistrano and mod_rails
A tutorial explaining how install mod_rails, set up custom Rails environments and set up a multi-staging server environment you can deploy to using capistrano.
Take the 5 minute Rails hosting survey
Robby Russell of Planet Argon has set up a 5 minute Rails hosting survey. Why should you take it? Well.. the results will be collated anonymously and shared with the community afterwards, so not only will your answers help out Planet Argon, but they could help shape the Rails hosting market generally. The questions are all simple to answer - how much experience do you have, do you use automated deployment, how many apps have you got in production, etc.
Rails Video Tutorial
This tutorial walks through building an application to upload, and view video files. It uses attachment_fu for uploading, ffmpeg for converting to .flv, and the Open Source FlowPlayer to play the video. http://railsonedge.blogspot.com/2009/01/flash-video-tutorial-with-rails-ffmpeg.html
Most used Ruby methods
I’ve done a quick script to scrape the base ruby methods and check their usage on Google Code Search — and the results for 800-odd ruby methods are at Github along with the source code. [more inside]
Ruby and Rails Regional conference in Buenos Aires, Argentina
Hey, we are organizing a regional conference in Buenos Aires, Argentina, too. Admit it! you where looking for a reason to come to Buenos Aires! Now is your chance :-) Take a look here: Locos Por Rails. Registration is not open yet but the call for papers is. Send yours! (Follow us on Twitter @locosxrails)
ruby-ffi and Tokyo Cabinet : rufus-tokyo
rufus-tokyo is a ruby gem for handling Tokyo Cabinet databases. It’s based on the ruby-ffi gem (mri, jruby and rubinius) and makes cabinets look like hashes. Version 0.1.0 has just been released. Source is on the GitHub.
Using acl9 for easy object- and role-based access control
There’s a relatively new player in the town of role-based access control for Rails - acl9 by Oleg Dashevskii. This article shows how easy it is to replace acl9’s default database-based role checks with your own dynamic ones, and to allow your object to allow or deny users with any roles using any conditions without updating database roles all the time. And it does it in a true BDD fashion with RSpec examples. Read the article
Check out Harald
Harald is a Ruby-based nano-test-framework for Bluetooth adapters and devices on Linux. Harald tries to simplify the somewhat random collection of Bluetooth testing tools on Linux into a small Domain Specific Language (DSL). A tutorial and technical summary of the initial version of Harald can be found at Technetra here.
Tracking AJAX calls with Google Analytics (and Rails)
…I used AJAX to provide a majority of the site functionality on the main page with it never having to reload itself or load another page. This resulted in a drastic drop of “page” views in my Google Analytics reports, because the only “page” being loaded on each visit was the sole main page; every click after that was an AJAX call to update only a portion of the already loaded page, hence not triggering any calls back to the Google Analytics tracking server.
Setting up the whole Rails stack from a single Debian meta package in 10 minutes
Learn how to install Ruby, Rubygems, Apache2, Passenger, MySQL and the Rails gem on a Ubuntu JeOS server from a single railsstack.deb metapackage in just ten minutes with a little help from DebGem and the Brightbox Passenger debs over at what_i_am.upto(2009)
NavySnip - A personal code snippet tool
NavySnip is a rails application for storing your code snippets locally with an appealing user interface. Includes tagging and syntax highlighting for plenty of languages.
Calculating the Pearson correlation coefficient using R and Ruby
In a previous article I talked about using the GNU scientific library to implement the Pearson correlation coefficient algorithm, as used for example in acts_as_recommendable. As a prelude to some forthcoming articles, I’d like to show you how easy it is to implement the same thing using the Ruby bindings to the statistical tools provided by the R project.