Tuesday, December 31, 2013

[Travelling Raconteur] My trip to New York City

NY skyline from empire state

To be frank I do not know how to write a travel blog, and this "wikiHow to write a travel blog" is of not so much help here. Anyways I would just start blabbering, So I went to New York with so much excitement and hope that I am going to "World's awesomest city". I took "Greyhound", with an 8 hour journey, and it was too tiring. Seats were not so comfortable, I used to travel with better seats in India. The only good thing was it having a restroom, giving my bladder a good time during the journey.
We reached NYC around 7 AM at Times square, but we were not able to find a Subway, so a guy came up to me and asked if I want any help, I said, "Sure, can you tell which direction is Subway station". He said come with me, and took me towards a street outside bus station and told me the direction. Just when I thought how good are NYC people, he shouted "Aye man!! Don't you think you owe me a tip" in an intimidating tone. I replied that I didn't have any money, and kept moving. So, I got this recollection where, if I had asked the same thing in India, many people would have come forward and helped me, trust me, telling direction is passion in India. 

Food cart guy selling falafel
First day, I went to Columbia University, my dream destination as a student (Anyways it rejected me). The university at first look was really beautiful, though a bit small and compact. One awesome thing I observed was, there was a Japanese family taking pictures there, as soon as the father clicked a beautiful picture of the rest of the family, his both daughters bowed and thanked him for clicking it, got amazed and moved at the same time. 

Before reaching Columbia we got lost and walked all over the streets and reached to Morningside Park (it was beautiful). After all this walking I got really hungry, and ate Falafel from a roadside food carts. 
In the evening we had an amazing dinner at Dhaba on Lexinton AV. The chilling wind made our life hell, while waiting outside for table getting cleared for us. 
On Christmas day (next day), we just went to see lightnings, on TSq. Let me share a few Google Awesome pics with you:

 



We also had an amazing time eating "chicken over rice" from halal food cart. It got special due to cold weather, we had to move into the subway, and ate sitting on the subway floor. If you visit NYC do not miss eating from here, one of my friends told that he had seen several Bollywood celebrities eating from here, sitting right there next to the cart, who knows you might get lucky.

I was damn cold on that day, but still it was one of my best Christmas. Last to last year on Christmas this was how I celebrated with family, which was equally special. We decorated Neem tree. I was too tired at night due to all the walking so we just bought this NYC pass, which helped us next day visiting almost all the awesome places in NYC at cheap rates. Do not forget to buy this before you are planning to visit NYC, would save you a load, and "Aye man! You can tip me later" (*wink*).

26 December, 2013 would never be forgotten because of two reasons, one I had an awesome time sight seeing NYC, and secondly walking almost 16 miles. In the morning after taking a NYC pass card we went straight to the Hudson River bank near "Pier 83". Where we got water taxi and we hopped in, went near the WTC. I really regret not visiting the WTC memorial pool, do not miss this if you are going to NYC. Anyways, from there we went to Liberty island, and got mesmerized by its beauty. It was a clear beautiful day, and we got the best shots in my camera. Unfortunately, I could not place a Chinese couple, by taking their pics. They were certainly not impressed.
Our last destination was Empire state building. I have no words to write how beautiful it was, looking down from the sky, watching tiny bulbs coherently creating an artful scenery. It was the moment which I would never forget. Just a piece of advice, visit ESB only after sunset, the night lights and the scenery is beyond words awe-inspiring. I have deliberately skipped writing about "Madame Tussauds", it was good too, and one must not forget to visit this. But there is not much to share about its experience, except the 4D show which was quite amazing.

In the end, there were many more moments I wanted to share but don't want to stretch my blog too far. All I would say is this was a refreshing visit I doubt I would ever forget. I would like to thank a few friends who helped me stay and have fun, making my trip as enjoyable as it can be, Amit and Prateek for helping me stay, Neha and Akshat for coming down and enhancing the fun factor, Arpit for giving me an awesome treat and conversation, Rahul for boring me to death as well as sticking out with me almost everywhere. 
Let me leave you with a few pics, and since this post is my last blog of 2013, happy new year to all, have a nice time ahead.
Times Square
A guy getting angry for taking his pic while I just wanted to
take picture of street with roadside shops just like we have in India













