Friday, September 16, 2005

Sir M.V

For those who are from Karnataka, the letters M.V, particularly when prefixed with "Sir" mean only one thing - Sir. Mokshagundam Vishveshvarayya (or Visvesvaraya, as Bangalore University likes to spell it). Yesterday was the 144th birth anniversary of Sir M.V. This post is a personal "Thank you" to the man who
  • Built the K.R.S dam
  • Brought electricity to Bangalore
  • Started Mysore University
  • Created U.V.C.E (started as a Mechanical Engg. school)
  • Influential in starting the State Bank of Mysore
  • and so on and so forth...

Sir MV was known for his discipline, punctuality, honesty, work ethic, and probably every positive adjective that you can think of. Extremely quality conscious, he is said to have checked every pillar and beam that went into the Kannambadi dam. A brilliant engineer, he is said to have exclaimed "what a waste of energy!" when he saw the gushing waters of the Jog Falls. Honest to a fault, he is said to have turned off the 'state-supplied' candle and used his own when he finished work and was handling personal correspondence. It is officials like him that gave Mysore state the sobriquet 'Model State' in the early-late 40s.

As the poet said..."Jaane kahan gaye voh (din) log?"

Wednesday, September 07, 2005

Wah Sania

Being one of the more tricolourly inclined, Sania Mirza's performance over the last one week (indeed, over the past one year) has made me proud. She portrays a great image of the young Indian woman - smart, aggresive, one focused on her goals. Not to mention what a role model she is for women in general and Muslim women in particular. And she is a great advertisement for India, far better than any "India Shining" campaign.

True, she lost quite badly to Sharapova, but hey, this is just her first US Open. A few years down the line, and I am sure we'll see a better contest.

Here is hoping that we see more Sanias, Rajyavardhans and Anju Bobby Georges.

Tuesday, September 06, 2005

Ban(s)galore

Bangalore is surely a funny name for a city, ain't it? But in the new dispensation, the city has been living up to its name...Ban - galore. Ban traffic in the city centre, Ban private vehicles from taking children to schools, Ban cellphones in colleges, Ban dance bars, Ban this, Ban that.

But, don't ban corruption, don't ban potholes, don't ban polluters, don't ban anything that would actually make the citizen's life a little better.

Wednesday, August 31, 2005

So, what _should_ you learn in your undergraduate course?

I am working on a Unix course for undergraduate students, sponsored by the company I work for. To aid us in deciding what to teach, we were given the syllabus for the students, from the 3rd to the 8th semester. Reading it raised the obvious question: "What should you (a student) learn in your undergraduate Computer Science and Engg. course?" Infact, I'll ask a more basic question - what should be the goal of your undergraduate education?

Surely, the undergraduate course is but an introduction to your desired field. No one expects a person to be an expert in the field after an undergraduate degree. That said, you are expected to know stuff. Here is my list of what an undergraduate degree should accomplish:

- Enough knowledge of the field.
- Enough English/Language skills to be able to write about what you know
- Enough practical experience...if your 'Major' was Computer Science - you should be able to program. If it was Electrical Engg, you should be comfortable with opening up 3-phase motors. If it was Mechanical Engg, you should be able to tear down an automobile, if not put it back together :) .
- Some ability at feasibility analysis...if you are a Political science student, you should be able to recognize that communism is unfeasible ;)
- If you're in the technical field, Math. Probably the most invaluable tool this side of the border
- If you are in browner pastures (viz the Arts), Language.

Any you want to add? Feel free to use the comments link right below. Hopefully, I'll get around to posting an answer to "What you need to get out of your computer science degree?" soon.

Tuesday, August 30, 2005

Globalization and Poverty

Recently a friend of mine posted a link to Vandana Shiva's "Globalization and Poverty" on his blog. This post is a response to some of the issues she's raised in the article. Ofcourse, due to the poverty of my ideas, I am forced to retain the same title as hers.

Read her article here

You can't argue with her when she says that our farmers are ruining their crops by excessive use of pesticides. Nor can you disagree when she talks about people growing water-intensive crops because they are profitable.

However, when she blames globalization, you got to sit up and take notice. See the text of what she says:

