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.
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.
Here's the link to that blog
Sorry about that! Open Source Software blog
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. Read more
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 Read more
Active Record `#{attribute}?` method
I’ve wrote a blog post about the #{attribute}? method on Active Record.
Creating Gradient Backgrounds with Ease in Ruby Motion
Just published this blog post showing how I created gradient backgrounds without images using Ruby Motion.
Annotate them all!
Annotator is gem to document your model attribute. You might heard of AnnotateModels, which gives you basic column description (title, type etc.) in your model file. With Annotator, in addition to such basic info, you can add comments to the columns.
markdown_select 0.1 - Another Markdown Wrapper to Let You Use Your Library of Choice
I’ve extracted the code for handling the loading and selection of different markdown libraries (such as kramdown, bluecloth, maruku, rpeg-markdown, rdiscount, pandoc-ruby, etc.) from the Slideshow gem and bundled up in its own gem, that is, markdown_select.
Claws 1.1 Released
Claws provides a command line interface to your Amazon Web Services account. With this release it now properly supports multiple regions allowing all instances to be reported along with their region displayed. Check out a screenshot of the update on github. You can also read the initial announcement on rubyflow here.
Data Context Interaction (DCI) in Ruby
DCI (Data Context Interaction) is a new way to look at object-oriented programming. Instead of focusing on individual objects, the DCI paradigm focuses on communication between object. It improves the readability of the code, separates system behavior from static domain concepts, and most importantly tries to represent people’s mental models in the code. DCI-IN-RUBY.INFO is a project aiming to help all Rubyists become familiar with DCI.
Easily deploy to multiple environments on Heroku with heroku_san
Published a blog post about how to use heroku_san to deploy to multiple environments, and manage your applications.
Going Dynamic on JVM: JRuby vs. Groovy
Want to run your apps on the JVM, but not a fan of the Java language? If you prefer dynamic languages, there are lots of available options. The most mature ones are JRuby and Groovy. If you are asking yourself, “Should I pick Groovy or JRuby”, read this post and, hopefully, you will be able to make the decision. Read more…
Abstraction Creep
Abstraction creep: When you try to save yourself from a shaky abstraction by introducing another abstraction, instead of just fixing that abstraction.
Introducing Claws (Command Line AWS) 1.0
Amazon AWS users are all to familiar with the steps required to connect to an available instance. Using the management console you have to copy and paste the public dns name into the shell to construct the ssh command. It is annoying when the mouse isn’t placed just right and your clipboard is filled with more than what you want. Read more
Beautiful Front End Code in Chicago June 27-29
We’ll be doing another iteration of Beautiful Front End Code in Chicago at Groupon HQ June 27-29. We’ll be cramming as much jasminey, backboney, coffeescripty hands on coding goodness as is humanly possible into 3 action packed days. Be there!
Polyglot image processing performance shootout with Ruby, Node.js and Go
I’ve just published a blog post about on-the-fly image processing over HTTP.
Heroku Cedar Stack now in General Availability
Starting Now on Heroku, Cedar Stack is in General Availability. Now you get all the things you love about Heroku defaulted to the latest and greatest stack.
Resque: automatically kill stuck workers and retry failed jobs
If you use Resque for your background jobs, and have to manually intervene when workers get stuck or jobs fail for some reason, you might find this tip useful. It’s a simple way of monitoring for stuck Resque workers, and automatically kill those workers and retry failed jobs.