Monday, June 22, 2009

Where the mind is with fear

Excerpts from two articles in hindustan times written by Manas Chakravarty and Indrajit Hazra.

We are a non-violent people. We hate it when people resort to violence. In Lalgarh, the tribals have all along been very peaceful. True, the primary health centres in their villages didn’t have any medicines and doctors from the towns rarely visited them. So what’s new? Many people saw their sick loved ones die as they made the long trek to the district hospital from their villages over the dirt tracks that pass for roads. But there was no violence.

Finding drinking water in the summer has always been a problem in the villages. Ponds have had to be used for both drinking water and for bathing. Children have often suffered from diseases as a result. But the tribals of Lalgarh are used to their children dying early. They never complained.

Most villagers in the region are caught in a vicious poverty trap. Malnutrition is rife. Doctors from Kolkata who recently visited the place said that what the people needed was not pills but food. Nobel Laureate Amartya Sen once said that hunger was “a quiet violence”. He meant that if a state can’t feed its people it’s guilty of violence towards them. But he was just twisting words to suit his theory.

Indians are malnourished not just in Lalgarh, but all over the country. A recent Unicef report said that 405 million people in South Asia suffered from chronic hunger. India’s rank in the Global Hunger Index of 88 countries is 66, below several African countries. So there’s nothing special about Lalgarh. Also, in spite of being hungry, the people were peaceful. Being peaceful is the most important thing.

Every election, the Lalgarh tribals voted the Left to power in the hope that these self-proclaimed friends of the poor would help them. But in spite of the promises, nothing happened. The money from the anti-poverty programmes never reached them, the police occupied the buildings that were supposed to be clinics and the irrigation canals dried up. They watched in silence as the local party bosses built mansions and businesses for themselves and their cronies.

For more than 60 years after independence, they patiently waited for better times. And it’s not that the country wasn’t doing well. Some of them went to the grand city of Kolkata and came back with wondrous tales of shining malls and air-conditioning and taps that never ran dry. They were right to wait. For as we all know, it’s just a matter of time. Once the Sensex goes up enough and CEOs start earning several crores a year and India becomes a world power, then money will trickle down and reach places like Lalgarh. True, generations may be destroyed before that happens. But that is not violence.

Some things do seem to suggest, at first glance, a hint of brutality. Take the routine manner in which the police pick up tribals for questioning and then torture them. But that’s required for the police to conduct their investigations. How else will they protect the people from the Maoists? True, tribals in Lalgarh lived in constant terror of the police and of the party thugs. But that is not terrorism.

Of late, though, the people of Lalgarh have been behaving very oddly. They drove the police and the party bigwigs out of the area and torched their houses. They have started digging wells, setting up schools and running health clinics, without any help from the state. They have formed a Committee against Police Atrocities which wants electricity in their villages and roads and bridges to be built. Worse, they even want the politicians to apologise! Very strangely, after all these decades, they seem to be running out of patience.

What on earth is going on? Outsiders must be inciting them to violence. We are a peace-loving people and must stop this violence at once. Don’t worry, our tribal brothers, our troops are on their way to save you.

--Manas Chakraborty

The conditions that have led people to fall for the seductive charms of violent revolt were being pressure-cooked for years. An administration had long forgotten to recognise, never mind keep, its part of the bargain with the very people who had given the CPI(M)-led front its generational power and the pelf that comes with it.

Take the case of Kuna Sabar, a resident of Darra village in West Midnapore’s Belpahari sub-district. On December 22, 2007 — when a million miles away in Calcutta, people were frantically speculating about the return of Sourav Ganguly in the Indian cricket squad — Sabar died of hunger. If his cause of death (confirmed by a doctor) wasn’t shameful enough for a government that took pride in prioritising the concerns of its rural masses, the subdivisional officer’s response to the death was horrific. He said that documents showed that Sabar had bought “8 kg rice, 2 kg wheat and 2.4 kg sugar” from the ration shop “between December 2 and December 16”. Effectively, he was telling Sabar’s widow that his death must have been her husband’s fault.
Sabar is just one statistic. During 2004-2005, a year before the Left Front won the 2006 assembly polls by a landslide, dozens of ‘hunger deaths’ across Bengal were recorded by the Asian Human Rights Commission. And these sordid deaths were overwhelmingly because of utter administrative failures. Till January 2008, only 34 people in West Midnapore, for instance, had received the minimum 100-day job and corresponding pay under the National Rural Employment Guarantee Scheme. The remaining earned wages for an average of 11.6 days.

