Computers: I mentioned a while ago my screen has been flickering (on my '99 ThinkPad 600E). Today I got the second-hand replacement inverter in the mail, installed it, and it works! Cool! It's definately worth $45 to keep this thing limping along for the rest of the year.
Fun Fact: You know how you can have polygonal region of an image be clickable on a web page? For literally years I've wondered what algorithm is used to determine if the mouse is in the polygon or not. (I'd assumed it either involved drawing the region in a bitmap and testing pixels on it, or testing what sides of what lines the point was on something like that.)
It turns out it's done like this: Let the polygon be bounded by the points p_1, . . . , p_n, and suppose you click at point x. Take the sum of the angles: p_1,x,p_2 + p_2,x,p_3 +...+ p_n,x,p_1. If x is in the polygon, that sum will be 360 degrees (or more---a 5-pointed star, for example). If not, the sum will be zero. This is definately the coolest thing I've learned this week.
