Implementation of Digg Spy in Rails

Based on a comment from an alert reader, I found out that the link was broken in my Ajax Spy in Rails post. Since I couldn’t locate the original zip file on my powerbook, I rewrote it from scratch using Rails 1.2.3 with REST/CRUD and then updated the link at the end of that post.

To save you time, you can download the source from here as well.

This (and the prior) version simply uses a timer to periodically call back to the server to see if there were any updates, which places an unnecessarily heavy load on your server. A better approach would be to use something like Juggernaut to push updates out to clients. I’m investigating Juggernaut now for use in my Ajax Rails game — I’ll post more once I have a demo.

April NoVA Ruby Users Group

Tonight we held the April meeting of the Northern VA RUG. Ray Daly presented RSS and novel uses for it while Paul Stadig discussed various methods of screen scraping.

Ray provided an overview of RSS, examples of widespread usage (news feeds, monitoring, podcasts, etc) and then spoke about how RSS could be used to tie together disparate systems. He wrapped up with a Rails demo showing how to create RSS feeds and a brief discussion of the available libraries for creating and consuming RSS/Atom.

Paul’s presentation on screen scraping started with a discussion of why you’d want to gather data in this way (most of the interesting data lies in the ‘deep web’ where there is no API/RSS to extract the data easily). He then gave an overview, with example code, of N tecniques: POOR (Plain Old Open-URI and RegExps), POOH (Plain Old Open-URI and Hpricot),WWW::Mechanize, scRUBYt, WATIR and FireWatir, and scrAPI.  Of the examples shown, Hpricot looks like an excellent HTML parser (though it does require native code) while scRUBYt and scrAPI seem to have the most promise for making screen scraping easy to do. His slides are here.

The May NoVA RUG will be held on May 23 as the prior week is RailsConf.

March NoVA Ruby Users Group

RUG-o-matic Sample App

Tonight we had the March meeting of the Northern VA Ruby Users Group. First up was Douglas Sellers who talked about Selenium and Selenium on Rails. After a short break, I spoke about RESTful Rails (focusing on CRUD, REST and ActiveResource).

Read the rest of this entry »

Is Acura the Apple of the Automotive Industry?

You know how you go to a conference and most of the smart, interesting folks are using Apple hardware? I’ve been noticing a trend among my colleagues at work and those whom I’ve met at user groups and conferences–the very same folks who are at the top of their game developing software also drive Acuras. Coincidence?

Disclaimer: Yes, I drive a 2004 Acura TL and one reason (out of many) that I bought the car was for the technology (bluetooth hands-free-link, for example). Though I’m not conceited enough to consider myself a kick-ass software engineer.

February NoVA Ruby Users Group

This month we had Chad Fowler as a guest speaker at NoVA RUG. His talk was entitled “Quick and Clean Rails Development.” Here’s the abstract for his talk:

Rails is all about speed. It has been said that Rails programmers can develop software ten times faster than those programming in technologies such as .NET or J2EE. Rails itself is evolving at the speed of light.

But, to paraphrase Martin Fowler’s RailsConf 2006 keynote, with Rails we don’t have to choose between Quick and Dirty and Slow and Clean. With Ruby, and therefore Rails, we can have both speed and maintainability.

With Rails, the speed comes naturally. As it turns out, the cleanliness often doesn’t. This talk will focus on how to make your application development both quick _and_ clean.

Read on for a summary of Chad’s talk.

Update: I found a video of this talk which Chad gave at Rails eXchange in London here.
Read the rest of this entry »

The Rails Edge Day 3

By the final day of the conference my head was about to explode with the amount of new information crammed into it. There were some great tips and tricks on the final day, but overall, I think the conference peaked on day two. Here’s a run down of the sessions for day three:

  • Buried Treasure: Hidden Rails Tips by Dave Thomas
  • The Streamlined Framework by Justin Gehtland
  • Rinda and DRb by Justin Gehtland
  • Amazon’s S3 Web Services by Marcel Molina, Jr.
  • Rake: Building Up Ruby by Jim Wierich
  • Rails Production Tips and Tricks by James Duncan Davidson

Read the rest of this entry »