Monday, September 29, 2014

Some Quora Updates For you

What does it feel like to delete your WhatsApp account?


Feel Whatsapp
Perfect question put forth. This is going to be a long answer, but I'm sure you'd enjoy reading it, because I enjoyed living this experience.
I haven't been using WhatsApp and Facebook for over 4 months now. Once in a month, I use Facebook just to check my notifications (and the funny part is that I receive almost 300 notifications on Quora in one day and got 12 notifications on Facebook in a month; 11 of them being Candy Crush invitations. I'm such a boring soul on Facebook now that nobody remembers me there). I had installed WhatsApp for 4 days and uninstalled it again because Virali Modi joined Hike (evil laugh).

Coming back to the question. I used to be so hooked to WhatsApp that I kept refreshing the contacts list every 30 minutes to catch a status update. Later, I got messages from friends saying, "hey did you see her status? Probably they have broken up! (referring to those "I'll be better" statuses)"
It felt so crowded with WhatsApp, where every friend was just a touch away. I knew everything my friends did. They knew everything I did. I was in touch with all my high school friends. I got many texts on my birthday to wish me. Forwards and smileys filled the void of talking and listening. It was so chirpy.
Some issues cropped up and I uninstalled WhatsApp instantly. Suddenly, my smartphone stopped beeping. I didn't receive a single call from anyone except my parents, my sister and my boyfriend and occasional messages from myntra sale. None of my friends cared to find out anymore of how I had been, although I used to exchange messages with at least 15 people every day.
But now, there wasn't a single moment when someone called me up to meet me or casually ask about my whereabouts.
I realised that technology has taken a toll on all of us. Gone are the days when we would call up our friends and talk for hours straight. Its just too awkward to call someone up if they aren't using WhatsApp.
I would occasionally call up my friends and talk. But suddenly, it seemed very formal; calling up someone to talk for 15 minutes seems like a gigantic task now.
I don't even see my phone these days and its kept somewhere aside. I just use it to make a call or text on Hike. I use Hike where I just have 5 contacts - my sister, my boyfriend and 2 very dear friends and now Virali Modi too; just the closest ones.
Deleting WhatsApp has made me go back to the '90s - to reality, where no technology can surpass human interaction. I'm glad that I have come down from 94 "contacts" to 4 "friends". Finally, I am not engrossed in my cell phone while I'm having tea with my parents. But still, I complain each time I meet my gang because it's like talking to people buried in their cellphones.
Life without WhatsApp is beautiful. I know what's real and what's not.


What's it like to meet Rajnikanth?

Dileep Sundar experience with Rajinikanth
Dilip R. Sundar
The wife and I were visiting Chennai for a friend's wedding and decided to have the midnight dinner buffet at the Taj with a couple of other good friends. The date was 26th Feb, 2011.

Since we arrived a bit early we were waiting in the lobby and that is when we saw "The Boss" and his wife walk past us. My friend was the first to recognize him and by the time i got a glimpse of him he had headed into the restaurant. The four of us contemplated if it was right on us to try and meet him (invading his private time) but then we just couldn't resist it. We walked into the resto and there he was busy on his phone while his wife was at the table. The hotel manager stopped us saying "Sir is busy now. You cannot disturb him. Sorry". We tried to plead with the manager saying that we were from Bangalore (which is the case) and we would really like to meet him. He just shooed us away though. Disappointed we headed back to the lobby.

After around 5-10 minutes IT happened. The manager came out looking for us and said "Sir is calling you. Please come". We were shell shocked. HE had actually noticed us and called us back in to meet him. As soon as we approached his table, he stood up to greet us. He was extremely courteous and shook hands with all four of us. When we mentioned that we were from Bangalore he switched from Tamil/English to Kannada and we managed to have a 3-4 minute chat with him as well. Post that when we requested for photos of him, he not only posed with us but also gave us enough time to take turns and shoot with all our phones. We thanked him and quickly left the place.

While the experience was really surreal and the photos managed hundreds of likes/comments on FB, I have just 2 take aways from all of this:
1) The Boss was extremely humble and courteous for a man of such stature
2) We were such idiots. Feb 26th is his wedding anniversary. So, not only did we barge in on his anniversary dinner claiming to be big fans, we wished neither him nor his wife.

I've read/heard a lot about the good deeds he has done to society but this small incident surely did bump up my respect for him by several notches.


What is it like to see a close friend become famous?
It is kind of a strange feeling, at one end you feel proud of being so close to someone as famous as XYZ, and then comes the frustration (especially during job appraisal seasons), "woh kahan pahunch gayi aur tuu kahan rah gaya" (where has she reached, and where have you been left) :D

In my case it is Priyanka Chopra, yes The PeeCee.. we were in the same school in +2 and also shared the same coaching after the school, even more our houses were also close by.. Never a close friend to say so, but same Section of the class, same optional subject, same coaching.. so quite a lot of similarity (besides she had looks of a model and I of a sample)





The worst came when I joined the college after +2, and became an instant hit, by the name "Priyanka Chopra's classmate".. the highly sought after fresher, who was a source of live entertainment for the seniors, answering their unending (and most of the time obnoxious) questions about her.."Any boyfriend in school", "How was she in school", "Did you ever tried your chance".. blah blah (those censored ones.. ;)

