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.
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:
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.
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. [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.
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.