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.
Fast hashing with CityHash
I just wrote a blog about fast hashing with CityHash - a family of non-cryptographic hash functions, designed for fast hashing of strings.
Building Real-Time Web Applications with Server-Sent Events
We’re supposedly living in the bright, shiny future of the real-time web but often we’re still just polling. Let’s look at implementing a real-time channel between clients and servers using Server-Sent Events.
sport.db - Free Open Sports DB Adds Plain Text Fixtures & More
Hello, I’ve added a plain text fixture reader for easy data import to the sportdb gem. For samples, see the English Premier League or the Deutsche Bundesliga fixtures. Cheers. Read more
IProcess v3.1.0 is out
IProcess provides a number of abstractions on top of spawning subprocesses and interprocess communication. It has a simple and easy to use API that supports synchronous and asynchronous method calls plus one or two other useful features that become obvious in the README examples. Try it out with: ‘$ gem install iprocess’
How to Create Your Own Private Gem Server With Geminabox
My first post in a new blog is about creating a private gem server using geminabox using the great service of Dreamhost. Read more
Using MongoDB to store and retrieve CSV files content in Ruby
Post about loading dynamic CSV/XML data to MongoDB using Ruby and Mongoid gem. Check it out!.
Ruby backend for Impact.js
I’ve released gem called impact which provides a backend for running local Impact.js game servers. Read more
rails-footnotes 3.7.9 has been released
Just RailsFootnotes 3.7.9 has been released
When Should I Use Protected Method Visibility In Ruby?
The semantics of protected method visibility hardly ever seem applicable. Why does this language feature exist and how is it used by open source projects?
Understanding Rails 4 Strong Parameters Security
Did some leg work on the logic and execution of a big change coming down the pipe in Rails 4 (strong_parameters). I’ve got an example in Rails 3 and the differences you should expect in Rails 4. Here’s my Blog Post on the subject with healthy doses of how and why.
Bring the power of StarDict in your Rails App
It is Dickens gem just released out there. Read more
Getting Started with MVC
I wrote a beginner oriented post on Getting started with MVC . Hopefully, this should give the reader a good understanding of how Model-View-Controller architecture works in Rails. Share your thoughts and comments. :) Read on…
Heroku Database Followers
Heroku just announced their GA for database followers on their production tier databases. They take the pain out of making a databases warm database copy, and there are a ton of things you can do with them read more…
Add content management to a Rails app
We just made a screencapture video about how to add Feed.Us content management application to a Rails app in about 10 minutes… I would love some feedback if this video looks ok and makes sense. Thank you!
Rails Subscription Site with Stripe: Tutorial and Example Application
Just added to the RailsApps GitHub repo: an example app for a Rails Subscription (or SaaS) Site with Stripe Recurring Billing. it comes with a detailed Rails Tutorial for a Membership, Subscription, or SaaS Site. Like the other example apps in the RailsApps repo, this one uses the Rails Composer tool to generate a starter app, with options for Haml, creating a GitHub repo, and more.
Gem for Yandex.Metrika
I have just published Gem to work with Yandex.Metrika API. Yandex.Metrika is a web-analytics tool from Yandex (similar to Google Analytics). With Metrika gem you can authorize with OAuth protocol, work with counters, goals, filters, operations and grants. And of course you can fetch every statistics that is available for your site. Read more
Absolutely dead simple login system for Rails with Facebook using omniauth-facebook
I was surprised at how minimal the code actually is. Here are the steps: Read more
A Simple Rails Boot Time Improvement
A great article by Pan Thomakos on speeding up Rails boot time by using require: false in your Gemfile.
Screencast: Ruby's Socket API From the Outside In
In this screencast I show a really high level wrapper that Ruby provides for making TCP servers. I take 3 lines of high level code and break them down into 25 lines of lower level code. The pretty 3-liner won’t work in all cases, so I walk you through the layers of abstractions until we go as low as we can (in Ruby).
Phusion Passenger 4.0 beta 1 is here
Multiple Ruby versions, evented I/O, real-time response buffering, Python WSGI support and much more.
Check for empty fields in your database
If you work on a project that is quite old and you haven’t looked in database schema yet it is time to clean up the garbage! See all empty columns with this simple ruby script.
Deploying to Heroku from TravisCI
Travis CI and Heroku are two of my favorite tools. Recently I tried to figure out if there was an easy way to have Travis automatically deploy to Heroku once the tests have passed. Turns out it’s incredibly easy!
Progress Bars for Ruby's CSV
A small module to easily add a progress bar to Ruby’s built-in CSV library. It uses the progress_bar gem to do all the hard work.
Remove 404.html, 422.html, etc from public dir. Render errors in your layout
Taking advantage of the new “exception_app” functionality in Rails 3.2 better_exception_app provides a easy way to help you delete 404.html, 422.html and 500.html from you public directory. Error messages are rendered dynamically in your layout. No more copy/pasting, no more jarring white screen. If desired, keep certain errors static for safety (i.e. 500.html). Includes a generator to make it easy to keep the look of your static errors in sync with the rest of your site.
Try mruby Today
Want to check out that mruby thing everyone has been talking about, well guess what you can try mruby today. Also a great introduction to building binaries (hint: if you don’t know what that means, you should read this article).