Saturday, 19 March 2011

Snark du jour

An acquaintance asks about procmail, the mail sorting program that nerds have been using, almost unmodified, since 1990:

And why isn't there a WYSIWYG version of procmail if it is so good?

More or less the same reason you can't get training wheels for a Harley.

Thursday, 27 January 2011

Book club: Nineteenth St NW, by Rex Ghosh

The first in an occasional series, with the occasion being that I finish reading a book.
Nineteenth Street NW, a financial thriller by Rex Ghosh, an economist at the IMF. There's a rule of thumb in the book biz that the cover blurbs on good books are reviews of the book by real reviewers, on so-so books are reviews of the author's previous books, and on bad books are by the author's friends. This book's blurbs are by Simon Johnson and Paul Volcker. Uh, oh.

Friday, 21 January 2011

A history of copy-on-write memory management

In virtual memory operating systems, copy on write (COW) is a well known technique to save time and space. The idea is that several processes have logically separate writable pages of data that happen to have the same contents, because they were initialized from the same source. So long as nobody writes into a page, all the processes can share the same copy. If a process does write into it, the operating system makes a separate copy of the the changed page. The best known application for COW is the Unix fork() primitive, although it also is useful for writable program data that is initialized from a file, a common situation in modern operating systems with shared libraries.

Tuesday, 11 January 2011

Can a state go bankrupt?

The Constitution says that the Congress can enact bankruptcy laws, but it doesn't say it can apply those laws to the states.

Monday, 20 December 2010

Should I buy an electric car?

I have a largely unreasonable yearning for a cool new electric car.

I'd think I'd be a reasonable candidate. The majority of our car trips are down to Ithaca and back, which is about 10 miles each way, so a car with a 50 mile range would be quite adequate. We have half price power at night when I'd be recharging it. We have another car (well, three, actually, including my wife's 1995 pickup, but we'd rationalize) for longer trips.

There's now a standard charger called a J1772, so the charger installation is the same for any of them.

So here's what I think the near term options are. I think the Leaf looks most attractive.

Thursday, 9 December 2010

Battered Leader Syndrome

From Wikipedia: ``a person ... becomes depressed and unable to take any independent action that would allow him or her to escape the abuse. The condition explains why abused people often do not seek assistance from others, fight their abuser, or leave the abusive situation. Sufferers have low self-esteem, and often believe that the abuse is their fault. Such persons usually refuse to press criminal charges against their abuser, and refuse all offers of help, often becoming aggressive or abusive to others who attempt to offer assistance. Often sufferers will even seek out their very abuser for comfort shortly after an incident of abuse.''

On tax cuts for millionaires: “This is the public-option debate all over again,” Mr. Obama complained, adding: “Now, if that’s the standard by which we are measuring success or core principles, then, let’s face it, we will never get anything done. People will have the satisfaction of having a purist position and no victories for the American people. And we will be able to feel good about ourselves and sanctimonious about how pure our intentions are and how tough we are, and in the meantime, the American people are still seeing themselves not able to get health insurance because of pre-existing condition, or not being able to pay their bills because their unemployment insurance ran out.”

Tuesday, 7 December 2010

Where'd that deal come from?

I read a Salon article that points out that the best predictor of whether a president gets a second term is the state of the economy, so this whole negotiation has been a clever ruse to pass a StimPak II and to try and perk things up by 2012.  While this does fit the facts pretty well, it assumes a level of economic understanding by the administration that has not so far been apparent. So it might just be doing mostly the right thing for the wrong reason.