Sunday, 6 September 2009

Work smarter not harder

I like genuine ideas. I am a stronger believer that the solution to all the worlds problems lies in the "work smarter not harder" realm. Of course Thomas Edisson said that "there is no substitute for hard work" and I strongly believe that also, but the point is that working hard on old brick and mortar mundane solution doesn't always translate into success, when sometimes, working a little less harder (but still hard enough) and taking the time to look at other things, or what buzz word experts would call "out of the box" thinking, more creative and innovative solutions could be reach, often yielding a better, faster and easier solution to our problems.
One walid s. Saba once told me that sometimes humans tend to look at the worst case solution because it looks simplerm and sometimes we don't bother looking beyond our noses because a solution is reached and work can be started. I.e. the more efficient solution may not necessary be the obvious one. (His literally words was that heap sort was just an instance of merge sort, just a little less obvious, and if we go up the complexity we may be onto something - I am yet to find out if he found that something but should get back in touch soon enough.....)

A cool example I found out about in time magazine was something called dial4light which is a system that allows u to switch on street lights urself. This was inventrd in a village called dorentrup in germany, where the municipality was running high energy bills and had to switch off lights in seldom used streets at night. Some villagers complained as their kids were having trouble walking home in the dark. They contacted a company called lemgo that created a modem and software dialup system that u could ring a number, enter the area code or street name and the lights would switch on for that street, and so on and so forth. That solved the kids problem, reduced the energy bills and reduced the village carbon emissions as well.

Of course like all systems that can be abused and would never work in big cities such as london (am sure some gangs in hackney would relish the idea of darker streets and useless cctv cameras), but can be pretty useful in somewhere like west stevenage, population 81.

I like it- that's thinking smarter, rather than splashing out on wind farms to generate energy that is just going to waste.

Friday, 17 July 2009

C++ Interview Questions - Finance

Finance is a bitch of an environment to work in, especially if you are coding in C++! You can end up spending endless hours staring at tiny bits of strings and numbers, wondering what the hell is happening. It can get to be quite a bit of a pain, as the problem is compounded with real time data, and if you are working with something like NASDAQ, you can be looking at 27 GB of data a day! That's pretty much alot of trades, but NASDAQ is pretty much as big as the whole of Europe combined in the number of trades that go on during the day (So whomever said the USA is declining as a superpower, please get a clue - far from it).

Anyway, I've always had issues finding any conclusive interview preparation when it came to programming and finance, because what I think that there is a critical gap between the developers and the bankers, a sort of digital divide, that the bankers are pretty much idiots when it comes to technology, and all us developers have taken jobs with NO FINANCE EXPERIENCE REQUIRED at the bottom of the job description........ I don't know what can be done to fix that, and i dont really care because I've done my own homework when it comes to finance. So maybe some time when am not stressed about that damn feed handler, I'll propose a new recruitment philosophy and arrogantly blog about it.

So to the meat. Here are some questions (and answers mind you) I have encountered, whether through being interviewed or interviewing, or just plain day-to-day issues I came across.

In no particular order:

1) How many vtables do you have in any particular program?

A: C++ maintains a virtual table for each class within your program.

2) What is the difference between allocating memory using new and malloc ? What are the disadvantages of malloc?

A: New allocated memory on the heap, while malloc allocates memory on the stack. Memory allocated using the heap will live throughout the lifetime of the program, while malloc goes out of scope as soon as the method/class it is contained in returns. Malloc is also bad as it can lead to memory leaks, and running out of memory if we do not free the memory we allocate. In addition, malloc will allocate a fixed chunk of memory that is static and must be set by the user, while that is left up to the system when you use new. New also invokes the destructor automatically

4) What is the difference between free and realloc ?

5) What are the four methods that are provided for you with by default when a class is invoked?

A: Constructor, destructor, copy constructor and assignment

6) How many bits in a byte? Give an example of where you would want to use bit manipulation in a financial context.

A: 8 bits in a byte. If you are receiving messages from a trade, you may want to move pointers around the bits and bytes to read through them.

7) So you are receiving messages from an exchange - in a tag->value format. What would be a suitable data structure to use ?

A: A map.

8) So you are using a map, what is the disadvantage of using erase()

A: when u erase an element from a map, the map reshuffles, and ur pointer may either be pointing to null, or to a different location in the map.

9) What is the size of a pointer?


10) What is the difference between a shared pointer, an auto pointer and a regular pointer.

share and auto pointers are smart pointers. Smart pointers own the object they point to, and thus are responsible for deleting it (calls delete on itself). An auto pointer is a regular pointer wrapped by an object that owns this pointer, and deletes it when that object goes out of scope. Shared pointers compliment auto pointers, and you don't need to know who owns it. When the last shared pointer for an object in memory is destructed, the wrapped pointer will also be deleted.

11) What is a pure virtual function? What would be a scenario when u would need to declare a virtual function as pure?

A: A pure virtual function has no implementation and it usually belongs to a parent in a parent-child class hierarchy. Rather the implementation is left to the inherited class- yet pure virtual functions force inherited classes to implement that function, yet when that method is not pure, the child class does not need to implement it. (Although it can).

12) What is the difference between overloading and overriding?

A: Overriding is usually in inheritance, that u override a function in the base class by re-implementing it in the child class, usually by having the same function with a different implementation, while you overload operators or functions that have the same name but different signatures are thus overloaded. Another flavor of overloading would be operator overloading, where u can use the + operator to add an integer to a pointer for example.

12) What is the recommended maximum level of inheritance in any number of classes?

A: Try to restrict your parent child relationship to 3 levels : parent-child-grandchild. Deeper levels can lead to circular references and confusion.

13) Assume you have a child class, and you declare an object of type of the base class in the child class. That object is pointing to a method in the child class. What happens when you delete the pointer? (An asshole in New York asked me this during an interview)

A: (This one still escapes me, if anyone has an answer or better explanation, give me a shout).

14) What is the difference between private and protected?

A: Private functions are private to the class itself, and its children, but none else. Methods declared as protected are accessible by friend classes.

15) What are forward declarations?

A: Forward declarations allow us to declare objects before providing definitions for them. That's probably why you would need to declare ur methods in ur header files first. You can use them in ur program and it would compile even before u implement them (or just have an empty { } implementation).

16) What is an abstract class?

A: An abstract class is a class containing at least one abstract method - an abstract method is a method declaration without any implementation.

17) What is the difference between a copy constructor and constructor ?

A: A copy constructor is a constructor that takes an object of itself as an argument:

class MyObject (MyObject A);

18) What is the lookup time of a hash table? How about sorting it? What can be the worst case scenario?

A: O(1) for lookup, O(logn) for sorting. The worst case scenario for hash table sorting is O(n) if heavy chaining occurs - i.e. lots of collisions with all elements having the same hash value.

19) What is the lookup time for a Binary Search Tree? How about sorting it?

A: O(logn) for lookup, O(nlogn) for sorting.

20) What is the reference of a null pointer?

A: Null pointers always point to reference 0 (zero).

21) What is a vector?

A vector is a dynamic array of any data type. The associated methods are pop(), push_back(element), size()

22) What is the difference between string messages and packets?

A: That depends on what your packet looks like, but the general idea is that packets have a header and a trailer, with checksums and CRCs that could allow you to reconstruct lost or partially received messages.

23) What are the advantages and disadvantages of using a TCP-based connection? How about UDP?

24) Can you implement a queue with two stacks? How about a stack with two queues?

25) Which of these tuples are alike? Why?

AABBCCDEE - 11233445566 - EEFFGGHII ,

AAABBBDDD - AAABBBCCC - CCCDDDEEE

11375500 - 09455901

ABCAABC - XXXYZZZ

Answer: In fact, all the above are alike except AAABBBDDD- AAABBBCCC - CCCDDDEEE because there is not enough information to make an assumption.

a - AABBCCDEE - 11233445566 - EEFFGGHII are alike because if there is only one byte that is alternating its position. For alphabetics based strings, the 3rd bit from the right-most side is a single digit and its alternating position to become the 3rd byte from the left most position for numeric based strings.

b-113755900 - 094559001 , this is a time indication. 11:37:55:900 (hours, minutes, seconds, milliseconds

c-ABCAABC - XXXYZZZ : these are palindroms from the look of it.

27) Give an example where u would need to use bit shifting.

28) In Finance, time and timezones are of essence.

29) What is multiple inheritance? What are its advantages and disadvantages?

Multiple inheritance is mainly a C++ charachteristic, that allows classes to inherit from more than one class (disallowed in Java). The disadvantage is that it may lead to ambiguity.

29) In binary trees, describe preorder, postorder and inorder traversal.


More questions to come.

Monday, 27 April 2009

I left facebook

I feel really crap at the moment, as I battle a cold. I have taken ill, hangovers dont feel like they used to, and I am battle to rid myself of that disgusting cigarette.

Thing is, I had a friends' gathering in my back yard yesterday. While I was battling with that hamburger on the grill, an old friend of mine threw the word that she saw my "Leaving facebook" message. My other friend who battled for years to stay away from facebook and finally had to join because of her phd study group, said that she laughed when she saw my message. I had to be philosophical about everything as usual.

Maybe I am.

But, I left facebook for many reasons. As everything, there is one main reason I left, but I am also convinced by many other reasons why facebook is not for me.