"...The drought is not a “natural disaster”. It is “man-made”. It is the result of mining of scarce ground water in arid regions to grow thirsty cash crops for export instead of water-prudent food crops for local needs. It is experiences such as these which tell me that we are so wrong to be smug about the new global economy..."

Its funny how the laws of causality never apply to Ms. Shiva's writings. Well, yes, the drought was caused by farmers growing crops like rice and sugar in water-starved regions like Telangana and Hyderabad-Karnataka. But why did they grow those crops? Was it because of the "global economy"? Why do our farmers use more fertilizer? Is it because of Monsanto? Fortunately for Ms. Shiva, no one asks these questions. Everyone is so taken by her form and fury that they forget to ask ... why? Having asked the questions here, let me try and answer them.

Our farmers use more fertilizer because historically they've done so. And they started doing so because of the "green revolution" that encouraged them in this direction. From 0.55 kgs/hectare, the green revolution brought up fertilizer consumption to nearly 20kgs/hectare in the early 70s ( FAO figures). During those days, chemical fertilizers and pesticides were thought of as the solution to the problems of low soil productivity and pestilence. In fact, comics were produced that drove home this fact! So yes, we were mistaken then - but why do we still use fertilizers and pesticides at such high levels? Well, now this has become a permanent clique of politicians and businessmen who take subsidies to manufacture chemical fertilizers and pesticides, so need a market for them, therefore dumping them at our farmer's doorstep - when was the last time you saw an ad on TV or the newspaper discouraging farmers from using chemical inputs? Pray, what do any of these have anything to do with globalization? BTW, the thirsty cash crops for export that Vandana Shiva mentions are rice and sugarcane - and no, they are not exported (at least not in quantities that lets the farmers profit). Farmers grow rice and sugarcane because of our food procurement laws, lack of infrastructure to store value-rich produce like fruits and vegetables, and guaranteed returns for these crops. So, if you want to blame someone, blame the government for not providing the infrastructure or freeing up internal markets, not "the global economy".

This is a typical tactic used by the eco-terrorists, anti-globalists and communists of all hues. Blind your opponent with flashy English (Arundhati Roy) or tragic scenes (almost everybody). Rant about how farmers are killing themselves, particularly to a largely western audience, and then blame it all on Bush, on globalization, on the WTO, on the BJP, on communalism et al.

Watch this space...

Monday, August 22, 2005

Of equality and equal opportunity.

Somewhere earlier on my blog, I had posted a link to Nehru's speech - "A tryst with destiny". As far as I have seen, this single speech sets out the Indian Dream for all of us better than any other. And amongst other things, Nehru mentions "...It (freedom) means the ending of poverty and ignorance and poverty and disease and inequality of opportunity." Note that he says "inequality of opportunity" and not "inequality".

Nehru knew, unlike the communists of today, that an equal society is unsustainable as it has high entropy and deficiency of opportunity, not to mention the fact that it is against the laws of Nature.

What laws? Simple - note that a rat and an elephant are not created equal. The rat is small, has numerous predators and has a short life span. The elephant is huge, has next to no predators and has a long life span. However, nature gives both an equal opportunity to survive. Rats have numbers. Elephants do not. The sheer numbers of rat population give the species a way to survive, and both species thrive (without taking into account wanton destruction of elephants by humans).

How does this apply to the real world? Easy as pie - Tendulkar and I cannot be equal. But both Tendulkar and I should get equal opportunity to become Tendulkar. The results may vary, but the opportunity should be the same. That is what a democracy should guarantee. In terms of governance, what should be guaranteed is that everyone gets an equal quality and quantity of education - be it a rich dalit, a poor brahmin or a 'backward' politician. And this should be a race to the top, not to the bottom.

Sunday, July 31, 2005

The Mumbai tragedy

Its a shame - that the country's 'financial capital' crumbles totally when there is heavy rain. While a lot of media attention has been focussed on the role of the BMC and the state government, I want to bring the spotlight on the role of the met department.

I remember seeing the forecast for Western India - "Heavy to very heavy rain expected in the next 24 hours." Now does this tell anyone that the city is going to get record rainfall? Hey, even Bangalore has been getting similar forecasts for nearly two weeks now! I don't get it - can't the met department actually say - "Record rainfall predicted"? I remember watching forecasts in Raleigh and Fort Lauderdale. They were never wrong. If the forecaster said heavy rain - he would also say heavy rain of the kind that will flood drains (though that never happened).