It was quite a journey for her, from Ms. India to Bollywood and now one of the highly paid actor over there..

Still when we have the long drinking sessions, while watching TV, often emotions erupt, "Bhai, tuu yakeen nahin maanega, lekin aise saath baithi hai mere, aur aaj dekho hickk" (Bro, you wont believe me, but she use to sit almost next to me, and see where is she today).. 

Friday, September 26, 2014

News

U.S. business questions Modi's reform credentials ahead of visit

(Reuters) - The U.S. business lobby on Thursday questioned the reformist credentials of Prime Minister Narendra Modi, on the eve of his visit to the United States in which he will encourage investment and declare India open for business.
The U.S. Chamber of Commerce and 15 other U.S. business associations representing sectors ranging from agriculture to movie making, pharmaceuticals and telecoms, called on President Barack Obama to press Modi to remove barriers to fair trade when the two leaders meet in Washington on Monday and Tuesday.
"Since taking office, Prime Minister Modi has declared India 'open for business' and promised to incentivize investment and 'give the world a favorable opportunity to trade with and produce in India,'" the Alliance for Fair Trade with India said in a letter to Obama.
"Thus far, however, the new Indian government has produced troubling policies of its own," the group said, adding: "These actions send perplexing and contradictory new signals about India’s role in the global marketplace."
The letter highlighted India's blockage of a key World Trade Organization agreement reached in Bali last year, which overshadowed a July 30-Aug. 1 visit to India by U.S. Secretary of State John Kerry.
The business alliance also complained about India's raised tariffs and "burdensome" new testing requirements on imported information and communication technology products.
U.S. officials say the United States will press Modi to end the WTO blockage during his visit, something that could dampen the mood of a trip aimed at revitalizing a strategic relationship Washington sees as a key counterbalance in Asia to an increasingly assertive China.
Also on Thursday, U.S. Congressional leaders dealing with trade and finance wrote to the U.S. International Trade Commission calling for a second investigation into India’s "unfair" trade practices, detailing any changes under Modi. They called for the ITC to deliver a report to Congress on Sept. 24, 2015, a statement said.
A report requested in August last year is due to be delivered to Congress on Dec. 15 this year.

Stephen Ezell, senior trade policy analyst at the Washington based Information Technology & Innovation Foundation, told a teleconference that Modi had taken some positive steps, including an easing of some restrictions on investment in the defense, insurance and railway sectors.
"However ... we’ve also seen the continuation of existing — and even the promulgation of some new — trade-distorting policies that do give us some pause," he said.
Chris Moore, of the National Association of Manufacturers, said Modi and his administration were "saying positive things."
"But their actions tell a different story."
Patrick Kilbride, of the U.S. Chamber of Commerce, welcomed the Indian government's plans to review the environment for intellectual property rights, but said it remained "very poor."
The chamber would take the pledges at face value, he said, but added: "Recent history has given us many reasons to be wary."
Modi is due to arrive in the United States on Friday for his first visit as prime minister and has meetings scheduled with 17 U.S. corporate chiefs including those of Google, IBM, GE, Goldman Sachs and Boeing.
Analysts say maintaining a positive mood will be important during the visit, given that Modi was denied a U.S. visa in 2005 after more than 1,000 people, most of them Muslims, were killed in riots in Gujarat.
There was no immediate comment from the Indian embassy in Washington on the letter from the U.S. business lobby.

 

 

S&P upgrades India's sovereign credit outlook to stable from negative


MUMBAI: Rating agency Standard & Poors has reversed its opinion about the Indian economy and upgraded the rating outlook to stable from negative while maintaining the credit rating at BBB-.

This is a major change from its position last year when it said India faces one in three chances of a downgrade.

In a huge sentiment boost for India, S&P on Friday revised India's credit outlook up to 'stable' from 'negative'. While the agency maintained India's rating at BBB-, the revision in outlook is good news for the Indian economy as raising debt will become cheaper for Indian companies and it will also encourage foreign institutional investors.




Could Thackeray + Thackeray create a political earthquake in Maharashtra?


Zee Media Bureau

Mumbai: A day after the 25-year-old Shiv Sena, BJP alliance came to an end, another big possibility that holds the potential to create the biggest political earthquake in Maharashtra is being talked about – the Thackerays coming together.

If such a scenario were to play out, the estranged Thackeray brothers could arrive at an understanding so as to minimise collateral damage from the split in the saffron alliance.

It is being speculated that leaders on the two sides are alive to the positive outcome of such an potential alliance.

The Sena has reasons to worry about politics without the BJP, at least in the short term, as the party is in power in 12 municipal corporations with support from the BJP, including in Mumbai and Thane.

In the new arrangement, the MNS could possibly extended support to Shiv Sena wherever it can make a difference and the MNS in turn will get support from Sena in Nashik where it is in power.

However, the bigger import of the developing alliance can't be missed. Raj Thackeray had walked out of the Shiv Sena after party patriarch Bal Thackeray anointed his son Uddhav as his political hier.

