March 2008

LifeType 1.2.7 released – March 31, 2008 (read more)

After a slightly hectic day yesterday, when I noticed some strange behavior on one of my servers, we released a new version of LifeType.  While I am not impressed that the bug existed in the first place, I think it is pretty neat that a development fixed was released within 4 hours of the bug being discovered, and an official release within 36 hours.  The last time we had a security issue, we released the fix in less than 24 hours, but it is harder on a Sunday.

The security issue itself wasn't all that interesting - we were checking a blacklist in a case-sensitive manner, and so filename.PHP was incorrectly allowed to be uploaded, and filename.php was correctly blocked.

Debian Installed Relatively Painlessly on my Sony Laptop – March 28, 2008 (read more)

I am sure this will excite many of our normal readers, but I have finally (after four years) switched my laptop to Linux.  Now that I am using it everyday, it is much nicer to be in this environment, instead of having putty windows all over the place.  Perhaps if I had a better window manager for windows, I would have been alright, but anyway...

I have a Sony PCG-V505DC2 for those search engines to help other folks trying to figure out any issues with installing Linux, and Debian specifically.

Note to Self – March 21, 2008 (read more)

When a customer says that he has a smaller project than the one I just did, don't pay attention, and think about the quote, rather than simply estimating the time as less than the previous project.

Yesterday, I did a project for a friend (one who let me have better access than average to the real estate listings) and it took an hour and a half and was 107 lines of code.  He wanted to pay for that one, but I thought it was a fair exchange for getting the real estate listing access.

Today, I did a "smaller" project, that was 367 lines of code, and it took 3.5 hours. Hrm.

Parcel ID parser – March 18, 2008 (read more)

I don't know if it is only relevant to Allegheny County or if it is more universal, but a friend asked me to write a parcel id (parcel/block/lot) parser to help him out in his real estate searches.  It was kind of a fun project (3 hours) and it was neat to see how well it worked out in the end.

It takes stuff on the right, and turns it into the stuff on the left:

0318-C-00080-0000-00 <= 318 C 080
0387-S-00002-0000-00 <= 387-S-2  387-M-148
0160-K-00013-0000-00 <= 0160-K-00013-0000-00
0124-P-00095-000A-00 <= 0124-p-00095-000a-00
1213-F-00377-0000-00 <= 1213F00377
0180-B-00041-0000-00 <= 0180-B-00041-0000-00
0495-F-00201-0000-00 <= Lot & Block 495-F-201
0009-S-00305-0000-00 <= 9-S-305
0309-D-00100-0000-00 <= 0309D00100000000

Code follows below: