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

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

By Peter Cooper / November 6, 2006

Rcast

The guys over at ShowMeDo have been given permission to take the original Rails screencasts (originally in QuickTime format) and put them online in a Flash format that anyone can watch. It’s unlikely you’ve not seen the originals, but the new Web versions open them up to an even larger audience. Read More

By Peter Cooper / November 6, 2006

Tmtorad
Rather than spend $3049 on TextMate, the thrifty Dr. Nic Williams decided to try and port all of TextMate’s useful ‘snippets’ over to RadRails. He has succeeded.

This is great news for Linux and Windows based Ruby developers who want to get in on the macro-fun without switching to the Mac. 199 Ruby snippets and 48 HTML snippets have been ported across. Read More

By Peter Cooper / November 5, 2006

I just had Paul Levy send me a link to this video. It’s a fast-paced 2 minute video about Ruby and Rails that takes a pretty surreal route. You probably won’t learn much from this but it’s never a bad thing to encourage a bit more artiness in programming ;-) Read More

By Peter Cooper / November 4, 2006

Rubyway

In 2001 Hal Fulton released The Ruby Way, only the second English language Ruby book available. Since then Ruby has become popular in the West and with the help of Ruby on Rails has achieved significant critical success. With a significant number of enhancements and changes to the Ruby language and ecosystem of libraries and developers, Fulton decided a second edition was in order. That second edition of The Ruby Way, as published by Addison-Wesley, is now available.

Read the rest of my review over at InfoQ. Read More

By Peter Cooper / November 3, 2006

I’ve had this link sitting in my brew pile for some time and wanted to see if I could get it to work with the latest version of Ruby and Rails, but since I’ve been too busy so far, I wanted to post it anyway in case a reader would find it useful.

Erik Veenstra has demonstrated how to use his Tar2RubyScript and RubyScript2Exe tools to take a Rails application and a SQLite database and package it up into a single re-distributable executable file. This allows you to distribute your Rails app in a single file to users who don’t have Ruby or Rails installed. Read More

By Peter Cooper / November 3, 2006

Rubyconf2006Notes

From Juixe of Techknow Zenze comes a stunning 13 pages of notes (PDF) from the recent RubyConf 2006 conference. He covers over 15 sessions in the notes including Matz’s keynote, and Tim Bray and Adam Keys’ presentations. Anyway, Juixe has put together a surprisingly compelling read (for what are really notes), check it out. Read More

Recently Popular Posts