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.
NTLM authentication for Ruby with Typhoeus and libcurl
It is possible to interact with NTLM servers from Ruby via ntlmaps proxy, but the recent additions to Typhoeus library allows you to authenticate with NTLM directly. Read on to learn how to work with NTLM authentication both ways.
Twitter and Websockets with Cramp
Article about building a web app with Cramp using Twitter Stream API and HTML5 Websockets.
ThinkingSphinx exits, enters ActsAsSolrReloaded
Know the new features in acts_as_solr_reloaded, why it exists and why I left ThinkingSphinx in favor of it.
New Screencast: Creating an Admin using Nested Controllers
In this screencast, I cover how to create an admin section with a separate login, and describe how nested controllers work. Watch this screencast and more at TeachMeToCode.com.
Exception#continue
After reading about Hammertime I started hacking a bit with continuations. The result? Exception#continue.
The Demise of CSS: Why Sass And Languages Like It Will Triumph
A blog post arguing that CSS will ultimately be replaced by Sass and languages like it.
Call Center with Ruby/Sinatra
It’s easier to build in phone call functionality into your app then you might think. Check out this Ruby call center video showing off what is possible with one of the new cloud communication web services.
Detect Cylons using MacRuby
I’m sure that like everyone else, your main concern in life is to detect cylons around you. Good new fellas, Matt Aimonetti wrote a blog post that will help you do that using MacRuby. Well, not really, but kinda… At least, you will learn from his blog post that the work on MacRuby 0.6 started and an early version of a debugger is now available to play with.
Discovering Rails 3 generators
José Valim points to some recently written blog posts about Rails 3 generators and provides insight about them.
ActiveWarehouse/ETL test drive with sample code
Recently discovered ActiveWarehouse and took it for a test drive. See ActiveWarehouse/ETL and Reflections on BI for Rails for a presentation from Singapore Ruby Brigade, some sample code, and general yada yada.
Hammertime: An interactive error console for Ruby
Hammertime intercepts exceptions at the point they are raised. It then enables you to ignore the error, view a stack trace, debug the error, drop into an IRB console, and more.
Resources for starting with Rails + MongoDB
A work in progress blog post listing useful resources for starting out with MongoDB development with Rails.
Testing Active Resource classes with FakeWeb
I just wrote a Blog post about how I use FakeWeb with Shoulda and Test::unit to write unit test for Active Resource models.
SemanticJournal: Create your SemanticWeb-enabled blog on Rails+CouchDB
Just before Christmas, I moved my own blog over to my own Rails+CouchDB blog engine, “SemanticJournal”, and last week I made the repo public on Github.
New Screencast: Easy Rails Jukebox Application
Want to learn how to create a simple CRUD application in Rails 2.3? Well, look no further. Bernadino Lopez demonstrates how to create a simple CRUD system with permalinks. Watch this screencast and more at TeachMeToCode.com.
Redis in Practice: Who's Online
Luke Melia posted a blog post, Redis in Practice: Who’s Online, describing how the Weplay team implemented online presence using Ruby and Redis.
Ruby WAVE File Library
I just launched RAFL - Ruby Audio File Library. It currently supports reading and writing standard WAVE files, including multi-channel surround sound.
Head First - OO Analysis & Design first chapter review in Ruby code
Check out the first chapter of the book review I’m working on regarding O’Reilly’s Head First - Object Oriented Analysis and Design. All native Java code translated to Ruby.
Controlling iTunes in Ruby
Matt Aimonetti posted a tutorial explaining how to control iTunes using MacRuby. If you’ve always wanted a better way to create playlist or rename, tag, edit your music, you might be interested in reading this article.
Jemini - a JRuby based game framework (with screencasts)
Jemini let you use your (J)Ruby skills to create games. Jay McGavren provides a nice two-parts screencast (available on Learnivore.com) if you want to learn more about this nifty project.
Navvy, a database agnostic background job processor
Introducing Navvy; a simple background job processor inspired by delayed_job, but aiming for database agnosticism. Currently Navvy supports ActiveRecord, MongoMapper and Sequel but it’s extremely easy to write an adapter for your favorite ORM. It completely supports Rails Edge and there’s a pretty good wiki.
ChunkyPNG, a pure Ruby PNG library
I just released ChunkyPNG, a pure Ruby library for reading and writing PNG images. It may help you get rid of RMagick (it did for me). I blogged about my struggles to make the library memory efficient and have decent performance, which may be of interest to any Ruby developer trying to write efficient code.
Rails 3.0.pre Quick Install
Want to build your first Rails 3.0.pre application? Worried about installing Rails 3.0.pre gem might conflict your gems? I have written a bash script where you can install Rails 3.0.pre without gem and run “rails3” command to create your first application. Rails 3.0.pre Quick Install Have fun!
Words - A fast, cross distribution, easy-to-use interface to WordNet®
Words is an easy-to-use interface to the WordNet® lexical ontology. There are numerous interfaces out there however they appear to either be unstable, slow or make us of out-dated / distribution specific libraries many lacking ruby-like syntax. Words provides both rovides both a pure ruby and an FFI powered backend over the same API. The FFI backend uses Tokyo Cabinet and rufus-tokyo to provide cross ruby distribution compatability and blistering speed. The pure ruby interface operates through a ruby optimised index along with the standard files provided by WordNet®.
Rediscovering GServer
The Ruby Core/Standard API is full of hidden features that don’t get a lot of publicity. In the first in a planned series of ‘Rediscovering Ruby’ articles I take a look at GServer, a generic server micro-framework featuring thread pool management, simple logging, and multi-server management.