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.
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]
Hippo: Your friend for 5010
HIPAA 5010 can be quite overwhelming at first. The complexity the X12 people have fit into a simple flat file consisting a string separated by tildes is very impressive. However, now you have hippo. A DSL to create and read transactions sets in pure ruby! Hippo: your friend for 5010
A Fun Sinatra App to access the Google+ API
As part of the free, online courses being conducted on Google+ by RubyLearning, by popular demand, a blog post titled “How do I use Sinatra to access the Google+ API?” has just being published.
The Ruby 1.9 Walkthrough: A Thorough Screencast for Going From 1.8.7 to 1.9.2/3
After weeks of research and recording, I’ve released The Ruby 1.9 Walkthrough, a pay-for 3 hour screencast (it costs money, sorry!) that provides the most thorough and up to date tour of Ruby 1.9.2 and 1.9.3’s features if you’re coming from Ruby 1.8.7. If you haven’t yet taken the plunge and are wondering what’s new, what’s gone, or what’s just plain different, this is for you :-)
Isolated testing for custom validators in Rails 3
Arrr! A quick, talk-like-a-pirate-day-flavored article about isolated testing for custom validators in Rails 3.
Video Encoding with Uploadify, CarrierWave and Zencoder
I just finished a blog post outlining video encoding using Uploadify, CarrierWave, and Zencoder on a Rails 3.1 project.
Rails core_ext: Array extract_options
I just published Array extract_options in the Rails core_ext series.
Clean up your API using instance_eval
If you are writing an API (e.g. for a gem) then making use of Ruby’s intance_eval method can give your API a much more DSL-like syntax. Check out my quick into here: http://itshouldbeuseful.wordpress.com/2011/08/12/use-instance_eval-to-clean-up-your-api