Hack mode has recently paid intermittent visits, after some time of dense inactivity on the computer front, being in a human oriented line of work since a month or two. It's a welcome change from the life I used to live, with both life and work in the geek community. Also, it was a welcome return to hobby hacking for the sheer fun of it. It's easy to forget how to have fun when you work with something for salary.
But enough about life. I've been playing Kingdom of Loathing for perhaps a quarter now, and while the joy of playing declines a bit once you have done all there is to do (it's a traditional mud, in an HTML suit, without wizards but with a healthy twisted humour, both linguistically and graphically) I seem to stick to my gaming tradition of finding other stimulating ways of expanding gameplay.
The past week or so, I've been hacking about at little more or less helpful scriptlets (okay, I think the term that won the audience was bookmarklets, but I prefer the shorter term) to do this or that more conveniently. Such as repeating an action for a number of times, which was my first stab at making boring manual labour go away.
Next in line, I made a useless hack or two (this one, for instance, will use some default item in combat, like the dictionary or the meat vortex similarly), and then I helped out a few friendly people in the clan (can a multiplayer game be without them?) with boring tasks, too.
Yesterday, as randomness had it, I advanced to something a bit more complex than the mere repeated form submittal or URL loading, in putting together a hack to search out users in a roster. I got something rather crude working after a full three hours of work, most of it lost in trial and error hacking trying to figure out ways of doing load event callback oriented triggering of the next pageload. I was too absent-minded and tired to actually get something along those lines working though, until this morning, when I gave it another stab. With a helpful hint from Andreas Lange about cooking a frameset around the page to load, and give the frameset an onLoad property that will invoke a callback, I got it to work the way I intended from the very beginning.
Almost the same joy as a few weeks ago, when I took down one of the fairly long outstanding bugs in AIDO (with very abundant help from Per) where metadata would get out of sync between the local medialibrary (where it broke) and the metaserver, upon joining productions. Nailing that misfeature really made my day, or night, as it were. ...I wonder when we'll see the next AIDO hack session; it's been a while again, now.
Not that there's anything wrong about that particular system -- it's obviously great for doing these things when you can inject the code into the pages themselves (tried that, quite successfully) -- but I would have been glad to see it work if I set the listener to trig on load on a frame I posted a form in. But no such luck today.
I did, however, engross myself in the joyful study of a few sites covering scriptlets (nodding recognition for most techniques I had already found myself, except perhaps the space conservatory technique of putting the pascalesque with(object) syntax to good use which was not covered), event models (great thoroughness and clarity) and, mostly by chance, the Friend of a Friend project.
That actually surprised me somewhat -- the Semantic Web finally being put to some luser appealing purpose. Luser, here, referring to anyone not drooling about the wide prospects and dazzling possibilities offered by RDF, OWL, inference engines and XML Namespaces. That is to say, most of us. My ex employer, the easily loved Uwe Aßmann, was not one of these lusers. Unfortunately (well -- I'm not very sad, to be quite honest, but then I wasn't converted, so that opinion falls short) he did not happen to convey the glory of it to me, at the time; I mostly saw all the Really Hairy muck Martin and Leif were battling with, in making Pike the first scripting language of the Semantic Web. To make a long story shorter, I think the FOAF project, once it gathers some steam, might actually do the SWEB people more good than anything else they have mustered to date. For kicks, I made my own FOAF entry.
But truth be told, RDF still looks thoroughly dreadful. It won't ever (or at least I so hope it won't) be the hand tweaked mess HTML became. Perhaps that is actually a good thing.