« August 2007 | Main | October 2007 »

September 26, 2007

Amazon MP3 Store

Too late for Talk Like A Pirate Day, Amazon recently unleased their MP3 store, as well covered by Ars Technica:

There are a few restrictions. One of the biggest is that there's no redownloading of tracks; you'd better make a backup, because if you lose a song, you'll have to purchase it again to get another copy.

Spotty selection, especially in the esoteric (and not so esoteric) classical section, though much of that has to do with music labels refusing MP3 sales. Went on a mostly Beethoven spree, having somehow never added the Diabelli Variations nor Missa Solemnis to my collection.

September 22, 2007

Killer Cars II

Another air pollution study, another way for cars to kill:

Northwestern researchers have discovered that this microscopic air pollution—smaller than 10 microns or less than one-tenth of the diameter of a human hair—spurs hyperclotting of the blood.
The risk of dying from a heart attack or ischemic stroke jumps a whopping 30 percent with each additional 10 micrograms of pollution.
The doctors also warned that heart attacks and strokes occur at relatively low levels of particulate matter pollution. “We haven’t found a safe level yet,” Mutlu said. He hopes the study helps encourages the EPA and local regulators to reduce the limits on particulate matter levels.

September 21, 2007

Große Fuge

Now greatly enjoy Beethoven’s Große Fuge. Several years ago, rated an Alban Berg Quartet rendition as average. Did same for the Emerson String Quartet playing. Alex Ross’s Beethoven’s Grosse Fuge by way of Wikipedia lead me to the superb Takács Quartet rendition (available on Rhapsody for those on a shoestring budget).

Works by Ligeti and Rochberg perhaps improved my estimation of the Große Fuge. However! Now must relearn the Quartets and the different renditions…

Technorati Tags:

September 17, 2007

Dinner Guests

September 14, 2007

More Random Fun

Nothing beats a workday like a failure in your computer!

Windows-Security

The world would be a better place if Outlook was denied all network access. Other random thoughts about Windows: Business Ugly. Inevitably Busy Multitasking.

And, to conclude, Understanding Geeky References & Related Source Material.

September 11, 2007

Chess Pins

Chess has two types of pins, absolute when a piece is pinned to the King, and soft (or relative) when a piece is pinned to something of higher value, such as a Queen or Rook behind a Knight. Soft pins can be broken. On the previous move, Black moved Bg4, creating a pin on the Knight and Queen. White to move:

FEN rn1qkb1r/pp2pppp/2p2n2/8/2B3b1/2N2N2/PPPP1PPP/R1BQ1RK1 w kq - 2 7

Technorati Tags:

A clever response is Ne5, exposing the Queen to the attacking Bishop. Black must not take the Queen, as otherwise White wins: Bxf7# checkmate. Instead, Black must resolve the mate-in-1 threat, probably by retreating the g4 Bishop to e7. This allows White to exchange Bishops, and leaves Black with double isolated pawns on the e-file.

September 10, 2007

Random Perl Links

Technorati Tags:

September 08, 2007

Burke-Gilman

Friend now lives near North end of Lake Washington, so taking the Burke-Gilman to and from there. This is a nice 12 mile trip, except for the death-roller-right-of-ways across the trail, and the bumps from roots that also now run across the trail. By night, not so good, as the insane lighting from the nearby roads and housing drowns out night vision, and the trail is otherwise dark. Passive reflective strips to follow and laws against nighttime light pollution would make the trip easier, save huge amounts of power, and provide better sleep to Seattle residents.

Amusingly, certain intersections on the Burke-Gilman now have multiple flashing stop signs (as subtle and effective as <blink>) where the Powers That Be desire cyclists to stop. Realistically, police would need to be stationed at each of these intersections, just as they must pull over cars on 3rd avenue downtown.

Recently discovered wool cycling jerseys, and like them far more than the plastic that passes for clothing these days.

Technorati Tags:

September 02, 2007

sed does not support \n

Only some modern variants of sed support \n and other useful features. A traditional sed(1) (as still preserved on OpenBSD) does not support -i “in-place editing” nor even \n. These versions require a literal newline be inserted into the command line or script:

$ echo aaa | sed 's/a/\n/g' nnn $ echo aaa | sed 's/a/\\n/g' \n\n\n $ echo aaa | sed 's/a/\ /g' | od -bc 0000000 012 012 012 012 \n \n \n \n 0000004

Tim Maher in Minimal Perl discusses the evolution of sed and awk, including command line features stolen from Perl, such as \n support.

Technorati Tags: , ,

For reference, the Mac OS X sed uses FreeBSD extensions:

STANDARDS The sed utility is expected to be a superset of the IEEE Std 1003.2 (``POSIX.2'') specification. The -E, -a and -i options are non-standard FreeBSD extensions and may not be available on other operating systems.

But does not support \n except as a literal newline:

$ echo aaa | sed 's/a/\n/g' nnn $ echo aaa | sed 's/a/\ /g' | od -bc 0000000 012 012 012 012 \n \n \n \n 0000004

For fun, here’s a perl snippet that converts \n or other escapes into literal characters:

$ echo -n '\n\n\n' \ | perl -pe 's/(\\.)/qq("$1")/eeg' \ | od -bc 0000000 012 012 012 \n \n \n 0000003

… and knowing is ⅛ the battle.

Windmill Attack

Windmill attacks are rare in chess, though once the opposing King is trapped into a check-revealcheck-check cycle, much damage can be inflicted. White to move.

Chess-Windmill-Attack

FEN 2kr3r/1pp3pp/4p3/Bb2p3/4B3/q4N2/5PPP/2RQ1RK1 w - - 0 1

Rxc7+ and then Rxb7+ begins the attack. The Black King must retreat to a8, or face a quick mate by the White Queen. See thrig vs. pjcreese (2007) for the complete game. (The computer pointed out a much faster mate-in-seven that also begins with the Rook attack.)

A classic example of a windmill attack is Torre vs. Lasker (1925).