Not that different from India, eh!













Christmas Lightning


Saturday, December 14, 2013

[How To] Write a script which notifies and alerts you in Linux

Finally I got free from my End-Sem exams, phew! But not so fast, I have to manage many things in my one and half months of winter holidays and that too in this chilling weather of Buffalo.
One of the most important things on my priority list is to pay my next semester's fees. Now here is the problem, it is really hard to track USD to INR rate. I had to go to XE or Yahoo Finance to know the current exchange rate. This gave me hard time, when the rate is changing continuously with high variability. So I decided to write a script and run it as a daemon or cron job which will notify me if the Dollar falls or rises from a particular threshold.
For this purpose, I have chosen Elementry OS/Ubuntu which is installed in my system (and BTW, my laptop can almost serve as a server, as I rarely switch in off. At best I would just make it go to sleep mode for a few hours). I would use Python and Perl for this purpose.
So let me show you how I did it. First, let's make a script which would notify me on desktop if I am The rate falls below a threshold, we will call this a notifier script:


notify.py


#!/usr/bin/python
import sys
import pynotify

if __name__ == "__main__":
    if not pynotify.init("icon-summary-body"):
        sys.exit(1)

    n = pynotify.Notification(
        sys.argv[1],
        sys.argv[2],
        ##dont remove the below line
    "notification-message-im")
    n.show()

This script would simply use the Ubuntu notification system and would notify you on top-right corner of your screen. (See screenshot)

Now we are ready to make a script which would continuously fetch the current exchange rate, but before that I also want that if I am not at my desk or not using the computer I must be notified through email. For that I would install, sendmail. It is really easy to install sendmail in Ubuntu, just fire this command:
sudo apt-get install sendmail
also create a filter in your mail box which would not send mails sent from your computer to spam folder, and test everything works properly by firing this command:
echo "Dollar Rate" | mail -s "Rate is at 61.67, just to inform you" your.mail@gmail.com 
Now you must check your mail box, you would have received  a mail like this:

I wrote a Perl script which uses Yahoo Finance API and keeps check of current exchange rate:

check_dollar.pl


use strict;
use warnings;
use LWP::UserAgent; 
use LWP::Simple;
# my $url = "http://rate-exchange.appspot.com/currency?from=USD&to=INR";
my $url = "http://finance.yahoo.com/webservice/v1/symbols/INR=X/quote?view=basic";
my $oHTTPAgent = new LWP::UserAgent;
my $oRequest = HTTP::Request->new('GET'); 
my $i =0;
my $old_fh = select(STDOUT);
$| = 1;
my $rate;
select($old_fh);
while(1)
{
 $oRequest->url($url);
 my $sResponse = $oHTTPAgent->request($oRequest);
 if ($sResponse->is_success) {  
     my $sPage = $sResponse->content; 
     ($rate) = $sPage =~ m/price\">(\d+\.\d\d)/g;
     $i++;
     print $i."\t".$rate."\n";
     if($rate<61)#set your threshold
     {
      my $xpl = `python /path/to/notify.py "Rate is" "$rate for 1 dollar"&>/dev/null`;
      my $yoyo = `echo "Dollar Rate" | mail -s "Rate is at $rate, just to inform you" everlasting.puneet\@gmail.com`;
     } 

 }
 sleep(60);#set ping frequency, right now it would check in every 60 seconds
}

Now we are all set, all we need to do now is to start this process. If you can observe I have used an infinite while loop, if I want to make a cron job of this script I need to remove this loop.
Now either run the script as it is by inserting right path to "notify.py", or if you want you can remove while loop and write cron job like this:
Run
crontab -e
This opens an editor. Therein you type :
*/1 * * * * perl /path/to/check_dollar.pl
We are all done, I hope you can be creative and add more type of notifications, and alerts. 