In a universe where bureaucrats, academics,policemen, the cogs and wheels of administration and governance are deeply entrenched in ‘party affiliations’, accountability can only be a silly theological notion for bourgeois ‘management types’. It is this affliction of apathy — and of genuinely being stumped about why people might be enraged about pointless deaths, of living in life-defying poverty — that really makes for something rotten in the state of Bengal.

What applies to administrative ignorance (an evolutionary byproduct of administrative apathy) holds true for a police force that simply doesn’t know anything about crowd control or how to tackle a riotous mob. Either the police do nothing (as they did when the Maoist-goaded People’s Committee Against Police Atrocities in Lalgarh first marched to the CPI(M) zonal headquarters in Dharampur last week to destroy any signs of the CPI(M)/administration and attack party workers), or they shoot first and ask questions later (as they so memorably did in Nandigram on March 14, 2007).

Only in Left-ruled Bengal do you get armed partymen being regularly and openly sent to ‘capture and liberate’ towns and villages that have fallen in the ‘wrong hands’. The police arrive at the scene later, if the comrades and their local commissars have failed to do their job. As this is being written, the state government has finally let the police and security forces enter Lalgarh to ‘reclaim’ it from the Maoist ‘invaders’. It will remain unclear for a long while whether this reclamation is being conducted at the behest of the CPI(M) or the people of Lalgarh, considering that the concerns of the two are different and almost diametrically opposite.

--Indrajit Hazra

Wednesday, June 03, 2009

During Microsoft Teched at Hyderabad, there was a contest for the top architect which I contested.
The following images are of the slides I sent and the text is basically the audio I sent.

High Overview


UseCase




Microsoft Solutions Architecture





Deployment


