Friday, March 30, 2007

2007 letter to Berkshire Hathaway shareholders from Warren Buffet

Warren Buffet publishes an annual letter to his shareholders. The letters have a general pattern -
-- Overall performance of Berkshire over the past year
-- Analysis of the Berkshire performance by sector. Special focus on the good and bad sectors and why these sectors did well (or not)
-- Acquisitions in the previous year and why the acquisitions were made
-- Major future issues that affect Berkshire as a firm
-- Tirade against derivatives
-- Tirade against hedge funds
-- Warning about US trade deficit
-- Some interesting tidbits of info
All of these sprinkled with amusing quotes...

I am no finance wizard. So I leave it to the readers to contemplate the deeper content in the letter. You can download the letter here.

But lemme decorate this post with some of those amusing quotes...

"
In fairness, we’ve seen plenty of successes as well, some truly outstanding. There are many giant company managers whom I greatly admire; Ken Chenault of American Express, Jeff Immelt of G.E. and Dick Kovacevich of Wells Fargo come quickly to mind. But I don’t think I could do the management job they do. And I know I wouldn’t enjoy many of the duties that come with their positions – meetings,speeches, foreign travel, the charity circuit and governmental relations. For me, Ronald Reagan had it right: “It’s probably true that hard work never killed anyone – but why take the chance?”

We continue, however, to need “elephants” in order for us to use Berkshire’s flood of incoming cash. Charlie and I must therefore ignore the pursuit of mice and focus our acquisition efforts on much bigger game. Our exemplar is the older man who crashed his grocery cart into that of a much younger fellow while both were shopping. The elderly man explained apologetically that he had lost track of his wife and was preoccupied searching for her. His new acquaintance said that by coincidence his wife had also wandered off and suggested that it might be more efficient if they jointly looked for the two women. Agreeing, the older man asked his new companion what his wife looked like. “She’s a gorgeous blonde,” the fellow answered, “with a body that would cause a bishop to go through a stained glass window, and she’s wearing tight white shorts. How about yours?” The senior citizen wasted no words: “Forget her, we’ll look for yours.”
What we are looking for is described on page 25. If you have an acquisition candidate that fits, call me – day or night. And then watch me shatter a stained glass window.

When Charlie and I were young, the newspaper business was as easy a way to make huge returns as existed in America. As one not-too-bright publisher famously said, “I owe my fortune to two great American institutions: monopoly and nepotism.” No paper in a one-paper city, however bad the product or however inept the management, could avoid gushing profits.


We show below our common stock investments. With two exceptions, those that had a market
value of more than $700 million at the end of 2006 are itemized. We don’t itemize the two securities referred to, which have a market value of $1.9 billion, because we continue to buy them. I could, of course, tell you their names. But then I would have to kill you.

The good news: At 76, I feel terrific and, according to all measurable indicators, am in excellent
health. It’s amazing what Cherry Coke and hamburgers will do for a fellow.

The inexorable math of this grotesque arrangement is certain to make the Gotrocks family poorer over time than it would have been had it never heard of these “hyper-helpers.” Even so, the 2-and-20 action spreads. Its effects bring to mind the old adage: When someone with experience proposes a deal to someone with money, too often the fellow with money ends up with the experience, and the fellow with experience ends up with the money.
"

Thursday, March 29, 2007

Word of the Day: Chernobyl Design Pattern

This gave me a good laugh. The Chernobyl design pattern as explained by Rob Weir (via cruizer) ...

"There is something I call the “Chernobyl Design Pattern”, where you take your worst bug, the ugliest part of your code, the part that is so bad, so radioactive that no one can touch it without getting killed, and you make it private and inaccessible, and put a new interface around it, essentially entomb it in concrete so that no one can get close to it. In other words, if you can't fix it, at least contain the damage."

The good thing in doing this is that it allows you to create a new implementation of the bug-ridden code later at your leisure. But we know that this never happens...

Wednesday, March 28, 2007

How to manipulate the stock market

Update: Lots of people are coming here from voting sites. You might want to check out my posts on Simplicity, Management, Software Development, Career, or the main blog. If you like the content, you can subscribe to the feed. Thanks.


An interesting account of what actually drives the market. By Jim Cramer in a video interview on TheStreet.com. Cramer is an ex-hedge fund manager (apparently 24% annual return from 1987 - 2000) and the host of CNBC's Mad Money.

Some choice quotes -
"You know, a lot of times when I was short at my hedge fund—when I was positioned short, meaning I needed it down—I would create a level of activity beforehand that could drive the futures. It doesn't take much money."

"What's important when you're in that hedge-fund mode is to not do anything remotely truthful. Because the truth is so against your view that it's important to create a new truth to develop a fiction."