Tuesday, December 10, 2013

A note on AAP's Success - Part 2

Source: Wikipedia
The problem with frivolous intellectualism is it always hyper-reacts. Before the Delhi election everybody was busy under-estimating AAP and now everybody is busy over-estimating and over analyzing the AAP phenomenon. We get to hear such humungous theories from TV studios as to how AAP would now be a national party and how Arvind Kejriwal would be the PM candidate of the third front! Nobody bothers to tell us how AAP will replicate its limited success of a rootless city like Delhi in other metros; for instance, how will AAP gather votes in Mumbai where the fault-lines are between Maharashtrians and outsiders, or say in Hyderabad where there are agitations for and against Telangana or even in say, Lucknow, where the politics of identity is foremost.

Even the success of the AAP in Delhi is a one-off phenomenon that has come about through a string of coincidences – a very unpopular government, agitations of the past year on a range of issues from corruption to women’s safety, passionate participation of youth (who have long-term attention deficiency as always) and a moribund opposition which woke up much later in the day and yet managed to be the single largest party. Arvind Kejriwal is making a classic mistake once again. He is taking this one-off support of the people of Delhi for granted and wants to go to the polls once again based on some ludicrous suggestions that AAP has the momentum and will gain a 2/3rd Majority in a re-poll.

What is more likely to happen is quite the opposite;
  • Voters passion would have come down a couple of notches in about 3-4 months and AAP would never be able to get the same kind of volunteer participation as they got this time, no matter what kind of funds they manage (this is exactly what happened to the Anna movement which eventually fizzled out despite the huge initial success) 
  • With the passage of time, basic every day governance delivery issues will become important and the greenhorn MLAs of AAP would be answer less to voters queries especially in a situation where there is no government 
  • The Voter anger against Sheila Dixit would also be much reduced in a few months’ time and all Congress needs to do is regain some 3-5% of the vote share to overtake AAP 
  • If Delhi elections are held along with LS polls, which is the only practical possibility as far as the EC policy on re-polling is concerned, then AAP would come a cropper as it is a well-established fact that almost 65% of AAP voters want to vote for Modi in the LS polls 
  • Even if Delhi elections are held separately, all that BJP/Congress has to do is manage better ticket distribution by giving more tickets to young professionals rather than tired old faces and AAP would lose its only USP 
  • At least half a dozen seats are such where AAP has won by a very narrow margin and as such it won’t be sustainable in another election 


At the end of the day, far from going national, AAP stands vulnerable in the only state that it has performed, as we move closer towards the 2014 elections.


[PS:
  1. I am not the Author of this blog. This blog is taken from excerpts of: http://5forty3.wordpress.com/2013/12/11/what-2013-means-to-2014/comment-page-1, Please go and read the amazing and neutral analysis of 2013 election done by DR PRAVEEN PATIL on this blog.
  2. This blog represents exactly what my opinion is about AAP's success. Not that I don't want it to succeed but the media are overdoing everything. AAP is important to the nation, it changed political discourse, but let's keep in mind that we must not overestimate in excitement.
]

Sunday, November 17, 2013

[In Reply To] Do not protect me from myself, Mr Modi

