July 03, 2003

Cluepackets and you

So last night while watching some Law and Order, I finished up a quick Java class which can send cluepackets which Dashboard can handle.

Basically, it's just a matter of opening a socket to a port and firing off some XML, nothing fancy. Here's Cluepacket.java if you find the need for it. I also put together CluepacketServer.java which just sits on port 5913, listens for connections, accepts them and spits out what you gave it. It's helpful for me since I did this on OS X and not my full-blown GNOME setup.

Here's an example of a cluepacket:


<cluepacket>
<frontend>Jericho</frontend>
<clue type="email" relevance="10">josh@stonecottage.com</clue>
<clue type="imname" relevance="10">lucasjosh</clue>
<clue type="url" relevance="10">http://www.stonecottage.com/josh/</clue>
</cluepacket>

It's a simple syntax. You give it the frontend app you are using and then various clues about data you know. So for example, I could add this to Jericho and send clues about keywords, people and URLs mentioned in posts. That could be a cool way to look for additional info on things.

Posted by Josh at July 3, 2003 08:47 AM | TrackBack
Comments
Post a comment