So, why can't we do the same? Don't we have the equipment? Or the models? Or is it simply first-rate negligence?

Comments welcome.

Monday, July 18, 2005

Why technology is like art

One unfortunate consequence of being in the software profession is that people don't usually associate software with creativity, beauty and expression. For that matter, most people don't even like technology, as it either scares them or strikes them as being 'mind-driven' rather than 'heart-driven'. This is less true in India where it is 'cool' to be a 'code-freak', than in the US, but here too software engineering is treated as a well-paying 'love-less', 'passion-less' deskjob'. What is more unfortunate is that many software engineers too treat it that way - seeing the profession as a way to make a living rather than seeing it as yet another way to vent their creative cravings.

I wonder if it is because most people fail to see the beauty resident in a good program, in a well-designed 'geek-toy' or in a software tool. So, in this post, I want to present my views on the similarities between good art/music/architecture and good technology. Needless to say, I am only talking about my experiences.

Here goes:

Great architecture and great technology have universal appeal.

There is something about great art/architecture/music that appeals to a very wide audience. I know many people who have never heard Carnatic music, but simply love the Pancharatnas rendered by Balamuralikrishna. I myself fell in love with Beethoven's symphonies after hearing them at Vienna and I had zero exposure to western classical music then. Almost the entire world loves the Taj Mahal.
The same holds for technology. The Apple IPod, the Internet, Google, Blogging...to name a few.

Great art and great technology are timeless

I know that many of you will take issue with me on this one what with new tech toys and software coming into the market every day. But consider, for a moment, UNIX. Consider TCP/IP, with its extensions, and you'll realize what I mean.

Great technology is simple - sometimes deceptively so
Great technology peels well and peels long - just like great art.
Great technology creates experiences - just like great art.

Great technology is always simple - sometimes deceptively so. Anyone who has coded Quick sort would be quick to point out how the algorithm which stated in its textual form is:
Step 1: Choose an element and put it in its right position in the array.
Step 2: Repeat the same for the elements to the left of the array
Step 3: Repeat the same for the elements on the right
takes many iterations to get right. And then, we could talk about its complexity. And then, we could improve its efficiency for boundary cases, and then we could make it generic, and then provide proof, and then...you get the idea. The same holds good for almost every piece of hardware, for every game sold in the market place. Abstraction is a fundamental construct of technology. Which is true for art as well. I 'sort of' play the violin in Carnatic style, and believed for a long time that all there was to Carnatic music were the notes. You play the notes, and you have the song. Lately, I've realized that this is hardly the case. The notes are just one part of the song. There are the lyrics, there is a situation behind the song, and more importantly, the lyrics themselves have many meanings and so on. If you don't believe me, read the following line:
"mohada hendathi teerida balika maavana maneya hanginyako"
Translated, it means, "Why bother about your father-in-law's house when your wife is no more?". Apparently, this single line has many different, uncommon meanings, none of which are conveyed by the words(directly).

Great art creates experiences. Great music makes you forget the world. You lose yourself in the brilliant colours of a maestro's pictures. Technology does the same. We all know how we fought to finish our first video game, how we enjoyed the thrill of victory when we shot the villian (or ate the bad goblins), why, we even remember how we debugged our first program - don't we? Haven't we all had the days when we are so engrossed in a game that we lost track of time? Or so engrossed in getting a sorted linked list (this one is for you, Harsha) right in the 3rd semester programming class that we worked late into the night on an exam weekend!? Technology not only creates experiences, but also enhances them - take CDs and vinyl records for instance.

The principles of great art and great technology come from the same source.

More on this later...

Another 'possibilities' question

Ok, here comes another "What would you do if you could" question:

If you had all the money in the world and could choose your profession (however less paying it may be), what would your profession be?

Mine would be teaching - teaching any academic subject. What would yours be?

Monday, July 11, 2005

A tryst with destiny