So I read this article in "Business Standard", where author Aparna Kalra wrote about all this Amit Shah and Saheb snooping controversy. First of all I am neutral to this news, because I do not trust the veracity of the tapes, and want the law to take its course, though the timing of raking such issues is dubious.
Here I don't want to defend anyone, but all I want to oppose the double standards, such self proclaimed feminists have.  Let me take her points, one by one.
She writes "Ten reasons why I don't want unwanted protection from the state or my family"

  1. Because I do not want my limited free time and my conversations with men or women (dates, friends, colleagues) to be monitored.
    I agree! No one wants to be watched when he or she is having some private moments, but what if you just met someone, and you do not know the other person completely. And then he or she (mostly he) takes you somewhere unsafe, loots you, rapes you. But after that it would be so convenient to write another blog on how state machinery and intelligence fails to stop such incidences. My question is "Why can't government be proactive?" If they feel they should stalk someone for his/her safety they must.
  2. 'Protection' is the worst form of control and the worst form of patriarchy

    Okay! You mean to say, mothers would never ask for their daughter's safety. Surely, asking by a father for his daughters protection would mean an increasingly man dominated society #sarcasm.
  3. It takes the forms of brothers spying on sisters and parents keeping an eye on their daughters (and sometimes even their sons) "for their own good" but actually exercising all forms of checks to see that they do not step out of line
    If the parents don't go overboard with this, and start hindering and keeping check on every decision their children make in life, I don't see a problem here. Recently, I read an article where a girl committed suicide, because she was not mature enough to deal with the problems she was facing, and neither she was brave enough to confront her parents about this. This stupidity could have been stopped if parents were proactive in monitoring. (Though I would have loved if there was a friend like bonding between parents and children, so that any problem you can share with each other, but unfortunately that is not the case in every home).
  4. The "stepping out of line", of course, is hanging out with, making friends with or meeting and marrying people of their choice as against suitable parent-approved and society-stamped candidates. 

    I agree with you on this. Many Indian families want a Parent-Certified spouse for their children, but a few parents would just want to check is if their child has taken the right decision and if not it's their duty to suggest or discuss as a friend. So you can not generalize this.
  5. Protection takes away a person's risk-taking, adventurous spirit by confining him to "safe choices", "safe areas" and "safe people"
    Before going any further, lets get the facts right. What is Protection:

    In the top three definitions of "Protection", I don't find any single sentence which protects you from going for adventure and taking limited risk. But, if in the name of taking risk you want to jump from a 15 story building, without protection. In the name of adventure you want to go to some dark places of the city, and some bad thing happens, would you be responsible for yourself, no! Everyone would start blaming the Government, and we would see the inundation on blogs, write-ups, news from some other self proclaimed feminists, that government cannot protect girls, make strict laws and blah blah. Protection doesn't always means jail, you can have your adventure, risks. Would anyone sleep with someone having STD knowingly, without Protection?
  6. Even if I get hurt, or make wrong choices in life, those choices are mine. Not something the state, or my family, can decide for me.

    With this argument, you lost even the slightest sense you were making earlier. So, what are your wrong choices, a bad husband? Committing suicide? Getting raped? There can be a number of bad choices you can make. Like the one made by nirbhaya, that she took the wrong bus. It was because the government was not proactive enough, it did not do its bit. Now I don't want to bring politics in here, but in 2011 TOI reported:

    The five best states or UTs in 2009, among those with a population of 100 lakh or more, were Gujarat, Karnataka, Tamil Nadu, UP and Bihar in that order, all of them having less than one rape victim per lakh population.
    Although even one rape is condemnable offense, but here just for the statistics, I want to show Gujarat is one of the safest place for women (even according to other reports). So I can deal with a bit of stalking, if that's what makes my country safe for its citizens.
  7.  All bullshit, they are not even any points to say that you don't want an unwanted protection. You just extended previous points to complete 10 points.

    (I agree with you on a few points, for e.g. Police harassing woman even when they try to register an FIR)
I found your post, totally unwanted, and yes you asked for this criticism.

PS: Where ever I have mentioned the word "you", I do not intend to mean that for the author of the BS article, but for all those who hold the same opinion as the author.

Thursday, November 14, 2013

[Food for thought] Big Data or Complex Computation??

When we hear of Big Data (which we are hearing a lot these days), always comes to our mind that we are talking about the data to be big. Is it really the case? Is data a problem or computation?
Well honestly, I don't know the answer. But in my opinion, It's not the size of the data which matters, it's the algorithm, currently available tools and speed of computation which matters. Suppose we have census data of 1.2 Billion people of India, contained in a 30-40 GB file, can we say this a Big Data? Well it depends. Dr. Gautam Shroff writes in this article, that to calculate the average age from a census data would have computation complexity of O(N).  Even to calculate moderate computations such as, "calculate the average age of all the husbands who have their wife's age in the range of 15-19 and belong to North India" would not be so computationally expensive to be called a Big Data.
On the other hand, calculating summary of hundred thousand Wikipedia articles (which would be in the size range of few hundred MBs)  using LexRank algorithm would not be so easy to compute, and might need some parallelization for getting the results in "human patience" time. So the question still remains, What is Big Data? Is it just size that matters or how complex is the computation?

