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.
Making Redis-store views cache work with simple Regexps
I’ve found a way to make Redis-store work with simple Regexps and also expire caches with wirdcard string (once that hit Redis Keys method). Check this out!
IProcess v2.1.0 released
IProcess v2.1.0 is a collection of Ruby classes you can use to transport Ruby objects between processes. It can be useful if you’d like to run CPU-heavy units of work in parallel or if you’d like to perform some risky work in a secluded subprocess. New feature: asynchronous API.
Sidekiq 2.0.0 released
Sidekiq is a simple but efficient background processor for Ruby and Rails. It’s meant to be Resque-compatible but far faster since many jobs execute in parallel. Version 2.0.0 adds scheduled jobs so you can say “send this email 3 days from now”.
Ruby vulnerability with RegExps
We just learned from http://habrahabr.ru/post/144139/ that a nice vulnerability was found in Ruby (Versions TBD soon). Read more
Conquering The Enterprise!
Enterprise software has been being bashed for years. I believe it’s time to change this attitude. Let’s think a little about what enterprise software is and if Ruby can be a good platform for building it. Read more…
The Ruby Standard Library is a Disgrace
The Ruby standard library is a disgrace. The Ruby community should have thrown it out a long time ago. It’s full of awful code — some of the worst Ruby code I have ever seen is in the standard library. Many of the APIs are horrible, and much of it was written almost as to be as slow as possible. [more inside]
Claws 1.2 Released
Claws is a command line based AWS (Amazon Web Services) console. Thanks to rapid community adoption a new release is already available. With this release you can connect to VPC hosts properly as well as specify an alternate ssh identity file to use. There is also a bug fix regarding initializing the configuration file. Check out a screenshot example of how it works along with other information on github.
Split 0.4.2 released
Split, the Rack Based AB testing framework, has just been updated to 0.4.2 and now supports v3.0 of the redis gem. [more inside]
Use Dependency Injections, Your Tests will Thank You
Doing Outside In development is important. You will be able to better design your classes when dealing with use cases or stories. Read whole article
Rails Tips part 1
I’ve recently wrote my first blog post. It’s some Rails Tips: http://agis.heroku.com/blog/2012/05/24/my-rails-notes/
Manual Cropping with Paperclip
I just wrote a quick how-to about manual cropping with Paperclip, specifically, how to make manual cropping and automatic thumbnailing play nice.
Capistrano-helpers
If you’re using capistrano, you might find capistrano-helpers useful. See how we’re using it here!
The nuts and bolts of our Ruby-based realtime charts solution
Scout’s realtime charts were fun to implement and have been rock-solid so far. We were able to implement all of it in Ruby (outside the Javascript used to handle websockets in the browser) and didn’t need to deploy any infrastructure. Learn how we built realtime charts with (mostly) Ruby.
Full-Text Search in Rails using elasticsearch
I just wrote a tutorial about how to implement full-text search using elasticsearch in Rails.
SQL Literals in Squeel (or, Overriding Backticks in Ruby)
I just posted details about how Squeel overrides the behavior of backticks in its DSL blocks, along with some of the criteria I used when determining whether or not backticks were a good candidate for the behavior. I hope they’ll be useful as a starting point for thinking about overriding just about any default Ruby behavior in your code, especially backticks.
Placeholder images and Gravatar integration
This blog post describes how to easily display placeholder images when accessing remote images that might not exist, such as Facebook & Twitter profile picture. You can also automatically transform the placeholder images to any required size and format. In addition, this post explains how to use Cloudinary to easily embed Gravatar images while dynamically resizing them, applying face detection for better thumbnail generation and fast cached delivery through a CDN. Ruby on Rails sample code included.
Ruby CLI password manager reaches 1.0
PWS 1.0 has been released. It got new features on crypto level and tweaks in the command-line interface. I’ve also written a small blog post about my Ruby experiences I’ve had while implementing the gem.
Nice and simple way to use YAML configs
I just released basic_config. The main purpose is not to have to use raw Hash for this. Hopefully it’ll help you manage your configuration better.
Sportbook - Sports Betting Pool Ready for Euro 2012 (in Rails 3.2+)
In less than ten days the European Football Championship (aka Euro 2012) kicks off. For more fun I’ve created a free, open source sports betting pool in Ruby on Rails. Also works for the Champions League or other tournaments. More (Sources, Demo, etc.). Note: Some labes are still only in German.
Why We Love the Open Source Software Community
The CX Cloud storage team loves open source software and the community that uses it. Here’s our thank you to YOU here in our blog:
A Book About Socket Programming for Rubyists
Socket programming is at the heart of what we do everyday. Whether you’re working on web apps, desktop apps, or anything in between you’re going to be communicating with web servers, database servers, and probably a dozen other endpoints. But few of us are well versed with our infrastructure at this level. [more inside]
Easy log in as user in development environment
I just launched gem dev_log_in for easy login in in development environment. To log in as admin just go to [more inside]
Active Record `#{attribute}?` method
I’ve wrote a blog post about the #{attribute}? method on Active Record.