Posts Tagged ‘lnorigb’

How do I love thee? Let me count the days.

Monday, February 8th, 2010

Lnorigb‘s been bugging me to give her a thing in her calendar that tells her what day number each of her projects is on, so that her blog entries can be accurate. I finally wrote up this crappy little python script to do it. Requires the icalendar python package (easy_install icalendar). I just set up a file like:

Towner
90
2009/11/18
2009/12/25
2010/01/01

Which tells my script to create an iCal event every day for 90 work days named “Towner, Day ##”, and don’t count Christmas or New Year’s day as work days.

Not shown is the bit at the end that uploads the resulting .ics file to a web server, which then allows Lnorigb to simply subscribe to it in iCal. So if I make any changes in the output, like skipped days, increasing or decreasing the total count, or just general improvements, her calendar will automatically reflect the changes.

This is isn’t the best code I ever wrote, but it gave me an excuse to put a syntax highlighting plugin on the blog. And it’s not like I’m expecting to have to do a lot of maintenance work on it. Of course now that I’ve said that, it’s obviously going to cause me grief for many years. Eventually I suppose it will need a full fledged scheduling application, complete with payment calculators for her workers based on facial recogonition of the posted pictures on her blog, auto-blog posting, twitter updates, a related facebook application, and RSS feed generators. All of the above will be driven by the nine million state version of the stupid little state machine parser at the top of the script.

Yeah, don’t write code you’re not willing to maintain.

(Code follows after the break.)

(more…)

Lnor says

Friday, January 30th, 2009

“I like turtle butt”

It’s official

Tuesday, December 2nd, 2008

It just didn’t feel real until Facebook was updated.

Too bad

Sunday, November 30th, 2008

That there aren’t more pretty things to look at in BC.

And the best for last.

Lnor says

Friday, October 31st, 2008

‘”Memoirs of a Teenage Amnesiac”? I don’t remember putting that on my wishlist.’

In the command center

Sunday, September 21st, 2008

Launch missiles!

Morning People

Wednesday, August 6th, 2008

I have never thought of myself as a morning person. But lately, compared to Lnor and Egg, I am Betty Fracking Crocker.
Next on rumsey.org: Artichoke pancakes the whole family will love!

See what I mean?

Monday, June 16th, 2008

photo.jpg

You’re a silly goose, Lnor

Sunday, June 15th, 2008

But I love you anyway.

photo.jpg

I’m a TV Star

Thursday, April 24th, 2008

Or at least the back of my head is. I’m in there, front and center, right behind Paul’s stalkergroupie (lnor) and her mom.

Things I learned at this taping:

  • Getting all monitors to display everything in the correct aspect ratio all the time is so difficult that even a major network television show can’t get it right. Before the show they had an old episode playing on the widescreen studio monitors, and parts of it were squashed vertically.
  • Jimmy Kimmel “Live” is so not live that they taped another musical performance from The Swell Season the night we were there, and it doesn’t air until Friday.