"The great thing about the market is it has nothing to do with the actual stocks."



If you have a broadband connection, you can watch the full interview where Cramer gave his "veteran's perspective". Click here for the video. Poor interviewer Aaron Task's expressions with each of Cramer's revelations are priceless!



A more elaborate transcript is below...
"You know, a lot of times when I was short at my hedge fund—when I was positioned short, meaning I needed it down—I would create a level of activity beforehand that could drive the futures. It doesn't take much money. Similarly, if I were long, and I wanted to make things a little bit rosy, I would go in and take a bunch of stocks and make sure that they're higher. Maybe commit $5 million in capital, and I could affect it. What you're seeing now is maybe it's probably a bigger market. Maybe you need $10 million in capital to knock the stuff down.

But it's a fun game, and it's a lucrative game. You can move it up and then fade it—that often creates a very negative feel. So let's say you take a longer term view intraday, and you say, "Listen, I'm going to boost the futures, and the when the real sellers come in—the real market comes in—they're going to knock it down and that's going to create a negative view." That's a strategy very worth doing when you're valuing on a day-to-day basis. I would encourage anyone who's in the hedge fund game to do it. Because it's legal. And it is a very quick way to make money. And very satisfying."
....................................
....................................
....................................
What's important when you're in that hedge-fund mode is to not do anything remotely truthful. Because the truth is so against your view that it's important to create a new truth to develop a fiction.
....................................
....................................
The great thing about the market is it has nothing to do with the actual stocks. Now, maybe two weeks from now, the buyers will come to their senses and realize that everything that they heard was a lie, but then again, Fannie Mae lied about their earnings for $6 billion, so there's just fiction and fiction and fiction.

I think it's important for people to recognize that the way that the market really works is to have that nexus of: Hit the brokerage houses with a series of orders that can push it down, then leak it to the press, and then get it on CNBC—that's also very important. And then you have a kind of a vicious cycle down. It's a pretty good game. It can pay for a percentage or two."

Tuesday, March 27, 2007

Real estate market in Hyderabad etc

This blog has an interesting view on the real estate market in Hyderabad.

Meanwhile, there are plans for 4 completely new cities to be built near Bangalore, Hyderabad, Bombay and Gurgaon. These will be built by Real Estate Investment Trusts.


As usual, make your own research and judgments.

Productively examine your bank statement for fraud etc

My bank sends a printed statement of my account activity every month. Going thru and validating each item in the statement can be a real pain.

Here's one trick I use. Every withdrawal I make from the ATM is always an uncommon amount. For example, I always withdraw $70 from the ATM. When browsing thru the statement, I discard all the 70$ withdrawals and scrutinize the few transactions left.

Now, this technique can be a liability in a focused fraud attack. If somebody knows you always withdraw 70$, then they can take advantage of this and withdraw large amounts in multiples of 70$. You wouldn't notice this in your statement. To prevent this, you can switch to a different uncommon amount every month.


This can also be a way to know at a glance if your significant other is making some significant withdrawals :-).

Sunday, March 25, 2007

Post-it for dummies

Great Post-It ad. See more here.

My humble contribution...
Post-It on cockpit controls
12 o' clock - North

3 0' clock - East


Pls share your ideas in the comments...

What's up with these crocs


I went out for some lunch and some detergent shopping (yeah.. very focused guy). Saw at least 20 people in the supermarket wearing these pink embellishments. Interesting thing - Most of those pple were at least 30 years old... I can understand kids loving them, but grown-up women???

Would like to know what's attractive about these monstrosities. Are we all itching to express the rebel within?... or yearning for that lost childhood?

Maybe products that allow non-confrontational expressions of our rebellious individuality have a great market. Maybe this is what's so great about those Pumas.

Discovering India the right way

The Sunday NYT tells how to have a satisfying short tourist trip to India. Pragmatically, they don't advice the tourist to pack everything there is to see in India within 2 weeks. Instead, the model should be to sample the richness of a particular region.


"FOR the first-time visitor to India, the sheer vastness of the country — more than a million square miles — all but defeats the romantic notion of seeing all that this place has to offer in anything approaching the usual time frame of a normal vacation. Retirees no longer punching the clock, college students who want to take a couple of semesters off, backpackers on a global journey of exploration: these are the kinds of travelers that India seems made for.

But what about the rest of us who are limited to one or two weeks of vacation a year? Is India completely beyond our grasp?


In a word, no. Even sampling the tiniest geographical crumb of India over a period of 7 to 10 days can be a satisfying travel experience.


