Ghosts in DTubes

I’ve been playing around with an idea for a few weeks. It’s evolved into something that I can actually hack on. The idea solves two problems

  • sharing my photos with my wife, and
  • to select only a subset of my files on my netbook.

It may be complete UI-crack, but you’ll be the judge of that.

A ghost is a set of metadata about a file. For example, a photo has a thumbnail and a set of tags. I can download all the meta-data for my wife’s photo collection onto my laptop. Ghosts are represented graphically in some manner. For example, in the F-Spot UI ghosts of my wife’s photos could show up in greyscale at 50% transparency. You can imagine a similar UI for music files in rhythmbox. I imagine the actual files, that the ghosts represent, are downloaded on-demand by me. This solves my netbook probem (a problem I call “the subset problem”) by allowing me to easily download images and music to my netbook from my laptop.

Both of these problems can be solved by putting a server between me and my wife. But life’s too short for that. And there’s an existing set of cool technologies in Gnome which can be used to implement a p2p(ish) solution.

Maybe I’m not great at explaining the high-level stuff. If you don’t have a wife it may be difficult to understand that her photo collection and mine are actually the same collection. We just use our laptops to “interface” with the collection. We could use a site like Flickr to combine our collection. However, Flickr doesn’t allow me to share gigs of data. And the upload/download bandwidth is generally slower than our LAN speeds that we would achieve when we’re both on our home network. Also, if you don’t have a netbook it’s hard to understand what I’m talking about. Sometimes I’ll want to travel home to my parents and bring my netbook with only photos of my son and some Bach to listen to on the journey. I can’t fit my entire photo collection and music collection on the netbook.

Anyway…the solution currently passes Ghosts (only F-Spot photos at the moment) over a DTube. A DTube can be opened between two XMPP users (think Jabber or Google Talk) and you can pass arbitrary DBus objects over it. I’ve implemented Alice who shares her photo collection with the Hatter. The Hatter has a very crude Clutter based presentation of the Ghosts. The code is at the experimental-proof-of-concept stage. I’m now wondering how to further this. Should I implement a “ghost://” GVFS backend?

Code is here. It’s not pretty, and you’ll have to change the jabber id’s in the source. Helping to put the Network back into GNOME, one idea at a time :)

2 Responses to “Ghosts in DTubes”

  1. asher says:

    Sounds a cool tool. Wish it was ready to run on Windows :-)

  2. balor says:

    The underlying technologies all work on Windows. So once we have something stable I’ll provide a Windows port. The usual caveats apply though; if you’re using an existing photo collection management tool that doesn’t let you have access to the database then you’ll have to ask your provider for a tool that does similar. Some companies won’t comply because either (a) you don’t matter, or (b) it would undercut their business model. This is why I think open source has better long-term value. Firstly, you own all your data and secondly you’re always in a position to take advantage of new technologies without getting the permission/development time from the original provider.

Leave a Reply