First, I just like to say that social networking is a tool to be reckoned with, and I am not against it. I remain (for now) on LinkedIn. With this out of the way, the reasons for quiting fall into two categories, the first being purely socio-technical, while the second is really personal.

As I was a taught at the Information Systems and Innovation group at the LSE, that information systems are social systems, and I realized that :

1) Digital footprint: The growth of information we generate both voluntarily and involuntarily is exponential in growth, and our attempt in controling that growth through settings and privacy control, can only be linear, because most of the time, we are unaware of our own "data generating activities" if you want to call it that. i.e. do you really can guarrantee that you won't update your status when you are drunk, or upload a photo of you in a leather jacket on a bike when your adrenaline pumped or think it will impress a girl. Really, we do some stupid things sometimes and say stupid things that we often regret, but these are often "gone with the wind", but when facebook takes on a life of it's own, these stupid things come with it, which brings me to my next point

2) Data Mirroring: if you upload a photo on the internet, you have to realize that it's going to be there for a while....and I mean decades, not years. Not only that, is that once you upload it, you can't really fully delete it. With the growth of the internet, and its integration in business, as well as government laws, forced data to be backed up and mirrored to different servers, often in different location. For example: If you upload a photo to facebook server1, it will be backed up to facebook server2, which in turn is backed up to an external vendor, storage provider or data centre. That means A is connected to B which is connected to C. Now, if for some reason, A looses its connection to B, A can no longer access what is on C. Hence some data is sitting on C, but if you delete that picture from A, doesn't necessarily mean it will be delted from C, coz it can really get quite tangled, with backups to backups to backups. Loose a connection somewhere along the way, and that data is lost forever, but not deleted! So, If I delete my pictures from FB, that doesnt necessarily mean when I am 50, I may find in a google hit a picture of me on a motor bike in a leather jacket, I took 20 years ago.... So I figured that kind of digital footprint, isn't really needed.


There is a fine line between a digital footprint, and plastering ur private life all over the web. I am sure you know how data is mirrored over and over again , and well, one has to think twice before uploading a picture on the web, because well, it's going to be there for a really long time, and even still that the initial source of data may loose its connection to its mirror, there is no way you can control the data once its on the web. Controling a facebook account privacy is futile, and its better to leave now before it's too late.

I perfectly agree that a virtual existance is bullshit, and we are NOT what we put on the internet. Like the people who spend hours picking out their best picture to choose as a profile picture, this is not really them! So on and so forth for pictures, notes, posts, quotes, etc.... its all what we think we are, and we only usually focus on the good things and never the bad things, thats just human nature.

So, and this is cliche, but resistance is futile. The only difference between, lets say the government, taking ur information (reading ur emails, chats etc) without your consent, and making it let loose on the web in things like facebook, for anyone to have, is well, we only hope that there will be laws to protect us from the former, but the latter, well.... like Einstein said "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe."

Saturday, 18 April 2009

Soros and Sterling

Yesterday I was walking back from my lunch break, and I stopped to pick up a coffee. Having no cash I nipped to the adjacent ATM machine to withdraw a 10 pound note. Disintrested and my mind completely elsewhere I put my card and followed the all too slow process of withdrawing cash. In automatic motion I clicked the buttons and saw some thing yet my fingers were still pressing and I had my cash before I vould realize that this ATM machine gave me the option to withdraw euros. Now I found that rather strange. It was Liverpool Street station and Stansted airport is on the route but I I had just finished George Soros' book, and a few thoughts came to mind. The dollar is looosing ground, but is it thathappening THAT fast?

Soros, in his book, The New Paradigm for Financial Markets : The Credit Crisis of 2008 and What it Means, talks about how the dollar is loosing ground. Now what I like about Soros, that he acknowledges some important events and if he was not a financier, I bet he would have made a good historian. He talks about the Arab Oil Embargo of 1973, when the recycling of Petrodollars by the banks pushed the dollar to become the world's currency. (Funny how the oil embargo served rather than tarnished Western domination - well, it did negate Keynsian economic theory though, so Arabs did have some effect on the 20th century). Countries with weaker currencies, with weaker currencies and unstable economies, either used the dollar as a reserver currency, pegged there currency to the dollar, or those going the distance, dollarised their currency.

According to Mr. Soros, who, for the sake of entertainment, graduated from LSE the same year Paul Volker, the ex-Fed chairman and now heads Obama's Economic Advisory board (they graduated in 1952), thinks that the days of the dollar as the world currency are numbered, if not over.

According to Soros, the international financial system is under the control of number of financial authorities representing the developed countries, mainly the IMF, the World Bank, and if I will allow my self to add to that the SEC and the FSA, which both are watchdogs for the financial centers of New York and London respectively. These institutions, as he says, are "more equal than others". They constitute the Washington Consensus. The Washington Consensus is a set of "10 commandments" for countries to adopt as policies for economic development (such as privatization , free trade, tax reform and similar neo-liberal guidlines, and of course, deregulation), and in exchnage they receive aid from the Bretton Woods institutions. This leads to a globalized economy, and the way the system is structured, the United States, and to decreasing decrease the UK and the world's biggest economies enjoy veto power.

This structure, and specifically the deregulation that was so strongly encouraged, looks great when its working, yet when a sever crisis such as the current one comes a long, it shows how fragile the system is, and it all comes crashing down. With the car industry failing, the banking in shambles, and the housing market crashing, the US will be forced to into converting some of its reserves held in bonds , and some of its assets into cash to finance all these rescue packages and TARP funds.

The dollar is loosing ground.

"The invasion of Iran has much to do with the rise in the price of oil and the unwillingness of the rest of the world to hold dollars. This will reinforce and extend the current commodity boom and create inflationary pressures. The decline of the dollar as the generally accepted reserve currency will have far reaching political consequences and raise the specter of a breakdown in the prevailing world order. Generally speaking, we are liable to pass through a period of great uncertainty and destruction of financail wealth before a new order emergrs." (Soros 2008).

Soros should know a thing or two about currencies. He sure knows about the sterling, as he almost single handedly broke the Bank of England in Black Wednesday in 1987, when the BoE withdrew the pound from circulation before the markets closed. He should know about the dollar as well I guess, he did co-author a book with Paul Volcker !

Which brings us back to the ATM machine in Liverpool Street. Is the Euro the new currency? Or is it just the bank being clever, trying to get customers, or is it the customers demanding euros in atm machines? I talked about the Amero and the Khaleeji in a previous post, but, all these are pretty much either in the not-so-near future, or may never even materialize, but with the sterling at just 1.1 against the euro, I am thinking, is this the end of the Pound?

Probably not, but this ATM sure yanked my chain....or did it?

Monday, 9 February 2009

The Return of the Bankers

I want to become a financier. Not a banker. There is a big difference.

Personally, I don't really like bankers, even though one day I'll probably be one (briefly I hope). But for me, a banker is someone who juggles alot of numbers. I dislike numbers, even though, I can sometimes be quite good with them. But numbers are like people, torture them enough, and they will tell you anything. Just like the half empty/half full glass analogy. What I am really interested in is the true investing activity, know thy product, invest because you believe in something, not because you can shave off a 20bps profit here, and a 30bps there. That's just like a headless chicken running across financial markets.

Although those headless chickens, can have alot of sway when it comes to making, and wasting, money. After the credit crunch, everyone hates those greedy bankers who fucked us all.

But they will be back.

The credit squeeze started back in 2007, and here we are in 2009, and everyone is still talking about those bankers. Even with high levels of redundancy, losses and enough crap to last a lifetime, if you switch on the radio or the television, on the news, talk shows, comedy shows, theatre plays, you name it, everyone is either dissing or making fun of the bankers. [sarcasm ensues] . Today's world is a media world, and whoever can sell newspapers (or drive internet traffic- don't give me that Rupert Murdoch paid news argument - am for paying for content) will be in the news. The bankers, with their casino or wealth creation activity (depending on personal definition) are media darlings (no Alistair not you) - everyone loves money, and they are in the midst of it, so they are always in the news.

And they want to be.

It's like movie stars with a twist- the media easily makes and breaks stars, and these stars with brains of peanuts (exhibit A: Katie Price) are constantly pulling some shit- divorces, cheating, adoption- some crap like that its sole purpose is to keep them in the media, because bad or good publicity, it sells- and they make a bundle. Now with the bankers, its a twist because it creates a positive feedback loop - and the air of mystic that the Goldmans and the Hedgies like to create an aura around them - sure u can hate the big bonuses - but thats part of the game. Sure everyone may think ur the scum of the universe, but a master of the universe at the same time. I steal this line from an all time great movie, The Full Monty :"People don't look at u funny when u have a thousand quid in ur back pocket" and its the same with the bankers everyone loves to hate- but everyone wants to be, and they can pitch it as a way to "attract the best talent" bullocks, but the real trick behind that is that the way people with serious money when they see in "Young banker offers prostitute million dollars" is that they dont care about his morals, the silver linning is that such a young kid from mediocre background can have that much money, means that he must be making his employer a hell of alot, and putting a sweet 10 mill with them may not be a bad idea. Morals are negotiable when you are an ultra high net worth individual (excess of 30million that is).

So as long as we are hating bankers, as long as they are loving it- and so is the media.

I like financiers, they are the ones in the back. Reasons to follow.

Thursday, 15 January 2009

Finance for Engineers - The Advanced Stuff

