RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Override the equality operator in your Ruby classes

Test driven development by example is a wonderful book. It could only be better if the examples were all in Ruby :). Mostly, it is pretty easy to convert the code to Ruby if you have some experience…..equality though, can be a little tricky to override if you are relatively new to the language. Fear not, because I’ve just blogged about how to override the equality operator in ruby, at the same time, throwing in some extra goodness of test driven development.

Rails caching gotcha: expires_fragment silently failing? Here's how to fix it.

I recently came across an odd issue where attempts to expire a fragment cache in code run from the console or rake tasks were failing silently. I’ve written up the cause and one solution to the problem in case anyone else runs into this befuddling issue.

Matz is not a threading guy

I wrote down some of my thoughts/observations from Rubyconf 2012 around threading and the GVL. A few of the speakers actually called this out as an issue and Matz addressed some of the questions in his Q&A. Read all about it.

The link is: http://jstorimer.com/2012/11/08/matz-is-not-a-threading-guy.html …
Oops your link is going to your local app via pow. This one works: http://jstor…
You can edit posts, btw :-)

Developing machine vision software with Ruby instead of C/C++

My thesis with the title “Efficient Implementations of Machine Vision Algorithms using a Dynamically Typed Programming Language” is now available for download. The thesis shows how the field of machine vision could benefit from the Ruby programming language. The thesis explains the internals of the HornetsEye Ruby-extension.

Beanstalkd and Job Queues in Ruby

Recently, we have been making strides to improve documentation and ruby interfaces for beanstalkd, arguably one of the best job queues available for web applications today. First, we converted the beanstalkd protocol to markdown for better readability. Then, we introduced a brand new production-ready beanstalkd client called Beaneater. In addition, we have released v0.2.0 of Backburner, a complete resque-esque gem for fast, robust and reliable background processing using Beanstalkd. If you have never checked out beanstalkd, be sure to let me know what you think!

A cleaner alternative to accepts_nested_attributes_for

Redtape provides an alternative to ActiveRecord::NestedAttributes#accepts_nested_attributes_for in the form of, well, a Form! The initial implementation was heavily inspired by “7 Ways to Decompose Fat Activerecord Models” by Bryan Helmkamp.

Really like the look of this. It is similar to something I have been thinking a…
Eric: I’ve considered this. My concern is that, quickly, redtape begins to ove…
Loading older posts