Whatever be the man's shortcomings, Nehru is right up there as far as his speeches are concerned. Two of his best are: A tryst with destiny and the Light has gone out of our lives . I have had the good fortune to read some of his books - notably Discovery of India and Glimpses of World History , and both are excellent. Nehru's control over the English language, his love for India, and the natural flow of his thoughts are worth emulating.

Saturday, June 25, 2005

Interesting question

If you could be taught by the best teachers in the world, which three subjects would you want to learn?

My choices would be
1) History
2) Maths
3) Theoretical Computer Science, not necessarily in that order.

What would your choices be?

Wednesday, June 22, 2005

Stacks and Vectors

Inspired by my friend Balbir, I've decided to start posting technical questions on my blog. Here is the first one:

You want to implement a Stack using a Vector. So, how do you do it? There are three approaches (in C++):

1) class Stack : public Vector
2) class Stack : private Vector
3) class Stack
{
private:
Vector vec;
};

Of the three, which is the best, and which is the worst, and why?
No prizes for guessing which method Java adopts...

Tuesday, June 21, 2005

Three stupid words any programmer can utter

No, not "I love you"...if that is what some of you were expecting.
The three words are - "I know C++"

Disclaimer - This does not apply if you are Stroustrup, Lippmann, Coplien, Vijayan, or anybody else who really knows C++.

Thursday, June 16, 2005

My car driving experience

I learnt to drive a car for the first time in 2001, just before I left for the US. Unfortunately, for the three years that I stayed there, I never drove. Still, I was usually the navigator whenever my 'gang' went on trips, so that gave me a good idea of how people drive on US roads.

Now, back in Bangalore, I am taking driving classes again, and man!, the things my instructor is teaching me are simply crazy. US or not, if this is the way people learn to drive, they will definitely cause accidents...here are a few gems:

- I am driving somewhere in the centre of the road and want to turn left. So, I quickly looked back and checked my 'blind-spot'. This brihaspathi tells me - "Yaak saar hindhe noodthaa iddira? Mundhe noodi!" [Why are you looking backwards!? Look ahead!]

- I am driving on the left lane on Bellary Road when a truck is parked right in front of me. I am in fourth gear and driving at around 45-50 (tell me if that itself is right), so I slow down, switch to third gear, turn on the right indicator to say that I am switching to the right lane. What does this guy say? "Yaak saar indicator haaktheera, right thirig baeka? Sumne kai thoorsi." [Why do you turn on the indicator? Do you want to take a right turn!? Simply show your hand!]

- I take a turn into a road that has a hospital on it. My road is blocked by an auto, with the driver sitting in it. So, I politely honk once. He (the auto driver) looks back and acknowledges, but is unable to start his vehicle. So, our pal takes over the steering and starts honking like he is in a noise-competition! To h*ll with the hospital and the patients!

I'll post more as I find time.

Monday, June 13, 2005

Representative of Indian Women

I am no fan of Aishwarya Rai's - I think she is too plastic, more like a Barbie doll than a human being. Her acting sucks, her dancing is like watching a robot, and the emotions she portays on screen are simply pathetic. So, in short, I simply can't stand her being the 'representative of Indian women' as I have a lot more respect for Indian women than that.

But why this topic? Because in her desperation to get slotted into Hollywood, the lady in question has been very visible on many English channels lately. And each time, she comes off worse than before. First, she was at Cannes, wearing a black dress which simply paled in comparison with Nandita Das' red saree. Then she assumed a 'call center' accent in her interview that was telecast on NDTV profit. And finally, on Oprah, there was a complete makeover and she finally showed her true h(c)olours.

