Jun 7 2009

Google Wave – not just for distributed collaboration

The buzz around Google Wave seems to be focused on how it blends collaboration styles from email, IM, wiki, microblogging, etc and unifies them with a common model. That by itself is very cool. If you want a good overview from that perspective, I recommend this one at Mashable written by Ben Parr.

However, there’s more to the story. Google Wave is also a generic platform for building distributed applications with data that can be represented in XML. That’s a very broad domain, even broader than distributed collaboration.

The federation protocol reminds me of a line-oriented editor, an analogy which admittedly dates me. For any younger folks out there, this is what we had before text editors showed you the contents of the file you were editing. You had to navigate through the document by typing line numbers at the command prompt, or move forward and back through the document by a specified number of lines. Then you could insert, replace, or delete lines at the current location. If you’re on a UNIX or Linux machine, see the manual page for “ed”, a standard line-oriented text editor. One format the UNIX “patch” tool accepts is a set of ed commands. This is essentially what the server-to-server protocol sends, except the commands operate on XML documents.

When a server is sharing changes with another server, the changes are expressed as edits made to the XML document representing a “wave” (or a “wavelet”, although that terminology always makes me think of compression algorithms). You can insert characters and elements, delete elements, or split and merge elements. Once you fully grok this, the “playback” feature of the Google Wave user interface becomes a complete no-brainer.

Some of the example gadgets hint at the variety of possible applications. There’s a chess game, which I suppose could also be considered a kind of collaboration. Two people alter the state of a board according to a set of rules. Why not have a process engine gadget that alters the state of a running process (according to a set of ruls) and a different gadget for business application monitoring? Why not have an air traffic control gadget with robots that update the positions and vectors of airplanes? Ok, bad example. Maybe an air traffic control simulator game.

Some applications would be more of a challenge to build on the Google Wave model. Data models with lots of non-hierarchical relationships between objects would probably indicate a poor fit.

If you’ve missed the buzz and want to hear the news straight from Google, start from the beginning here. The original launch video from Google I/O is 80 minutes long. If you know where I can find a five minute demo to share with people, please let me know. Or if I could get sandbox access, I’d love to make one. Hint hint.

If you’re interested in an introduction to operational transformation, you might want to watch “Issues and Experiences in Designing Real-time Collaborative Editing Systems”. This one is an hour long.

Google Wave is sure to see more than its share of hype, but there’s some elegant design behind it. I’ll be watching it closely to see if it can live up to its potential.

May 17 2007

Configuring Pidgin for Google Apps

Google’s instructions for configuring Pidgin with Google Talk have a broken link to instructions for using Google Apps with a corporate domain.

So here’s how I configured Pidgin to work with a corporate Google Apps account:

1. Select “Add/Edit” from the Accounts menu, then press the “Add” button.

2. Fill in fields on the basic tab.

  • Protocol: XMPP
  • Screen name: johndoe
  • Server: example.com
  • Resource: Home
  • Password: ********
  • Local alias: John

3. Fill in fields on the advanced tab.

  • [x] Force old (port 5223) SSL
  • [ ] Allow plaintext over unencrypted streams
  • Connect port: 5223
  • Connect server: talk.google.com
  • Proxy type: Use GNOME Proxy Settings

4. Press “Save”. Don’t “Register”, because your username should already be assigned.