The first slide is a high level overview just for illustration purposes, so I won't delve into that. Let me speak of the Use cases which is in the 2nd slide.Here as I state a user or rather an authenticated user can vote, Mark Self as Candidate, sponsor someone else as candidate, view candidate info and so on. Ialso have another actor Candidate who extends from user and can upload content. I also have a external system who gets data and functionality from the system. To do so it pays to the system which I have assumed is done via a Payment Partner. The system also takes money when a user marks self as candidate and sponsoring another person.This is another assumption i have made.
Now to the solution Architecture, I have proposed a N tier application(in code) with complete seapration of UI, business logic, and data access logic. I follow the business facade pattern and will have a generated Data access layer where every method corresponds to one stored proc. Now one thing people might not like is the site having both a web client and a rich internet client. I like rich internet clients a lot and I think its usage could be a great plus in this site. I have suggested a web client to go with a rich internet app as well as it can then run on mobile browsers and on those browsers which do not have rich internet client framework.The rich internet client as well as the external services can connect directly to service layer to get the data.
Now if we go to the microsoft technology based architecture slide you will see that I have replaced all the technologies spoken earlier with the Microsoft technologies, Rich Internet Client has become Silverlight, the web client app has become ASP.NET MVC ( to mobile enable it , you just need to add the mobile browser definition files).I'm a great believer in software factories and so I have used the web service software factory with WCF in the service and business layer, the ADO.NET entity framework takes up the job of data layer along with data access application block which is heavily being used along with other application blocks in enterprise library cross cutting all layers for exception management, validation, logging, security, etc. I have proposed SQLserver as the dbas we are using .net and Microsoft's SQL client provider is super optimized for SQL Server.MS is supposed to come out with a rich internet client technology for mobile but as it is still in the pipeline( not even a beta release), I would like to first build the ria and even after it is ready if ms does not have the ria client for mobile browsers, I would create the web client, and my experience tells me that it will not require a heavy resource as the business logic has already been created.Finally security in WCF, to connect to silverlight u need to use basic http binding , so the security will have to happen at transport-level, HTTPS, IIS-based auth for the entire application and authentication outside of silverlight, but for b2b scenarios I suggest consider using messagebased brokered authentication with X.509 certificates with certificates the certificate issued by a commercial certificate authority.
Now for the deployment diagram, a little costly but I believe this is the best.
First there is the hardware firewall which will handle DDOS attacks, TCP flood, Malformed Packets efficiently as there is a dedicated processor in Hardware Firewall that handles all the filtering. If i use just Windows firewall and too many malformed requests come in, my Web servers CPU will be too busy saving me from those attacks then doing the real job like running my .NET code.My fire wall connects to a router or switch which has load balancing capability that evenly distributes traffic to my web servers. I had thought of firewalls with load balancing capabilities built in and with enough NIC to connect all my web servers but finally decided on the present architecture as i feel every device should do its own wotk and also this is perfect if the site is a hit and requires scaling up. I have seen many networks and web sites which have gone down for hours even a day because they did not have a backup, so I suggest each device should have a backup. So if the firewall goes down or has to be patched up, my backup can do its work.Note, the physical architecture is two-tier,the decision to have two tier architecture is due to speed. Since we don't store super critical information, we don't need to worry about Security as much as we would do if we were building a financial application.The servers should always run 64 bit windows as otherwise you cannot fully utilize the 4 GB RAM or more than that.The 64bit version of .NET framework is stable enough to run heavy duty applications. Some people have had bad experience running 64bit Windows on their personal computers, but 64bit servers are pretty solid nowadays. Web server layer contains three web servers in load balanced mode. Each web server hosts the exact the same copy of the code and other artifacts of the application that we have.Also our main users are coming from RIA and external systems which are any way going to be connected to the service layer but even if we only had a web client application, I would still do the same as a separate application layer has been proven to be a bad practice for high performance websites particularly the ones developed using ms technologies.even if you say that the webserver has no idea of the sql server,in modern applications, almost all operations are exposed via services. There's very little ad-hoc SQL query. So, this means, if someone can compromise the web tier, all the service methods are exposed to hacker and calling those service methods are not more complicated than calling SQL Server. IIS generates humoungous sizes of logs, and also we have the application logs been genrated by logging application block, my suggestion is to keep a large amount of space in the drive where the app is located as might need to store several weeks worth of IIS logs incase our internal systems to move those logs to somewhere else for reporting gets broken.
Now the webservers are also connected to the internal router. the db servers sit behind it. I know that some people would say that a firewall is required to keep the webservers in dmz but my exp is that this firewall becomes a bottleneck for all traffic between web and database servers. What I do is use a router and open only port 1433 to pass anything through the router from a web server to any DB server.I have been told by many security experts that if you can hack and get the web.config,everything else whether dmz or anything else is of no use.I have suggested windows clustering witha active /passive cluster but if the site scales up, we can make it 2 active /passive cluster. I have also suggested SAN for the main db data as windows clustering needs it(very costly i know, but if the site is big just worth it) but only local raids for backups and reporting data. Finally I have suggested MDFs and LDfs kept in spearate disks with RAID10 for storing MDFs where the read data is normally kept and RAID1 for LDFs which contain the high write scenarios.

Sunday, May 31, 2009

Ashokan Rock Edicts

There are Asokan edicts scattered over more than 30 places in India, Nepal, Pakistan and Afghanistan, in the Brahmi script. The languages they use are ancient Magadhi and Sanskrit, though one bilingual edict in Afghanistan is reportedly in Aramaic and Greek! There are 14 big rock edicts, seven big pillar edicts, minor pillar and rock edicts and the Kalinga rock edicts.
Rock Edict 2 says, ‘Everywhere within Devanam-piya Piyadassi’s realm and among the people beyond the borders, the Cholas, Pandyas, Satya-putras (Konkan), Kerala-putras, as far as Tamraparani (Lanka) and where the Greek king Antiochus rules, and among his neighbours too (Northwest Frontier), Piyadasi has arranged for two kinds of medical treatment: for humans and for animals. Wherever suitable herbs are not available, I have imported and grown them.’
Yes, better health, infrastructure and so on. But above all: law, order and justice. Asoka’s first rock edict says: Esahi vidhi ya iyam, Dhamma palana, Dhamma vidhane , Dhamma sukhiyana , Dhamma gotiti
‘For this is my rule: rule by the law, of the law; prosperity by the law, protection by the law.’