Since then both Raj and Uddhav have fought a battle of one-upmanship. While Raj got to play the role of spoiler in 2009 assembly elections when his party weaned away enough votes to ensure defeat of the Sena-BJP combine, Uddhav came back in the game after a splendid outing in the Lok Sabha polls.

Meanwhile, the buzz in political circles also point to the possibility of the Sena and the BJP joining hands post elections even if it is in the form of outside support. However, for the record both sides are saying that the split is final and for real.

"Our other (mahayuti) alliance parties wanted the Sena-BJP combine to continue. More than that, it was what the 11 crore people of Maharashtra wanted. Those who trampled these sentiments are enemies of Maharashtra," an editorial in Sena mouthpiece Saamna said.

"This (breaking of alliance) is an insult to the 105 Marathi martyrs of the Samyukta Maharashtra movement," Sena said, adding, "It is unfortunate that the Sena-BJP alliance which for the last 25 years was bound by the Hindutva ideology has ended."

"Those who till yesterday were praying in this tent are now offering namaz in the other tent."

In the edit, the Sena proclaimed itself as "the real protector of Maharasthra" through its army of Shiv sainiks (soldiers).

"Now, Pitru Paksh is over... Everybody's ancestors came in the form of crows and feasted on food and sweets before leaving happily... Only the political descendents were not ready to make any adjustments in the matter of seat-sharing."

The BJP has also announced that the party would not criticize Shiv Sena during the campaign and remain friends. “Our aim is to prevent the corrupt Congress-NCP government from coming to power. We will not criticize Shiv Sena during the campaign, we don’t want any bitterness with our ally of 25 years,” Eknath Khadse,

BJP demands President's Rule

A delegation of state BJP leaders met Maharashtra Governor CV Rao on Friday to urge him to impose President's Rule in the state.

The delegation was led by senior party leader Eknath Khadse. Party leaders told the Governor that in view of the Nationalist Congress Party (NCP) withdrawing support to the Congress, the Prithiviraj Chavan government is now in a minority hence should be dismissed.

Thursday, September 25, 2014

The Unfortunate thing Happens in Himachal Pradesh

Himachal Pradesh Bus Accident: Toll Rises to 25; 17 Still Missing

Himachal pradesh


Shimla:  At least 25 persons today drowned and 17 others went missing after a bus fell into the Gobind Sagar reservoir at Rayian near Bilaspur, 95 km from Shimla.

Twenty-five bodies have been recovered while 17 injured persons have been taken to a Bilaspur hospital, Bilaspur Deputy Commissioner Ajay Sharma said.

He said rescue operations were almost complete and chances of recovering more bodies could not be ruled out.

The deceased included five women, he said, adding 22 bodies have been identified.
The 40-seater bus was packed to capacity and some people were said to have been also travelling on its roof, raising fears that the toll may be higher.

A number of students and labourers, who were making their daily commute from Rishikesh to Bilaspur, are among the victims.

The bus, belonging to a private transportation company, has been pulled out of the reservoir. It was on its way from Rishikesh to Bilaspur and most of the passengers on board were locals.

Among the injured are some passengers who managed to jump out of the bus in order to save themselves.

Divers of Bhakra Beas Management Board (BBMB) joined efforts to fish out the bodies.

A large crowd of locals has gathered at the spot making anxious enquiries about the victims of the mishap.

A pall of gloom descended on the village as the news about the accident spread.

Principal Secretary (Revenue) Tarun Shridhar and DGP Sanjay Kumar rushed to the spot along with other senior officers to supervise rescue operations.

Prime Minister Narendra Modi offered his condolences to the families of those who lost their lives in the accident.

"The Prime Minister extends his condolences to the families of those who lost their lives in the bus accident in Bilaspur district, HP," the PMO said.

Governor Urmila Singh and Chief Minister Virbhadra Singh expressed sympathies with the next to the kin of the deceased.

The Chief Minister announced immediate relief of Rs. 10,000 each to the next of the kin of the deceased and Rs. 5,000 each to the injured and said that ex-Gratia amount of Rs. 1.50 lakh to the next of kin of the deceased would be released soon.

A magisterial enquiry has been ordered into the mishap.

Additional District Magistrate, Bilaspur will conduct the enquiry and submit the report within one week to the government.

Todays things

How do Indians feel when they go back to live in India after living in US for 5+ years?

I went to the US when I graduated from college. Then lived there for 5.5 years and returned back 2 years ago. Now, relocating back to the US. Here is my experience:
Indains feel

    A lot of India has changed. The stuff that wowed me when I first went to the US - big cars, freeways, huge malls, Apple gadgets, clubbing, quality schools, swimming pools, international cuisine (Ethiopian, Thai, South East Asian, Mexican), driving past supercars and online shopping... have come to India too. In many of the highways here, I could easily zip at 80mph+. The gated communities are maintained really clean inside and have many of the facilities that you could find in upscale US apartment communities.  In that sense, I didn't have a big shock moving back almost after 6 years.
    However, just as India is taking the positives of the US, we are even faster at taking negatives. The new India seems a lot more impersonal and the newly minted upper middle class filled with attitude. In the communities, I lived in the past 2 years, there is quite frosty relationship among the neighbors and even a simple Diwali cracker could invite a frown. However, older Indian middle class apartments are still personal, where people would walk-in without appointments, give sweets and enjoy the festivals. And the maids are now becoming almost unaffordable (positive sign, if there were no unemployment).
    Although Indian government have gone slightly more efficent and techie, they are still a pain in the ass if you are an entrepreneur.

