a glob of nerdishness

February 8, 2008

Age algorithm

written by natevw @ 12:00 am

I think I’ve figured out an easy way to keep track of my age through the coming journey. All I need to do is subtract year_born from year_current.

You’re smacking your forehead because they’ve been teaching this in school since way before year_born. Well, the school method of figuring age out involves annoying trifles like “have I had a birthday this year?”. I haven’t practiced answering that question enough to be very good at it; growing up, I just knew how old I was because it was somehow important. Not anymore.

I think my simplification will serve me well in the coming years. Since I don’t usually mentally increment year_current until about February anyway, my method has a good chance of being right without needing any conditional branches.

September 12, 2007

A link to JPEG compression explained in some depth, but with light still reaching the bottom so as to not be too scary.

written by natevw @ 6:02 am

Via Jeff Atwood, “an excellent visual explanation of how JPEG works“. Includes both JPEG and JPEG 2000, with an emphasis on explaining the algorithms well.

January 21, 2007

Well, that’s just annoying…

written by hjon @ 1:03 pm

Ok, I’ll admit I don’t know much about this, so I don’t entirely know how critical this is, but apparently SHA-1 has been cracked:

Blogged with Flock