Pirnat.com

On second thought, let’s not go to Camelot; it is a silly place

Pirnat.com header image 2

V-V Day (Victory Over Valentines)

February 14th, 2006 by Mike
Gravatar

Well! Another February 14 draws to a close, and (luckily, thankfully) it’s been a very, very good one thus far.

On the work front: we weathered the storm with aplomb, our site never faltering under the onslaught of the greetings industry’s biggest day, while our competitors dropped like flies. W00t! A side benefit of today’s success is that David Stanek and I won’t look like idiots at PyCon next week when we promote the idea that Python plays nicely in the enterprise; the metaphorical egg is nowhere even close to our faces, and that’s a great feeling.

I wasn’t assigned to any particular monitoring shift today, so I had a few hours to tinker… and ended up cobbling together some Twisted magic to create an HTTP-to-AIM/IRC bot that would allow us to plug our monitoring scripts directly into our internal chatrooms. I had to fix a bug in Twisted’s Oscar library (for talking with AIM) in order to get it to work; hopefully the maintainer will accept my (very) simple patch. It’s working out well so far, so I think that as I get the chance, I’ll be cleaning it up and extending it to provide all kinds of other functionality for us. It should be pretty cool.

Meanwhile! Liz demonstrates her thorough and complete awesomeness yet again: first by dragging me to last night’s Spanish wine dinner at Mallorca, second by hooking me up with tasty Christmas ale and insanely good chocolates, third by picking up takeout dinner from Moosehead (mmm, wild buffalo rolls…), fourth for making sure I stay up to date on Dick Cheney’s Bogus Journey, and, above all else, for putting up with my deranged little self. This woman has the patience of a saint, not to mention smarts galore, and dare I say it–mad hotness!

Now the trick will be to get back into a normal rhythm after all the craziness…

Tags: current-events  food  holidays  liz  python  twisted  wine  work2 CommentsPrint This Post

Leave A Comment

2 responses so far ↓

  • 1 evilmonk Feb 14, 2006 at 10:43 pm Gravatar

    wait… monitoring scripts in internal chatrooms? huh?

  • 2 exilejedi Feb 15, 2006 at 10:08 am Gravatar

    Basically any time a monitoring script wants to talk to, eg, our techie “make sure the website doesn’t burn down” channel, it can use Python’s urllib module to make an HTTP request to the port that my Twisted bot was listening on; the bot then speaks the message into the requested chat streams, and everyone in the chat gets to ooh and ahh over how many ecards we’re sending, subscriptions people are buying, how much bandwidth we’re pushing around, etc.

    This allows our management to do things other than look at output from a program and type it into the chat manually. (In this respect, I think Twisted bots are the new “small shell script” with which we can threaten to replace people who cross us. ;-)