Python on S60 July 29, 2009
Posted by harshahonnappa in Uncategorized.1 comment so far
As part of the afore-mentioned down time, I’ve also been spending some time messing around with Python on Symbian OS. I bought a Nokia E71 last year with the hope of writing some apps for it (well, that was the ostensible reason
I finally got ’round to doing some hackery now.
One of the surprising things I’ve found is that lack of a stop-clock/timer by default on the Nokia phones. Or maybe, I never found it. In any case, I decided to code one myself in Python. Being a script junkie (Perl being my choice of poison), I’d always wanted to check out Python, and its functional programming features. I didn’t get to use much of the functionality of the language, but it was a fun effort nonetheless.
You can get the app I created here. Dependencies include Python for S60 v.1.4.5, and an extension to it called Miso, which provides access to some of the underlying hardware – I used the phone vibrator in my code, as notifications. I’ve included the following files in the archive -
PythonForS60_1_4_5_3rdEd.sis
PythonScriptShell_1_4_5_3rdEd.SIS
miso-1.97-s60_30_py1_self.sisx
timer.0.2_v0_2_0.sis – The actual application. Bluetooth it to your phone, and install.
timer.py – the source, if you want to mock my coding
You will require a S60 Edition 3, feature pack 1, device at least to run the app.
What does the app do? Two things – a timer feature, where you can set the number of minutes you want it to count down, at the end of which, the app will buzz once. Second, a stop-clock type feature, where you set the total number of minutes to count up to, and every two minutes the app buzzes. The buzz-interval is currently hard-coded, though making that user configurable shouldn’t be a big deal. You can also pause, resume and completely halt a running timer/stop-clock.
Let me know if it works for you, and of course, feel free to mess with the source.
Mobile app development – Quite fun actually. The Python API’s are fairly extensive, from what I see, and one should be able to write some fun stuff for these devices. I’m not a software engineer, so I couldn’t compare the effort involved to developing on other platforms. However, some general observations – Nokia needs to make getting information easier! There are at least 3 websites where one can get information on the Python for S60 implementation. Though, it seems that forum.nokia.com is the go-to place, this is not very obvious for first-timers. You can also check out this wiki. Documentation, too, is fairly extensive, but it was only after a fair amount of hunting that I found this. Finally, I use Emacs for my code development, but I’m sure that Eclipse would be better for programming larger projects.

Readings July 24, 2009
Posted by harshahonnappa in Uncategorized.2 comments
Thanks to a vast amount of ‘down-time’ I’ve been enjoying, I’ve managed to catch up on some reading over the past month-and-a-half. The books I’ve read, and recommendations…
1. Fools Gold by Gillian Tett. See my review for a reco.
3. The Foundation Series, by Isaac Asimov
4. Slaughter House 5, by Kurt Vonnegut
5. 1984, by George Orwell
6. Cocktail Time, by P.G. Wodehouse

Fool’s Gold Reviewed June 30, 2009
Posted by harshahonnappa in Uncategorized.add a comment

“As long as the music is playing, you’ve got to get up and dance,” Charles Prince, CEO, Citigroup, 2007.
In a sense that one, pithy, statement neatly sums up the tragedy of the financial meltdown that we’ve witnessed over the past two years. Having lived, quite literally, through the penning of a new chapter of History, the first assessments of what went wrong during the Summer and Fall of 2008 are emerging. Fool’s Gold by Gillian Tett, assistant editor at the Financial Times, is one such example. I managed to corral Pramod’s (signed!) copy of the book, before he returned to the UK.
After having read so much about the crisis over the past couple of years (The Economist, FT, WSJ, NYT, the list is endless), I was under the impression that there wouldn’t be much new to learn from this book. Having taken just two days to run through it, you can guess that I was totally off the mark! The book provides an interesting vantage point to understand the crisis – from the offices of J. P. Morgan, the commercial bank, where much of the technology that helped to create the Credit Crunch was itself invented. At a gross level, the book is not so much about the implications and the motivations of the bankers whose rapacious greed has radically reshaped the financial system, but focused more intently on those “Financial weapons of mass destruction,” credit derivatives.
In order to understand a new technology, it is usually useful to understand the historical motivations of the designers of the technology – the problem they hoped to solve, their approach to solving it, the compromises they made in finding a solution. Fool’s Gold provides this perspective in spades. The notion of credit derivatives emerged at J. P. Morgan in the mid-nineties. The idea was to create a derivative instrument that helped to push risk off of J. P. Morgan’s balance sheet to someone else who was willing to take on the risk of holding the debt on their books. The team designed such a product for corporate debt instruments, which proved very successful. Essentially, they created a Credit Default Swap. However, the swaps were legally complicated and cumbersome, and since they needed to be concluded anew between two parties separately for each new swap contract, the J. P. Morgan team came up with a way of “industrializing” the swap creation process – the Collateralized Debt Obligation. Gillian Tett expertly takes the reader through the process by which these instruments were engineered. This is the book that you should read to understand the financial technology that lead to todays malaise.
What the J. P. Morgan team found when they tried to use the same technology to sell mortgage risk, was that it was impossible to justify the ratings of the CDS contracts, given the lack of data to accurately assess the behavior of the contract under distress. Given this, J. P. Morgan sold only one mortgage-backed CDS contract, and decided to stay away from the whole mortgage-backed security (MBS) market. However, this didn’t prevent other people from taking this idea and running wild with it. In fact, J. P. Morgan could be said to be mildly culpable, since, while they were happy to disseminate their creation to the wider financial world, they did not accurately portray the risks involved in the creation and selling of MBS’s, despite knowing them. And this is probably the greatest weakness in this excellent book – J. P. Morgan comes out too easily as a bit of a shining knight. A little more scepticism of their motivations might’ve been useful – but then again, that might just be me fluttering in the prevailing wind, given the current disgust with bankers.
Where this book falls short is the overt focus on J. P. Morgan. I hope that this is but a first installment in a series of books assessing the credit crunch. The questions that I would love to read Ms. Tett explain, in any subsequent books, include -
1. What was the role of the ratings agencies, in all of this? They come out unscathed in Fool’s Gold – which I find implausible. How did they manage to rate tranches of instruments like CDO-squared and CDO’s of Mezzanine ABS, as essentially risk-free, when they clearly weren’t? What of their incentive structure – why is it that the people paying the ratings agencies are the companies issuing the debt instruments, and not the buyers of the debt?
2. Why was there no clearing house or exchange created for credit derivatives? Why were most of these instruments being created and transacted between two parties in the dark? Especially since, increasingly, these instruments are being sold to uninformed investors?
3. The incentive structure for bankers – what made them get down and dirty, just because others were too? Why did they have to dance the dance? What happened to their rationality, in the face of gross market distortions?
4. Why were more and more complex instruments created, without the implications of these instruments being fully understood? Why was there an almost stupidly evangelical faith in mathematical models?
Of course, not all of these questions can be answered in one book. But, I hope that this is just a beginning by Ms. Tett, for she has the ability to explain complex financial mumbo-jumbo in rather simple terms. At the end of the book, one is left craving more information on the policy drama of September and October of 2008 – for instance, why Lehman Brothers was allowed to fail, but AIG not (all within a few hours of each other) isn’t touched upon at all. Having said that, this is still a very powerful, cogent, account of the beginnings of the most recent chapter in History, and one that must be read to get a foundation on which to understand the wider implications of the Credit Crunch. Highly Recommended.
From my mobile! June 26, 2009
Posted by harshahonnappa in Uncategorized.add a comment
I’ve always wanted to have a mobile internet connection, but I always assumed that it would be completely rubbish on GPRS. But I finally sprang for airtel’s GPRS connection, and while it’s definitely not the fastest connection, it is a very liberating experience. So here I am waiting for my grandmom to finish her work at the bank, and I, for a change, have something to mess around with. Heh, I can still ponder the potential juiciness of 3G though.
Skim June 18, 2009
Posted by harshahonnappa in Uncategorized.add a comment
I’m a murderer. Well, let me change that to inadvertent assassin. You see, I like to make notes on and annotate papers that I read. And since much of my life is consumed reading research papers, I print papers rather indiscriminately (of course, the fact that my office has a laser printer doesn’t hurt. But, that changes tomorrow). That’s a whole lot of trees dead across the world. I didn’t mean to kill them, but it was inevitable.
So you can see that the solution would be simple enough – notes and annotations in PDF’s and PS’s. For some reason Adobe refuses to add this feature of their basic Acrobat Reader. Anyway, for a while now, I’ve ditched Adobe and its Stalinist attitude for Skim, a free PDF reader and note taker for Mac OS X. Skim is far, far more refined and user friendly than Acrobat Reader. Notes can be added anywhere, floating or anchored, through out the text. You can also highlight, underline, strike-out and circle interesting text. There is also a search function to sift through your notes (which can grow exponentially). All in all an extremely useful application.
Occasionally I also find myself reading PDF’s in Linux (I have a virtual machine set up to run simulations, but that’s another post), and I’ve found Okular to be nearly just as good. Not as refined as Skim, but very, very useful nonetheless.
Politics Au Naturale May 8, 2009
Posted by harshahonnappa in Uncategorized.add a comment

You remember Hank, the guy from Me, Myself and Irene? No, not the trooper, the other guy with the ginormous…rage. Well, take him, add some politics, some government, some news hacks, toady civil servants, gutless politicians and loads of hilariously compromising positions, and you get the BBC comedy series The Thick of It, an utterly fantastic satirical political comedy.
This is probably the most hilarious comedy I’ve ever watched. Good comedy always has tons of narcissism, jealousy, self-centeredness and simple bloody mindedness – think George Costanza, Larry David and Basil Fawlty. By God, does The Thick of It have it! This series is so funny it’s painful, and so painful to watch, it’s funny. Armando Ianucci, the creator of the series, has the characters, the situations, the jokes, everything just spot on. I like mockumentary-type comedies like The Office, but this one takes the cake. The main character is the shamelessly manipulative, thoroughly cynical Malcolm Tucker, based on Alastair Campbell, Tony Blair’s former Director of Communications and Strategy. Through out the series, Malcolm intimidates the politico’s and the babu’s equally, to manipulate government policy to where he thinks it should go, damn the consequences. At the receiving end, usually, is the Secretary of State for the Department of Social Affairs (DoSA, haha), Hugh Abbott, who is the epitome of ministerial narcissism, interminably insecure about this position in the cabinet. Case in point, this roasting by Malcolm for giving an interview to the Daily Mail without informing Malcolm,
As you can see, the language is unhindered. And it all fits perfectly and in a strange way not gratuitous. For instance, Jamie, Malcolm’s assistant, excuses himself to get past a bystanding cleaning lady, after a marathon swear session. Having said that, I wouldn’t watch this in Starbucks, over free internet, without headphones.
This is definitely not “Yes Minister”. It’s so much better. And there’s a movie out now, called In The Loop, directed and written by Armando Ianucci. Sadly, I don’t think we’ll ever see it here in India. Oh, and while I’m plugging it, The Thick of It is on YouTube right now, all the episodes

Ghettoize, I say! February 4, 2009
Posted by harshahonnappa in Uncategorized.15 comments
I think Pramod Mutalik and his merry band have it right. They are correct, we need to ghettoize our nation. Damn it, how dare we all, of different religions and denominations, mix together destroying the purity of our souls? But, I think they don’t go far enough. Oh no, not by a mile. Let’s go the whole hog while we’re at it, I say. Let’s ghettoize ourselves into one man islands. I live my life, and you, you mind your own business. It seems the only logical end, no?
Gotcha! February 1, 2009
Posted by harshahonnappa in Uncategorized.6 comments
After a day pondering it I finally figured out what I found totally strange about “Jai Ho”, the song during the credits in Danny Boyle’s film, “Slumdog Millionaire” – the characters don’t sing it to each other! They just…dance. This is wrong! Heresy! And this is why hamara Baalyvood is better I say – we know how to put our mouths where our feet are at.
Anyhow, here’s the song for your enjoy-maadi…
Moronic Sentences… January 19, 2009
Posted by harshahonnappa in Uncategorized.6 comments
… like this make me want to weep, laugh and rant at the same time.
Sample this from a Guardian blog post, about Asian cinema taking over the world – “China aims to make cinema as important as its internet and telecoms industries; box-office receipts there increased by 27 per cent in 2007 alone.”
What does the heck does this sentence mean? How does China “decide” to make cinema important? Is there a central committee there making these decisions (heh, there maybe, though)? It’s cinema for crying out loud! You can’t just “aim” to increase the importance of cinema – it’s not like building roads! You make films because there are subjects to explore and people want to watch them. If Chinese cinematographers make movies people like, then Chinese cinemas importance will increase; not because the Central Chinese Movie Command has decreed that cinema will “take the place of toys on the list of exports from China.”
The Sadness December 1, 2008
Posted by harshahonnappa in Uncategorized.2 comments
The last few days have been the most distressing and depressing, compounded by confusion. Confusion over myriad questions. How could this have happened? Why us? Where are our leaders? Do we have any leaders? What can I do? What can I do? The most depressing sight was the juxtaposition of the men who went in to flush out those remorseless killers – “Theirs not to reason why, theirs but to do and die” – and our sad, pathetic, infinitesimally small politicians – not a leader amongst them.
India’s 9/11 people have said. But 9/11 in what sense? If in the sense of a devastating attack on a nation, then we’ve had many of those. Many that we have mourned and then forgotten, perhaps because it happened to “someone else”, perhaps of the anonymity of the assailant, cowardly placing a bomb and riding away to watch the carnage on the news. If one means a 9/11 that jolts us as a people out of our seats, especially those of us most comfortable, then I agree this is our 9/11. The thought that depresses me the most, though, is that we might, nay will, forget this and go back to our old ways. That this moment of grief and resolve will dissolve with nary a trace. That we will shout and rave and rant, light candles and then like the flame in that candle, the resolve will go out.
I hope that I am proved wrong. Proved to be a cynical fool, who deserves to be shamed by the actions of his fellow citizens. Actions that do not have to be dramatic, do not have to be terrorist busting. Even the smallest thing. I hope to make that change in my life – to be that bit better. I don’t know yet what that might be. Something I must figure out for myself, just as it is a conundrum for each of us.
We had a leader once – “a half-naked fakir” was how Chruchill described him. Someone who’s despised by many of us, turned into a facsimile, by pop-culture “gandhi-giri”. Fakir or not, facsimile or not, he showed us a path to freedom – not merely from the yoke of colonialism, but from the strife within our minds, from the self-defeating divisions we raise between ourselves. Today, as I think of what I can do, nothing strikes me to be more relevant than one of the many small tenets that he left us to ponder over – “You must be the change you wish to see in the world.” He may not be with us, but he has left us the tools to forge the path we may wish to take. I hope that we will all be the change we wish to see.
Let us never forget the brave men of the N.S.G. and the Mumbai Police, the men and women who were the staff at the Oberoi and the Taj, and the scores who died because their number came up in a strange and despicable lottery of death.