Archive for August, 2007

Nerd Humor

Monday, August 27th, 2007

I read a paper called ‘What Really Makes Transactions Faster?‘, and while reading it, I made notes to myself in the margins. I was skimming the paper again today, to write a short summary, and I found a note that I couldn’t decipher. It simply said ‘GNFARB’ and pointed to a bit of text that was underlined. I stared at it for a bit, with absolutely no clue what the heck GNFARB was supposed to stand for.

I figured context might help, so I re-reread the text: “Acquire the locks in any convenient order using bounded spinning to avoid indefinite deadlock.” Upon readnig this, I thought to myself “Inifinte Deadlock” would be a pretty good name for a rock band.” I then remembered exactly what GNFARB stood for.

On Freedom

Saturday, August 25th, 2007

I don’t know as much as I ought to about the Greco-Persian wars, but the tiny nugget of understanding I have is as follows: The Greeks were a collection of squabbling city states all controlled independently. They spent most of their time farming and discussing philosophy; when they weren’t doing that, they were fighting each other. Persia was a rapidly growing empire controlled by one king and his appointed cronies, financed by treasure taken from conquered nations. The Persians, first under Darius, and then Xerxes, were trying to expand their empire by adding Greece. The Greeks didn’t realy care for this idea.

Xerxes, the Persian emperor, doesn’t really want to fight a long protracted battle to control the Greeks. He’d much rather have them submit to him like the rest of the peoples he’s had his army conquer. He sends out a bunch of messengers to Greeks, telling them they should surrender to him. “I’ll treat you well,” he says, “Just pay taxes to me and do whatever I say, and we’ll be good.” The Greeks, not really famous for their hospitality, respond by throwing the Persian messengers down a well.

Everything started to go pretty poorly for the greeks around this time; a variety of bad omens were observed. It was decided that maybe they shouldn’t have thrown those Persians down the well after all. The greeks figured they should offer some of their own men to make up for the Persians they killed. A call goes out for patriotic young men to sacrifice themselves for their country, and two guys step forward – Sperthias and Bulis. These aren’t just random joes; they’re from well off families. Think of two frat boys at Duke.

Sperthias and Bulis make their way to the persian capital. Everybody in Persia knows what these guys are doing, and they’re respected for it. A Persian Official, Hydarnes, gives them a place to stay. He’s impressed by their conviction and courage. He tries to convince them to join the Persians. “You guys are brave,” he says. “Xerxes knows how to reward brave guys. If you join him, you could be in charge of Greece.”

Their response to Hydarnes gives me shivers each time I read it:

“Hydames, you have not equally weighed each side in your advice to us. For you have tried the one which you advise, the other has remained untried by you. You know what it means to be a slave, but you have never yet tried freedom, to know whether it is sweet or not. For if you had tried it, you would have advised us to fight for it, not merely with spears, but also with axes.”

Can you imagine anyone with that attitude now? Recently, Iran (modern Persia) captured a bunch of British Marines. Instead of fighting to their deaths, the Marines simply acquiesed to the Iranians and went willingly as prisoners. They posed for a bunch of propoganda pictures, and were eventually released.  Watching the whole episdoe disgusted. me I have nothing but contempt for those who would let themselves be used in such a way, for ‘men’ who value their wretched lives over all else. That seems to make me a minority.

Sperthias and Bulis argued that Hydarnes counciled against fighting for freedom because he didn’t understand what freedom was like. We live in a world freedom is the only thing many people have known, and for that reason, they don’t really value it. Like the Persian satrap Hydarnes, they argue against fighting for freedom. Not because they don’t know what it’s like to be free, but because they don’t know what it’s like to be a slave. They’d rather be alive than free. I think that’s a damn shame.

Zen and the Art of Guitar Maintenance

Thursday, August 16th, 2007

I’ve been reading the book Zen and the Art of Motorcycle Maintenance, for a variety of reasons. One of the ideas I’ve taken out of the book is that idea that, when you’re working on an object, like a motorcycle, or a guitar, your attitude makes all the difference. I bought a new electric guitar back in December. This guitar has what’s called a floating bridge. Normally, the strings of the guitar are anchored at one end by the tuning pegs, and at the other end by the bridge, which is attached to the body of the guitar. A floating bridge isn’t screwed into the solid body of the guitar; it floats on a hinge, held in place by several springs in the back of the guitar. These springs contribute to the resonant frequencies of the guitar. They also allow you to use a whammy bar to perform all kinds of crazy tricks. I can’t get enough of that thing.

What I didn’t know when I purchased the guitar is that a floating bridge makes tuning the guitar much more difficult. Normally, you tune a guitar by increasing tension on the strings by turning the tuning pegs. Each string can be tuned individually to the perfect pitch. This isn’t possible with a floating bridge. Increasing tension on one string pulls the bridge closer to the head of the guitar, slightly lowering the tension on all of the other strings. This means that when you tune one string up, all of the other strings drop slightly in pitch. Conversely, tuning a string down slightly increases the pitch on all of the other strings. Tuning becomes quite the juggling act.

At first, I became really frustrated trying to tune this thing. It was taking way longer than normal, and I felt like I wasn’t getting anywhere. After breaking a new string, I figured it was time to call it a night. This morning, I bought a new set of strings and tried again, but this time, I set about my work feeling more relaxed and almost enjoying the slow, steady process. It still took a long time, but when everything was all tuned up and all the notes were right on pitch, it felt great.

