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.
Alter Table: A Rails plugin to support multiple clauses per ALTER TABLE statement in migrations
The Rails team at XING developed the alter_table Rails plugin to extend ActiveRecord migrations with MySQL’s native ability to run multiple alterations on a table in a single ALTER TABLE statement.
Head First - OO Analysis & Design fifth chapter review in Ruby code
Check out the fifth chapter of the book review I’m working on regarding O’Reilly’s Head First - Object Oriented Analysis and Design. All native Java code translated to Ruby.
Faye: a Comet client and server for Node.js and Rack
Faye is a toolkit for publish/subscribe messaging between web clients. It includes a JavaScript client library and two server backends, one for Rack based on EventMachine and the other a brand new version for Node.js. More info on my blog.
toto - tiny, powerful, heroku & git based blog-engine for hackers
My goal was to create something really small (~300sloc), right on top of Rack, and make use of git & heroku whenever I could, foregoing the need for any kind of database. Comments are handled by disqus, and we got markdown, atom and templating support. Go check out http://cloudhead.io/toto for more info. The repo’s at http://github.com/cloudhead/toto - enjoy!
Ruby live music coding (2 screencasts)
If you’re into music and ruby, here are two screencasts demonstrating Nasir (a live coding system). I believe the code is not yet available but should be on github later on, most likely.
How & why Matt Aimonetti joined the "suit people"
Matt just announced he’s giving up his life as a free agent to join Sony PlayStation. Is he going to wear a tie, code in Java, spend hours in meetings? Does this mean that Ruby is now mainstream? Read more to find the answers to these existential questions and hear about the reasons behind his decision.
Undo/Redo in MacRuby
Matt Aimonetti just posted a simple MacRuby tutorial showing how to use Cocoa’s built-in classes to implement undo/redo and use the functionality in a simple Ruby script.
Presentation by David Ungar (Stanford University Youtube channel)
David Ungar of Self fame mentions Ruby in his presentation ‘Self and Self: Whys and Wherefores’ although not in exclusively favourable terms: [more inside]
Feedback Request for RConfig Gem
The RConfig gem is a ruby configuration management library. It was featured on RubyInside a while back. For anyone who’s downloaded the rconfig gem from gemcutter, or watching is it on github, or anyone who finds it useful on interesting, I’m looking for feedback, as well as bug and feature requests from anyone who’s used it. I’m planning a new release soon, and I wanted to make sure it’s packed with improvements!
4 Ways to Retrieve a Twitter List Timeline
3 Ways to Retrieve a Twitter List Timeline using Twitter gem and a new one thanks to this commit by Santiago Pastorino now included on twitter 0.8.3
Introducing GMoney – A RubyGem for Interacting with the Google Finance API
GMoney is a RubyGem that wraps the Google Finance API and can be used to help keep track of your investments.
Macruby 0.5 final is out
MacRuby 0.5 just got released read what changed since last beta. Summary: HotCocoa is now a separate gem, better AOT compilation, GCD API.
Packaging a MacRuby HotCocoa Application without the standard library
A quick post about getting started with HotCococa, packaging a HotCocoa application without including the MacRuby standard library and building the HotCocoa gem from source. Read More Here
Introducing delayed_paperclip
delayed_paperclip is a rubygem that lets you easily process your Paperclip attachments (such as resizing images) in the background with delayed_job.
From Zero to Rails3 on Windows in 600 seconds
This guide will walk through a complete installation of Ruby 1.9.1, sqlite3, and Rails3 on Windows using the Bundler gem. (I’m pretty sure it takes less than 600 seconds)
Impress the Ladies with Legacy Migrations
Details one possible method of converting old data into a new form for your totally gnarly new version of an app.
Shoulda-like Rails validation and association testing with RSpec
Check out rspec_validation_expectations.
gem install cirtuit_b
Classic Circuit Breaker implementing a well-known stability pattern to wrap your code that can potentially fail or get stuck, and start failing-fast after the given number of failures. Used to protect the resources and increase the response time (as opposed to retrying and waiting infinitely).
Benchmarking Rake Tasks and Trivial Rails Testing Optimizations
Rails default testing tasks are not particularly well-optimized for medium to large applications. I optimized my test suite by 30% without editing a single test.
A Maglev Store-y
Gregory House, M.D. uses Maglev to diagnose a patient. Results (and my experience implementing a Persistable module with Maglev) inside.
Unobtrusive JS In Rails 3 With Prototype
One thing I came across in the current edge rails was using a :method => :destroy option with a standard link_to. My solution to the unfinished UJS in edge rails in this regard.
StackOverflow cool Ruby questions part 3
Third post in Stackoverflow cool Ruby questions series is out!
Use Webadmin to monitor Rails "delayed job" processes (or anything)
Our blog post on how we’re using Webmin to monitor and automatically restart delayed job processes.