Some more finance terms for the engineer..... With time working in a financial software house, you learn alot about finance, although at some point you decide that you have to do your own homework, and piece things together because, the future may take you to a trading desk, and you find yourself working on the Monte Carlo algorithm....
  • Splits : Companies can "split" their stocks. i.e. If the value of 1 share is £100 and the company issues a 2:1 split, this means every share will become 2 shares, and the value of the individual share is adjusted accordingly, i.e. each share will be now valued at £50. The shareholders themselves still maintain the same stake valued at £100, but instead of owning one share, they now own two (neat!). This gives them more flexibility. Also, once a split occurs, this will affect the stock price (up/down increasing trading activity) , and there can be all kinds of splits with ratios such as 10:9 , giving leeway for financial (mathematical) modelling! Another issue is that the more a company has in number of stocks, i.e. volume, the more possible shareholders it can have, and the more shareholders it has, the more complicated hostile takeovers become.

  • S&P500, FTSE 100: The index of the top 100 or 500 companies/stocks (depending on geographic location) and their performance which is used as a benchmark for measuring market performance. (See my post about The New Barbarians, in reference to the power of these ranking institutions. They even rank countries! )

  • Dow Jones Average Basically to measure the performance of the stock market. It's measured in points, or dollar per share. Simply enough (I think) is the total number of points traded on the market that day, compared to the previous day. If greater than one, market is up, if less than one, market is down. A value of one means the stock market performed exactly the same (hardly ever the case).

  • Basis Points: 1/100 of a percent, or 0.01%, which is used either to measure the yield of (fixed income) securities, or commission some traders may be basing their deals on.

  • IPOs: When a company decides to go public, it will have an Initial Public Offering, which is when it first issues it stock to be traded on the stock exchange(s). Usually, one (or more) of the investment banks would be the advisers of the company on how to handle the IPO and how to price the stock, based on initial asking price.

  • Spreads: Stocks can be volatile i.e. have a given amount of risk. The spread is the measure of risk between investing in government bonds (risk free) to investing in stocks (risk avert).

  • Arbitrage: This is a tough one. Arbitrage is basically betting on two different trades in different industries/domains that are usually (but not necessarily) different (or in a sense arbitrage sense- opposite). Hence if one trade (or the dependent market) performs badly, means the other is performing well, and vice versa, so one will make profit, and the other won't, therefore, exploiting the difference, the trader would make a profit. Of course, the trick, is to have it pay off significantly to cancel out the loss, and make a profit. Nothing is about breaking even and its not a zero sum game. (hardly) * Volatility: The measure of how much the security price fluctuates, and how varied the fluctuations are. i.e. a highly volatile stock is a stock that can go up and down 25% on day-to-day trades.

    * Exposure: Is the risk to which a given asset is threatened by. i.e. if a company has an asset worth one billion, and its exposure is 5 billion, means that its trades are valued at 5 billion, except it only has assets worth 1 billion. The importance of exposure is that if the company goes bust, it looses its assets, but the loss is much more than the worth of the assets.

  • Bear Market : When a market is said to be a "bear market" means that its going down. When a trader is said to be "bearish" refers to him being pessimistic about the market

  • Bull Market : When a market is said to be a "bull market" means that its going up. When a trader is said to be "bullish" refers to him being optimistic about the market

  • Hedging : When a fund hedges, it makes certain investments to reduce risk on a given security.

  • Models: Usually mathematical, quants create algorithms and models to simulate and predicate market behavior and/or the future of a security or market (by quantifying market factors)

  • Trades: The transaction of selling or buying a security.

  • Hostile Takeovers: Is when a company or fund takes over another company through a majority stock buyout, against the will of the stakeholders. Splits are one way of increasing the volume of stokes and thus increasing the number of shareholders, making a hostile takeover more difficult.

  • Leveraged Buy-outs: This is a scary one. A leveraged buy-out is when a company or investor begins on issuing bonds based on the assets of the company to be taken over. Imagine! You are issuing bonds whose underlying assets are the company you "will" buy-out. i.e. if the buy out fails, those bonds are worthless- but, well, the acrobatics about this, is that you issue bonds as a way of raising enough cash to force the buy-out and make the company's assets as your own, and be able to backup your bonds! (financiers are crazy!)
  • Buy Backs: Is when a company buys back a number of its own shares, to reduce the number of shares, and giving its current shareholders a bigger stake, thus raising the value of its stock. This is opposite (not quite though) to a split. This is a positive sign that the management is optimistic about the future of the company and think its current stock price is undervalued

  • Premium: When a bond is purchased before its interest or is due.

  • Short Selling: (complicated) This is basically when someone is selling stocks he does not own.
  • Liquidity: Th ability of transforming assets into cash (liquid money) without any loss to its value. Usually the root problem for leverage and exposure

  • Overvaluation:when a stock is mis-priced, and analysts give it an estimated price that is unrealistic and higher than it actually is worth. The trick is that overvaluation only is exposed as over-valuation when the stock price goes the other way, and people end up paying more for it. (This is sometimes picked up by traders as a misprice, and they go back-to-back on the stock. Serious shit I am too young in the business to figure out)

  • Undervaluation: the inverse of overvaluation - usually a bargain for the buyer, a loss for the seller.

  • Default: When a company defaults, usually on a bond or loan, means it has declared that it cannot and will not be re-paying the holders of the bonds or debtors for the money they paid for this bond. (related to bankruptcy, but not quite).

  • FSA: Financial Services Authority. Is the governing body of the Financial industry in the UK. It's a non-governmental, independent organization whose primary function is to insure efficient, fair and good business operation in the finance industry. i.e. it regulates the operation of financial institutions and individuals and prevents illegal practices such as insider trading, fraud, unfair advantage, etc...

  • SEC US Security and Exchange Committee. The US equivalent of the FSA.

  • Black Wednesday: September 16, 1992 in the UK when the British government had to withdraw the pound from the European Exchange mechanism.

  • Black Monday: October 19,1987. When the Dow Jones dropped 508 points, with markets crashing anywhere between 20 and 45% around the world. It was the largest one day percentage decline in stock market history.

  • Russell Index : The Russell Index is a capitalization-weighted index designed to measure the performance of a market consisting of the 2,000 smallest publicly traded U.S. companies (in terms of market capitalization).

So what is actually traded?

Need not get into Economics or philosophy on currencies, market behaviors etc. The bulk of trade is commodities (money itself is a commodity), and their derivatives.


Note: These are notes I made myself, and I hold the nominal copyright. I have passed them over to work colleagues but I am the originator, just in case somebody is wondering.

Tuesday, 30 December 2008

Reading List

One of my many issues, is that I have too many hobbies, too much interest in a multitude of things, too little time and too short of an attention span. Although, reading, is one of my more enduring hobbies, that has yet to fall of the wagon - no reference to party related wagons ha ha ho ho.....

Anyway, I try to keep a list of the books i've read online (usually on my facebook) , because I just simply forget what I read and I am too lazy to actually keep the books themselves or a physical list of them. Seinfeld was kind of right when he wondered why George wanted his books back from his ex-girlfriend, when he has already read them!

True, although, it's nice to have a library- we have a huge one at my Dad's place, and I try to send him the books I read to store them, coz I tend to loose, or spill coffee on them - and one can always go back to them. Techie or no techie I am not into these e-books crap, I still enjoy flipping through pages , and having a room full of books and papers and scribbles - well, at least until I move again.

So here is my list: (I forgot some books, and some of the authors, so take this with a pinch of salt)