I couldn’t find a decent set of instructions on how to tune a guitar with a floating bridge online, so I figured I’d explain how i did it here, for interested readers. The biggest thing to keep in mind is that drastically changing the tuning on one string is a bad idea; the increased tension on the bridge will significantly lower the pitch on all of the other strings, and if you keep trying to adjust them individually, you’ll gradually raise the bridge until you snap one of your strings.

I made myself a little graphical image of where each string’s pitch was relaltive to what it was supposed to be. I then adjusted the string whose pitch was the worst, but only slightly – by at most a semitone. I then updated the image so that I could see where all of the strings’ pitches were, relative to where they were supposed to be. I kept moving back and forth between different strings, each time selecting the string whose pitch was farthest from what it was supposed to be, and adjusting it slightly towards the goal. Once I was very close, and all of the strings were within a a half semitone of where they’re supposed to be, I tuned the top strings up above their target frequency. That way, when I tuned the lower strings up to correct note, the top strings gradually dropped in pitch. As I got  closer and closer to getting the guitar in tune, I made smaller and smaller adjustments. It took a long time, but it worked, and you can’t argue with the end result.

The Morality of Career Choices

Wednesday, August 8th, 2007

Update: There was a lot of response to this post. I’m going to write an update based upon the response I recieved.

Which of these two is doing more good for the world? Alice is a surgeon who earns $250,000 a year, occaisionally donating work at a free clinic. Bob is a hedge fund manager who makes several million dollars a year helping people even richer than himself to make more money. A week ago I would have answered that the doctor, without question, is making the world a better place, to an extent much greater than the analyst is. I will say now, with certainty, that it is most definitely Bob, the hedge fund manager, who is doing more to make the world a better place. Read on!

How do you really quantify the extent to which someone helps the world? Let’s suppse we give everybody a happiness index; a number between 0 and 100. If Alice does something good for Bob, and Bob is happier as a result, Alice will have changed bob’s happiness index. The total good Alice does for the world is the sum of all the changes she exerts on other people’s happiness indices.

How could Alice be changing people’s happiness indices? Let’s assume that she can perform surgey on 10 people a day, and that these surgeries are life changing; so amazing that they increase someone’s happiness index by 100. That means every year, Alice causes a net change of 365,000 hapiness units every year.
How could Bob be changing people’s happiness indices? Obviously, he’s making the wealthy people happier by earning them more money. The thing is, that’s not really important to the analysis. Hedge Fund managers and other people in financial positions earn their money by exploiting inefficiences in the market. It sounds complicated, probably because it is.

An example should help make things more clear. Suppose Bob thinks a hurricaine is going to hit Houston. In order to keep his fund profitable, he’s going to try to get rid of assets related to houston. This action on the part of the fund manager creates a small effect on the way other people look at houston. The falling stock prices of houston-based companies might pursuade other buisnesses to look elsewhere to finish contracts. They might factor into the models retailers use when decided how much invetory to order, and as a result of Bob’s decisions, the stocks might not be shelved quite as full. A new college graduate looking for work might see the falling stock prices and decide to work elsewhere. None of these other decision makers are aware that Bob thinks a hurricaine is going to hit Houston. All they see is that the price of stocks in houston related companies have gone down.

If the hurricaine does hit Houston, then all of the other people who made decisions as a result of Bob’s decision are better off. Buisnesses that contracted work out to houston-based companies will now have to wait much longer and pay higher costs to get their work done. Retailers will not have lost as much money because their shelves will have been less full upon being overturned by the gale winds. That new college grad who decided to work elsewhere won’t really be effected by the Hurricaine at all. All of these changes will, for the most part be slight. In effect, when Bob decides what funds to buy and what funds to sell, he’s making small decisions about the most efficient allocation of resources. When Bob sees that Houston’s going to get hit by a hurricaine and moves his funds elsewhere, he’s moving resources away from somewhere they ought not be allocated. That decision by Bob can save a small amount of money for many different people. These savings will be reflected by lower prices and higher wages. Becuase the economy is so interconnected, it is probably safe to assume that Bob is helping everyone in the country, and even quite a few people out of it. To make things more fair for Alice, suppose Bob increases the happiness index of 100 million people, less than a third of the country, by an average of one tenth of a happiness unit. That means bob has contributed 10 million happiness units to the country. It would take alice almost thirty years to add this much happiness to the world.

It took me a lot of thinking to come to this conclusion. I suspect that most people would choose Alice over Bob, largely because, like me, they have no idea how the world of finance works. To them, it’s just a way for rich people to get richer. But the fact is, with so many people in the world, helping everybody out a tiny amount does a lot more good than helping a few people a whole bunch.

I can’t imagine someone saying that they wanted to go into finance because they wanted to make the world a better place, but I think that in light of the math it’s impossible to deny that financial analysts and fund managers do a lot more for the world than doctors, teachers and engineers. I’m not saying that the world would be fine without doctors or teachers or engineers. The world needs people to work in every profession, and eliminating one would certaintly make things worse. The good done by financial analysts, however, is very different from most other careers. You definitely notice when a doctor saves your life, or a teacher inspires in you a love of a subject. When the cost of gas is slightly lower and you save a couple of dollars every year, however, you probably don’t even notice. Helping many people a little bit at a time turns out to be a really thankless job, unless you count the millions of dollars a year in pay. Somehow, I think they sleep well at night.

New License Plate

Wednesday, August 1st, 2007

One of the many things I had to take care of after moving to Chapel Hill, North Carolina was to register my car with the state. North Carolina lets you put an ‘equals’ sign on your license plate, so I couldn’t resist.

The tattoo comes next