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.
Challenge: selective color with ChunkyPNG
Because our last ChunkyPNG contest was a great success, we decided to do another one. In this week’s contest, we compete for the best Ruby program to apply the selective color effect to an image. Who needs expensive photo editing tools? We’re programmers!
Updog: Command Line Weather Forecasts using Ruby
updog is a good gem with a horrid name for getting 5 day forecasts - very quickly from the command prompt. [more inside]
Tuning your Maxixe segmenter with the new optimizer
Remember Maxixe, the statistical segmenter for any language? It now has an optimizer for tuning the parameters built in, so be sure to check out what I wrote about it!
Puffer the Admin Interface
Aloha, i’ve just launched the Puffer project. It is a rails >= 3.1 admin interface builder. Here it is: puffer [more inside]
Twitter Bootstrap toolkit with Rails3
I just found one good gem to use Twitter Bootstrap toolkit with rails3.
How to contribute in Rails using Github "fork and edit feature"
I just posted about how to contribute in Rails or any other open source software with using “github edit and fork” button. [more inside]
Using Picky for search and profit
I wrote a post on my experiences with Picky, the semantic search engine and how a maintainer should act in open source projects.
jquery-tmpl-rails: jQuery Templates for the Rails asset pipeline
There are myriad of JavaScript templating libraries available. The one officially adopted by jQuery is the jQuery Templates plugin. I have released jquery-tmpl-rails, a gem which adds the plugin and a corresponding Sprockets engine to the asset pipeline for Rails 3.1 applications.
Hippo - A Ruby Library to Generate X12 5010 (HIPAA) Transactions
Hippo v0.0.4 has just been published. The library now generates valid X12 5010X222A1 (837) files. Checkout the 837 test for a complete example.
How to Design Classes (in Ruby or any OOP)
I would like share this: How to Design Classes (in Ruby or any OOP). PS: Recomend for all!
Integrating Padrino w/ Mongoid & delayed_job on Heroku
I couldn’t find much useful info on integrating delayed_job w/ Sinatra/Padrino .. so I wrote up a sample app w/ Padrino, Mongoid & delayed_job. Oh, and it’s Heroku ready w/ a functional Procfile. Checkout the G+ Post, Gist and App
Control ruby-debug from TextMate/vim
There is simples possible script for pushing breakpoints from TextMate to ruby-debug.
MiniRecord: ActiveRecord without Migrations!!
Sometimes I prefer to use DataMapper because it’s faster and cleaner write “schema” directly inside models, unfortunately my co-workers are too lazy to study a bit DM. So I started to write a small plugin for ActiveRecord 3.1 that replicate this awesome feature. Try MiniRecord!!!.
Code Climate: Quality metrics for Ruby codebases
I just launched Code Climate. It’s a tool that helps Ruby teams reduce technical debt by giving them metrics about their codebase. It’s based upon Open Source static analysis projects like Flog and Flay and hosted so you don’t have to install or run any software and it’s easy to share.
Ruby Loves Sass
I just posted ruby loves sass. make a grid in SCSS and learn how well ruby and sass play together.
Rails core_ext: Array Conversions
I just published Array Conversions in the series Rails core_ext.
Sassy noise - A Sass port of Noisy JS
Sassy noise - A Sass port of Noisy JS (https://github.com/DanielRapp/Noisy) for generating noise background images as base64 data URIs. Based on work of @philippbosch & @aaronrussell.
TestTrack - A Gem To Help You Test Your JS In Rails 3.1
TestTrack is a Rails 3.1 engine gem that adds common JS testing libraries to your asset path and mounts the html test runners at your choice of a route.
Zombie Passengers ? Hire a professional!
zombie passenger killer ensures your Rails stay free of zombie passengers :)
Dealing With Embarrassing Breaking Changes
Recently I was contracted to bring a Rails 2.3 app up to Rails 3.1, and by far the largest chunk of time was spent on patching or replacing abandoned 3rd-party dependencies. I get embarrassed for our community when I have only two options to recommend for upgrading code: expensive changes or stay on an old version. Here I tell the story of my embarrassment, and recommend encapsulating those dependencies as a means to keep the upgrade demons away.
Testing Facebook login (and others) with omniauth, Devise and capybara
I just shared the method I used to test a Facebook login feature using Devise and omniauth on our blog. Hopefully should be useful and easy to extend to multiple providers.
Remotipart 1.0 released: dead-simple AJAX file uploads in Rails 3.0 + 3.1
I just released v1.0 of the Remotipart gem. It uses a jquery iframe-transport and some custom middleware and JS, to build upon the standard jquery-ujs built into Rails 3.1 (and available for 3.0). This gem allows your remote forms to upload files, plain and simple. It requires basically no configuration. Feedback welcome :-) View Remotipart 1.0 Released
RailsInstaller 2 for Windows Released
Wayne E Seguin walks through the RailsInstaller 2 for Windows release and key features.
How To: Syncing static assets to S3 during an Engineyard deploy
We just posted a quick and painless to make sure new and updated assets get sent (quickly) to Amazon S3 during a deploy to engine yard using deploy hooks, a rake task, and a custom chef recipe to install the s3cmd tool.
Private Methods: To Test or Not To Test?
Some say that you should only test your public API. I disagree officially in this blog post that shows pros and cons of testing private methods, too. I’d love to hear your opinions!