• Nasser, the Last Arab – Anne Alexandre (Biography)
• Seeds of Hate - Lawrence Pintack (Politics, Lebanon & USA)
• The Four Seasons - Faisal Ziadeh (Arabic, Biography of Lebanese Author)
• To Kill a Mocking Bird - Harper Lee (Story on Black Oppression in USA)
• The Republic - Plato (Classic)
• The Epic of Gilgamesh - (Classic)
• A Cage without Bars - Ibrahim Yared (Memoirs)
• The Odysse - Homer (Classic)
• Confessions - St. Augustine (Classic)
• 20,000 Leagues under the Sea - Jules Verne (French, Fiction - Classic)
• Fermat's Enigma - John Lynch (Mathematics, Science and History)
• E= mc2 - David Bodannis (Science and History)
• The Strategy of Games Theory (Mathematics)
• David Cooperfield - Charles Dickens (Classic)
• Les Miserables - (Classic)
• Out of Place - Edward Said ( Autobiography)
• War and Peace – Edward Said (Politics)
• The Secrets of World Espionage - **** (Research)
• The Muslim Christian-Tarif Khalidi (Arabic - Research)
• Islam - A. Guillaume (English, Research)
• Sunday, Friday - *** (Culture and Religion)
• Lebanon - A quintessential culture - *** (Culture)
• Above the Rim - Nelson George - (History of the USA)
• Selected Articles on the History of the United States - (Politics)
• Away from My Desk- Rif K. Haffar (Adventure, Personal Experience)
• Michelle Aoun, Dream or Fantasy - Sarkis Naoum (Politics, Lebanon)
• No More Leaning On Lamp posts - Managing Uncertainty the Nick Charles Way - By Ian O. Angell (Business)
• Free Software, Free Society - By Richard M. Stallman (Computer Science, Philosophy)
• Does IT Matter?: Information Technology and the Corrosion of Competitive Advantage - By: Nicholas G. Carr (Business and Information)
• The Oligarchs: Wealth and Power in the New Russia - By David Hoffman (Political Economics)
• In Search of Memory: The Emergence of a New Science of Mind - by Eric R. Kandel (Science)
• Listen Rida – Anis Freiha (Culture, Lebanon)
• Before I forget – Anis Freiha (Culture, Lebanon)
• Cross Roads to Civil War - Kamal Salibi (Politics,Lebanon)
• Global Political Economy - Robert Gilpin (Political Economy)
• The Road Ahead - Bill Gates (Technology)
• This Side of Peace - Hannan Ashrawi (Politics, Palestine and the Middle East)
• My Life - Ahmad Amin (Biography)
• Assad , The Struggle for the Middle East - Patrick Seal (Politics, Biography of Syrian President Hafez el-Assad)
• The World Is Flat: The Globalized World in the Twenty-first Century - Thomas L. Friedman (Politics, Economics )
• The Google Story - by David A. Vise (Business)
• The Man Who Knew Too Much: Alan Turing and the Invention of the Computer- by D. Leavitt (Biography)
• Democratizing Innovation - By Eric Von Hippel (Economics)
• From Beirut to Jerusalem - by Thomas L. Freidman (Politics)
• When Genius Failed: The Rise and Fall of Long Term Capital Management - By Roger E. Lowenstein (Finance)
• The New Barbarian Manifesto: How to Survive the Information Age - Ian O. Angell (Business and Information )
• Rafic Hariri and the Fate of Lebanon - Marwan Iskandar (politics)
• China Inc - David A. Friedman (Economics)
• 50 Years with the People - Youssef Salem
• Software as Capital
• Fooled By Randomness - Nicholas Nassim Taleb (Finance )
• The English : A portrait of a People - Jeremy Paxman
• The God Delusion - Richard Dawkins
• The Last Lecture - Randy Paush (Memoir)
• Bear-Trap: The Fall of Bear Stearns and the Panic of 2008 (Finance)
• Beiurt I Love You - Zena El-Khalil (Memoir)
• Lord of The Flies (G. Golding)

and I already have these books in my room, and yet to be read, hoping 2009 will see them covered!

• Catch 22 - Joseph Heller (Satire)
• The Black Swan - Nassim Taleb (Finance)
• The Wealth of Nations- Adam Smith (Classic)
• Killing Mr. Lebanon - Nicholas Blanford (Politics)
• Rafic El-Hariri - The Phenomenon - (Biography)
• Welcome to Everytown - Julian Baginni (Culture)
• Six Days - How the 1967 War Shapped the Middle East - Jeremy Bowen (Politics)

and a whole load of books I need to read! My Italian seriously needs to be attended to, and so does my C++ skills, so that calls for some readings, besides my already well blogged (blabbered) about tri-interests to which this infamous blog is entitled.

50+ books isn't much is it? I quote my good man Prof. Carsten Sorensen when he said "Some of you will read more books in a year that people would read in a lifetime" - well, I dread being the latter, and strive to be in the latter, every year. Although, on the flip side, I had a joke with another former professor of mine, Prof. Yahya Sadowski, when I walked into his office stacked with a wealth of books,

Me: "Doc, you read all these books right?"

Doc: "No, I just don't like empty shelves."

Yeah, I need three lifetimes and a time capsule to catch with his readings!

2008 Re-visited

It's 1:30 am , as the last 24 hours of 2008 start ticking away. I'll be stumbling off a boat at this time tomorrow, as I am taking a boat trip on the Thames for new year. Today, though, I was doing my last 2008 wander around London, and I ended up picking up a few books to add to my already big pile of unread books.

When it comes to books, I tend to buy more books than I can read, but considering the fact that everything I own fits in two suitcases, the one thing a man can never have too little of, is books, even though if he doesnt end up reading all of them, but at least he always motivated to read more and more, but the more you crave books, the more books you buy and the more books you read and so on and so forth, so its like a positive feedback loop.

The same can't be said about 2008. Rather, its the complete opposite. A vicious circle.

Where can we start? The Bear Stearns debacle, Jerome Kerviel, the housing market crash, Northern Rock, Bradford & Bingley-Loyds, the 500bn£ bailout, the 700bn$ bad asset plan, Lehman going bust, Merril being bought out, and Citigroup on the brink.

This is a funny video.



"This crisis is not comparable to 1982 banking crisis, the savings and loans crisis of 1986, the portfolio insurance debacle of 1987 , the failure of kidder peabody in 1997 or LTCM in 1998, or the technology bubble of 2000. The crisis is not confined to a particular section of the financial system but has brought the entire system to the brink of breakdown." (Soros 2008)

The stock markets worldwide have lost anything between 10% and 45% of their value, and they are still declinining, with no sign of solid recovery anywhere in site. But to say recovery, is, in my opinion, wrong. Each of the crisis mentioned above, were what you can call bubles, and bubles grow until they burst. The credit crisis, is somewhat of a super-bubble. It's size really was far larger than any other buble. That's really because of two things: deregulation, and greed. One must give the good and the bad sides of things, though. The good thing starts with the beginning of the maturity of the banking system, that in my opinion, we are just beginning to understand what it means "money is a commodity" , and that money is just like raw material, oil etc. Banking, is just like any other industry, a producer, and their product is money. Yet, because money is a lubricant for transactions, and having it is vital, its actual value was greatly inflated that with all this credit derivatives, credit swaps, leveraging, shorting, spreads and all these nitty gritty terms that any financier will throw in your face, was all based on perception. Perceived, or, to a lesser term, estimated value of this product called money, which was, in theory, backed by "real" assets. When spreads for lending reach 40$ against 1$, there must have been some problem with the "product" : money.

When bankers can come up with a financial product within an hour, sell it, break it up, re-package it, re-sell it, at some point, something was bound to go wrong.

And its usually humans that go wrong, not the system, not the markets, and definitely not any electronic trading system.

Economics is not a science, simply because economics has an element of human intervention, which is why it is a social science, when pure science is simply the explanation of natural phenomena. (Now the LSE being a social sciences institution makes a whole lot more sense). Nick Taleb mentioned that bankers have been fooled by randomness in thinking that there actual study of the markets behavior over a certain period, can help them estimate how the market will behave in the future, and bet on that.

This is a nice pic.



I dont say markets are completely unpredictable, but i am not saying they are predictable either. It's just like people, you can have a fairly good estimate about how people will behave, but there is always this X-factor, a black swan, that can negate everything, and as long as people are the ones driving the markets there will always be that element, and the more we give the people in charge this liberty, the higher risk we run on another crash. Crashes will continue to happen, but you dont want another one of this scale, which is why I agree with Mr. Brown on more regulation. Regulation will bring a better understanding of the "money product".

The Germans and the Italians have a fairly good idea on how to build a car, but with a monolith lik GM in trouble of collapse, even well understood legacy products, and how to deal with them, will always remain as an element of risk. Why? Simply because of people. Some people just don't like driving, if you catch my drift.

Anyway, I quote George Soros when I say "History does not repeat itself [at least in finance]. The collapse of the banking system in 1929 was the cause that lead to the Great Depression, and that is why governments will not allow the banking system to collapse."

So, as gloomy as 2008 was, we'll come back, stronger, better, faster. .....I hope!

Wednesday, 24 December 2008

Breaking the AdSense model?

I am a bit tipsy at the moment, but I was having this idea. With my techie mind and my position in the midst of the financial industry, worrying about the recession can become quite interesting of a conversation after a few pints....

Anyway, we were talking that innovation is the only way to get the economy moving. Innovation, is new ideas, which create new businesses, demand new skills, and move the investors and the entrepreneurs.

Well my brilliant - well brilliant if you were reverse brainstorming- idea was to start a social movement to urge people to start clicking on all these ads you see everywhere on the internet. In 2007, Google had almost 18 trillion clicks. That's alot of clicks, considering that companies that run ads online pay per-click, and the clicks themselves can become quite pricey, with up to 5$/click. The idea behind that, is that if so much users click on these ads, some of them will eventually become customers. i.e. the traffic on that website will be increased, and the more traffic you get to your website, the more you sell stuff. The click itself, is completely free from the user/surfer's end, as all they do is click. The idea is that if we start that social movement to urge people to start clicking more on these adds, Google, or people behind the Ads, will start making much more money if , for example, the clicks jump to like 30-40 trillion clicks, the size of the AdSense market will double or triple. Be it an already huge market, in the 100+ Billion dollars, then tripling it, from the user end, is a free contribution of throwing like 200 billion dollars into the markets. Well, that's bigger than alot of bailout packages governments are dishing out, combined!

Wait a minute, but wouldn't that break the Google business model, and collapse the AdSense? The idea that more clicks would bring more customers, and bring more business, based on the assumption that if one tenth of the people visiting there site will buy something, that's great! But, what if the users in this alleged social movement are just clicking at random without actually looking at what they are clicking? This means that more traffic isn't really getting more customers. At that point, the advertisers themselves will start complaining and would want the AdSense prices slashed by the same ratio of customer/visitor was reduced. The bad thing about that, is that the market will shrink back to its original size, and our social movement is rendered useless, and they revert to stupid suckers clicking without a cause. (Then they establish a charity and get government benefits). The loser in this game, is that the AdSense business mode will collapse to the extent that its become commodetized and it doesn't really derive serious revenue like it does now, and a new innovation will be needed.