In a sense, for me the certain charm of India is gone. Temples are more commercialized these days, there is a new charlatan "guru" every corner, schools have gone really pricey, running a business is still very hard and good apartments are unaffordable in most metros.


 The Second news

Make in India Live: FDI will mean First Develop India, says PM Modi


2: 30 pm India needs a Look East and Link West Policy, says Modi

make India Lion of the world
Nobody can question India's talent after India's successful maiden visit to Mars, said Modi while congratulating ISRO, Wwhose Mangalyaan rocket is now orbiting Mars.

Modi concluded the speech by inviting India Inc to ensure 'Make In India' is a success.

Effective governance, easy governance need of the hour

Like ease of doing business, India needs easy and effective governance too, he said while inviting corporates to invest in India.

"Through Digital India we make to make governance easy.. There should be a 'Look East' and 'Link West' policy in the country and we will move towards it," he added. Only India offers 3D: Democracy, Demography and Demand, says Modi

12:00 pm 

Unveiling the MakeInIndia brochure at Vigyan Bhawan in Delhi, Prime Minister Narendra Modi today said he does not want any Indian company to shift base from India due to constraints here. " Belief and trust in people is the most important thing a government can give its citizens," Modi said. He added FDI for Indians is a responsibility while for the rest of the world it is an opportunity.

Emphasising on the need for jobs, Modi said India must create opportunities of employment for if the poor get jobs the purchasing power of families will increase and this will increase consumption demand in the country. He urged corporates to not just view India as a market but rather as an opportunity. The whole world is ready to invest in India but is not sure where.In Asia only India has democracy, demographic dividend and demand that the world's industry is seeking, he added.

"There is no need to leave the nation. We want our companies to shine as MNCs," he said.

11:50 am : Narendra Modi unveils campaign's logo— the lion

Prime Minister Narendra Modi today unveiled the 'Make in India' logo as well the brochure which covers India's national manufacturing policy as well as 25 sectors that will be covered under the MakeInIndia plan. The programme lays emphasis on 25 sectors with focus on job creation and skill enhancement. These include: automobiles, chemicals, IT, pharmaceuticals, textiles, ports, aviation, leather, tourism and hospitality, wellness, railways, auto components, design manufacturing, renewable energy, mining, bio-technology, pharmaceuticals and electronics among others.

11:50 am : Narendra Modi unveils campaign's logo— the lion

Prime Minister Narendra Modi today unveiled the 'Make in India' logo as well the brochure which covers India's national manufacturing policy as well as 25 sectors that will be covered under the MakeInIndia plan. The programme lays emphasis on 25 sectors with focus on job creation and skill enhancement. These include: automobiles, chemicals, IT, pharmaceuticals, textiles, ports, aviation, leather, tourism and hospitality, wellness, railways, auto components, design manufacturing, renewable energy, mining, bio-technology, pharmaceuticals and electronics among others.





Tuesday, September 23, 2014

World’s cheapest Mars Mission

How Mangalyaan stacks up against other journeys to the Red Planet:

ISRO chairman Dr. K Radhakrishnan holds up a Mangalyaan model. Reuters   
                     
less than 24 hours, India could make space history by becoming the first country in the world to enter Mars' orbit on the first attempt, thanks to ISRO's Mangalyaan spacecraft.

Launched in November last year, Mangalyaan aims to study Mars' surface and mineral composition, and scan its atmosphere for methane, a chemical strongly tied to life on Earth.

If successful, India would be the fourth space power after the United States, Europe and Russia to orbit or land on the red planet.

What sets Mangalyaan apart from other Mars missions conducted by global space agencies is how cost effective it is. At approximately $74 million, ISRO's mission cost roughly a tenth of NASA's Mars mission Maven that successfully entered Mars orbit on Sunday.

Prime Minister Narendra Modi famously said the Mangalyaan mission cost less than the Hollywood blockbuster Gravity, which is estimated to have cost about $100 million to produce.

Take a look at the infographic below to see how Mangalyaan stacks up against other global missions:

Monday, September 22, 2014

How is the Indian army regarded by other countries' militaries?

We need to take Indian capabilities more seriously.



What many people in the west imagine India's Army to be like.

There's a general assumption in the West that the Indian Army is (as one forum contributor put it):

A third-rate force using 1970s Soviet arms and tactics.

We need to take Indian capabilities more seriously.
There's a general assumption in the West that the Indian Army is (as one forum contributor put it):

Pre independence foundation


I think that idea is well out of date.

Personally, I regard the Indian Army as a competent one, with a history that verges on greatness.

