|Think about Loose Coupling|
XP watching on OS Xby jimt (Chaplain)
|on Sep 28, 2006 at 17:13 UTC||Need Help??|
You know you love your XP1. I love mine. I cherish it dearly. Nourish it, sing to it, play with it. People say it's unimportant. They say it doesn't matter. They say I shouldn't care. Fools. They never listen to me when I tell them it's important. Never listen. So I'll teach them, I'll teach them all. They'll see. They'll see.
Monks is that you? Lord knows it's me. Assign me some arbitrary number and tell me what little hoops to jump through to make it go up and lordy, I am there. Surely, I'm not alone.
But who has the time to constantly monitor their XP? We're talking about opening up a browser (if one isn't already open), typing in a URL (unless it's bookmarked), and then waiting an excruciating amount of time for a reply to finally know if your cool new node about using perl for spying on your neighbor's dog has gone up. Who has the time? I sure don't.
Now, you fancy winders users have your XPFixation -- The Essential Windows XP Whoring Tool. Or you have your xluke_repwalker.pl or your RSS Feeds For XP Whores And Stats Junkies or http://tinymicros.com/pm/ or your xstatswhore.pl, I think all of which are thanks to our friends at Twitching Monks Software Productions.
But there are downsides, oh yes. XPFixation is Windows only. The other ones require commands and executing and stuff. And I ask you - if I can't take the time to open my browser, how can you think I can take the time to type in a command somewhere? Hmmm? Answer me that one, smart guy.
So what are us statistically inclined Macintosh loving MacOS X users to do? Why, we'll now use PM XP Junkie, of course! Fire it up, and a cute little number pops up in your menu bar, constantly reminding you of and taunting you about your XP level. Your XP goes up? The number goes up! Nice and simple. Always there, always watching, so comforting...soothing.
Source is included, but it's 88.6% objective-c. Alas, camelbones doesn't seem to allow me to create an NSStatusItem, at least not a visible one, unless I screwed something up. A request is in to the author, but I just couldn't wait that long. Internally, there's an itty bitty perl script that grabs your total XP out of the XML feed sugested by jdporter below. You can even run that one on the command line, if you're some user of a lesser OS.
Why, literally as I sit here typing this, it just went up by 1. Joy!
What whizbang features are going to go in there next?
No clue. Maybe I'll replace the primitive little scraper that just gets your level with something more elaborate that gets all node changes. But that requires additional, you know, effort.
What about using one of the existing perl XP scripts?
Maybe I'll do that, too. I didn't bother to look and see if such a thing existed until very late in the game, since it absolutely had to be written yesterday (Oh god!), and by that point I was just too lazy.
Can I just swap in a different fetcher script?
Please do. All source code is included. Distributed under the Artistic License.
But what about insert name of existing XP monitoring tool on OS X?
Clearly, I couldn't find it.
I've got a blue screen of death. What do I do now?
You're monitoring the wrong kind of XP.
What's that URL, again?
1that's "experience points", not "backasswards OS"