Quite rightly, no one wants to miss the Taj Mahal, especially on a first visit, so our suggested route pivots around that Platonic ideal of tourist attractions. Spending a couple of days first in the nearby capital of New Delhi — a strange patchwork of imperial Mughal monuments, bustling urban villages, leafy British Raj-era avenues and expanding middle-class housing colonies — is bound to give you a good taste of urban India. Still, some two-thirds of Indians live outside the nation's cities. With that in mind, this route, after passing through Agra, site of the Taj, and the ruins and palaces of Gwalior, culminates in Orchha, a riverside village well-stocked with palaces, tombs, Hindu temples and ordinary village life.


Rajasthan? That fascinating, tourist-infested merry-go-round has been deliberately omitted, though it is a place worth coming back to when you have time to explore its less overdeveloped pockets. The hiking trails of the Himalayas and the beaches of Goa? Next time.
..........................
.........................."


Read the rest of the article here.

Picture: Available on Wikipedia with a GPL license.


Giesecke & Devrient: In the business of secure transactions - From security paper to smartcards

There is a nice story that many management consulting firms use to explain the nature of their work and lure the starry-eyed graduates into the mothership. It goes somewhat along these lines...
"Once upon a time, Birmingham was the center of the drill manufacturing business. The people of Birmingham were confident they made the best drills in the world. They felt they did not have to worry about competition as their drills were so good. However, one day someone produced lasers and the people of Birmingham suddenly realized they were not in the drill business but rather in the business of making holes. They realized that if someone developed a better way of making holes the people of Birmingham who made drills would be in trouble."

Now, strategic shifts like this happen when a new technology emerges that completely rewrites the way something is done or made. Some companies identify the technology shifts and remake their themselves. But successful examples are few and far between.

An great example of success is Giesecke & Devrient (GnD as we call them).


I have been working on DB's corporate banking application for sometime. Last year, the project that I led involved (among other things) adding support for new types of smartcards to our application. The smartcards are used by the customers to digitally sign transactions. This digital signing is done to prove the user's identity and to approve a transaction. Our smartcard vendor is GnD. Being the inquisitive guy that I am, I did some Google research on this firm. What an eye-opener...

GnD was setup in 1852, and for a long long time, their business was to print banknotes and security paper. But in 1970's, GnD realized that they were not in the banknote printing business. Instead, they were in the business of secure transactions. They started an R&D arm to develop expertise in secure cashless transactions. Now GnD is a leading provider of smartcard solutions, enabling secure digital transactions.

Wow... To identify the paradigm shift to digital security in 1970. That's something. Consider that the public-key-cryptography concept that underpins digital security today was introduced only in 1976.

Friday, March 23, 2007

MapReduce plug-in for Eclipse. Now go and change the world...



Over the years, Google has developed some truly awesome "force-multiplier" architectural software components. These have helped them roll out hugely-scalable and high-performance applications very very fast at low low cost. Among them are -
-- MapReduce parallel computation framework
-- BigTable database
-- Google File System

MapReduce is a framework that -
-- Allows a programmer to define a program that needs to be run in parallel over a huge cluster of computers
-- Executes the software program in parallel by distributing it to a huge cluster, monitoring the execution progress and collecting the results

MapReduce has lowered the bar within Google for writing hugely-parallel applications. Mostly, the programmer has to worry only about writing the program in compliance with some MapReduce framework requirements. The entire parallelization and its enormous complexity is handled and hidden by the framework, freeing the programmer to concentrate on the actual functionality performed by his/her program. Within Google, MapReduce is used for building the search index etc etc.

Google has explained their MapReduce framework in this excellent paper by Jeffrey Dean and Sanjay Ghemawat. Based on this paper, Hadoop is an open-source implementation of MapReduce components.


Now, IBM has made available a plug-in for Eclipse that simplifies the development and deployment of MapReduce programs meant to be run within Hadoop. So all you brilliant engineers out there, go ahead and code the next parallel program that will change the world etc etc

Google is using Hibernate ORM? That's surprising

Update: Explanation of database partitioning techniques updated and enhanced. See towards the end of the post...

Update: Lots of people are coming here from the google-code blog. You might want to check out my posts on Simplicity, Management, Software Development, Career, or the main blog. If you like the content, you can subscribe to the feed. Thanks.


Learning that Google internally uses the Hibernate Object-Relational Mapping (ORM) framework brought my opinion of Google down by quite a few notches.


I strongly believe that in performance-critical applications, database transactions and SQL queries are best written and managed by the developer rather than by an over-generic ORM framework. If you have a low-usage application that will be simultaneously used by at the most 300 users, then go ahead, use an ORM layer and knock yourself out. But it is likely that if you have written a good app, it will become more and more popular, and you will start hitting performance problems soon. Any Google consumer application would be at the high end of performance-criticality requirements.

