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.
Non-Blocking IO From a Bash Pipe
Here is a code sample of taking input from a pipe and simultaneously reading files off the command line ensuring that the pipe is non-blocking so that the file reading can be threaded.
Using Flickr API with Ruby and r2flickr
After being only on GitHub for too long, I’m introducing a freshly cut r2flickr, a gem which builds on the old rflickr, a close reproduction of the Flickr API as it is published.
The tricky business of selling Ruby on Rails projects
Proposing Ruby on Rails to your customer sometimes requires additional step of “selling Rails” as well.
Teach Me To Code Podcast: Interview with Kevin Rutherford
I interviewed Kevin Rutherford. Kevin is the author of Refactoring in Ruby, the developer behind Reek, and an Agile Coach.
RuleBook 0.3.3 released - Define methods with regexp!
I just released the latest version of RuleBook, a gem that lets you define instance and class methods of an object using regexp. All the info you need is right on the GitHub page.
TomDoc: Reasonable Ruby Documentation
TomDoc is a new code documentation format that I’ve been using for the last several years. I’ve finally formalized it and we’ve started using it for all projects here at GitHub. Code documentation with TomDoc looks nice in plain text and encourages specification of all parameter and return types without getting too strict about it. I wrote a post on my blog and you can see the full spec at tomdoc.org.
Using Caching in Rails (Told By A Perl Programmer
After some trials and tribulations in dealing with performance issues, I wrote up some thoughts on caching and performance on my site.
Using Markdown & Sinatra to create resumes & deploy to Heroku in multiple formats quickly
I did a writeup explaining how to use the Ruby resume project to create a resume and publish to Heroku, Github pages, and a Gem. It currently supports a few formats, and soon should add PDF as well as others.
Rubinius RC5 is out! Go Try!
Releace Candidate 5 of the Rubinius project is now available for download from the main website http://rubini.us/ go test, comment & make use of the fabulous JIT enabled ruby implementation!
Opensource design, graphic design released under Creative Commons
I just came across this project Creative Design and it looks interesting. all PSDs opensourced
Managing Errors in Sequel
My partner daicoden goes through a callback proposal for handling errors Sequel raises when saving a model. Does wonders in the refactoring department.
Potty Training YAML
Just a short post showing how to control which attributes get dumped in your class by YAML - http://caiustheory.com/potty-training-yaml
Grokking Idiomatic Dynamic Ruby
Wanderingbarque wrote an undated tutorial on how to work with Ruby’s metaprogramming features. I found really useful and quite accessible.
About writing an open licensed book
I posted an article talking about my choice to write an open licensed book for MacRuby and why open licensed books matter. The draft version of the book can be found here.
Webpulp.tv interviews Mark Imbriaco of 37signals *real link*
Webpulp.tv interviews Mark Imbriaco of 37signals and discussed bare metal servers, running rails apps, db setups, and much more!
Redcar Editor 0.3.5 is Out!
Redcar 0.3.5 has been released and is available on rubygems! Schweet! — sudo gem install redcar; sudo redcar install — For hoes who don’t know, here is a quick description of Redcar!
Testing your Machinist blueprints
I just published an article about a little spec I wrote to ensure my blueprints stay in shape.
ANSI 1.2 Ruby Library
The ANSI library keeps getting better. I just launched version 1.2.1. The GitHub repo is here. Probably the most useful new feature is the addition of the String#ansi method which makes it even easier to add ansi codes to output. For usage documentation be sure to check out the QED documents.
ActiveRecord vs. Core Data
As a relative newcomer to Core Data (and long-time Ruby coder), I felt compelled to compare the end-user experience with ActiveRecord.
How to make ActiveResource 34x faster
Scott Wheeler explains how he wrapped some ruby around C++ with Qt and libcurl to gain a nice performance boost. Code and figures on github.
Mercury 0.9.12 - A simple framework designed to create mockups.
Mercury is a simple framework that combines haml, sass, faker, jquery, jquery-ui, 960.gs, and coffeescript. Built on top of Sinatra, this simple framework allows you to create mockups using the same technology you use every day to build web apps.
Released swf_file v1.0
Just released swf_file v1.0. SWF File is a Ruby Gem based on Dennis Zhuang’s swfutil lib that provides you with the ability to access SWF file headers, such as duration, width and height, from within your Ruby application.
yard-struct documents your Struct subclasses.
I just released a gem, yard-struct, which sneaks into YARD and documents your Structs for you. Previously, classes using Struct.new went undocumented. Get it at github or at rubygems.org.
Resque-Unit - Test your Resque-queueing code
resque_unit provides assert_queued and assert_not_queued assertions for testing that your code is queueing your Resque jobs correctly. It also gives you direct access to your queues from your unit tests, and a run! command for executing your jobs, so they can also be tested.