PS: Big Data sounds awesomer than Complex Computation.

Wednesday, November 13, 2013

2. Creating a Q-A system (Using Taming Text code)

During our research we came across a good book called "Taming Text". This books 8th chapter is freely available to be seen/downloaded using this link: http://www.manning.com/ingersoll/Sample-ch08.pdf.
In this chapter, the author discusses how making a Q-A system using Lucene/Solr. Fortunately, he has given the source code of the Q-A system he explained in this book. I tried to follow the instructions given in the book and observed if this particular system can give us some insight on how to make the Q-A system of the likes of IBM Watson. After configuration (which took 10 minutes) and indexing (which took 5 Hrs), my Taming Text Q-A system was up and running. After getting the first hands on the system, I am not very satisfied with the results.

I am not sure if I have missed something, while configuration or indexing or some after steps. But, I am not getting any meaningful answers to my queries. For example, a simple query like "who was Muzzy Marcellino" gives pretty decent results.
But when I made this query a little bit complicated, the system didn't give me any result.
Even though it would be unfair to compare this system with Google's Q-A system, But our final goal is to create something which gives results which makes more sense.
Nevertheless, this exercise gave me insight on what things I should focus on, also a learning that it is not easy to create a generic Q-A system. For now I would be focusing on indexing information about the person type. 

Monday, November 11, 2013

1. Creating a Q-A system (Introduction)

Wikipedia says, "Question Answering (QA) is a computer science discipline within the fields of information retrieval and natural language processing (NLP), which is concerned with building systems that automatically answer questions posed by humans in a natural language."
As I have taken the course of "Information Retrieval" this fall at UB, my final project is decided to be a Q-A system. Well we (me and my 3 group partners) have not decided much on features, which can make our project stand out, but for now we would like to start with a small goal. Somehow index the infobox of Wikipedia, and try to query it using natural  language. My initial research suggests that IBM has already created something similar but on a very large scale, and they call it Watson.
As we don't have enough resources in terms of man-hours (neither men nor hours, 4 people on this project and 25 days to create it), also we do not have computing resources, i.e. What IBM does with thousands of computers, we might have to do the same with 2-3 computers.
Thus it becomes clear that:

  1. We have to be limited and domain specific, for e.g. Indexing only about people, sports, technologies etc. 
  2. We have to compromise on precision and accuracy of our final result.
Where IBM Watson uses very complicated architecture, we cannot afford to do that.
The architecture used by IBM Watson
For now, with my limited understanding on this subject, I believe, if we are not working on very big data, we can ignore a few components mentioned here. Since it is mandatory to use Lucene/Solr for this project, we have decided to use a few other standard open-source tools.

After reading and researching from other places I am clear of five main components of our system:

1. NLP Engine
2. Query Engine
3. Database/Index
4. Retrieved result understanding
5. Answer generator
I will take each and every component one by one..

NLP Engine:
This component reads the question, understands it and breaks it into a computer understandable query. We will use “Apache OpenNLP” or some other NLP toolkit, to determine entities, parsing questions, generating query-able terms for Solr.

