Archive for the 'random thoughts' Category

Published by Brian Slezak on 20 Feb 2008

Lunar Eclipses … and Taxes

Yeah, so I’m sitting here watching the lunar eclipse, and I decide to jump online to find how long the moon is eclipsed. I hit google and type “lunar eclipse.” The first couple of hits, nasa and, seem to be down as they time out. Ha! Then my eye catches something about taxes. Wait huh? (See image below.)

Umm … isn’t this almost a black-hat strategy? Maybe Google was on to this pretty quickly, as when I clicked on the link it wouldn’t pull up the site but only refresh the page. 🙁

Published by Brian Slezak on 11 Feb 2008

TSA say "Lithium Batteries – Bad!"

So I’m sitting at home this evening and my wife is ranting about travel limitations. Her parents are traveling internationally, and they just discovered that the brand new luggage we bought for them is over the size limit. Great. We’re returning that to the store. 🙁

She also tells me they don’t like lithium batteries now. ??? I quickly pull up and sure enough this is a change as of January 1, effective on checked baggage only. So make sure you put your “spare” lithium batteries in your carry-on. Gotta keep you on your toes right?

BTW, something I didn’t know previously was TSA sets the rules for carry-on, and the airline sets the rules for checked luggage. Be sure you check the right place for the right restriction.

Published by Brian Slezak on 01 Mar 2007


I just spent all day yesterday, along with a co-worker, tracking down one of the more heinous time calculation bugs I’ve ever seen. If you’re a programmer, you probably already know about the Daylight Savings Time change that is occurring in this year of 2007. This is sending a shock wave of problems through the IT industry on a scale of which we probably haven’t seen since Y2k. Everyone is having to update code that calculates when DST begins and ends.

In short, Microsoft is either in a very tight spot, or they screwed up big time. With the new calculation of DST, any year previous to 2007 now has the potential to show the wrong time! Here is a quick example.

This page is using JavaScript within the viewers browser to calculate dates. You will notice that if you are viewing this page from Vista, or a Linux based OS, that all the dates are displayed as expected. If you’re on a Windows XP or earlier OS, the middle two dates will show as being in DST when they should not be:

Wed Mar 15 00:00:00 CDT 2006 <- Um, not quite yet actually. CDT doesn’t start until April 02, 2006 02:00.

This is because MS OS’ previous to Vista can only store one set of DST rules. So when you installed that cool new patch that fixes 2007 and future dates, you break every year previous to it. Nice. Granted this only crops up in past dates between the previous DST starting time, and the new one. I.e. between 2007 and 2006, this is between March 11 and April 2. See another conversation on this.

This is going to cause problems until it is fixed. Hopefully MS can get us something quickly, but depending on how deeply the OS is affected by this – they could have a serious issue on their hands.

« Prev