The only upside of this, is that even if these members of the social movement are still to determine whether they are smart geeks or a bunch of suckers, pshychology is on the market's side is that no matter how indiffirent you will be to what you are clicking, you will eventually find yourself stopping at one of the random links you clicked, because something caught your eye. Probability is also on psychology's side- because girls will always stop at the word chocolate, as well as the guys will pause on a lingerie picture. (Did I just make a girl/guy psychoanalysis? Sorry!)

I started an internet movement, financed it, and completely broke down my business model. So I guess I still don't have my winner tech-business idea.......

Damn it!

The Oligarchs?

The thing about writing is that you often don't feel like it. When it comes to bloggin, well, writers block looks like a walk in the park, coz for me, it's often more ideas that I believe deserve a blog post than it is writing the post itself.

Yet one of those things that stopped me the other day, is that New York City is back on top of the list of the city with the most billionaires, regaining that position from Moscow. Especially that all these oligarchs really piss me off because it's just the result of an exploitation of a system that is not open enough, and if it wasn't for their political connections they wouldn't be dreaming of this kind of money. (Yeah ok, dating a Russian hottie who was also stupid as fuck and wanted the shinny things contributed to my dislike of the oligarchs, but anyway).

It all started with Anatoly Chubais (I think it was him), who introduced just a small clause into the Communist party manifesto (or the equivalent of whatever constitution they have), which allowed the establishment of small business desks for individuals. Of course this was done the communist way, with businesses being given one name, and numbered like "Communist Bank 1", "Communist Bank 2" etc... yeah, it looked like communism unchanged, but those who knew the system, like Khodrovsky, knew how to exploit it. Once, Gorbachev, who history will one day recall as a great leader, not one who failed in the communist realm, but someone who understood that the fall of the USSR was imminent and he just let it happen. He didn't care it happened on his watch (in 1989, there was more firepower and army troops in Moscow to smash the protesters, but Gorbachev didn't really see the point in that). Well come capitalism into Russia, when the government decided to sell of its state owned businesses, factories, resource etc, the oligarchs were already very well positioned, with the rubles (which they then miraculously switched to dollars) and the small "businesses" that Chubais allowed, as well as their political connections to buy out the state at a something that the word "bargain" is just too weak to describe. Think adding zeroes to your bank account with a scratch of a pen. It's like you have an auction, yet the only bidders are those making the sale, and want to get it for the cheapest possible.

It's really simple. The government under the communist state, had already footed the bill to build all the infrastructure, the pipelines, the roads, the factories and steel mills, etc, and then simply was too bankrupt to run it themselves. It just needed someone with a little cash, to lubricate the process and get the wheel turning again. Surprisingly (not really) those with the cash, where those oligarchs that took it from the state (when they played the devaluation game (chech this ) : take the money, buy dollars, devalue the currency and you are the only one left with any real money to do anything, then swoop in and buy out all the assets, and pocket pure profit.

This is particularly interesting, because something similar exists in Saudi Arabia, yet another oil rich country. For example, Saudi Telecom, the biggest telecom operator in the Middle East, and formerly the 13th largest telecom companies in the world, was one very profitable company (at least when I was in the region, and before global recession and the decline of oil prices), simply because the whole telecom infrastructure, the base stations, the transmission dishes, the relay stations, the switch boards, routers etc, was all paid for by the government. It wasn't subsidized, it was PAID for, by the government. And then what happens? They privatize Saudi Telecom into STC, and throw it on the stock market, as a purely profitable company. Of course it is, they don't have any running costs or debt service. Operations costs? pfffffffff that's nothing.

Yeah well think of the Oligarchs of the private owners of such government institutions. Now that's what I call big money.

The only twist in all this, and I don't know if this really is the way things work in Russia, but I know one thing: Don't piss off one certain ex-KGB agent, with a black belt in Judo.

Now, Boris Beresovsky knows this very well, so does Khodorvsky, and Abramovich sure does. I guess now, they are laughing- well, at least Abramovich is. Beresovsky, although equally a London billionaire, would probably do anything for some real Russian vodka, but I guess he isn't dropping into Moscow anytime soon. Khodrovsky, in a 4x3 , probably is enjoying the vodka, but probably not much more.

......there is really only one oligarch, and his name is Vladimir Puttin.

I recommend Hoffman's book "The Oligarchs: Wealth and Power in the New Russia", yet I'd like to read "Putin's Russia" but my shelves are stacked with enough unread books already.

Sunday, 21 December 2008

Finance for Engineers - The Basic Jargon

I hardly need to explain: trading desks, stock exchanges, papers flying, phones ringing, mice clicking. Its a crazy industry you have to be deranged to understand it. Well, not really. Except if you are Alistair Darling and you just issued the British Government annual budget, but had to review it after the credit mess. Being an engineer, a few "keywords" can help in debugging some terms:

The Basics

  • Buy Side: People that buy stocks (securities) in order to make a profit, either from dividends or returns. Ex: All kinds of funds: pension funds, holding companies, corporations.
  • Sell Side: People that advise the buy side on what to buy, by doing research, expert analysis and coming up with investment ideas. They effectively don't buy the stocks/securities, but rather advise the buy side on what to buy, charging a fee for service, and/or a percentage of the profit. (usually measured in basis points) Ex: Investment banks and brokerage firms.
  • Hedge Funds: An institution that holds a bulk of money for very wealthy individuals and/or companies, that allows them to create large scale investments that can yield higher return than individual investments. Hedge funds, unlike mutual funds, are exempt from a number of regulations that allow them to apply more aggressive (yet riskier) investment deals.
  • Mutual Funds: An institution that has shareholders, who invest money in that fund, which is run by an investment company. This money is then used to buy or sell shares, bonds or assets (businesses, equity, technology, etc..), according to a set objective, which is the reason the shareholders have invested. Mutual funds, unlike Hedge funds, are governed by rules and regulations against things like monopolies, unfair advantage, business disruption, etc., but on the flip side, are more liquid and shareholders can opt out at any time.<>
  • Commercial Banks: A bank in the usual sense where everyone can have an account deposit money and do transactions. Many of the commercial banks (UBS, Chase,Citi), due to immense wealth, create their own Investment banking arm, as well as their own internal funds (because they can!)
  • Investment Banks: An investment bank is everything a commercial bank is not. Fewer employees, different operations, and, in most cases, less money. (yep, amazingly so). Investment banks are underwriters, or agents for businesses and corporations issuing securities and stock. i.e. if a company wants to go public, it hires an investment bank to handle it's IPO. Investment banks employee loads of analysts that do alot of market research, to which then the associates and higher ranked employees, advise the investors (funds, corporations, businesses, and in some cases, rich individuals). The investment banks extend their functionality to so many other different areas, such as trading, with trading desks as big as football fields!
  • Traders : People who do the actual buying and selling of stocks on behalf of clients. Traders that work on the stock market are required to have a securities trading license (these are the people that throw papers and smoke outside the stock exchange and are constantly on the phone). Traders usually buy and sell in short periods of time to make profit on changing stock prices.
  • Brokers: Brokers are intermediaries between buyers and sellers. They also are sales people who would talk to clients and advise them (based on their own, or market research) on what securities to buy and sell, and charging comission.
  • Equity: Equity is the value of the securities in a given investor's account assuming that the account is liquidated at the current price. An account can have multiple stocks across industries.
  • M&A : Mergers and Acquisitions. Investment banks usually offer companies with advice on whether or not to acquire other companies and/or merge with them. Briefly, and acquisition is when a company buys-out another (usually smaller) company and incorporates its products into its own. The bottom line of an acquisition is that the bought-out company seizes to exist. Employees either become employees of the acquiring company, or are laid off. As for a merger, is when two (or more) companies merge to form a new company, with both businesses remaining servicing their primary business, but with new money, new management and refactoring. The main difference between a merger and acquisition is strategy, that mergers usually introduce strategy changes to the merging parties, while an acquisiton, is because the parent company thought that buying the acquired company fits into its strategy and growth! Merger example: Reuter-Thomson.
  • Public Companies: Companies traded on the stock exchange, in which any member of the public can buy shares in that company. The one important issue about public companies is that they are required to release financial and business details to the general public.
  • Private Companies: Privately held companies, that do not issue public stock. This frees them from the obligation to release details about the business, beyond what is general information. This makes them like a black box, and to some extent, a competitive advantage. Ex: Bloomberg
  • Portfolios: The combination of bonds, stocks , equities etc... held by a person and/or company. A portfolio usually is diversified over a number of industries, and combinations, to minimize risk. (i.e. don't put all your eggs in one basket).
  • Revenue: The total return the company made from its operations throughout a fiscal year. i.e. before deduction of tax, expenses, salaries etc...
  • Profit: What is left of the revenue after what needs to be paid is paid.
  • Dividends: The return of a given stock. The profits of a company are divided on the number of stocks, and paid out to the shareholders, either in cash, or otherwise (goes beyond my scope :))
  • Market Cap: The product of the value of an individual share by the total number of shares.
  • Income Statement: An income statement is a document that analyzes a company's revenue (not profit) and expenses over a given period of time. In the US, this is usually done on a quarterly basis (i.e. every 3 months).
  • Balance Sheet: An overview of a company's financial situation. i.e. what is in red and what is in green. What does the company has in assets (green) and what it has in liabilities (red). The gold equation of a company situation is : Assets = Liabilities + Equity
  • News: Anything released by companies to the press - this is directly related to what classifies as public information and private and confidential information- related to insider trading.
  • Price to Earnings: a measure of value of a stock. i.e. how much a stock costs compared to its return.
  • Estimates: An estimation of the potential earnings of a current investment.
  • Stocks - Outstanding/Common: Common stocks issued by the company held by the public and give holders the right to vote and claim to dividends (although the dividends are dependent on the performance of the company).
  • Stocks - Preferred : Stocks that do not give the holders voting right, and pay a fixed dividend (if any), regardless of the company performance. (not quite, but this is the general idea)
  • Bonds : A bond is basically an "I owe You" document that a government issues to raise money from the people. i.e. Someone can purchase a bond for a certain amount of money, and the government or bond issuer (not always, but usually) promises to pay back the money with interest, either at one specific date, or at set period (frequency) of time. These bonds are themselves tradeable, in which bond holders can sell these bonds before they are due. This is when a bond is sold at a premium. Government bonds are important, because, supposedly, it is zero risk and governments usually pay back the money. i.e. guaranteed money back - an alternative way of investing. (unless the government defaults on it bonds , which happens rarely, but can happen. ex: Russian government defaulted on its bonds in the 90s).
  • Analyst: The lower chain of the finance echelon. Analysts (ref. investment banks) are the people who do the grind work of research on companies and businesses.
  • Associate: Usually post-MBA employees who are the people that make the investment/brokerage decision based on research done by the analysts.
  • Rating Agency: Such as S&P that rate bonds' likelihood of default. (as in bond issuers not paying back the bond).