Query Engine:
Takes the Semantic Query generated by the NLP engine, and pushes it to SIREn (Semantic Information Retrieval Engine).
SIREn is an open source extension for Apache Lucene and Solr which can query RDF data indexed in Lucene. SIREn adds a new "Field Type" with a set of specific tools such as Analyzers, Query Operators and Query Parser.
RDF is Resource Description Framework, which like XML, stores data and also stores semantic information about that particular query.
Given below is an example of the RDF model of an article about Tony Benn, which says that Tony Benn is a person's name. RDF can also stores relationship between two entities. This makes querying semantic information easier.
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:dc="http://purl.org/dc/elements/1.1/">
     <rdf:Description rdf:about="http://en.wikipedia.org/wiki/Tony_Benn">
            <dc:title>Tony Benn</dc:title>
            <dc:publisher>Wikipedia</dc:publisher>
            <foaf:primaryTopic>
                 <foaf:Person>
                      <foaf:name>Tony Benn</foaf:name>
                 </foaf:Person>
            </foaf:primaryTopic>
     </rdf:Description>
</rdf:RDF>


Index:
This component would store RDF, in Solr, using SIREn. We would like to use RDF data from DBpedia.


Retrieved result understanding (Answer Analyzer):
The retrieved results are ranked in the best possible manner, using disambiguation techniques.
For example, the query "What is Apple" would give two results; fruit and Software and Hardware Company. What would you choose out of these two?


Answer generator:
This component tries to form a human readable answer. For example for the question "What is Apple?" the answer should be:
Apple Inc., formerly Apple Computer, Inc., is an American multinational corporation headquartered in Cupertino, California, that designs, develops, and sells consumer electronics, computer software and personal computers. 
Because Apple here is starting with a capital 'A', which indicates that it is more probable that, the user wants to ask for Apple Inc.

Tentative architecture of our Q-A system
I am really hopeful that we can create something purposeful in next 25 days, even though it is really less time to create something mammoth like a Q-A system. Let's see where we would land in next 25 days, I would try to post more updates as we will pass by different milestones. 

Sunday, November 3, 2013

My views on Aam Aadmi Party - Part 1


As much as I want India to be corruption free, and live in this small surreal world, where everything is just perfect, at the same time my one eye looks for realism.
This is really not good for democracy, that an untested, completely politically immature set of people given straight away the responsibility of governing a state. They should have first started with municipality elections or other small level elections, we might have tested their capabilities of clearing corruption.
Ok! I know you people would jump and counter that by saying, AAP wants to pass 3-4 bills which Arvind says he will do in less than a month's time. My question is, what after that? At times Arvind gives us glimpses of a typical vote bank politicician, of a man with a big ego.
AAP party is really great with its good intentions, but why not start from ground work, and then rise. The biggest fear English had about leaving India was, will the people be able to rule on their own? This was really a valid fear, hence British slowly moved people into government (read slowly with bold because it was really slow). In 1935 Britain passed Govt. Of India act [1], which virtually made Indian government, which was almost "Swaraj", This was just to test if Indians can rule themselves.
My purpose here is not to teach History, but to learn that, giving complete faith in something untested is not a wise decision. Hence please do not think like, Kejriwal is the only hope for the future, what if tomorrow we come to know that he himself is corrupt, that would collapse the whole AAP moment.

References: 

Wednesday, October 30, 2013

Before you criticize Mr. Modi ....

I am just penning a comment here on my blog so that it can be shown to many people, how people interpret what Narendra Modi says and can stoop to a level to disprove him, that they themselves do not check facts. 

I beg all who criticize Mr. Modi, it is okay to criticize anyone but one should see/hear what he says carefully, interpret it being unbiased, and then criticize if he is wrong. For example, he wrongly mentioned 20% education expenditure of China, and he must be told and criticized for wrongly quoting that figure.
Anyhow, Here is what Mr. Nitish said and under that are the counternarratives .


