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.
Heroku app, backed by an AWS RDS Postgres database
Amazon recently introduced Postgres engine for AWS RDS. If you use Heroku you might be interested in using Heroku as your app/web server, and using the AWS Postgres RDS for your database. We’ve written a quick run-down on how you can achieve this.
Testing your Rails Application in Internet Explorer
When developing a Rails application it is quite common to do it using MacOS. But at some point you will probably test that your application works well in different versions of Internet Explorer. This blog post explains a way to achieve this easily.
Further Gem Released
I’ve just create further gem (RubyGems Github) which is provides a simple and flexible way to add extra data into your models without adding new column for that. [more inside]
Writing Reliable Cron Jobs
As a freelancer, I often stumble upon apps with broken cron jobs - and sometimes it induces really complicated bugs. Today I’m sharing Writing Reliable Cron Jobs, a list of tips on how I avoid these issues.
Caching API Requests
When making requests to an external service’s API, some requests will frequently occur with the same parameters and return the same result. If we cache our request or response, we can reduce HTTP requests, which can improve performance and avoid hitting rate limits.
The Ruby 2.0 Walkthrough is Now Available
Only available to Kickstarter backers till now, The Ruby 2.0 Walkthrough is now available to the public for $29 ($5 off with code FRIDAY). It’s a compilation of videos (plus a PDF e-book) that covers the changes between Ruby 1.9 and 2.0 with examples and explanations. It also includes The Ruby 1.9 Walkthrough for free which is even more in-depth and covers all the Ruby 1.8 to 1.9 changes. If you want a preview, check out this 7 minute about Ruby 2.0’s TracePoint feature to get a feel for the sort of videos in the package.
Screencast on avoiding incidental changes
Newly freed from the RubyTapas archives, a <3min video about some Ruby tricks for avoiding tedious “incidental” changes that are semantically null and clutter up version diffs.
A journey in the payments world – Part 1: The backpack
We recently had to integrate payments in our application. This is the first part of our journey in payment world.
Open sourcing "actibities"
I’m completing the last issues of “actibities” before making it open (@github). [more inside]
Configuring & Optimizing WebSocket Compression
Crash course on optimizing WebSocket compression: a look under the hood of Deflate compression and how to configure it for best performance.
Parsing with the Parslet Gem
I wrote a comprehensive introduction to the Parslet gem and where it fits in the parsing world.
Rails + Heroku - Best Practices
Here are gems, heroku add-ons and configuration to speed up your rails app on Heroku. https://gist.github.com/pcreux/7680384.
Advanced Memoization in Ruby
A follow up post on memoization basics looking at more advanced techniques for memoization.
‘Learn Ruby on Rails’ book is free today
Saturday is the last day to support the Kickstarter campaign for the new book Learn Ruby on Rails. Until Saturday, you can download the book for free. Please download it, take a look, and support the campaign.
In which the author implores you to be concerned with Rails performance
I just posted a synopsis of our most recent Rails upgrade (to 3.2) and observations on the ever-slowing pace of serving a request in Rails
A Veteran's .vimrc
Just posted A Veteran’s .vimrc, containing some useful Vim tips from Craig, a veteran Ruby developer and Vim user who works here at Mojo Tech.
How to upgrade to Capistrano 3
Capistrano 3 introduced a whole new DSL and many changes under the hood. Here’s an upgrade guide using a real Capistrano 2 script as an example.
Write You a Parser for Fun and Win
I just published a post about creating parsers with Parslet.
Zobi, a gem to keep Rails controllers DRY
We just published Zobi, a gem that helps mix several functionalities in a Rails controller.
Advanced SQL Planner Offers Data Analysis Intelligence to Embedded Devices
ITTIA DB SQL planner provides applications with sophisticated queries and accurate decisions, enabling devices to gain intelligence in M2M frameworks that produce Internet-of-Things (IoT) ecosystems. This tool supports a broad range of SQL queries to express complicated joins, grouping, query expressions, and data analysis to calculate critical data statistics efficiently.
Mousetrap-rails 1.4.6 is out
I’ve just released mousetrap-rails 1.4.6 – Rails gem for handling keyboard shortcuts via mousetrap javascript library. Here is a small post with release highlights and gem page on GitHub.