code logs -> 2008 -> Sat, 15 Mar 2008< code.20080314.log - code.20080316.log >
--- Log opened Sat Mar 15 00:00:04 2008
00:03 * McMartin figures out how to get MD5 checksums for "free" in Java.
00:03
<@McMartin>
I knew it had to be in there somewhere.
00:20
<@gnolam>
Oh?
00:20
<@McMartin>
java.security.MessageDigest.getInstance("MD5").digest(buf)
00:21
<@McMartin>
Takes and returns a byte array.
00:21
<@McMartin>
So, uh, I had to wrap that in about 45 lines of other code so that it could take a File and return a String.
00:21
<@gnolam>
It's Java. There's 44 lines of boilerplate in every class. ;-)
00:22
<@McMartin>
Well, I really can't bring myself to call the 10-line function that actually does a byte-array-to-hex-string conversion "boilerplate".
00:22
<@McMartin>
http://www.stanford.edu/~mcmartin/misc/MD5.java
00:23
<@McMartin>
Run as a main program its output should basically duplicate md5sum's.
00:25
<@McMartin>
Not the greatest API there either, but whatever. Once I actually need to incorporate it I can give it a more consistent return type.
00:27
<@McMartin>
And it should also have the Obnoxious Chain of Overloads.
00:35
<@McMartin>
There. That version is more likely to be embeddable (after being stuffed into a suitable package).
00:48 gnolam [lenin@85.8.5.ns-20483] has quit [Quit: Z?]
01:57
<@ToxicFrog>
Anyone know if there's an existing command to hardlink an entire directory tree?
03:39 JeffL [JPL@Nightstar-12251.dsl.sndg02.pacbell.net] has quit [Ping Timeout]
05:02
<@McMartin>
ln won't?
05:05 You're now known as TheWatcher
05:10
<@ToxicFrog>
Nope. You can't make hardlinks to a directory, and it doesn't have a recursive mode.
06:22 You're now known as TheWatcher[afk]
06:24 Vornicus is now known as Vornicus-Latens
06:47 GeekSoldier|bed is now known as GeekSoldier
07:02 gnolam [lenin@85.8.5.ns-20483] has joined #Code
07:02 mode/#code [+o gnolam] by ChanServ
08:06 GeekSoldier [~Rob@Nightstar-10269.dip.t-dialin.net] has quit [Ping Timeout]
08:09 GeekSoldier [~Rob@Nightstar-8988.dip.t-dialin.net] has joined #code
08:11 AnnoDomini [AnnoDomini@83.21.0.ns-20506] has joined #Code
08:11 mode/#code [+o AnnoDomini] by ChanServ
09:10 AnnoDomini [AnnoDomini@83.21.0.ns-20506] has quit [Quit: The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? Ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting. The pig rattle. Rattle with dove. The dove angry. The pig leave. The dove produce. Produce is chicken wing. With wing bark. No Quack.]
09:12 AnnoDomini [AnnoDomini@83.21.0.ns-20506] has joined #Code
09:13 mode/#code [+o AnnoDomini] by ChanServ
09:42 Chalcedon [~Chalcedon@203.211.125.ns-2532] has quit [Quit: Gone]
12:19 AnnoDomini [AnnoDomini@83.21.0.ns-20506] has quit [Ping Timeout]
12:22 AnnoDomini [AnnoDomini@83.21.45.ns-4629] has joined #Code
12:22 mode/#code [+o AnnoDomini] by ChanServ
14:51 gnolam [lenin@85.8.5.ns-20483] has quit [Ping Timeout]
14:52 gnolam [lenin@85.8.5.ns-20483] has joined #Code
14:52 mode/#code [+o gnolam] by ChanServ
16:47 Vornicus-Latens is now known as Vornicus
17:39
<@gnolam>
Hey, Code::Blocks has a new stable version.
17:39
<@gnolam>
And the biggest version leap I've ever seen.
17:39
<@gnolam>
From 0.9.whatever to 8.02. :)
17:40
<@ToxicFrog>
o.O
19:45 GeekSoldier is now known as GeekSoldier|pub
21:48 gnolam [lenin@85.8.5.ns-20483] has quit [Quit: Z?]
21:57 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited]
21:57 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
21:57 mode/#code [+o ToxicFrog] by ChanServ
22:48 AnnoDomini [AnnoDomini@83.21.45.ns-4629] has quit [Quit: LotR books were written to justify a coup by the exiled royal house of Gondor, and a war against the so-called lesser races like orcs and Easterners. In reality, Mordor was trying to help Gondor defend itself from Rohan and Aragorn. Aragorn hired black hearted hobbits to sneak a nuclear bomb into Mordor, and the resulting explosion killed millions including the noble Sauron.]
--- Log closed Sun Mar 16 00:00:14 2008
code logs -> 2008 -> Sat, 15 Mar 2008< code.20080314.log - code.20080316.log >