Sunday, May 24, 2009

Microsoft® Operations Framework (MOF) 4.0 delivers practical guidance for everyday IT practices and activities, helping users establish and implement reliable, cost-effective IT services.
Also check out Planning for Software-plus-Services: A MOF Companion Guide.
User Experience 2.0 : Any User, Any Time, Any Channel

Monday, May 11, 2009

"The other day I had this idea, what if I were to take all the concepts I write, speak, and consult about and turn them into a concept map. That might help me explain how things like messaging, unit of work, and exception management work together and why. It also shouldn’t be too much work. Or so I thought.
I started out with a blank piece of paper, and this is what happened:" -Udi Dahan

Source: http://www.udidahan.com/2008/08/04/distributed-systems-concept-map/

Tuesday, April 28, 2009

Gaming The System

I read an excellent article at wired in their security matters section by Bruce Schneier.

Uncle Milton Industries has been selling ant farms to children since 1956. Some years ago, I remember opening one up with a friend. There were no actual ants included in the box. Instead, there was a card that you filled in with your address, and the company would mail you some ants. My friend expressed surprise that you could get ants sent to you in the mail.
I replied: "What's really interesting is that these people will send a tube of live ants to anyone you tell them to."
Security requires a particular mindset. Security professionals -- at least the good ones -- see the world differently. They can't walk into a store without noticing how they might shoplift. They can't use a computer without wondering about the security vulnerabilities. They can't vote without trying to figure out how to vote twice. They just can't help it.
SmartWater is a liquid with a unique identifier linked to a particular owner. "The idea is for me to paint this stuff on my valuables as proof of ownership," I wrote when I first learned about the idea. "I think a better idea would be for me to paint it on your valuables, and then call the police."
Really, we can't help it.
This kind of thinking is not natural for most people. It's not natural for engineers. Good engineering involves thinking about how things can be made to work; the security mindset involves thinking about how things can be made to fail. It involves thinking like an attacker, an adversary or a criminal. You don't have to exploit the vulnerabilities you find, but if you don't see the world that way, you'll never notice most security problems.
I've often speculated about how much of this is innate, and how much is teachable. In general, I think it's a particular way of looking at the world, and that it's far easier to teach someone domain expertise -- cryptography or software security or safecracking or document forgery -- than it is to teach someone a security mindset.
Which is why CSE 484, an undergraduate computer-security course taught this quarter at the University of Washington, is so interesting to watch. Professor Tadayoshi Kohno is trying to teach a security mindset.
You can see the results in the blog the students are keeping. They're encouraged to post security reviews about random things: smart pill boxes, Quiet Care Elder Care monitors, Apple's Time Capsule, GM's OnStar, traffic lights, safe deposit boxes, and dorm -room security.
The most recent one is about an automobile dealership. The poster described how she was able to retrieve her car after service just by giving the attendant her last name. Now any normal car owner would be happy about how easy it was to get her car back, but someone with a security mindset immediately thinks: "Can I really get a car just by knowing the last name of someone whose car is being serviced?"
The rest of the blog post speculates on how someone could steal a car by exploiting this security vulnerability, and whether it makes sense for the dealership to have this lax security. You can quibble with the analysis -- I'm curious about the liability that the dealership has, and whether their insurance would cover any losses -- but that's all domain expertise. The important point is to notice, and then question, the security in the first place.
The lack of a security mindset explains a lot of bad security out there: voting machines, electronic payment cards, medical devices, ID cards, internet protocols. The designers are so busy making these systems work that they don't stop to notice how they might fail or be made to fail, and then how those failures might be exploited. Teaching designers a security mindset will go a long way toward making future technological systems more secure.
That part's obvious, but I think the security mindset is beneficial in many more ways. If people can learn how to think outside their narrow focus and see a bigger picture, whether in technology or politics or their everyday lives, they'll be more sophisticated consumers, more skeptical citizens, less gullible people.
If more people had a security mindset, services that compromise privacy wouldn't have such a sizable market share -- and Facebook would be totally different. Laptops wouldn't be lost with millions of unencrypted Social Security numbers on them, and we'd all learn a lot fewer security lessons the hard way. The power grid would be more secure. Identity theft would go way down. Medical records would be more private. If people had the security mindset, they wouldn't have tried to look at Britney Spears' medical records, since they would have realized that they would be caught.
There's nothing magical about this particular university class; anyone can exercise his security mindset simply by trying to look at the world from an attacker's perspective. If I wanted to evade this particular security device, how would I do it? Could I follow the letter of this law but get around the spirit? If the person who wrote this advertisement, essay, article or television documentary were unscrupulous, what could he have done? And then, how can I protect myself from these attacks?
The security mindset is a valuable skill that everyone can benefit from, regardless of career path.