No doubt she has the right to do what she wants. She has the right to be desperate for a Bond movie role. She has the right to wear a black dress and strut like a peacock (wow! India's national bird) in front of the western media. She also has the right to feel happy about being rated the 9th most 'beautiful' women ever.

What she and her lackeys don't have the right for, is to portray her as a symbol of new India. For all her 'greatness', she isn't. The symbol of new India is not a peacock strutting its feathers. It isn't a lady who is ashamed of her Indian accent and upbringing. It certainly isn't an actress who cannot act.

Sunday, June 05, 2005

Bangalore - I

A few days back, I, along with two very close friends of mine made my way home in an autorickshaw from work. It was raining, and naturally, we had the time of our lives trying to get an auto, get in it, and get back home. While the journey itself was uneventful, we got into an argument (we always do, only the topic differs) about Bangalore's condition. While I was arguing that the problems of Bangalore are due to imbecilic politicians and bureaucrats, and generally lower expectations of the people, my friends argued that there were resource constraints, and more importantly, too many people.

So, who is right? I don't deny that Bangalore is no Boston which can throw 80billion US$ at the Big Dig. But how much money does it take:
  • to have motorable roads that are straight, with clearly marked lanes, reflectors and slopes for drainage?
  • to have storm water drains that are clean, closed and that can take the load of the monsoon rains?
  • to have footpaths that don't require mountain-climbing skills to walk on?
  • to have sewage connections for every home, so that they don't let out sewage water into the storm water drains?
  • to have proper lighting for the entire city?
  • to have adequate green cover for all our roads?

Now, all of these are easily affordable by our very own BMP. But why is it that none of these happen? You all know the answer - corruption. How can the officials give out contracts if the roads remain in good condition? How can you spend 60cr on removing silt from storm water drains if you have closed drains?

So, what is the answer? I don't know.

Sunday, May 29, 2005

Thanks to Tim-Berners Lee

Gawrsh! This Internet is awesome! Today I went around in a depth-first search of blogs and ended up visiting so many interesting people's sites!

Thanks, Tim-Berners Lee (http://www.w3.org/People/Berners-Lee/)!

Higher v/s Primary education

Economists of most hues have for long, proposed that governments have no business funding higher education, and so must focus on primary education while leaving the pursuers of higher education to bear its costs. Among them are highly rated leftist economists like Amartya Sen. The current UPA government, advised by the left-dominated National Advisory Council seems to agree with this school of thought.

Nothing, I repeat, nothing could be more dangerous to the economic future of this country.

India is today acknowledged as an emerging economic power, led by her strengths in 'high-technology' areas. How did we, a 'poor' country, manage to get such strengths? Simple - it was because of the innate Indian respect for higher education, and the opportunity provided by successive governments by keeping costs low. If we have the world's second (or third) largest pool of talented man-power, it is mainly because of our 'cheap' higher education. Imagine, would Kalam have completed his bachelor's if he had to pay the equivalent of 25,000 US$ for a year? Would Amartya Sen have gone to Presidency college if he had to pay 20 lakhs for a degree?

Not to forget the point about equal opportunity. While our leftist ideologues cry themselves hoarse over equal opportunity, how can they forget about equal opportunity in higher education? Why should higher education be the preserve of the rich (which will be the result if the government withdraws from higher education)? What our leftist pals seem to say is: "It is OK for me, (put the name of your favourite idealogue here) to get affordable higher education, but it is not OK for others". Animal Farm, anyone?

Primary education is extremely important, yes. But so is higher education. It is higher education that will give students the skills to survive in tomorrow's world - where jobs will be based on creativity and high technology, not on mass-manufacturing. It is research funding that leads to technological innovations and breakthroughs, not mass-manufacturing. But, when were the leftists interested in technology anyway?

Finally, the background to the leftist argument. The scarcity mentality. "Oh! we are a poor country, and we have too many people. So, we can't afford higher education, we can't afford nuclear power, ad infiniteum". I am no economist, but I am sure that a fraction of the money the government spends on itself or a fraction of the black money in India will suffice to finance higher education for our masses.

Activism

Everybody loves activists - don't you? These noble creatures give up home and work to FIGHT for causes that everyone is concerned about - the environment, human rights, animal rights, and if you are in India, secularism.

But how sincere are they? How much do they know?

I distinctly recall a discussion with an activist friend of mine who ranted against big dams, fertilizers, commercial farming, the BMIC project, Monsanto and genetic engineering without having heard of PL480. After all, how can you talk about farming in India without recalling the humiliation that PL480 inflicted on us?

There are many of his/her ilk, who driven by guilt get into these activist causes. The organizations that support these causes have active members in the US and UK, the Indians there being particularly susceptible to the activist guilt trip. Hard cash received in dollars is used to fund air trips of fellow activists to forums like the WSF.

If you are planning to donate to any such organization, desist.