Fun

Making Meals in a Rice Cooker

Hmm, I don’t like making rice and I’m certainly not as vested in it as some (aka F). Perhaps I should try this:
From Making Meals in a Rice Cooker

Shabnam Rezaei, an editor and producer, who grew up in Tehran in
the 1970s and now lives in New York and Vancouver, said that a fundamental
expectation for women in Iran is the ability to make tender, fluffy rice. “There
are all kinds of jokes in Farsi about how women must keep their eyes on the rice
pot or they will not find a husband,” she said. Making Persian rice correctly
requires the cook to rinse and soak the grains, parboil them, dump them out, oil
the pot, put the rice back and steam it, covered with a towel, until tender and
surrounded by a golden crust on the bottom and sides called the tahdig.
It is perhaps not surprising that rice cookers, with a built-in tahdig function,
have become standard in Iran. In a culture where rice is so important, such a
staple, she said, the rice cooker can bring a kind of liberation for women.

Technology

Version Control

Some notes on various version control tools:

  • Buildbot: http://buildbot.net/trac offers a way to build and test multiple repositories. Support mercurial
  • Mercurial supports a forrest of repositories. You can have a repository that contains other repositories. That makes it easier to compose complex system. It’s not clear whether Forrest, Nested Repositories, or just being able to ignore a .hg directory is the route to go.
  • Nice tutorial on using mercurial
  • Linux and Windows diff tool
  • Mac OS X diff tool
Technology

What I’m reading

I started reading “Working Effectively with Legacy Code”.  Here’s a great quote:

In poorly structured code the move from figuring things out to making changes feels like jumping off a cliff to avoid a tiger. You hesitate and hesitate. “Am I ready to do it? Well, I guess I have to.
Avoiding change has other bad consequences. When people don’t make changes often they get rusty at it. Breaking down a big class into pieces can be pretty involved work unless you do it a couple of times a week. When you do, it becomes routine. You get better at figuring out what can break and what can’t, and it is much easier to do. The last consequence of avoiding change is fear. Unfortunately, many teams live with incredible fear of change and it gets worse every day. Often they aren’t aware of how much fear they have until they learn better techniques and the fear starts to fade away.

News · Politics

SEC more responsible for crisis

So the SEC in 2004 gave 5 firms an alternative rule to operate under, basically
loosening the standards. Guess what happened? Ah, the joys of a Republican
administration.
[Ex-SEC Official Blames Agency for Blow-Up of Broker-Dealers](http://www.nysun.com/business/ex-sec-official-blames-agency-for-blow-up/86130/)

The SEC allowed five firms the three that have collapsed plus
Goldman Sachs and Morgan Stanley to more than double the leverage they were
allowed to keep on their balance sheets and remove discounts that had been
applied to the assets they had been required to keep to protect them from
defaults.


The net capital rule also requires that broker dealers limit their
debt-to-net capital ratio to 12-to-1, although they must issue an early
warning if they begin approaching this limit, and are forced to stop
trading if they exceed it


the SEC, under its new Consolidated Supervised Entities program,
allowed the broker dealers to increase their debt-to-net-capital
ratios, sometimes, as in the case of Merrill Lynch, to as high as
40-to-1.

News · Politics

More on Anthrax and Dr. Ivins

Some lessons can only be learned in hindsight. One of the claims that the
anthrax letters came from Iraq was because of the presence of silicon to make it
more easily air borne. So it turns out that the person that made this claim is
an expert but in a different area. Of course, since what he said is what people
wanted to hear his views were widely publicized and believed
Lesson 1: People’s area of expertise matters, not just that they are an expert
in something close. For example, football knowledge may help but doesn’t carry
over to hockey:
Scientist concedes ‘honest mistake’ about weaponized anthrax – Los Angeles Times

“I believe I made an honest mistake,” Jahrling said in
response to questions e-mailed to him for this article, adding that he had been
“overly impressed” by what he thought he saw under the microscope.
I should never have ventured into this area,” said Jahrling, who is a
virologist, referring to his analysis of the anthrax, which is a
bacterium. Jahrling’s initial analysis — and his briefing of officials at the
White House — was first detailed in a 2002 book by bestselling author Richard
Preston.

Of course, it’s horribly convenient for the FBI. One of
the arguments against Dr. Ivins being the person that sent the anthrax was that
he lacked the skilll to add the silicon. Now the person that made that claim
said he was wrong.

Technology

CLR and Unhandled exceptions

Nice article on unhandled exception handling 🙂
CLR Inside Out: Unhandled Exception Processing In The CLR

In the case of Figure 3, if the CLR can’t find a managed exception handler in Main, the exception will reach the native frame within the CLR where the thread started. In this frame, the CLR has established an exception filter that will apply the policy to swallow (which is semantically equivalent to blindly catching) exceptions, if applicable. If the policy indicates not to swallow the exception (which is the default in the Microsoft® .NET Framework 2.0 and later), the filter triggers the CLR’s unhandled exception processing.

Fun

Renaissance

I watched an animated movie called Renaissance. It’s the ultimate in film-noir: it’s entirely (except one brief scene with a little color) monochromatic. It’s set in Paris, 2054. I wouldn’t call it Dystopian but the characters inhabit the underside of society and the worse aspects of corporate giants.
Karas is a police detective, more action then words, trying to track down a kidnapped woman. It’s long and complicated. The second viewing is even better because you get to enjoy the story and visuals more.
DVD Player001.png
It’s all shadows, light, and reflections:
DVD Player002.png

Politics

The rich stay richer

Funny how the rich take care of themselves. There are rumors that the people most responsible for Lehman’s losses are working on compensating themselves for their own loss:
Talk Of Palace Coup & Strategic Chaos At Top Firm

Finally, The Sunday Times reports that Lehman is trying work out a payout plan for senior executives to compensate them for ‘the huge loss of value in their share options’, due to the dramatic fall in the firm’s share price over the last 12 months. The newspaper quotes an unnamed source, who said: ‘There has been talk at a senior level about finding some form of compensation for the loss of value in the share options’.