Friday, April 10, 2009

I used to work on LAMP before moving to the microsoft platform. Sergey Solyanik did the same and his post on the subject is just... hum.. pragmatic! Here are my favorite parts of the post:
(...) "First, I love multiple aspects of the software development process. I like engineering, but I love the business aspects no less. I can't write code for the sake of the technology alone - I need to know that the code is useful for others, and the only way to measure the usefulness is by the amount of money that the people are willing to part with to have access to my work.
Sorry open source fanatics, your world is not for me! "(...)

Tuesday, April 07, 2009

Navigate the cloud computing labyrinth Make an educated decision about the best cloud computing platform for your application
Is there value in cloud computing? Cloud computing and its impact on the future of architecture
The role of Software as a Service in cloud computing
Connecting to the cloud, Part 1Leverage the cloud in applications :Take advantage of the hybrid model
Make dashboards with XQuery Present business data with a Web-based dashboard
EXIST Open Source Native XML Database
XQuery 1.0: An XML Query Language
XML Path Language (XPath) 2.0

Monday, March 30, 2009

The tale of two ladies


Two news items last week caught my eyes. One on a minister and another one on a sr manager in a software firm.

'Last time I checked my calculator-cum-clock, there was a biggish difference between ‘five minutes early’ and ‘90 minutes late’. I also know by instinct and experience that five minutes early gets me a different kind of look from my boss than the one in which I arrive 90 minutes late. It now seems that my being able to tell the difference between the two time durations is a gift. Last week I realised that there are some unfortunate people out there suffering from the debilitating side-effects of Ministerialitis — the crippling ailment that makes Ministers and
other VIPs believe that the world revolves around them. It is with this knowledge that I feel humbled by the fact that when I’m late, I know I’m late. Especially, when I’m late by a bloody hour and a half.

So my heart goes out to Women and Child Development Minister Renuka Chowdhury. Being a Minister makes most mortals — especially those whose Ministerial functions involve social development and much radiant smiling — extra-susceptible to believing that they are popular enough to be forgiven for any sort of transgression.'-Indranil Hazra

The second story is about getting duped by a tantrik.The woman, a computer engineer and employed as manager in a city-based software company is also daughter of a retired assistant commissioner of police.The tantrik operating his black magic business from multiple locations in the city had placed advertisements about his ‘powers’ in newspapers including a vernacular daily stating that performing a certain puja would solve all problems. After noticing the advertisement, the victim had approached him. However, he had convinced her into believing that he was capable of fulfilling all her wishes and duped her into believing that sacrificing a rhinoceros would remove all obstacles and help her find a match within a week and also promised the victim that he would go to Uttar Pradesh to catch a rhino.The lady is said to have paid Rs 2.95 lakh to perform the puja.

The victim paid another visit to Shah a week later but he was not traceable. She then lodged a complaint with the police and the police caught the scamster obviously because of her father's connections.But what of the woman? How could she believe that a rhino sacrifice would help her find a man?

