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.
How to get the most out of programming books
This is not Ruby-specific, but I thought I’d share some tips on how beginners can get the most value of out “how to program” books. Click here to read the article.
Irb Autocompletions Generated from Documentation
The latest version of bond comes with the ability to generate gem-specific irb autocompletions from a gem’s yard documentation. This release also features the ability for gems to ship with their own irb autocompletions (i.e. hirb) and allows for bond to be used within emacs’ inf-ruby mode. Read more about it.
Using RabbitMQ and AMQP with Ruby
AMQP stands for Advanced Message Queuing Protocol. RabbitMQ is a server that implements the protocol. In this edition of Ruby on Cloud, I show a sample publisher and consumer code using AMQP.
Everything You Need to Know About Unicorn
…in an easy-to-consume FAQ’like format. Check it out!
aspect4r - Aspect Oriented Programming for Ruby
I am releasing my first gem - aspect4r. It allows one to extract common logic from multiple methods using before_method/after_method/around_method etc. It also provides a approach to split large methods into small pieces. I hope you guys find it useful. It might undergo some API changes before 1.0 after I put it in use in one of my projects. I’ll also be doing some benchmark testing next and improving its internals.
Interview with Miles Forrest - Part 1
I recently interviewed interviewed Miles Forrest for the Teach Me To Code (formerly Rails Coach) Podcast. We had a great talk about podcasting, programming, life, and building Ruby Brigades.
Cinch: The IRC Bot Building Framework version 0.3
I have just bumped the latest version of Cinch to 0.3. Cinch provides an easy DSL for creating IRC Bots with easy. It’s literally a Cinch! See the Ruby Inside post here. Cinch comes boxed with a ton of examples, and major features are going to be implemented soon, so stay tuned! PS: Remember if you were watching Cinch on GitHub you may have been removed from the watch list, so please re-watch!
Are You One Of Those Developers Who Don't Know About Closures?
There are a great many decent developers out there who don’t know what a closure is, but functional languages have been making a comeback recently so it really behooves you to know about functional concepts. Here is a simple explanation of closures using Ruby to demonstrate.
Ruby Libxml Tutorial - Reader API
The libxml provides a StAX API for processing XML. The Ruby binding of libxml exposes it via XML::Reader. I have written a tutorial on using the XML::Reader API. I believe it is the first tutorial to cover this topic.
Newton – Adding new forces to your bots
Inspired by Isaac and Cinch but disappointed by the lack of abstraction, I wrote Newton, a fully OO but yet lightweight bot framework. Check it out!
A pseudo-intellisense for Textmate
A lot of programmers have developed the bad habit of consulting the migrations to identify which attributes are available on an Active Record model. This certainly is not the smartest way to do this. [more inside]
Database and Performance in Web Apps
I just wrote up a long post on database performance in web applications that hopefully will be interesting to folks.
BDDCasts launches new series
Often when updating an older site, you find yourself having a bunch of outdated gems. See in the first episode of URLAgg updates the steps needed to move a Rails 2.3.x project to Bundler. The move is facilitated by using RVM Gemsets to update the out of date gems without interfering with the rest of your development environment.
Benchmarking MacRuby 0.6
Recently MacRuby 0.6 was released. The development team put a lot of emphasis on improving compatibility with Ruby 1.9, and the viability of MacRuby as a tool for developing Mac OS X applications. Focus on these aspects took precedence over performance, but I was still curious to see how well it performed when compared to Ruby 1.8.7 and Ruby 1.9, respectively.
openSUSE as a ruby development platform
Post describing ruby on openSUSE, community repositories, gem rpm packages and more.
Typhoeus 0.1.25, monster_mash 0.1.1 released
The latest Typhoeus is out, at version 0.1.25. A few bugfixes, plus the new addition of automatic gzip compression if both the client and server support it. [more inside]
Rack Session Store in MongoDB
I just pushed mongo-store 0.1.1, a Rack session store in MongoDB. It passes all the Rack specs, but I haven’t had a chance to use it in production yet.
Rubinius 1.0.0 is out!
Rubinius 1.0.0 is now available! Check out their website. Rubinius is a Ruby interpreter written in C++/Ruby.
Add Search to Ruby on Rails Projects with acts_as_xapian
xapian works well for searching, but the documentation is not superb. This improves on that.
FbGraph (0.0.5) Gem for Facebook Open Graph API released.
I just launched FbGraph, a full featured gem that supports the accesing of almost all (except Analytics) features of Facebook Open Graph API: Selection (All objects and Connection Types); Authorization; Publishing; Deletion; Picture; Paging; Search; Realtime Updates.. All contributions are welcome.
attribute_normalizer reaches 0.2.0
You care about the integrity of your data right? Of course you do! Just released is version 0.2.0 of the attribute normalizer gem. Main highlights are the ability to define global normalizers and an included RSpec matcher — sudo gem install attribute_normalizer — http://github.com/mdeering/attribute_normalizer
The Powerful New Rails Router
I wrote an article for RailsDispatch on the advanced features in Router of Rails 3. It includes a screencast showing how you can create a generic action for static pages in your application. Check it out here.
Directory Conventions for Rack Middleware RubyGems
A short blog post on directory/file structure conventions for Rack middlewares released as RubyGems.
Ruby Midwest Early Bird ends on Saturday
The Ruby Midwest conference Early Bird pricing ends this Saturday, May 15. Register now for only $75 to attend 2 full days of talks and the Intridea sponsored OMGWTFBBQ dinner, lightning talks and hackathon. Follow @RubyMidwest for news & discounts.
Rack::Rewrite 1.0.0 Released with support for Rails 3
I just released v1.0.0 of Rack::Rewrite. Check out the release notes. The most notable improvement is that it is now rails 3 compatible. Hurry up and upgrade!