Archive for August, 2007

Please no more Red Book CDs

Wednesday, August 22nd, 2007

The Red Book standard defined how audio was to be encoded on a CD, and it was great for 1980, but it, well, kinda sucks now.
1. The error correction is too minimal to withstand real-world abuse (cars, friends, etc.).
2. Tracking is pretty loose, and a lot of players have trouble seeking to the exact beginning [...]

Robot pucks will destroy man

Thursday, August 16th, 2007

Really cool technology with video.

Average direction in SQL

Wednesday, August 15th, 2007

Given a column of polar directions in degrees, this is a single SQL expression to compute their average, for use in a GROUP BY query. Some functions may be MySQL-specific.
IF(DEGREES(ATAN2(
-AVG(SIN(RADIANS(direction_deg)))
,-AVG(COS(RADIANS(direction_deg))))
) < 180
[...]