What puzzles me with this case, as with any other case pertaining to tantriks and babas fooling innocent victims, is what exactly was the crime here ?
If it is sweet-talking a victim into parting with cash, then every advertisement, sales and marketing gimmick does exactly that.
If it was giving false promises without any logical reasoning, then every puja that is done has no guarantee anyway.
If it is the fact that she did not get married after doing this, then there would be more than billion cases against gods and goddesses in India; and a few millions against self-proclaimed godmen and sadhus.
If it is the fact that he killed a rhino, then it looks like he didn’t take the pains to go to UP and kill a rhino after all. So he comes clean on that account.
If the amount of Rs. 2.95 lakhs is the issue, then is Rs. 100 okay ? Rs. 1000 ? Rs. 100000 ? What is the cutoff before it is booked under IPC section 420 ?
All I feel is that the law shouldn’t be a cushion for human stupidity; and if this tantrik is a criminal under the law, so are all the above people.

Sunday, March 15, 2009

Hope you’re having a wholesome breakfast today, Mr Prime Minister.

I have been reading for some time the excesses of government in this country on common man. I intend to search for such articles and put them here. I read an article by Indrajit Hazra in Hindustan times on a true non violent struggle by Irom Sharmila Chanu who hails from Manipur.

"If you’re really serious about fasting, there can be no better motivator than the Government of India. Our good old national institution has worked wonders by pushing someone to forego a proper meal since November 2000.
Irom Sharmila Chanu is the kind of person who usually makes me deeply suspicious of human goodness. I mean, what kind of person would go on a hunger-strike for eight years, demanding the repeal of something as abstract-sounding as the Armed Forces Special Powers Act (AFSPA)?
Irom Sharmila’s story is as much about one Manipuri woman’s battle against the worst possible adversary — irrelevance — as it is about practising the lost and powerful art of satyagraha, non-violent protest, against the very people who make a huge reverential show of this invention by another Indian political activist. Irom wants the AFSPA to be repealed from her home state, Manipur.
So what is this thing that goes by the acronym-resisting name of AFSPA? It’s a law that was enacted in August 1958 that grants the military extraordinary powers to arrest without a warrant, give out shoot-to-kill orders and destroy property in ‘disturbed areas’. Most magically, it protects military personnel from prosecution against any crimes. Passed as a short-term measure to take on separatists, it became a protective cloak for extra-judicial killings, torture, rape and ‘disappearances’.
On November 2, 2000, ten people standing at a bus stand were shot dead at Malom, Manipur, by members of the Assam Rifles in retaliation to a bombing by insurgents. Irom Sharmila saw the pictures of the dead in the next day’s newspapers and lost her appetite. Since then, she has been trying to get the AFSPA scrapped in Manipur by the only way she thinks will get the attention of the powers-that-be in Never-Neverland Delhi: by going on a fast.
Well, she’s been dead wrong, hasn’t she?
Arrested and released and re-arrested over the last eight years on charges of attempted suicide, Irom has managed practically nothing, even as she has been force-fed a liquid diet through her nose all these years.
In 2004, after the custodial killing of Manorama Devi (remember those naked Manipuri women with the banner carrying those ‘inviting’ words, ‘Indian Army Rape Us’, outside the Assam Rifles headquarters in Imphal?), the tremendously decent Prime Minister Manmohan Singh set up the Justice B.P. Jeevan Reddy Committee to look into the act. The committee presented its report to the PM a year later in which it stated that the AFSPA “should be repealed... The Act, for whatever reason, has become a symbol of oppression, an object of hate and an instrument of discrimination and high-handedness.”
Apart from lifting the Act from municipal areas in Manipur, the AFSPA firmly remains in place in the state (even as Jammu and Kashmir Chief Minister Omar Abdullah stated last month in the state assembly that he would repeal the AFSPA in J&K “if the situation continued to improve”).
Irom Sharmila was released last Saturday, the day before International Women’s Day. She was re-arrested for attempted suicide on Monday, the day Jayalalithaa didn’t eat a morsel. Yesterday, Irom Sharmila turned 37 in prison.
Hope you’re having a wholesome breakfast today, Mr Prime Minister."

Saturday, March 14, 2009

Politicians and horse trade is passe, politics and horse races are in


