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.
Using Goliath to Integrate With External Services
Have an existing set of web services built on a synchronous stack? Do you want to start to get some of the benefits of using an asynchronous stack? Getting a legacy app to run using something like rack fiber pool may require a lot of work. In this post I outline a technique that allows you to integrate an async stack like goliath with your synchronous rails stack.
Life beyond HTTP 1.1: Google’s SPDY
If you are using Google’s Chrome broweer, and you are using Google web services today, chances are, you are not running over HTTP! More likely, you’re running over SPDY. A look under the hood of SPDY and a Ruby parser for SPDY.
Developing A Simple Guard Gem For JsTestDriver
Here’s a post that details the development of Guard-Jstd, a gem that provides autotest functionality for JavaScript development with JsTestDriver.
Any MacRuby Apps in the App Store? Yes.
While MacRuby isn’t available as a public framework on Snow Leopard, there’s nothing that prevents you from embedding the framework in your application and publishing it in the Mac App Store. Three examples of MacRuby apps available on the App Store.
Ruby Hero Award Nominations
Do you know anyone in the Ruby community who deserves a little extra recognition? Now is the time to nominate them for the Ruby Hero Awards so they can win one of the six given away at Railsconf next month. You can also see the last eighteen winners from previous years here.
Setting up private streaming with Cloudfront and Ruby on Rails
I had to setup private streaming using Amazon’s Cloudfront for a project recently. I thought it would be pretty straightforward but it took me a bit longer than expected. I hope this blog post gives you a kickstart with Cloudfront and Rails.
Sinatra gone async with em-fiber_pool and em_mysql2.
Meet em-shorty, a modern URL shortener. This Sinatra app is completely async by using rack-fiber_pool and em_mysql2. If you have been curious about how async Sinatra works, this is a good sample to get you started. It’s even setup with sinatra-activerecord so you have standard migrations and several database connectors to choose from. [more inside]
Screencast: James Edward Gray II and David Brady on Associative Arrays
James Edward Gray II took me to school over my screencast on Ruby hashes, and we recorded a pairing screencast on Associative Arrays. Along the way we talk about hashes in Ruby 1.9, regular expressions, and get in a little mutual ranting about testing dogma and squashing creativity in the open source community. Check it out and let us know what you think!
Video Podcall: The Single Responsibility Principle
Pat Maddox and I just recorded a video podcall on The Single Responsibility Principle. Come check it out and tell us what you think!
ResqueMailer: Put email rendering and sending to background
Sending emails right from request-response cycle considered harmfull: Resque Mailer says: Put your emails to background
Payment Processing with Braintree Payment Solutions and Transparent Redirect
A quick overview of Braintree’s Transparent Redirect and how to write cucumber tests around it.
Rails 3.0.6 Released: Is Fixing Ur Securitys
Aaron “tenderlove” Patterson has unveiled Rails 3.0.6, a release focused around bug fixes and a significant security fix on auto_link. Other joy includes “Un-deprecating the reorder method in ActiveRecord” and “Fixing schema support for the mysql adapter”.
ResqueCleaner 0.2.0 released.
I have just released ResqueCleaner 0.2.0. This version has extended resque-web. You can see stats of your failed jobs grouped by class and time. It also comes with a screen to filter failed jobs which supports bulk retry/clear the jobs. If you are not satisfied with the default Failed tab on resque-web, check out the screenshots on github.
Just released v 0.0.4 of em_mysql2_connection_pool
Just released v 0.0.4 of the em_mysql2_connection_pool gem. Added #query_backlog so users can keep track of the queue.
It needn't be version hell with rvm!!
Learning to use rvm is easy and worth it, but can be tiresome to type the stuff all the time to switch from one version and remembering which version an app uses.. The use of aliasing and bash scripts makes it much easier
Prawn 0.11.1 released!
After over a year of developing the PDF generation library Prawn without doing an official release, the core team has finally replaced the legacy Prawn 0.8.4 gem with the 0.11.1 codebase. This brings the team very close to 1.0, and fixes many issues and adds many new features that Prawn users have been asking for since the start of the project. See the release notes, check out the awesome self-documenting manual, and kick the tires, because this release is one of our last stops on the path to 1.0! [more inside]
Screencast: Creating Ruby Hashes
I just created a short screencast on Creating Ruby Hashes over at HeartMindCode showing 5 ways to create a hash—including one way you should probably never use. Come tell me what you think!
rvmprompt.vim
I just published rvmprompt.vim, a short post about my vim plugin for the rvm prompt command.
Gibberish - Easier Ruby Encryption
The top result on Google for “Ruby Encryption” is a DZone snippet, and it’s incorrectly implemented. I’m trying to fix this with a well documented, tested, and easy to use library based on OpenSSL. Check it out on GitHub
Try AppCloud Risk-free
Dr. Nic explains the new Engine Yard AppCloud trial. Create a new AppCloud account, and you can launch your app on a High-CPU instance with 2 virtual cores and 1.7GB of memory for up to 500 hours – for free.
Pending Examples via NotImplementedError in rSpec
It’s quite handy when NotImplementedError results in a pending example rather than in a broken one. Fortunately with rSpec it’s easy-peasy: Pending examples via NotImplementedError in rSpec.
Serving Your Maintenance Page for POST Requests
Getting a 405 when people POST to your maintenance page? I’ll show you how to serve your facebook app’s maintenance page for POST requests.
Understanding class instance variables in Ruby
We just wrote a little refresh on the Ruby object model and one of their weirdest features: class instance variables.
Prevent registration of reserved login
I wrote a post about prevent registration of reserved login with Ruby on Rails with some examples. [more inside]
Redmine-lite: Simple redmine fork that deploys in minutes (90 sec screencast)
I recently released redmine-lite, an easy-to-install fork of Redmine 1.0.3-stable, a project management and issue-tracking tool. Check out the blog post here. It includes links to the github repo and a short-and-sweet 90-second screencast!