We should forget about small efficiencies — Donald Knuth
11 Aug
Mozilla Firefox 2.0b1 Branch builds (20060811)
Sepecial Check-in
Known Issues
Popularity: 8% [?]
11 Aug
What’s New
Known Issues
Mozilla Thunderbird 1.5.0.5 Release en_US (20060810)
Popularity: 20% [?]
11 Aug
11 Aug
Although mordem md5sum(1) of coreutils in Linux can acknowledge the md5sum of FreeBSD format, I still want to convert FreeBSD format to Linux one via python. Here is original file:
md5sum generated by md5(1) of FreeBSD
MD5 (Thunderbird-1.5.0.4.exe) = 3b862cd35571ecec3de5e34112bf3f15
MD5 (Thunderbird-1.5.0.5.exe) = 3b93bd5529e2a81054514f57dc4b3916
And I want to convert to:
md5sum generated by md5sum(1) of Linux
3b862cd35571ecec3de5e34112bf3f15 Thunderbird-1.5.0.4.exe
3b93bd5529e2a81054514f57dc4b3916 Thunderbird-1.5.0.5.exe
The sample code is quite simple:
# Open file named md5sum.txt
hFile = open ("md5sum.txt", "rU")
# Read whole content into a List file handle
aListLines = [szLine for szLine in hFile]
# Loading completed, then close file handle
hFile.close()
# Reset output list
aListOutputLines = []
# Process each line one by one
for szLine in aListLines:
....# split 'szFile = szHash' by three charactes of ' = '
....szFile, szHash = szLine.split(' = ')
....# Strip what we don't need and add two characters of space
....aListOutputLines.append(szHash.rstrip('\n') \
........+ ' ' * 2 \
........+ szFile.lstrip('MD5 (').rstrip(')'))
# Now aListOutputLines is final result, hence we open file to write next
hFile = open("md5sum.txt.new", "w")
# Process each line one by one
for szLine in aListOutputLines:
....hFile.write("%s\n" % szLine)
# Closing a handle is a good habit, it's unnecessary though
hFile.close()
It’s all ;-)
By the way, the meaning of open (”md5sum.txt”, “rU”) is called open file with Universal Newline.
Popularity: 16% [?]
10 Aug
Sun Should Use apt, from Jeremy Zawodny’s blog.
Apt-get is just so unreasonably fucking great. Why aren’t we using it for Solaris updates?
I can’t agree more ;-)
By the way, Zawodny is currently leaning toward Python.
I’ve been programming (when I do program) mainly in Perl for the last 10 years or so. But I’ve been itching to learn a new language for a while now, and the two near the top of the list are Ruby and Python.
I figure that Ruby would be easy to learn because of its similarity to Perl (I’m told). But I also figure that Python would be easy to learn because of its simplicity. And when it comes to webby stuff, I can use Rails with Ruby and Django with Python.
Yahoo! has Python Developer Center on the Yahoo! Developer Network as well.
Popularity: 16% [?]
10 Aug
Andrew Moves To Google, from KernelTrap.
With the release of the 2.6.18-rc3-mm1 kernel, Andrew Morton, a Linux kernel developer to maintain a patchset known as the -mm tree, has taken a position with Google in August of 2006.
Popularity: 19% [?]
9 Aug
Insanely obsessive ultra realistic vector art, from BoingBoing.

Here’s a gallery featuring artists who use Adobe Illustrator to create extremely realistic drawings that look like photographs.
Popularity: 11% [?]