Say what you like about the British in India (that's a completely different topic) but we should all recognise that the British had built the Indian Army into one of the biggest and best in the world at the time of independence. It was using state of the art equipment, organisation, training and tactics, and it had just defeated the Japanese, winning 30 Victoria Crosses in the process.

All that pride, history, experience and competence was passed on to the independent Indian Army.

The 1971 War


This is the jewel of the Indian Army, the blitzkrieg attack on East Pakistan could not really have been bettered by any other army.

Modern Indian Armed Forces

In the occasional exercise with the US, the Indian forces very much hold their own, although talk of them 'beating' the US is exaggerated. The Cope India series of exercise in particular have given the patriotic Indian much to cheer about, with the US Air Force afterwards admitting it underestimated India's capabilities and tactics.

Equipment

Much of the Indian Army's equipment is not of the very front rank, compared to the best of Western equipment, and most issues with the Indian Army do concern modernisation of its equipment, which is not complete.

However, the existing equipment is likely to be adequate to the missions it may be required to carry out, and the way India is building it's own armaments industry is likely to pay dividends eventually.

The Future

I would expect that in future the Indian army will continue its rise and at the least maintain it's position as the pre-eminent force in the subcontinent.


Indian Army: Where does Indian army stand in comparison to Chinese army? (in terms of weaponary / tactics)
Please provide well-argued answers and substantiate with facts/reports (whatever is available in public domain). No nationalist fervor - only rational assessment! Analysis from ex-Army men or defense experts will be highly appreciated.

What if China declares war on India or it happens to be the other way around (Highly unlikely) , is India strong enough to strike back ?


Back in 1962 India lost war to China over the same issue , the non demarcated boundary has then since been a matter of conflict. The Chinese army has since been intervening regularly but this has now gone far beyond the limit.
Now that China signals for a possible war, let us analyze what does this have to mean and what do the number and stats say about comparison between the military strengths of the two countries.
Let’s start off with a few lesser known facts :
India is the world’s largest importer of military goods.
India has joined the Nuclear Power’s elite club which previously included USA, China, France and Russia with the development of ICBM (Inter-Continental Ballistic Missile) AGNI-V.
India is one of the few countries operating an Aircraft carrier.

Countries that Operate Aircraft Carriers Blue (Currently Operating) Light Blue (Once Operated)

Started with variables ends with Parameters

Stranger asked like this

How can I assign PHP variables to multiple columns?

 "SELECT a,b,c FROM ant WHERE a='$a' AND b='$b' AND c='$c' ");


Anonymous 1:
started like this
Use PDO (PHP Database Object) . Its the latest way to bind variables with a sql query .
<?php

/* Execute a prepared statement by binding PHP variables */
$value_a  = "value of a";
$value_b  = "value of b";
$value_c  = "value of c";
$sth = $dbh->prepare("SELECT a,b,c FROM ant WHERE a=? AND b=? AND c= ? ");
$sth->bindValue(1, $value_a, PDO::PARAM_STR);
$sth->bindValue(2, $value_b, PDO::PARAM_STR);
$sth->bindValue(3, $value_c, PDO::PARAM_STR);
$sth->execute();

?>

Anan 2:
 As a standard practice, NEVER generate query by string catenation.
Fairly bad idea.
Instead do this:

$format_query = "SELECT a,b,c FROM some_table
              WHERE   a='%s' AND   b='%s' AND   c='%s' " ;
$query = sprintf($format_query, $a,$b,$c);
# for debug
echo "<br/>" .  $query . "<br/>";

Let us know if that helped.

Anon 3:
Query="Select a,b,c FROM ant WHERE a='".$a."' AND b='".$b."' AND c='".$c."' ";
Remember string concentration


Anon 4:
My recommendations:
ditch mysqli in favor of PDO (with mysql driver)
use PDO paremeterized prepared statements
You can then do something like:

$pdo_obj = new PDO( 'mysql:server=localhost; dbname=mydatabase',                      $dbusername, $dbpassword );

 $sql = 'SELECT column FROM table WHERE condition=:condition';

$params = array( ':condition' => 1 );

$statement = $pdo_obj->prepare( $sql,    
array( PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY ) );

$statement->execute( $params );

$result = $statement->fetchAll( PDO::FETCH_ASSOC );


PROs:
No more manual escaping since PDO does it all for you!
It's relatively easy to switch database back-ends all of a sudden.

From my Opinion/Experience
PDO will help to avoid SQL Injection.
PDO supports various databases.
PDO makes migration easier between different databases.
PDO will fasten your query execution time.

CONs:
I Cannot think of any.

Todays interesting things

NEW DELHI: ISRO's Mars Orbiter or Mission (MoM) on Monday successfully completed the fourth trajectory correction manoeuvre and test fire of the main liquid engine on the spacecraft.

"Main Liquid Engine test firing on Mars orbiter spacecraft successful: We had perfect burn for 4 seconds as programmed. The trajectory has been corrected. Mars Orbiter Mission will now go ahead with the normal plan for Mars Orbit Insertion," said ISRO. "#MarsOrbiter Main Liquid Engine test firing success .. 