Read an excellent article by Manas Roy in hindustan times.
With the polls around the corner, questions about the unholy nexus among money, criminals and elections are once again being raised. One way to clean up the process could be the State funding of elections. But while that may level the playing field and help a few deserving candidates, the problem is where will the state get the money? Nobody wants to raise taxes. We like clean elections, but we don’t want to pay for them.
Thankfully, I have a simple scheme that will not only solve the whole problem of election funding but will also ensure that we have a 100 per cent voter turnout.
How can the public be persuaded to part with money to set up a fund for fighting elections? Obviously they will only cough up the cash if they can get something in return. Why, for instance, do hordes of people turn up at the race course every weekend and part with large sums of money? Because they believe they have a sporting chance of getting a return on their investment.
And in the process, they also contribute to the upkeep of the race course. I know, because I used to donate a substantial part of my salary to the Royal Calcutta Turf Club in my heydays. So all that we have to do is to replicate the race course business model for elections and voila, the election funding issue is solved.
One of the ways you can bet at the races is on the tote — short for totalisator. Here’s how it works. Suppose there are five horses in a race. Let’s say you bet Rs 100 on Horse Number 3, because you know its owner has come to the races wearing a three-piece suit, which means he wants to be photographed with the winning horse and the trophy. The horse is also running in the third lane, which, combined with the fact that it is running in the third race, makes winning almost a sure thing.
But I digress. Let’s get back to the math. Say 99 other savvy punters also bet Rs 100 each on Horse Number 3. Let’s assume that the total money bet is Rs 1 lakh. If Horse Number 3 wins, this total amount could be divided as follows: 30 per cent or Rs 30,000 to the government for taxes, 10 per cent or Rs 10,000 to the race course authorities and 60 per cent or Rs 60,000 to the 100 winning tickets. So you get Rs 600 for your Rs 100 bet.
Now extend this model to the elections. Every constituency could put up a list of candidates and ask the voters to bet on them. The Election Commission can then set aside a small percentage, say 10 per cent of the total kitty for an election fund, while the remaining 90 per cent will be paid out to those who bet on the winning candidate. Betting tickets could be sold from every post office and bank in the country. The amount of bets on each candidate could be broadcast daily on TV, allowing voters to judge the odds.
Apart from bets on the winning horse… er… candidate, we could also have bets on the runner-up. We could even have a jackpot, where voters correctly predict the winners in five contests. Bets could be for the largest party, the winning alliance, the choice of prime minister — the possibilities are endless. Forget election funding, the money could easily cover the entire fiscal deficit.
That’s not all. People will start taking a keen interest in the political process, attending every political meeting zealously, weighing the chances of the rival candidates, studying their form and attempting to sway others to vote for the candidate of their choice.
On election day, there will be long queues of voters, all of them eager to put their votes where their money is. Indian democracy will not only be truly participatory, it will also be great fun. In fact, it’s likely to be such a big hit we’ll be clamouring for elections every quarter.

Thursday, March 12, 2009

Functional testing for Web applications Using Selenium, Windmill, and twill to test Google App Engine applications
Use XQuery for the presentation layer Separate concerns without being tied to a particular language

Tuesday, February 10, 2009

Quotable Qoutes

Men make their own history,but they do not make it just as they please; they do not make it under circumstances chosen by themselves, but under circumstances directly encountered, given and transmitted from the past. The tradition of all the dead generations weighs like a nightmare on the brain of the living.
-Karl Marx

I have not failed 10,000 times, I've successfully found 10,000 ways that will not work.
-Thomas Edison, inventor of over 1,000 devices including the phonograph

Whether India is to be yours or mine, whether it is to belong more to the Hindu,or the Moslem, or whether some other race is to assert a greater supremacy than either- that is not the problem with which Providence is exercised. It is not as if, at the bar of the judgement seat of the Almighty, different advocates are engaged in pleading the rival causes of Hindu, Moslem or Westerner, and that the party that wins the decree shall finally plant the standard of permanent possession. It is our vanity that makes us think that it is a battle between contending rights- the only battle is the eternal one between Truth and untruth.
-Rabindranath Thakur, 1908

