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.
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.
(Fully) Document your DataMapper models with YARD
YARD can easily be extended to recognize and document new meta-programming methods. yard-dm is a new YARD plugin gem, which adds support for documenting the properties/relations of DataMapper models. More on this.
rake_commit_tasks now supports git
rake_commit_tasks is a set of rake tasks to help with checking in code. Now, it supports git (in addition to subversion). Read more about it: rake_commit_tasks now supports git
Kansas City Ruby User Group presentation: Ryan (dot) Smith on the Decorator pattern
Ryan (dot) Smith presents on the Decorator pattern (video on vimeo) with source code for the Decorator example at github.com/ryandotsmith/decorator
Websockets made easy with Cramp
Taking advantage of HTML5’s websockets cannot possibly get any easier than this. More about this on my blog : Websockets made easy with Cramp
Distributed Ruby with the MagLev VM
MagLev Ruby VM has a unique persistence model: it is a database and a ruby runtime in one. Based on the smalltalk VM, it offers a JIT, transparent object persistence, distributed layer, and many other goodies. A on overview of the state, architecture and examples of use.
Cappuccino on Rails
CappuccinoResource is like ActiveResource for Cappuccino projects. There is an introductory blog post, a demo application, and source code for the demo and the library on GitHub. Also of note, there is also a Flow dedicated to the Cappuccino community. Be sure to follow it if you have any interest in this exciting framework!
helper plugin for highcharts js
just released a plugin for rails, a helper to help create graphics with the javascript library “highcharts” the samples of the graphics are in the highcharts site; and the code of the helper can be found, as always, in github: http://github.com/michelson/lazy_high_charts
The Latest Developments in Ruby 1.9.2
Japan’s WEB+DB PRESS has an English translation of an interview with Ruby 1.9’s release manager, Yugui, on the latest developments on the forthcoming Ruby 1.9.2.
Book Review on The Passionate Programmer
Click for a full review on Chad Fowler’s The Passionate Programmer, a guide to a software developer’s career!
Ruby Setup 5 - A reworking of setup.rb
I just launched Ruby Setup 5 (aka setup.rb). Ruby Setup is a fork –or perhaps more appropriately called a “torch”, of Minero Aoki’s setup.rb 3.4.1. Version 5 is major re-implementation of the system. Primarily the new system organizes the code into proper OOP structure, and uses an aggregate-and-process procedure instead of the previous traverse-and-process procedure.
Testing your MongoMapper models with Machinist and Remarkable
There are new versions of machinist_mongo (1.0.1) and remarkable_mongo (0.1.2). For this occasion I made a tutorial about them.