Saturday, August 08, 2009

Friday, August 07, 2009

SFO breakfast receipts (en route to EWR)

Spot the funny.

How destructive was Ozymandias's bomb in Watchmen (the movie)?

Attention conservation notice: nitpicky analysis of a detail that you probably don't care about, from some comic book movie.

Finally saw Watchmen on video (missed it in theaters). I noticed something curious about the final explosion. It is clearly centered on Times Square, and produces a perfectly spherical blast; but in a later shot, the Empire State Building is not only standing but largely intact.

From this, we can infer that the explosion's radius of destruction was less than a dozen or so north/south blocks.


View Larger Map

This got me thinking: how big is this explosion, compared to an actual nuclear bomb blast?

According to HYDESim, a 25-kiloton nuclear weapon detonated at Times Square would exert just enough overpressure at the Empire State Building site to demolish a concrete skyscraper. For comparison, according to the the carloslabs.com Ground Zero simulator, the "Little Boy" nuclear weapon detonated over Hiroshima sixty-four years ago was 15 kilotons; if detonated over Times Square, it would have blown the windows out of the Empire State Building, but the structure would probably not be knocked down.

So Ozymandias's bombs appear to create a pressure blast about as powerful as that from the atomic bombs dropped on Japan in World War II.

The nuclear weapons possessed by the U.S. and U.S.S.R. in the 1980's were, of course, vastly more destructive, on the order of hundreds of kilotons; and would have been delivered as batches of multiple simultaneous warheads.

Wikimedia Commons image by U.S. Army; source

Now, regarding Ozymandias's bombs, it's possible that radiation killed many people outside the direct blast radius. But there's no indication in the movie that Dr. Manhattan's electromagnetic emissions are harmful to human life. In my opinion, if one takes the movie strictly on its own terms, Ozymandias has been careful to engineer a relatively small mass-destruction event: only on the scale of a small fission bomb.

Of course, step outside of the movie's fiction, and it seems equally likely that director Zach Snyder simply assumed that most viewers would not be too familiar with the geography of New York. So he had Ozymandias set off the bomb in Times Square, because it's instantly recognizable, and then he left the Empire State Building standing so that viewers would recognize it instantly in the aftermath shot.

Wednesday, August 05, 2009

ibuffer: If you do not use it, you are insane (Wednesday emacs blogging)

In short, use ibuffer, now; the relevant .emacs magic:

(global-set-key (kbd "C-x C-b") 'ibuffer)
(autoload 'ibuffer "ibuffer" "List buffers." t)

This is so much better than the regular buffer list it's not even funny. The first thing you'll notice is font-lock colorization (welcome to the 21st century!); but the killer feature is the wealth of buffer management keyboard shortcuts. On your first trip to ibuffer, you'll want to spend a little time reading through C-h b to learn the keyboard bindings; a small sample of just the marking functions:

% f     ibuffer-mark-by-file-name-regexp
% m     ibuffer-mark-by-mode-regexp
% n     ibuffer-mark-by-name-regexp

* *     ibuffer-unmark-all
* /     ibuffer-mark-dired-buffers
* M     ibuffer-mark-by-mode
* e     ibuffer-mark-dissociated-buffers
* h     ibuffer-mark-help-buffers
* m     ibuffer-mark-modified-buffers
* r     ibuffer-mark-read-only-buffers
* s     ibuffer-mark-special-buffers
* u     ibuffer-mark-unsaved-buffers
* z     ibuffer-mark-compressed-file-buffers

Once you start chaining these together, you'll wonder how you ever got along without them. For example, I commonly do * s * r t D y: mark all "special buffers" (*shell*, *scratch*, etc.); mark all read-only buffers; toggle marks (marking ordinary read-write buffers); delete marked buffers; confirm. This is handy since I often work on projects via multiple emacs instances, switching between an X11 emacs instance and a tty instance running under screen. When I switch, I want to close all the files I have open for editing (even if there are no unsaved changes), but leave *shell* and dired buffers alone.

Buffer management has historically been a real bottleneck in emacs productivity. Unlike most IDEs, emacs makes it trivial to have dozens or hundreds of buffers open simultaneously. This works great, except that working with all these buffers can become troublesome. For example, to switch to a buffer, you typically C-x b and type-complete the name; but when you have a half-dozen dired buffers all named client, it gets hard to remember whether the one you wanted was client<2> or client<5>. And, of course, the C-[left click] buffer list gets ridiculous with many buffers — you might as well be using Eclipse or something. ibuffer doesn't completely solve all these problems, but it certainly mitigates them.

Tuesday, August 04, 2009

The puzzle of American yogurt...

...is this: Every national cuisine has a vernacular yogurt which is superior to American yogurt.

Think about it. Greek*, Indian, Swiss, Korean (n.b. many Koreans are lactose intolerant!), the list goes on: all better than American yogurt. And I'm not talking about handmade "artisanal" yogurt; this is all mass-produced stuff.

Now, of course, in our globalized world, one can obtain foreign yogurts for pretty reasonable prices, so it's not like I'm suffering here. What I want to know is: who keeps Dannon in business? Haven't they noticed that American yogurt has the unappetizing consistency of snot, and is also excessively sour, which the manufacturer typically tries to cover up (clumsily, unsuccessfully) with excessive sugary flavoring? Or do people just not know any better?

Or maybe it's just the advertising.


*My poison of choice: Fage 2% + fresh pineapple chunks. This may be the only vaguely healthy foodstuff which actually makes me feel satiated when I eat it after exercise.