The political civilisation which has sprung up from the soil of Europe and is overrunning the whole world, like some prolific weed, is based on exclusiveness.It is always watchful to keep at bay the aliens or exterminate them. It is carnivorous and cannibalistic in its tendencies, it feeds upon the resources of other peoples and tries to swallow their whole future.It is always afraid of other races achieving eminence, naming it as a peril, and tries to thwart all symptoms of greatness outside its own boundaries, forcing down races of men who are weaker, to be eternally fixed in their weakness.There is one safety for us upon which we may count, and that is, that we claim Europe herself as our ally, in our resistance to her temptations and to her violent encroachments; for she has ever carried her own standards of perfection,by which we can measure her falls and gauge her degrees of failure, by which we can call her before her own tribunal and put her to shame.
-Rabindranath Thakur, 1916

Sometimes I think the surest sign that inteligent life exists elsewhere in the universe is that none of it has tried to contact us.
-Calvin and Hobbes

Did you know:- Roman author Pliny had complained of the drain of gold to India in ancient times.

Any man who can drive safely while kissing a girl is simply not giving the kiss the attention it deserves.
-Albert Einstein

Consciousness is a being, the nature of which is to be conscious of the nothingness of its being
-Sartre

Saturday, January 31, 2009

What is required to be called a professional?



Recently I read an excellent article written by Subroto Bagchi on what it will take to be a great professional in the days to come. This is a question that I have had as well. As he rightly says these days almost everyone has a digital SLR. Since everyone can take great pictures these days, photo-shop them, and freely upload on the Internet, what is the difference between them and professionals such as Dewitt Jones or Raghu Rai? This is a question equally relevant for doctors, architects, software engineers, lawyers and dress designers.
He states that according to Howard Gardner (“The Harvard professor who has written 20 books and received 21 honorary doctorates; the same man who questioned the role of IQ in determining intelligence. In fact, it was he who had propagated the idea of multiple intelligence.”): "whatever may be your profession, to succeed in the world ahead, you need to master the five minds of the future…"

"The first is the mind of the discipline. You may be a trained photographer or a qualified surgeon. It does not matter. Your professional qualification is not what will make you a professional. You need to devote yourself to your profession of choice for at least 10 years before you can understand its nuances.
Empirical studies indicate that, across disciplines, amount of time is a minimum requirement. You have to give yourself to the profession as against looking at it just as a means to a livelihood, a career or a job. You need to build affection for your profession and a long view of time.
The second is the mind of synthesis. The future requires the capacity to build abstractions. In other words, you need the mind of synthesis. It is about developing an understanding of ideas, concepts and problems in an interdisciplinary manner while building depth in one's own discipline. A great shot on the outskirts of Delhi requires an understanding of where Delhi comes from historically.
The third mind is the creative mind. Clients do not like the tried-and-the tested solutions any more because those solutions are simply not innovative enough. Precisely because they are tried and tested, they have become the past.
Competitive advantage is about creativity, and creativity is about taking risks. The creative mind is about building the capacity to answer what is new and what is different about the solution you are suggesting every time.
The fourth mind is the respectful mind. In the future, all problems will require interdisciplinary solutions. Whether it is about negotiating a nuclear treaty or removing a cancerous cell from the pancreas, if anything qualifies to be called a problem, then chances are high, the solution would have to be interdisciplinary.
That means experts from different fields will have to listen to each other, learn from each other, collaborate while they compete, disagree without being disagreeable and then put multiple minds together, build consensus and emerge with the strength of the respectful mind.
Why do you think one CEO fails and another succeeds in taking a militant trade union along? Why do you think one educationist prevails over others while settling the contents of a high school textbook on national history? Why one physicist is able to get agreement on making a certain standard universally acceptable in a transnational negotiation involving competing interests? Those who succeed have the respectful mind
Finally, great professionals of tomorrow will need to understand and master what Howard Gardner calls the ethical mind. This ethical mind is about the capacity to certify the completion of one's own work. That rules out most people who need someone else to supervise them. Whatever may be your profession, to be called a professional, you must master all the five minds of the future and only then can you be globally accepted.
But why should we worry about being globally relevant? Because the benchmark no longer remains local. The benchmark is now Dewitt Jones."