Oh yeah, and these are entirely my notes.....or my fault!

Friday, 19 December 2008

Tales from the Basement - Mergers and Acquisitons (2)

So in a previous post, I talked about M&A and how difficult it can be for someone to be M&A'd, because that requires a lengthy and tiresome process of integration and people shuffling and most importantly, resource allocation.

Well when it comes to technology, acquiring companies is a way of living, or to be more exact, a survival tool. Talking to someone at IBM, who's been there for 25 years, and is now on the Domino project, he said that today, on average IBM acquires a company every three months. that's in line with Domino, which is a meta software, I.e. a software that manages software. Well, wat is important in this point is the managing software bit. For a company like IBM, which is, according to my friend Kags (an IBM alum), is that the company is just too corporate, and that it takes a lot of effort and people to get the ball rolling on a project from scratch. So sometimes, its just easier to just buy a company with a working product.

But when they do that, there are 4 decision

1) business as usual: the small company has a good idea, its working and its staff are performing. With a little more push, resources and money, they can go to the next level,. The aquiring company can take them there, and everyone shares the profit. Example : Smith Barney

2) the idea: the aquiring company just wants the idea, with its patents and copyrights, when it can use its own staff to gut it and rebuild it. This is when it gets ugly, because that means people will be fired, job description will be rewritten and previous work may be chucked out.

3) client base : sometimes the company just want the clients and exposure to the market , throwing money at it, allocating engineers and staff, and providing with a wealth of resources. Example: YouTube. (Google just wanted the exposure and retaining as much users in its realm as possible)

4) Hostile Markets: Sometimes, small companies are like little thorns in a bigger company's side, and they are stealing clients from them, and well, that company is running the risk of loosing some clients, and if that company gains enough momentum, or enough small companies spring up and start merging, small fish may become bigger and evolve into serious threats. So, for the monolith company, its just easier to buy out the smaller company out of the market. Often, this is the whole point of the small fish anyway, is to be bought out, because they got the idea, and they really want to get more money for it, because it's not really there intention to make a long term business, but rather just cash in now on their idea. So, they come up with the idea, build something around, get a proof of concept going, and sell it to the highest bidder. (My style of companies) . Example of a killer whale: Microsoft. Example of small threats becoming a risk: Intel and AMD.

So basically that is the logic behind M&A, from a managerial side. I am not talking about M&As at banks, because these idiots are just out to make the cut on the sale and the aftermath is least of their concern. (Much like consulting, which I also hate).


Street Smarts


I was up to my old habit of wandering around the city, alone with my thoughts. Walking down one of the streets in East London, I notice an attractive young blonde kind of strolling around, except she wasn't exactly walking in a straight line. As I get closer, I relaize that she actually didn't look normal, turning around as if looking for something. Passing by, there was a car with two guys also looking at the blonde with a bit of a surprise. As we both become aware of each other looking at her, I make the gesture and the dude in the car goes "Oh right", as we both realize the woman is obviously on crack, as he almost climbed into the back seat to get a last glimpse of her curves as the car pulled away and I keept walking.....

I keep wondering what it takes to be an entrepreuneur, like the Richard Bransons, the Donald Trumps and the Alan Sugars. I am not talking about the Larry Pages and the Mark Zuckerbergs, or the John Paulsons, Vladimir Potanins, or the Rothschilds , because all those people started from something: The Stanfords and Harvards, or the Politics and the Connections. Am talking about those people who cam from mediocre, or just plain ordinary backgrounds, and made their way, all by themselves, to the top. The husslers, the streak entrepreuneurs, the capitalists. I guess it takes a lot of things, and a shit load of luck, but all these people have one thing in common:

Street smarts.

They say a great salesman can sell t0 water to a fish. These people know all about grass roots- and grass roots is where it all is, because that's where the real hunger starts. It's a jungle out there, and everyone is out to get theirs, and if that's what it takes, get you along the way. It's a competitive world, and in order to survive it, one should know his way around things and people. You can have all the degrees in the world, all the money and all the connections, but to be a player (Billy Harris RIP), you have to be street smart. A street smart person knows how to operate with very little, in a cut-throat environment.

When everyone was a kid, we went through high school. We were all bullied at some point, we got into trouble, we got ratted out, but people survive. Although that's where you start finding your route: some take the bullying and the crap, and stick to the books. Others bully and are on the opposite end, but in the middle you got a few who are a bit of both, the role players. This is when they learn what it means to be on each end, and to survive, they do the talking, the walking, and try to make the best out any situation. In high school, it's all in the open. You know who the nerds are, and you know who the bullies are. You have rules, and you have enforcers. Well identified.

In the real world, this, sadly isn't the case. It's all fair game, and you don't always know who you are playing with. Street smart people can operate in any environment, because, they know how to work the players. It's a business man or a car dealer, they do the sweet talking, they do the bullshiting, they know the math, and they understand the psychic (and if they are good, the women, too). They can lunch it in Hackney or the Bronx tonight, catch the subway to Chez Charles and catch the stretch ride to the Ritz. It's all people, you just have to know who and what the person you are dealing with.

The one thing that defines street smarts, is to be able to think on your feet, literally. Not in the comfort of the boardrom or on a noisy trading floor, but when your wallet was stolen and your phone battery is dead......in the Saudi desert. The street smart, is the dude who can catch a camel ride, dine with the nomads, and find a charger for his phone. What people like Richard Branson can do, is not only that get to that boardroom meeting, but make friends with the nomad, who in some crazy twist of event, can end up being the heir Prince of Arabia, and send some some serious bailout money to one of your credit-crunched companies.
That LSE degree sure is essential in that board meeting, but that means jack all in the desert! That's when street smarts comes into play. The degrees and the money work for alot of cases, but when that no longer does, the street smart man, knows that when they are gone, he still has something to work with, because he has....the grass roots savvy, and knows, that his biggest asset, are the people.

No refs, no rules.........no problem................

Monday, 15 December 2008

The Fed Secrets

The Federal Reserve bank of the United States is, in theory the biggest bank in the world, since it is the central bank of the biggest economy in the world. This bank, currently chaired by Ben Bernanke, monitors the economic activity of the USA, and is supposedly the regulating body of the markets. Although, this sometimes can be challenged, and the Fed is not exactly a good samaritan.

Before I dive into why that is, there is something important to mention, which was brought to my attention by my former professor, Ian Angell, in his book "The New Barbarian Manifesto".

Rating Agencies.

Rating agencies such as Moody's and S&P , are agencies that rate credit. This is important because it allows investors to assess whether a certain institution is likely to default on its debts. It is of particular importance in tough times, because its a good indicator for investors. The weird thing about these times, is that rating agencies seem to have acquired considerable power influence, because they also rate treasury bonds. You know the AA, AAA, B ratings etc... But the trick here is that when Moody's rate treasury bonds, its as if its rating a country, whether the country/government will default on its treasury bonds. Now that's like a private institution rating a country. Well, in retrospect, can't that pass as to be such a powerful institution that it can affect how governments are perceived by the internation community? That's quite a thing...

Anyway, the reason the Fed isn't exactly a good Samaritan, is for example, they do tend to keep secrets, like who they are giving aid to. Check this . The issue about this is that when a Central bank doesn't reveal who it is dishing out aid to, its affecting the transperancy of markets, as well as their operation, because when a company needs aid, its really an indicator that they are in trouble, and when someone is in trouble its usually reflected on the stock price, and investor confidence, and may dilude investors into investing in a dying company.

Which is unfair.

