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.
RMagick-Sprite
rmagick-sprite allows you to easily slice up a spritesheet into Magick::Images. [more inside]
Rubinius 2.0.0rc1
The commit that made it real. Right now Rubinius supports multiple Ruby versions (1.8 & 1.9) in one executable. Rubinius 2.0 will build the executable with only 1 mode. So no more rbx -X19.
Rama: A CoffeScript TCP Terminal Proxy
A blog post explaining the little CoffeeScript TCP terminal proxy app we wrote, named rama and (essentially) compatible with the heroku command line app’s rendezvous client
Introducing Dashing - A Dashboard Framework
Dashing lets you build beautiful dashboards with ease. You can use pre-made widgets, or fully customize your own in order to show off key metrics & stats. It runs as a Sinatra app, gives you push API, and uses Server Sent Events to keep everything in sync. Here’s a sample dashboard built with it.
rails_best_practices 1.12.0 released
I just released rails_best_practices 1.12.0, it added NotRescueExceptionCheck, see more here.
A Ruby Rebus Challenge
Here’s a fun little Ruby-based challenge heading into the weekend: can you figure out all 20 movie titles from these Ruby Rebuses?
GuerillaPatch: Monkey patch objects using Ruby 2.0 refinements, if available
GuerillaPatch: A gem to monkey patch extensions with the same interface for Ruby 1.9 and Ruby 2.0. If run on Ruby 2.0, the new refinements feature will be used.
Using Capybara to test JavaScript that makes HTTP requests
We’ve seen lots of Rails app test suites that use WebMock to disable HTTP requests. There is also good tools like VCR and techniques like Fakes available for other HTTP requests made from Ruby. [more inside]
Ruby Tidbits: String, the original value object
I just wrote a quick article describing a simple pattern you can employ to reuse string formatting logic throughout your application and avoid making unnecessary regexp comparisons.
Multicast in Ruby: Building a Peer-to-Peer Chat System
IP multicasting allows you to send a datagram to multiple nodes. In this post we’ll look at multicasting and implement a simple chat system using the ruby socket library.
Ruby’s pessimistic operator and locking gem versions
Updated an old post to reflect some thoughts on locking gem versions in the Gemfile.
Simple SPDY and NPN Negotiation with HAProxy
With SSL + NPN support in HAProxy, adding SPDY support to your site has never been easier. A hands on look at the configuration to make it all work. You can now deploy a simple Ruby SPDY server without having to worry about SSL, or NPN!
Fast Analytics with Ruby and Redis
Using the brand new bit operations in Redis 2.6 I’ve released Minuteman to handle analytics really fast!.
Setting up Puma and Rails on Heroku
Simple code snippet showing how to get Puma and Rails talking and running on Heroku, with a plug for Don’t Fear the Threads.
switch_user 0.9.0 released
switch_user 0.9.0 released, it provides a convenient way to switch current user that speeds up your development and reproduce user specified error on production, check out the release post, thank Luck Cowell for great contributions
Engine Yard add-on for cloud-based image management
This blog post describes a new Engine Yard add-on for a cloud-based solution that streamlines all your online image management needs with Cloudinary. You can easily upload images to the cloud, perform smart image resizing & transformations and seamlessly deliver images through a fast CDN. [more inside]
Ruby’s EventMachine – Part 3 : Thin
Ruby’s EventMachine – Part 3 : Thin was just published on my Big Fast Blog
Reddit on Rails Part 3: Last week of UT on Rails
This is the 10th and final week of my video/exercise/quiz series. Jump over to: Reddit on Rails Part 3: Last week of UT on Rails finish your Reddit on Rails project and prepare yourself for the future.
Collecting Metrics from Ruby Processes with Zabbix Trappers
You can set up Zabbix to collect various forms of information (from numerical metrics to arbitrary strings, to log data) via the Zabbix sender protocol. Here’s how.
ActiveRecord Black Magic - Making Queries More Composable
ActiveRecord’s query interface is very powerful, but sometimes it will not generate the SQL you expect. Here’s one approach to overriding this.