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.
Convert Ruby Regexp to JavaScript RegExp
One line monkey patch. Limited use case but this works for most conditions I could find, I hope this helps someone else.
Using Redis as a temporary cache for data shared by multiple independent processes
I just posted an article about using Redis as a temporary cache for data shared by multiple independent processes.
Dotfiles for insane productivity in git, rails, vim
I released my dotfiles including two character mnemonics for common commands in bash/git and vim files with single letter capital mnemonics for all kinds of code navigation.
Screencasts and tutotorial on creating an OAuth provider and consumer.
I have recently updated my OAuth2 tutorial and created screencasts to go with it. It covers creating a provider with the oauth-plugin gem in rails and creating a consumer with sinatra and the oauth2 gem.
bookshop gem drops docbook for html
I just finished and released a complete rewrite of the bookshop gem. bookshop is a publishing framework for html-to-(e)book toolchain happiness and sustainable productivity. The framework is optimized to help developers quickly ramp-up, allowing them to more rapidly jump in and develop their html-to-(e)book (print-pdf, epub, mobi, etc.) flows, by favoring convention over configuration, setting them up with best practices, standards and tools from the start. [more inside]
Setting up Ruby & Rails on openSUSE 12.1
I just posted a walkthrough on setting up and configuring openSUSE 12.1 which was just recently released for Ruby/Ruby on Rails development using RVM. Check it out.
Vim for Rails developers: Lazy modern configuration
I just published Lazy modern configuration in my Vim for Rails developer series.
Testing Backbone applications with Jasmine and Sinon
Part 1: Introduction Part 2: Models and Collections Part 3: Routers and Views by Jim Newbery
Cached Resource 2.0.1 Released
Cached Resource 2.0.1 has been released. You can now enable the functionality on a per-class basis. It also fixes a “memory leak” with its logger. [more inside]
This is very sad.
Ilya Zhitomirskiy, one of Diaspora’s four founders, died over the weekend at just 22 years of age. [more inside]
Twitter Bootstrap, Less, and Sass: Understanding Your Options for Rails 3.1
Pat Shaughnessy discusses your options for Twitter Bootstrap and Rails 3.1.
Setting up Ubuntu with Teleport
A short introductory blog post on Teleport, a lightweight yet powerful way for preparing Ubuntu machines to deploy ruby apps.
Fourth batch of PuzzleNode problems released
I just released three new puzzles on puzzlenode.com. Check them out if you enjoy Project Euler / IPSC style problems, or if you’re planning to apply to Mendicant University when admissions open a few days from now. We use these puzzles as our entrance exam.
Programminw with Kids using Ruby toolkits
I’ve started to teach my kids to program and have learned that * websites are boring & * games are fun [more inside]
Stripe vs. ActiveMerchant
I’ve been playing around with stripe for the past month and I have been pretty impressed. It is so easy to use and the documentation is great. That being said there are downsides to stripe compared to ActiveMerchant. [more inside]
Nathan Kleyn writes about some best prac...
Nathan Kleyn writes about some best practices when cutting gems in Crafting Rubies: Best Practices While Cutting Gems
Serve erb files the wrong way (like php does it)
Here is the full guide. The idea is to configure Apache so you can upload an erb file to anywhere in your DocumentRoot and have it interpreted and then sent to the browser, just like you can do with php files. Basically, you configure Apache to take any request to a .erb file and redirect it to a cgi script.
Setting up Rails credit card processing with Braintree
Here’s a journal of my experiences setting up credit card payments in a Rails app using Braintree and the VCR gem.
Challenge: Content-aware image cropping with ChunkyPNG
This week, Codebrawl’s running a Ruby programming contest challenging you to build a content-aware image cropping tool with ChunkyPNG. Show us what you’ve got!
jClassy: Class system in JavaScript
See jclassy.org for a JavaScript class-system core inspired by the Ruby object model.
The Rotten Pirate: A fully automated movie downloader
The Rotten Pirate pulls new DVD releases from Rotten Tomatoes, filters them, and downloads the highest “scoring” torrents from The Pirate Bay. It even analyzes the torrents comments for video quality! [more inside]
Monitor methods added to classes/modules with watch_methods
watch_methods lets you watch when methods are defined with regexes, symbols, arrays and more. This is useful when you are creating a gem that is expecting methods to be defined, or to use your macro style methods that mention methods before they are defined (think Rails callbacks, validators etc).
Remotely: API Backed Models.
Remotely lets you create models backed by an API. That way you’re working with real objects that represent the data you receive from an outside source. They can have associations, attributes and behaviors like any other object. It beats passing around hashes everywhere.
rails_best_practices 1.3.0 released
I just launched rails_best_practices 1.3.0, it adds new option –with-git to display git commit and git author in html format and enable RemoveUnusedMethodsInModelsCheck by default, check out the changelogs here.
Getting familiar with Jasmine, Backbone and CoffeeScript in our Rails app
We BDD our way into recreating the Todos.js application by Jérôme Gravel-Niquet with these 3 videos: [more inside]