Critics claim: "Modi said Takshila was in Bihar"
Truth: Modi did not say that. He said "अगर ज्ञान युग की बात करें तो नालंदा और तक्षशिला का स्मरण होता है." ("If we talk about the age of knowledge, we remember Nalanda and Takshshila.) Nalanda was in Bihar. Takshashila was located at the other corner, but it's unimaginable to mention one and not mention the other. Try the google query "Nalanda and Taxila" - there are 2,000,000 results.

Critics claim: "Modi said Alexander was defeated on the banks of the Ganga by Biharis, which is wrong."
Truth: Modi did not say "Alexander was defeated on the banks of the Ganga by Biharis". He quoted a poem the last line of which said "He [Alexander] drowned in the Ganges" (see YouTube video @35:40). The poem symbolically referred to Alexander's retreat when he heard that the army of the Nanda Empire (whose capital Pataliputra is the present-day Patna) was waiting for him on the other side of the Ganges. Here is the relevant excerpt from the Greek historian Plutarch's Tha Parallel Lives (with my explanation in square brackets): "...they [the Macedonian soldiers] violently opposed Alexander when he insisted on crossing the river Ganges... While its banks on the further side were covered with multitudes of men-at-arms and horsemen and elephants [belonging to the Nanda empire of Magadha]... Alexander shut himself up in his tent from displeasure and wrath and lay there, feeling no gratitude for what he had already achieved unless he should cross the Ganges, nay, *counting retreat a confession of defeat*".

Critics claim: Modi said "Chandragupta Maurya belonged to the Gupta dynasty."
Truth: Modi did not say "Maurya". This is the exact quote from his speech (available on YouTube and other websites) - "अगर गुप्त वंश की याद करें, तो चंद्रगुप्त की राजनीति प्रेरणा देती है." He was talking about Chandragupta II, who became an emperor after marrying into the royal family of Vaishali and whose capital was Pataliputra.
Comment taken from: http://disq.us/8fwvvb

 PS: I have great respect for Mr. Nitish ji, but I just wanted to bring this to everyone's notice that whatever he said was not correct either. 

Sunday, June 23, 2013

Can Narendra Modi MODI-fy Indian political map

I can lucidly remember during the last few months of the Narsimha Rao's regime there was a TV commercial about how Congress aided in development and making cemented houses. But people at that time were so fed up of corruption and indecisive government, that they could have voted for any party but Congress. 1990s decade saw major turmoil in the Indian political map, Congress was weaker than ever, Regional parties just started to flourish, the BJP came up with "Hindutva" in a whole new context. India saw 5 Prime ministers in that decade, and so many elections. 
Why I got reminded of all this, is due to the fact that 2010s decade would also be something similar, we are going to witness major turmoils in Indian politics once again, and at the forefront of this turmoil would be one person for sure, Narendra Damodardas Modi.
Let me put this into picture that why NaMo (as his supporters call him with love) is so important person for Indian political road-map ahead. Modi was born in a lower middle class family, he used to run a tea stall at the bus station, an average student yet a keen debater. This all changed when he joined RSS, people took notice of his innovative thinking and skills to administrate. RSS asked him to join BJP in 1987, the same year I was born. He was the mastermind of BJP's most successful campaigns, it was Modi who brought the concept of successful Rath yatras. As he became a prominent person in BJP he was given the post of General Secretary, and during this period his strategies helped the BJP to win Gujrat elections. Inside BJP people admired his innovative strategies and skills to deal with people who are otherwise hard to deal with, for example Shankersinh Vaghela. He was ruthless and decisive, and willing to take risks which is a bit odd in the Indian political scenario, but it always worked for him. Luckily for him the Keshubhai Patel's government was not doing well in Gujrat and corruption charges on him and administration's failure during Bhuj-Earthquake lead BJP to sideline Keshubhai and give command to Modi. Unfortunately Godhra happened just after he became Chief Minister of the state and again we saw administration failure (where I will give the benefit of doubt to Modi), nevertheless it was one of the worst riots in India since Independence and someone had to take the responsibility. But Modi stood firmly against all allegations not stepping down,  and instead of going to exile as Congress people would like it, he stayed. We have witnessed a big change in modi since then from a Devil(or some say mass murderer), he became iron man, making development his prime agenda. His constant efforts lead BJP to massively for the third time in a row under his leadership, and even getting good amount of minority votes. Basically, we all know this history I just wanted you to revise this briefly. So, since now the context is well set that Modi is:
  1. An innovative idea guy in BJP camp
  2. Uses technology for betterment and where ever he can
  3. Ruthless and Decisive
  4. Hates nepotism
  5. Have many people who hate and completely detest him just because of his attitude after the Godhra incident, and believe that he should have apologized.
We can now move forward and discuss from here, where would Modi go, would he be able to make an impact on National level politics. 

If BJP has to win 2014 elections they simply have to cross the 200 mark on their own, there is no other way they can form NDA2. Let's assume for a while the BJP would not project Modi as PM candidate and go in elections either with Advani as PM Candidate or not with any Candidate. In both cases Anti-Congress mood of the nation will not favor BJP as people are already skeptical about both parties, Third front is going to get benefit from this and might form a Government under Nitish Kumar or Mulayam Singh. The BJP might win slightly more seats than Congress, But just like 1990s Congress will support Third front from outside. But as already seen from past experiences that when too many people want to share the power no one gets it. Mulayam Singh, Nitish Kumar, Mayavati and other respective regional leaders would fight to get the PM seat, and in the end we will have re-elections. 
Lets take another scenario, if Congress somehow able to get 140+ seats, Congress and Third front together will form a government but there would again be chaos about how to share the power, Congress can no longer hold its allies by the shear power of misuse of CBI. Finally the whole setup would fall like house of cards. 
As in both cases lead to failed government, let's see how Modi can change the whole game. If Modi is going to be PM candidate it would surely polarize the vote-bank. But three states where BJP can make its mark are UP, Bihar and Gujrat. Gujrat being the home state of Modi will surely give what all it can offer for Modi, I am expecting a clean sweep by BJP there. Bihar is a bit tricky place, As most of the votes would be divided by JD-U and RJD as they are now targeting the same vote bank, Bihar's people will not vote for JD-U this time as Assembly elections are completely different affairs than National elections. BJP is equally strong in Bihar and as seen in the past people will vote from development as an agenda, Moreover BJP is going to play OBC card for NaMo which can again go in Modi's favor. Bihar might not be a clean sweep but BJP will surely come as a prominent party in Bihar. 
Now comes the politically most complicated land of India, UP which send 80 MPs from its land. BJP can not afford to loose its grounds here, If current opinion polls are believed then BJP is going to gain majorly even without Modi as PM candidate. If Modi is declared as PM candidate He will appeal to 3 different types of voters. One the upper caste people and Youth who will vote for development, People who vote for Hindutva and third would again be the OBC people. The only concern in UP is Muslim votes will be totally against BJP. But if we look at all equations under Modi BJP is supposed to increase its constituencies three folds. If BJP wins 35+ seats from UP, 20 odd seats from Bihar, and 20+ seats from Gujrat, things are half done. Punjab is easily ceded to Akali-Dal, in Rajasthan BJP is already looking stronger due to anti-incumbency factor, Maharashtra might not yield as good results but surely be better than last time, Madya Pradesh and Chattisgarh would favor BJP. Looking at all the scenarios, under Modi's firm leadership BJP might touch-up 180+ and with its very strong allies (SAD and SS) will reach to 220, from there on it is not easy for Third front and Congress to form a Government. As it seems Jayalalita is going to win in TN and she has already given indications to support Modi, Trinamool Congress can also join hands with BJP. 
From thereon it's a matter of time that TF would break and power loving ministers with no ideology will come to help the BJP. It would not be a surprise to me if Nitish Kumar after 2014 will swallow his pride if BJP comes with the majority, he might just join hands with NaMo again for political sake, just as he praised Modi back in 2004. 
Well you can never predict what is going to happen in Cricket, Game of Thrones and Indian Politics. I can go on and on about the pros and cons of Narendra Modi, but there is already a plethora of blogs, books, videos available to talk on this topic. I would just conclude my argument with one line, you can love NaMo, you can hate NaMo but as the matter of fact remains you can no longer ignore him. BJP knows it quite well and that's why it is caring least about its fleeing allies, they will come back anyway for power like bees come to honey.