Why did the RBI withdraw currency notes of Rs 5000 and Rs 10000 from the market in 1978?
This table is a strong indicator that even the present highest denomination, Rs 1000 is not doing much good to our economy. If we look at the developed nations in the table, we see that the per capita income(average person's annual income) to highest denomination ratio is around 300 to 400.

Why does this ratio matter?

When the ratio is at the aforementioned levels, it is less likely that reasonably huge transactions will be done in cash alone. This forces people to use banks which is more transparent to the government, thereby good for the country.

On the other hand, a ratio of 23 in India is the very reason why people don't bother using bank transactions. Why would one bother about banks if a hundred 1000 rupee notes make a lakh rupees, which is quite a big amount for the majority of the population.

Going by the ratio, in order for our country to encourage white money transactions, the ideal highest denomination should be Rs 50.

  23000/50 = 460.

In such a case, if you want to buy some furniture for say Rs 50,000, rather than carrying a thousand notes(Rs 50) with you, you would rather swipe your card or write the retailer a cheque. And that's exactly what the government wants you to do.

The Second interesting thing:

Why do Hindus worship idols when God told us he is everywhere?

Once Swami Vivekananda visited King of Alwar in present day Rajasthan. The king in an attempt to mock idol worship told Swamiji, "I've no faith in idol worship. How can one worship stone, wood and metal? I believe people are in illusion and just wasting time!".
Swamiji smiled. He asked the king's assistant to take down the picture of the king that was hanging on the wall. Although confused, the assistant did so. Then Swamiji ordered him, "Spit on the picture!". The assistant was shocked and looked at both of them. Swami repeated again and again, becoming more stern each time. The king was growing angry and the assistant started trembling. Finally, he cried out, "How can I spit on this? This picture is of our beloved and respected king!".
Swamiji then told him, "The king is sitting in front of you in person. This picture is merely a paper - it does not speak, hear, think or move. But still you did not spit because you see a shadow of your king in it, Spitting on it was like spitting on the king itself." The king looked at Swamiji and bowed down, clearly understanding what he was referring to.

This is the essence of idol worshiping. God is everywhere, but people want to pray to Him, ask favors, offer food, tell stories, bathe Him, play with Him and do what they do in their lives. Creating a human-like idol creates an image of God as a companion, a guide, a friend, a protector, a giver, a fellow being and so on. An idol is just a concrete representation where they find Him. When I look into the eyes of an idol, I do not see stone or metal, but another pair of eyes looking affectionately at me, smiling

Friday, September 19, 2014

Question of some stranger:

any one tell me I have number of files in a folder i want make a single file with all contents of number of file without using any loop, because of it is taking too much time please help me.

Ans:
You want to merge all files in some folder? 
It's impossible to do it in *usual* Java without a loop, because you have to iterate over all the files you want to merge. Maybe there is a way to do using some low-level filesystem functions, but even in this way you will have to iterate over the memory blocks representing the files.

Ans:
In Bash, i.e., below java, you can do: 

- cat '~/some-directory/some-file*' > one-file.csv 

or use find for more flexibility: 

- find ~/some-directory/ -name 'some-file*' | xargs cat >one-file.csv

Ans;
This sounds like an interview question asking for the knowledge of FileFilter class. The way you do it without a loop is shown below. If this is a more sophisticated question, then you may want to think about Windows journals which provides quicker access to files. 

public class AggregateFileContent 

public static void main(String[] args) 

String parentDirPath = args == null || args.length == 0 ? "/Users/alebedev/Documents/" : args[0]; 
aggregateContent(new File(parentDirPath)); 


public static StringBuffer aggregateContent(final File parentDir) 

final StringBuffer allContent = new StringBuffer(); 
parentDir.listFiles(new FileFilter() 

@Override 
public boolean accept(File file) 

if (!file.isDirectory()) { 
try { 
String content = CharStreams.toString(new InputStreamReader(new FileInputStream(file), "UTF-8")); 
allContent.append(content); 

catch (IOException e) { 
System.err.println("Failed to read file " + file.getParentFile().getAbsolutePath()); 




return true; 

}); 

System.out.println(allContent); 
return allContent; 

}

Thursday, September 18, 2014

How are BMTC buses numbered in Bangalore ? What do different suffixes to a bus number like 335E, 335T or categories like G1 , G3 signify?

BMTC bus route numbers are assigned as follows:
A major route between two important places will be assigned a number (Majestic to BTM is 25, Majestic to Kadugodi is 335). Generally two digit numbers are for city services (old city limits) and three digit numbers till 499 are suburban services. 500+ are ring road services.

Any bus which travels 60% or more on the "parent" route is given an alphabet suffix. This would include buses which start from one of the points (usually the starting point of the spoke, the hub, and not the destination) and shares the route for atleast 60% of its length with the "parent" route or runs between the same end points but takes a different route. Volvo bus services will have another suffix of their own.

So, 25E (Majestic - JP Nagar 3rd Phase) shares the route with 25 from Majestic to Jayadeva circle where it diverts onto Bannerghatta Road. 335E is the Volvo service from Majestic to Kadugodi while 335T from Majestic terminates at ITPL, short of Kadugodi. 314 series all run from Majestic to various places in and around CV Raman Nagar area and so on. 330 is from Shivajinagar to Marathahalli while 333 is from Majestic to Marathahalli.

G series (Big 10) are buses which connect the CBD (Central Business District) MG Road and thereabouts with far flung suburbs of the city like Hoskote, E-City, Kadugodi, BNP etc. They are numbered like a circle or spokes on a wheel. The picture below will explain this.

Bangalore

A to Z of using BMTC buses

Bus day or not, here is a guide that will help you understand and use the bus transportation in the city!

News Desk, 08 Apr 2010 , Citizen Matters
8
SHARE Email_pngg
Bangalore Metropolitan Transportation Corporation (BMTC) provides city and suburban bus services in Bangalore. Here is some info to help you start using BMTC buses.

 Are their helplines to help me find my routes?
What are the various BMTC routes?
Regular routes, Big10, Big Circle, Inner Circle, Vajra Premium Services, Airport services
How much should I pay for tickets?
How and where can I get bus passes?
Are their helplines to help me find my routes?
BMTC Hot Line numbers: 1800-425-1663, 1266 (BSNL Only) and 22029935
They provide information on routes and bus pass information. It is available 24x7.

What are the various BMTC routes?
BMTC operates buses of various classes from regular to premium A/C buses, which differ in ticket rates.

Regular Routes

There are 4500 odd individual routes in this category. A given route and its variations are grouped together. For e.g., Route 201G is a subset of Route 201 and it covers more than 60% of Route 201. Any new route will be named with the existing route followed by an alphabet, if the new route follows 60% of the existing route. Otherwise it will be given a new route number.

To find the route information for regular buses as of Aug 2009, click here. You can search by start and end points or by bus numbers.

The complete list of stops is not available for each route, so multiple-leg bus journey plans are not optimised. Some routes have special services for ladies.

The KR Market bus stand, Kempe Gowda (Majestic) Bus stand and Shivaji nagar are the major centres of the basic 'hub and spoke' BMTC route system. It is easy to find bus going to most areas of the city at these major terminals.

Some of the other bus stands include: Shantinagar, Shivajinagar (Central), Hebbal, Malleswaram, Yeshwantpur (North), Vijaynagar, Chandra Layout, Rajarajeshwari Nagar, Basaveshvar Nagar (West), Jayanagar, Banashankari, BTM Layout (South), Domlur, Kadugodi (East).

Directional and Grid routes

There are new "Direction-based" bus services (introduced in 2009). The Big10 and BigCircle buses, run on main roads, and together they form a simple grid.

BMTC directional and grid routes

Overview of grid routes. Click to enlarge.

Big10

There are 12 major roads in and out of the city, and on each of these a Big10 route is operated, each with frequency of one bus about every 10-15 minutes.

BMTC Big10 routes
Big10 green routes. Click to enlarge.

1. HAL Airport Road: M G Road (Mayo Hall) to Kadugodi
2. Hosur Road: Brigade Road to Electronics City
3. Sarjapur Road: M G Road (Mayo Hall) to Sarjapura
4. Bannerghatta Road: Brigade Road to Bannerghatta National Park
5. Kanakapura Road: Corporation Circle to Kaggalipura
6. Mysore Road: Corporation Circle to Kengeri Satellite Town
7. Magadi Road: Kempegowda Bus Stand to Gollarahatti
8. Tumkur Road: Cubbon Road (Minsk Square) to Nelamangala
9. Bellary Road: Cubbon Road to Yelahanka New Town
10. Old Madras Road: Trinity Circle to K.R. Puram
11. Hennur Road: Balekundri Circle to Bagaluru
12. Tannery Road: Corporation Circle to Ramakrishna Hegade Nagara
See the time of first and last trips here.

For the detailed routes including list of stops of the Big10 buses, click here.

Blue Big 10

Big10 Blue routes. Click to enlarge.

Green Big10 buses run on a single main road whereas Blue Big10 buses connect two such roads (e.g. Hosur Road to Tumkur Road).

Blue Routes (B1), runs through the city center connecting a main road on one side of town with the corresponding other side.
» Hosur Road - Tumkur Road (B2) -Electronics City to Peenya 2nd Stage

BigCircle

On the Outer Ring Road, BigCircle buses ply in overlapping routes.

Big Circle routes
BigCircle routes. Click to enlarge.

Big Circles (C1 to C4) run on the Outer Ring Road of the city, starting from four major terminus points. Each route makes a half-ring from its starting point to the terminus point on the opposite side of the city. Routes are numbered clock-wise, but buses run in both directions.

» Hebbal To Banashankari (C1) via Marathahalli, Silk Board, BTM
» Marathahalli To Kottigepalya (C2) via Silk board, Banashankari, Katriguppe
» Banashankari To Hebbal (C3) via Katriguppe, Kottigepalya
» Kottigepalya To Marathahalli (C4) via Hebbal

Inner Circle

K Routes (K1 to K3) run in an inner circle within 4 to 6 km of the city center, starting from three major terminus points. Each routes make a one third from its starting point and overlaps with its next route. Routes are numbered anti clock-wise, but buses run in both directions.

Inner Circle routes

Inner circle routes. Click to enlarge.

» St. Johns Hospital To Yeshwantapur TTMC (K1) via Koramangala Water Tank, Domlur, Trinity Circle, Indian Express, Mekri Circle, CPRI Gate

» Chikkamarenahalli Bus Stand To Mysore Road MCTC (K2) via Yeshwantapur TTMC, ISKCON, Shankara Mutt, Vijayanagar, Attiguppe

» Vijayanagar To Koramangala TTMC (K3) via MCTC, Uma Talkies (Chamaraja Pet), B'Gudi Police Station, South End Circle, JNR Bus Stand, Carmel Convent, Dairy Circle

Wednesday, September 17, 2014

Recent floods in major places



What remains: Kashmir after floods
The floods engulfed much of Kashmir two weeks ago, leaving hundreds of thousands of people homeless in the region.

Most hospitals have been inundated, their diagnostic equipment, CT scanners, operation theaters and ventilators destroyed.

The region has been left littered with garbage, debris and countless bloated cows, chickens and dogs floating in the floodwaters.

The stench of rotting flesh hangs heavy in the air.

Both the Indian and Pakistani sides of the disputed Himalayan region have seen extensive flooding and landslides this month with Srinagar particularly hard hit. Hundreds of people have been killed and tens of thousands are homeless. (Agencies)
http://economictimes.indiatimes.com/news/politics-and-nation/jammu-and-kashmir-floods-from-flowery-city-srinagar-turns-stinking-city/articleshow/42733559.cms

Recently Vadodara floods:
http://www.dnaindia.com/india/report-congress-bjp-spar-over-vadodara-floods-2018002
http://news.oneindia.in/india/vadodara-floods-rescue-workers-combat-crocodiles-to-save-people-1520130.html

Monday, September 15, 2014

Bed Bug

Bed it is Big problem in bangalore :


Problem created by bed bug








http://www.doyourownpestcontrol.com/bed-bugs.htm
The above all things about how bedbug will starts in home

--> It will start on like through begs or laguages from place to place
--> The life cycle of bed bugs we can see here
--> After reaching the bed it will spread some thing through those become like more
--> Those play with us
--> like that couple sleeping we cant slee on that time
-->After those will sleep on bed as a second bed
--> If we apply heat or you keep it sun those will die so fast avoiding we can use hair
      drier for bed bugs
--> In a Bangalore climatic condition those are more so compulasury go with pest   
     control
How did Satyan Gajwani become Times Internet CEO at just 27?

Yep, this is true. I am married to Trishla Jain, daughter of Samir Jain. And I'm 100% sure that has had a significant impact as to why I'm CEO of Times Internet today.

That being said, I would expect that I'll be measured more by what Times Internet is able to accomplish over the next few years, rather than where I am today. The Times management team has given me a lot of room and trust to make Times Internet a world-class digital company, and that's my single-focus goal. With the support of an incredible team, I'm confident we'll get there.

PS: Really, there's no need to write all of this anonymously; most people are just pointing out an honest fact.


some Anaonymous
Yes, Satyan Gajwani married Trishla Jain and as we all already know, money begets money.

However, having interacted with Satyan closely for close to a year now, I think he deserves the post. He's one of the sharpest brains I've interacted with and I love the way he pushes his team (very gently, but forcefully) and gets them to do what he wants.

In a totally Indian surrounding, he remains an American at heart - no ego, can take no for an answer as long as you can justify your point of view, on time for every meeting and really puts his heart and soul in what he does. He certainly is one of the few people in Corporate India currently that I respect a lot!

P.S: I don't and have never worked for the Times Group.

Sunday, September 14, 2014

An Indian King’s Perfect Reaction for Rolls Royce Company

 One day during his visit to London, King Jai Singh of Alwar was walking in casual dress in Bond Street. He saw a Rolls Royce showroom and went inside to inquire about the Price and Features etc of their cars.
 
Considering him a just another Poor Indian citizen, showroom salesmen insulted him and almost showed him the way out of the showroom. After this insult, King Jai Singh came back to his Hotel room and asked his servants to call the showroom that King of Alwar is interested in purchasing their few Cars.
After few hours King reached the Rolls Royce showroom again but with his full astonishing royal manner and in his royal costume. Until he reached the showroom there was already red carpet on the floor and all the salesmen were bent with respect. The King purchased all the six cars that they had at showroom at that time and paid full amount with delivery costs.After reaching India,
The Best Moto
King likes this model in 1960s
King ordered municipal department to use all those six Rolls Royce cars for cleaning and transporting city’s waste.
World’s number one Rolls Royce cars were being used for transportation of City’s waste, the news spread all over the world rapidly and the reputation of Rolls Royce Company was in drains.Whenever someone used to boast in Europe or America that he owned a Rolls Royce, people used to laugh saying, “which one? The same that is used in India for carrying the waste of the City?”Due to such reputation damages, sales of Rolls Royce dropped rapidly and revenue of company owners started falling down.

Then they sent a Telegram to the king in India for apologies and requested to stop transportation of waste in Rolls Royce cars.Not only this but they also offered Six new cars to king free of cost.When King Jai Singh observed that Rolls Royce has learnt a lesson and they are sorry for their mistakes, king stopped using those cars for carrying wastes. This was a royal revenge against the company known for royal cars by a royal person.