But a small story, is that the Fed often has favoritism, and we all know that the world is not really fair (haha that's a laugh), and people often favor people.

At least Bear Stearns know that. There is something called a discount window, which allows banks to take money from the Federal Reserve with a reduced interest rate, to service debts for a short period to avoid a liquidity problem. This is open for commercial banks, because commercial banks, although technically less active on the lending and investment scence for business, are crucial because they hold the people's money : savings, running accounts, etc., and if any of the commercial banks go into liquidity or financial troubles this can mean big trouble on an individual scale, because this doesn't mean that business will be affected, but directly the individuals, and not one or two, but thousands, if not millions. Imagine if Bank of America went bust, and all its customers lost their money, or part of it. That means riots, toppling of governments, demonstrations, big big trouble because that's going directly to the people. If an i-bank goes bust, the government can still somewhat handle the bankcruptcy without huge trouble, because hardly anyone will be instantly fucked. i.e. investors and business will probably go bust and employees fired, but imagine if 100,000 people no longer could afford to eat the next day, because their bank accounts were cleaned out. Lots of trouble.

Anyway, the discount window was , exceptionally open to investment banks, because the crisis was so grave, they just had to do it. Although, because of an old quarrel, and the reputation of Bear Stearns being the sharp elbowed rebels of Wall Street, the Fed only opened the discount window for the i-banks, after Bear Stearns (or stare burns like my friend now calls it), was already finished, and could not benefit from the discount window.....

Goldman Sachs and Morgan Stanley, were more lucky than that, and managed to benefit from this move, although, this came at a pretty high cost, because the Fed forced them to convert into retail banks. This move, brings them within a realm of more strict regulation and less freedom in investment and sell-side activities.

At least the Bear guys would never have to say "Hi, and thank you for calling Goldman Sachs. How can I help you today? Would you like to hear about our new mortgage deal?"

hehe. Live free or die fighting.....


MS retail bank

Tuesday, 25 November 2008

The Old Facebook Stupidity

You know what I dislike? It's people's abuse of the internet, and I am not talking about the hackers, crackers, spammers or scammers. Although, what I hate, is when people really think they can control the way the internet works, and that they can set the pace on how its used. (Sure users are the source of revenue but those who really understand users know that users are idiots and will keep coming back anyway. There is a sucker born every minute- I love this quote)

Back to the point.

I got two facebook accounts, more email accounts than fingers, and I don't know how many online accounts and logins on every website you can think of. It's just something that you have to come and accept that all this user activity we log, is simply unavoidable, and if you want to survive the informatin age, you just have to live with it.

An example of something I hate about user idiocy, is this "Bring back the old facebook" stupidity. Alot of people, actually most, people on the internet are completely ignorant of how the internet works, or how online communities work, or either of them. Sure, the thing about online communities is that they have no rules, and anyone can "start" a movement. I am not going to talk about online communities, that's actually an interesting thing to talk about. What really bugs me and spurred this post is how people don't understand how the internet evolves and will evolve, and that they think they can stop things if they get enough people behind it.

Go shout yourself.

For example, there is a group on facebook "4,000,000 to bring back the old facebook" and they are probably at like 3 million members so far. Utter stupidity. Facebook has changed its look and feel 3 times in the last 18 months, and none of these groups stopped them from doing that. And surprise surpise, out of the 3 million+ who joined these groups like idiots (sorry am using the word alot) did not leave facebook just because they didn't like the new look. Ha! that would be a laugh. They are simply too addicted and attached to it to leave, no matter how it looks. As long as it gets them to stupidly advertise themselves in a self-perceived-look-of-themselves-that-is-completely-different-than-reality, plaster their drunk pics, their lame social life, and their stupid ideas, then they will keep coming back. The only difference between facebook and other websites is that they do there changes in-your-face style, which I kind of like.

Take Amazon for example. If you take a look at the Amazon website 4 years ago, it would be much different. Yet, Amazon chose to introduce changes (recommendations, ratings, new products, etc etc...) gradually, and in a more subttle way, that users just evolved with it. Amazon probably has more users than facebook, but these users are a little more focused on the "in-out" idea (although this is changing also as more social networking features get added to amazon): find what you want, browse, buy, leave. But facebook is a passtime website, and users tend to spend longer time on it, and use the features, and hence notice them. And sometimes, don't like the way they change because its not the way they are used to..... but, they won't leave, because no else will !! There are 70 + million users, and growing, and as long as users think of self-advertising themselves on facebook, whatever Mr. Zuckerberg and co. at facebook decide to do, the users will accept.... well, as long as they don't start charging them for having an account. (Every wants free advertising )

Yet on the flipside, the crap thing about the changing online community is that business, like everything will set the pace on the evolution of the internet, is that it will go mainstream and become less fun. What facebook started off as something for fun and messing about making fun of each other and creating this virtual persona that had nothing to do with reality. Ribaldry (or manyake as we would say in Lebanon) was king, and I could up anyone by one, throw bad ass jokes on walls and portray myself as Chris Rock with a twist, it was fun. But when cats started using it to brag about how many friends they have, who they work for, what countries they travelled and how popular with girls they are, it all went wrong. And for people like me its now just another email concept of connecting with people- with less hassle on attachments. Check this post.

Bottom line, users are stupid, and smile, you are being exploited, because no one is leaving. As long as the girl thinks she can get back at her boyfriend by posting pics of her going out and having a blast, and as long as guys think they can get laid through facebook , everyone will keep coming back. I need to make a group called "all stupid facebookers"

It's shit that I now have to watch my mouth, even on facebook. Damn you majority.

Sunday, 9 November 2008

Where Internet Search Fails - Outsmart Google

You know, the thing about being a geek is that it is a charachter. Something inborn that you can't change. You can become a financier, you can become a businessman, an artist or a comedian, but its this thing that when you retire to your room, in your warm comfy bed, free of society and alone with your thoughts that is when who you truly are surfaces, when no one is looking.
I am a lot of things, but, end come to end, I am a geek, and a techie geek (geek by definition is someone passionate about something so much it defines him- it's not restricted to technology- u can be a photography geek, or a stamp geek....). I always wanted to be a techie, coz I always was a geek. I do it for the joy. It's a geek's world, and a techie heaven, and I always wanted to be the guy who makes people look silly when it came to computers. Now I am one, and I may be into a lot of things, like running the London Bridge Festival club, and being into finance and business, but, when someone slightly mentions anything remotely techie, I drift away on techie tangents and the internals of how it works yada yada yada... you can't run away from who you are.

This is by far, a geek post, with a capital G.

Anyway, we were talking the other day about search engine optimization, and I instantly broke it down in my mind, following my usual habit of coming up with an innovative idea, building a business around it and running it to the ground of its flaws within 30 minutes. (bad, bad habit , come on bright idea please come! am poor!) .

I am sure you all heard about this small company called Google. Well, they are big on internet search. Besides the fact that I believe that the main reason Google is so successful is that they have an empty, basic, homepage, with just the search bar. It's human psychology- simplicity - is the way to keep people coming back. Now, behind that search bar, is the famous PageRank algorithm, u know where Google does its calculations of how high the page should rank by computing all these different factors, such as inbound links, outbound links, keywords, meta tags, and the works. The idea behind this is to come up with a number, that is associated with each page, related to a given search querry, and these pages accordingly.

In addition, they have something called an index, which, is something like hashtable to which each and every page (and I mean each- well almost) page on the internet hashes to one value within that table. So, when you have that index, and you compute a page's hashvalue based on the PageRank algorithm, u'll get your search engine results, ranked by the closest match between your querry, and the hashvalue within that index. The complete equation is not completely released by Google, or any of the other search engines on the web, but the idea is that they try to "approximate" what the closest value in that index is related to your querry.

Trick: if you want to get a rough estimate of the size of Google's index, just enter a random large string of characters like "fdjadkmfjakjfdakjsangfkjgsafsa" in Google, and u will get like 1 or zero results in the search, but it will say "Results 1 - 10 of about 19,000,000,000 pages" which you can estimate the number of pages in Google's index. Lately it seems though that Google noticed that, and when u enter such a random string, it doesn't spit out this index size anymore but rather rejects the querry or whatever. This is probably because of the index debate, with Yahoo claiming to have 20billion pages in its index, Google claiming to have 3 times that, and the new company Cuil (pronounced cool- company which is going nowhere) claims to have twice the index of Google. (Funny that there website crashed the day it was launched).

This is all nitty gritty and nice, except there is an upper boundary for what internet search can do. Your search results are limited to the text the user enters. No matter which way you want to put it, and no matter how many web crawlers and algorithms engines apply, they just can't get into a user's mind. You will only find what you need/want on the internet is if you know what you are looking for. i.e., if you are cluless of what you are searching for, for example "that movie that the guy says 'bloody as hell' ", well if you enter "bloody as hell" , you'll probably won't get very far. Entering "bloody as hell movie script" will probably have Pulp Fiction in your first few hits and you are there. But, the point here, is that your brain did most of the narrowing down of the set you want to search for. It's not very difficult for search engine optimizers (SEO) to have algorithms that simply figure out that when you enter the word "movie" after some text, it will look first in areas related to movies. You made the job straight forward when adding the word "script". Piece of cake. In simplified ways the engine would do this -> movies subset of index -> scripts -> sentence -> bloody as hell. (Now play drums).

The great Alan Turing set the upper bound for what computers can do, with his Turing machine, and he proved, beyond a doubt, with his Turing test, that computers can't and will never think, and similarly its the same bound for for search engines: they can't get into your head.

These days, with the growth of the internet, and the immense computing power for a massive search engine like Google, they could maybe index each and every word, but a better way is that they can harness user data, by keeping logs of the search querries, and minning the data, to make a better educated guess. If most people who enter "sex for free" go to the same website, even if it's PageRank is shite, Google will notice that, and will "bump-up" its rank in the search results, using guesstimates based on visits. It's the same with social networks and getting users to create Google accounts and all that stuff. Google don't care about reading your emails, or knowing which pages you visited to spy on you or find out if you are a pervert- what they really want- is your data as a "user" to give them a better search engine. (At least I like to think so).

But these are just variations and optimizations of the same thing: trying to figure out what the user is thinking, by comparing it to what most people were thinking when they entered the same thing. But, that's just a speculation, and there is always the X variable, that can negate it. I may be a weird dude thinking "looking where everyone has looked before, but thought no one had thought before" ! (paraphrased from Albert Von Szent-Gyorgyi)

You want a trick to break Google? Trying to find out what "the" is in English grammar. Google removes any occurance of "the" because its way too common. Entering "definition: the" helps a bit, but not that much either- but, by using "definition: " u already proved my point, of humanly limiting the search universe :)

They will mine my website and guess my trick and stop it, and I will find another one, because...... I am a geek who drinks too much coffee.

Tuesday, 4 November 2008

Sharia Bonds

I have this habit of walking into phone booths. Maybe because I've never actually used one. With a geek phone that almost makes me coffee, why should I? Maybe it's just my burning urge to make station-to-station calls to Alistair Darling, "This is Colonel Lionel Mandrake..."

Anyway, while I was walking on Parliament street, I remembered that a while back, when I was still at the LSE (doesn't time fly?!), I read an article in the FT that the Exchequer were going to issue Sharia bonds, or, in other words, Islam compliant bonds.

First of all, a bit of a background. A bond, is an I-Owe-You paper issued by the government to which certifies that the government owes the holder of the bond a certain amount of money, and that it agrees to pay a given amount of interest once the bond is mature. Mature, as in, when a bond is issued, it's issued over a certain period of time, up to seven years, and when the time is up, the government will pay you back the money with interest. Unlike stocks, bonds, are technically "risk-free" as in, it's highly unlikely that the government will default on the loan. (This is how a spread is calculated: the risk difference between a bond (risk free) and a stock (price changes, may default - bankruptcy).

But, what is important to this post is the interest part, to which, in Islamic law , or Sharia , is not allowed.

Sharia, is the law that governs Islam and how Muslims handle money. According to Sharia, no man can charge a fee just for lending another man a certain amount of money. i.e. interest. Islam preaches that every man has equal rights to do business, as long as there is equal opportunity to everyone, where in a perfect system, every man can either make a profit or loose, or what is called the "Halal" way of doing business. Charging interest, is banned, because technically, when someone gives someone else a loan, that man has to pay him back. If he is also paying an interest for that money, that means the lender is a partner (shareek as ther term is in arabic) in the profits, but not the loss. i.e. It is not an equal opportunity because he always emerges as a profiteer. It is taken to a further level of severity , that charging very high interest (like 10%+ of the loan amount) becomes what is called Ribba in Arabic. i.e. Immoral exploitation of the loaner.

Now, that creates a problem for muslims who may decide to purchase bonds, because they will be making a profit in terms of interest, when the government, basically doesn't loose, and consequently they are making money from money, guarranteed.



Luckily, there is a loophole to this. A bond, is usually backed by an underlying asset. i.e. the cash amount of a bond, technically (but not exactly) can be converted into a certain solid asset, such as gold, land, oil, etc... and a government bond, is backed by the Central Bank, which, is in turn backed by solid assets. Gold the government has, land etcetera. Now, the loophole, is that if these Sharia bonds (called Sukuk in Arabic) are backed by an underlying asset, such as a running business that can, in theory, loose money, so that means there is a possibility of loss.

Although the UK has stalled in issuing these bonds, Indonesia, the largest Islamic country by population (surprised it's not Saudi Arabia or Egypt?) , is leading the way and it has categorized how the Sharia bonds will be structured:

1) “Ijarah” : where the bond is a lease to rent a certain underlying asset.
2) "Mudharabah" : Mudarabah in Arabic means the ability to lower prices to compete in the market, thus sharing the profit.
3) "Musyarakah" : profit and loss sharing.
4) "Istisna" which, in Arabic, means exception, and in the finance context means an exceptional funding to fund a given project.

