Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

Author Archives: Peter Cooper

By Peter Cooper / November 21, 2006

Allison

Allison is a new RDoc template produced by Evan Weaver. I’m not entirely sure about the colors (but these are easily tweaked with CSS), but it still looks very nice and clean, and for many situations is an obvious improvement over the default framed template RDoc provides. Evan provides full instructions for using Allison for your documentation. Read More

By Peter Cooper / November 21, 2006

Ram

RAM: Ruby Asset Manager is an open source project that provides a ‘digital asset manager’ written in Ruby on Rails. It has a slick interface and there’s a live demo you can play with right away, as well as the obligatory page of screenshots and screencasts demonstrating features such as Web-based multiple file upload, bulk download, group based roles, and password protected RSS feeds.

It looks and feels like a pretty solid Rails application, so it might be worth diving through the source code for any goodies, or even to learn how a big project involving front end, administration, and feed interfaces with role-based authorization is put together. Read More

By Peter Cooper / November 20, 2006

Gp2X

The GP2X is a Linux based handheld games console that’s based on open source technologies. It’s commonly used for running emulators to play games from older systems, but is also a powerful device in its own right (it features a 200MHz ARM processor).

Fujeyla-Studio has put together a statically compiled Ruby interpreter along with the RubyGame SDL extension for the GP2X, making it easy to develop games for the handheld. I don’t have a GP2X but the source code I saw within the package looks like standard RubyGame fare. Might have to look into getting one of these devices! Read More

By Peter Cooper / November 20, 2006

Pror

Pratik Naik of Thinkwares (an Indian Rails development house) wrote to me to announce the launch of PlanetRubyOnRails.com, an automatic ‘river of news’ style aggregator of Ruby and Rails blogs. If it sounds familiar, it’s because PlanetRubyOnRails.org has been doing the same for a while now, but, as Pratik explains: “One of the main reason why we did it is because planetrubyonrails.org is maintained by noone. I had changed my blog address and I couldn’t get it changed there.”

There’s a little innovation too. PlanetRubyOnRails.com supports dynamic subdomains so that you can narrow down on the sort of posts you want to read. Read More

By Peter Cooper / November 19, 2006

Symbian

While there have been attempts at porting Ruby to the Symbian (mobile devices) platform before, Symbian have now released an official build of Ruby for Symbian OS (S60 to be precise). This brings Ruby to a vast universe of cellphones. Symbian are providing the project with libraries for rendering, messaging, and persistence on their platforms. Read More

By Peter Cooper / November 17, 2006

Workingwithrails

DSC, a London based technology consultancy, has today launched Working With Rails, the biggest index of Ruby on Rails developers seen on the Web so far. Quietly launched to a small group of developers several days ago, the site has now gone live for everyone to play with.

I caught up with DSC developer Martin Sadler to learn a little more about the site.

Ruby Inside: What was the motiviation behind developing WorkingWithRails for DSC?

Martin Sadler: At DSC we tend to use Ruby (on Rails) for the majority of our projects and so it seemed fitting that we contribute back in some way for all the benefits ROR has given us. Read More

By Peter Cooper / November 17, 2006

Mauricio Fernandez continues to extend his Ruby God status with this excellent article about a search library he just developed using pure Ruby. It’s simple (mere hundreds of lines), fast (queries in the milliseconds), and practical (he’s already using it to index Ruby documentation).

Read about how it works and the techniques he used or just get straight to the source. Read More

By Peter Cooper / November 14, 2006

Googlevideo

In the same vein as Shane Vitarana’s YouTube library comes a Google Video API for Ruby developed by Walter Korman. The API uses Hpricot to do its dirty work and has a RubyForge project page and in-depth documentation. Read More

By Peter Cooper / November 13, 2006

Sometimes strange things happen. I’ve been developing a small, basic recursive descent parser for Ruby called RDParse. Just before writing this post I decided to Google that name, and lo and behold the first result is a Ruby recursive descent parser called RDParse, created by Dennis Ranke, that I posted to Code Snippets for posterity several months ago. Since both of these libraries are unlikely to be used at once and that Dennis doesn’t seem to be maintaining his version, I’ve decided to stick with RDParse as the name of mine for now.

You can download my RDParse as rdparse.rb.txt, just rename it at your end if you want to use it. Read More

By Peter Cooper / November 11, 2006

Softies on Rails is a popular Rails blog that looks at Ruby on Rails from the perspective of .NET developers. They’ve just announced that they’re holding a special one-day workshop where they cover how they went from .NET to Ruby on Rails for Web development and how other .NET developers can do the same.

It’s in Chicago, at the Hilton Garden Inn hotel, on Saturday, January 13, 2007, and costs $249 for a whopping 11.5 hours of discussion, presentations, lunch, beverages and snacks. Places are limited to just 20 seats so everyone can get the most value out of it, so if you want to get a “.NET to Ruby” perspective and you can get to Chicago in January, register now! Read More

By Peter Cooper / November 9, 2006

Tiobenov2006

Only a month ago Curt Hibbs was celebrating Ruby hitting #13 on the TIOBE Programming Community Index. Well, the November index has been released and it’s up another place to #12. As I said to someone the other day, Ruby’s a slow burner, but it’s persistently upward and slow and steady can win the race. Read More

By Peter Cooper / November 9, 2006

Rubyswt

(Disclaimer: I’m no Java wiz, so if I get anything wrong about Java or its libraries, post comments!)

The SWT (Standard Widget Toolkit) is a GUI widget toolkit for the Java platform. Unlike AWT and Swing, it uses the local operating system’s own controls. This means you can develop Java apps that ‘look native’ on multiple platforms. The popular Eclipse IDE uses SWT to work and looks graphically native on multiple platforms (as does Azureus). SWT is also, reputedly, faster than the other alternatives. Sounds great for developers, right? Java developers.. sure.

I decided SWT was too good an idea to not investigate, so I downloaded JRuby 0.9.1 (a Ruby interpreter written in Java and which provides access to Java classes from Ruby) and set to work. Read More

By Peter Cooper / November 8, 2006

Advent

This year Ruby Inside will be presenting a Ruby Advent Calendar. The site’s already up but doors won’t appear until December 1st. So why am I posting about it already? Well, you can subscribe to the feed right now, so that as soon as December 1st hits, you’ll be ready to open the door, and then every day thereafter till Christmas.

Also, I want to see if anyone else wants to create some of the “days”. If you want to write / draw / make something that’s cool and Ruby related for one of the days, get in touch at rubyinside -/at/- bigbold.com. Read More

By Peter Cooper / November 7, 2006

I’m creating a library that sorely needs a ‘debug mode’ where each step of what the library does is printed to the screen for developers to check out. I wanted the debug mode to be easy to set and for the debug messages to be as non-intrusive as possible. Initially I arranged it in such a fashion:

class MyLibrary
def initialize(options = {})
# Set @debug here if necessary
end

def debug_message(msg)
return false unless @debug
# Print debug message in certain way here
end

def do_something
# Do stuff here and in other methods
debug_message “Such and such message”
# Do more stuff
end
end

Each debug message was a simple method call to a routine that only printed the message if debug mode was activated. Read More