The reasons that have shaped my views are as follows -
-- Typically any application spends 25% of the time executing application code, and the other 75% executing database queries (Rough estimates based on my experience)
-- So if you want a high-performance app, optimize the data access layer
-- An ORM tool is very generic. It is meant to support multiple RDBMS systems and a huge variety of usage scenarios. So these are optimized for flexibility and not performance
-- Optimizations on the data access layer are best achieved by optimizing the SQL. You know your domain model and data schema best. So you are the best person to write the SQL
-- ORM tools like Hibernate do not allow you to write your own SQL. Instead you give definitions of your database tables and map them to your business objects. Hibernate automatically generates SQL from these relationships

Many people take issue with this and say that to manage transactions and write optimized SQL, you need very good developers, who are expensive and difficult to attract and retain.
My response: Of course, if you need to create outstanding apps, you need good developers. If you can't attract and retain them, that's your management problem. As for the cost aspect, hire a great developer, fire 5 average ones. You will get more work done, and save money.


Anyway, all the above is deviating from the main topic. Which is that Google has open-sourced Hibernate Shards, which is an extension to Hibernate to enable Horizontal Partitioning of Data.

What is Horizontal Data Partitioning? Well, if your app requires access to large large amounts of data (hundreds of millions of records), and performance is critical, and you have a large number of users, then storing all your data in one database will hit problems. This is because there will be too much read/write to the same database storage. One solution is to split the data in a big database table into "horizontal partitions" based on some particular criteria, and store the partitions in separate databases. For example, you will group your user profile table based on the user's location - US, Europe, Asia - and store each group of profile data in a separate database. This is called horizontal data partitioning as you are splitting the data at the "row level" within a database table.

Another option is Vertical Data Partitioning. Here, you partition the data in a database by putting different high-volume database tables into separate databases. For example, if you have lots of User Profiles, Messages, Transactions etc etc in separate tables, then with vertical partitioning, you will store each of these tables in separate databases. This is called vertical data partitioning as you are splitting your data at the "table level" within a database.

The transformaton of Iraqi Kurdistan

Michael Totten has an incredible post (with lots of pics) on the change sweeping Iraqi Kurdistan.

Fourteen months ago I flew to Erbil, the capital of Iraqi Kurdistan, from Beirut, Lebanon, on the dubiously named Flying Carpet Airlines. Flying Carpet’s entire fleet is one small noisy plane with propellers, cramped seats, and thin cabin pressure. Only nineteen passengers joined me on that once-a-week flight. Everyone but me was a Lebanese businessman. They were paranoid of me and of each other. What kind of crazy person books a flight to Iraq, even if it is to the safe and relatively prosperous Kurdistan region? I felt completely bereft of sense going to Iraq without a gun and without any bodyguards, and it took a week for my on-again off-again twitchiness to subside.

Last week I flew to Erbil from Vienna on Austrian Airlines to work for a few weeks as a private sector consultant with my colleague Patrick Lasswell. This time I didn’t feel anything like a fool. Almost half the passengers were women. Children played on their seats and in the aisle with toys handed out by the crew. We watched an in-flight movie and ate the usual airline lunch fare served by an attractive long legged stewardess
............................
............................"

Read the full post here.

Thursday, March 22, 2007

"Email This" Hall of Shame - NewsGator Online

For context, see my earlier post - "Email This" - The cheapest and simplest way to attract new users


Now on to today's star...


Yes. Ladies and Gentlemen. Removing spaces b/w the 2 addresses thru JavaScript seems to be an NP-hard problem.

The greatest challenge and opportunity of our time: relieving other people of their money

"You can take the temper of an era by looking to see what its brightest minds take up. Pythagoras applied himself to geometry. Alexander Fleming discovered penicillin. Wernher von Braun built rockets to blow up London.

But if St. Augustine were alive today, he’d probably be touting the benefits of globalised markets. Isaac Newton would be running a hedge fund in London. And Henri Poincare would be working for Goldman Sachs, calculating the return on a tranche of BBB-rate subprime debt.

Scientists and philosophers alike have turned their focus to the greatest challenge and opportunity of our time: relieving other people of their money. We are voyeurs…gawkers at the merry and absurd world of money
............"


Read the full post at the Daily Reckoning Oz - Subprime mortgage lending & the great liquidity crunch of 2007...

Wednesday, March 21, 2007

Bob Woolmer's death

In case any of you still think Bob Woolmer died of natural causes, please contact me ASAP. I have some lovely riverside property in Brooklyn to sell.