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.
Web Workings With Ruby - Concurrency Part 1
The next installment of my Web Workings series is available. It discusses the problem of blocking in concurrency, and basic methods of handling the issue through forking and threads. The next part of the series will look into some more advanced methods including select, poll, and epoll/kqueue.
Ruby 1.9.3 Release Candidate 1 Released (What's new?)
Yugui has announced the release of Ruby 1.9.3 RC1. 1.9.3 is on its way! But what’s new? I summarized the changes over 1.9.2 at Ruby Inside and also linked to a talk by Yuki on the same topic. Highlights include a change in Ruby’s licensing, faster loading performance, and a better garbage collector.
Ruby Concurrency
I’ve been diving in deep lately writing a highly concurrent server in Ruby, and I’ve been a bit disappointed. Here are my comprehensive findings on The (Sad) State of Ruby Concurrency.
rails_best_practices 1.0.0 & 1.0.1 released
I just released rails_best_practices gem 1.0.0, rewriting the parser by ripper, which perfectly supports ruby 1.9 (json hash), version 1.0.1 fix an error about line number of constant node, release note is here. I also wrote a blog post use ripper instead of ruby_parser to share my knowledge.
Bug hunting with Git bisect
I wrote an article about Git bisect (Example included!)
Using Redis as Rails Cache Store
I just posted how to use redis as rails cache store.
Programming Language detection of files & blobs
Linguist can do that … but it requires lot of dependencies (including pygments, which needs python). If you just need plain language detection, check out the dependency free language sniffer
Simple Two-Factor SSH Authentication (with Ruby)
I’ve just published a new blog post demonstrating how to implement Two-Factor SSH Authentication with Ruby and the Google Authenticator app.
How to create funnel chart widget using chameleon gem
I could not find relevant resource to create funnel chart widget for Geckoboard. So, I thought this might be helpful create funnel chart widget using chameleon gem.
Too slow rails development environment? Boost Up!
Just a note on how to boost-up your Rails development environment.
How to avoid git commits using the wrong profile ?
I just posted a new post on my blog about how to avoid git commits using the wrong profile when using gas . The workaround uses rvm’s feature.
Extracting Domain Models: A Practical Example.
I just posted a new post on my blog about this whole domain models thing that people are talking about lately.
Running Rake with Parameters
Little known technique for writing rake tasks that accept parameters: rake with params
admin_view: minimal admin interface generator for Rails 3
admin_view is new kid on the Rails admin interface block. It generates a small chunk of opinionated scaffold-like code with a simple search form on a paginated, column-sortable listing. Read more on the announcement blog post.
I just launched a simple script EC2ssh t...
I just launched a simple script EC2ssh to make it easier to ssh into ec2 instances. gem install EC2ssh; ec2ssh
Automatic lossless image compression for Rails 3.1 asset pipeline
Rails 3.1 ships with automatic compression for javascripts and stylesheets, why not images too? Introducing sprockets-image_compressor!
Partial reuse between Rails & JS, the easy way!
Writing JavaScript code to display data retrieved from a JSON API can be easy and clean if you use templates. But what is the easiest solution to reuse view partials between the Rails application and the JavaScript code? In this article I explain my solution which works out-of-the-box.
Rails 3.1 Asset Pipeline, Content Delivery Networks and Rack::Cache
If you’re using Rails 3.1’s asset pipeline and a content delivery network to serve static assets, you might want read my blog post about Rack::Cache filling up your cache storage.
Coletivo - A simple recommendations engine for Rails 3
I just launched Coletivo - a very simple Rails 3 recommendations engine that uses Euclidean Distance or Pearson’s Correlation Coefficient to calculate the similarity between persons and find good recommendations.
Why you should care about encapsulation
Greg Moeck explains why you should care about encapsulation.
Bare-bone, stripped-down Devise
José Valim shows how to have your own bare-bone, stripped-down Devise.
A simple way run ruby code in a windows browser
If you ever need to execute a little bit of ruby code with full access to a client windows box, but the rest of you system is a web app, check out LocoRuby. Its a simple easy way to add <script type=”text/ruby”>…</script> blocks to a browser page. Any input would be greatly appreciated!
Web Workings With Ruby - Responding To The Client
The newest installment of the Web Workings series is up. This part will show how a client request looks, and how to respond to a client request by serving up files from a directory. I hope it proves educational!
How to use TaskJuggler to coordinate your open source project
TaskJuggler 0.2.2 just has been released. The formatting options for journals have been greatly improved. Blog-style reports of project progress and status are now possible. [more inside]