Regulation Regulation regulation! The one thing probably stalling the issue of these bonds in the United Kingdom, is that our beloved Chancellor isn't too satisfied with the suggested way to regulate them, and the FSA has been summoned to work on that. The issuing of these bonds, will widen the pool of financial products available to Muslims. Although, I guess Mr. Darling, with the cockup the bankers did in the credit shit, isn't being too sloppy with too loose of a regulation.

I personally think that it's not only to capture the local Islamic financial market, but also the global market, estimated at around $500bn. Now the credit crunch has attracted Islamic money, but they do drive a hard bargain. Prince Sultan Bin Nahyan, ruler of the Emirat of Abu Dhabi and co-head of the United Arab Emirates , invested £10 Bn for 30% share of Barclays, in an attempt to bail them out.....

Anyway, I do believe that the Middle East and the Arabs are up an coming when it comes to finance, but as long as they haven't grassped the fact that money is just another commodity like food, oil, wood etc. and interest is just how you make profit from this product, then they still got a long way to go. (Oh shit, did I just implicitly wink at financial derivatives? Ignore please).

I need to go to into a phone booth and call Dr. Strangelove. Enough blabbering.

Thursday, 30 October 2008

Tales from the Basement - Mergers and Acquisitons (1)

There is something about bus stops. Maybe because I often find myself standing at them, alone in the wind, with dim lights, and the wind blowing through my in need-of-a-haircut hair, but they make me think. Usually when I get these thoughts, it's probably remenicing that I am no longer leaning on a lamppost.... (ignore the comment, I just think Ian Angell, my former tutor, 's book "No More Leaning on Lampposts" has a surreal title, and its content is even more interesting).

Anyway, I know a couple of friends of mine that work in M&A, or Mergers and Acquisitions divisions of some leading investment banks. It's like slavery, because these people work the longest hours there is, and call there excel sheet home. I do not really want to know what there actual jobe entails, but my friend, the exotics trader, claims its the most boring and tedious job in the field.

That's there choice, although, I'd like to find out if those M&Aers know what it is like to be on a receiving end of a merger or an acquisition from the client side. They broker and engineer the deal, but once it goes through, they make their cut, and skedadle off, with the clients left to deal with the mess of either merging, incorporating, or integrating the 2 companies that just got M&Ad (nice I should make a t-shirt that says "Smile! you've just been M&A-d).

Well, I am on an integration team for a company that was aquired by another, much larger, company. I'll focus on the tech side for now, rather than the acquisition process, which is buying out the partners, all the outstanding shares, assets etc etc...

The way acquistions usually work, at least in software, is that companies make a strategic build-vs-buy decision once they are looking at usually a 5-year growth/survival/competitivness plan. A company will decide that it needs to offer a certain product or solution, either to gain a competitive advantage, or maintain competitivness within the market it operates. Usually, the second reason is the main reason for an acquisition: the idea already exists in the market, is offered by the major competitors, or a small company offers it, and it is small enough to be acquired. (That small company is usually a spinoff or a venture by someone in the business, who isn't really shooting at becoming a competitor himself, and can sell the idea with a working product and a client base, making a nice bonus when the company is acquired). On the other hand, usually new ideas are built in-house by companies, and existing ideas are only built internally when buying an already existing company-product (interchangeable terms here), is less cost effective.

Which brings us to the main problem, or issues that the i-bankers don't have to deal with, which is integrating the businesses together now that they have been M&A-d, which is one of the situations I am in. We, the mother company, work mainly with C++, which is the cornerstone of our applications framework. Mainly financial databases, market data, stock exchanges - and that's the most I can tell you due to respecting confidentiality! Anyway, the acquisition company operate(d) with Java. I can't say much about the details, but, C++/Java interfacing, especially that these are serious products with a serious code base, that is at least a few years old, are not in the .NET/C#/JVM kind of integration realm, which creates some hoops to jump through to create a seamless experience for the end-user: Be it Java, C++, or Spaghetti Gorgonzola, for the user, it should all be the same speed, same look and feel, same results - everything.
If you work with software, you are probably familiar with the concept of meshing , and we all know how much that can be of a pain. That's why, we , just like many other companies in finance that worked with a wide scope of data formats and forms, have their own internal integration technologies, to create one main interface that all technologies need to integrate to, and that's the main interface that the user interacts with.

It's a tough spot.... Internal technologies are always clunky, clumsy, buggy, because, there are just that many people working on refining them- it's not like open source, with myriads of people working on the infinite use cases a programming language or system may have. But, in finance, two things are prevail:

1) There are too many data sources that you have to have a common platform - a suite that brings everything into one place.

2) Finance institutions have the money to build serious technology in house, and lack the trust to give it to anyone else!

At least that's the technology briefing on M&A, but there is the other managerial side as well: different structure of work, different hierarchies, different corporate culture, different business process, etc etc... that often when an acquisiton is made, there is alot of people shuffling, with people leaving and new people being brought in to join the new kids on the block. (I'll talk about this in another post).

All of that, is not the worry of the M&A dudes......

But, hey, justice comes to some eventually! With all the i-banks feeling the squeeze, some have merged or been bought out by others, and now they can see what it is like to be M&A-d!