Thursday, March 12, 2009

I support Media Ombudsman

Why We(I) Support the BJP - Because India Deserves Better

Source : Friends Of BJP

We are some of us - young and professionals. Till some time ago, we assumed that our contribution to the 2009 elections and the future of India would be our one vote. But, somewhere along the line, things changed. Maybe it was 26/11 and seeing some of us out on the streets demanding action. Maybe it was seeing Obama become President, and see politics really change in America, bottom-up. Whatever it was, we have woken up to the fact that we have to do more - much more - if we are going to rewrite our future and rebuild our India into the glorious country that it once was.

We know we are on the wrong track when security warnings sent on September 24 for the event that happened on 26/11 are ignored and not acted on. We know we are on the wrong track when we cannot provide adequate electricity 24×7 in our homes and factories - and yet for the sake of votes our political parties offer free power to millions. We know we are on the wrong track when we have schemes like NREGS and bank loan write-offs which create wealth for the entire value chain - except for the one it is supposed to help. We know we are on the wrong track when we can barely add to the highways in five years. We know we are on the wrong track when a mother says that her biggest challenge of parenting is finding a good school for her daughter.

We are on the wrong track. And it is WE who put us there. By our apathy, by not voting, by accepting mediocrity, by not being part of the political process. The best we do is show up at candle-light vigils when we are shocked from our smugness, but don’t we need something more concrete and impactful?

We are India’s educated civil society. If we cannot act individually and as a team, then we forfeit the right to complain. Democracy comes with responsibilities and duties. It also comes with a generation having to make some sacrifices so the Tomorrow for our children can be better than our Today.

We have less than 90 days only to the elections. India has 2 national parties and a multitude of regional parties. We have to make a choice about the party at the Centre. We can wait for a utopian world and the creation of the Perfect Political Party. Or, we can pick the party with the lighter shades of grey.

A week ago, when some of us got together to talk about the elections and the future, we also made our choice. We decided to support the BJP - and work towards ensuring LK Advani becomes Prime Minister. The BJP may not be the Whitest of the parties, but in our view, it is by far, the better, cleaner, more democratic, less feudal and more promising of the two national options. More importantly, we also realised that in the 2009 Elections, the way things stand, unless the BJP gets 50-75 more seats on its own above the 130 it got in the 2004 elections, there is little hope of the BJP forming a government at the centre.

Thus was formed Friends of BJP. We are neither all signed-up members nor agree with everything and everybody in the party has always said. But we firmly believe that, in 2009, the BJP and LK Advani are the best hopes for India. We have a clear short-term goal, and a grander long-term vision for Friends of BJP.

The 90-day goal is to get BJP to 200+ seats - in the 15th Lok Sabha. This will mean a massive outreach programme through all means at our disposal to get the silent supporters to be more vocal, and the undecideds to be swung the BJP way. Bringing about a BJP government at the centre with Advani at the helm will then bring into focus the longer-term vision. That is about a government that is two-way, that listens to us, that we can feel a part of. Technologies like the Internet and mobile give us the tools to self-organise and make our voices heard. The India of 2009 is very different from that of 2004. The 2009 Elections will be the first where urban India can actually make a difference.

We have to become the Voice of India. For 60 years, we have been Led. And for many of those years, Led down a wrong path. The time has now come for us to Lead.

We Support the BJP. Because India Deserves Better.

Wednesday, March 11, 2009

Tips & Tricks to go Green

Tip 1# If you plug your Computer,TV, converter box, DVD player and surround sound stereo system into a power strip, you can eliminate the "phantom" loads they may draw when they appear to be off but are still consuming electricity in standby mode.

Tip 2# Use kitchen towels and cloth napkins instead of paper products. Stop using plastic straws, you know how to drink out of a cup?! Avoid buying/taking plastic utensils. If you must, bring home, wash, and reuse. Most can be washed in dishwasher.

Tip 3# Keep plants around the house.

Tip 4# Don't use cloth dryers, instead, dry your clothes to the sun.

Tip 5# Eat less meat. Cutting red meat and dairy consumption once a week reduces green house gas emissions equivalent to driving a 25 miles/gallon vehicle 1160 miles/yr (1860 km/yr). Cutting consumption altogether is equivalent to 8100 mi/yr (13000 km/yr).

Tip 6# Use LCD monitors instead of CRT,LCD monitors use less electricity and generates less heat than CRT monitors.

Submit your Tips, i will post them here.

Tuesday, March 10, 2009

Quote of the day

 ”If you must choose between two evils, pick the one you’ve never tried before.”

Monday, March 09, 2009

How to : Creat an empty Solution in Visual Studio 2008

1. Open Visual Studio
2. Go to Tools > Options
3. Check Show all setting check box
4. Select Projects and Solutions from the tree
5. Check "Always Show solution" checkbox

6. Click Ok
7. Now Select Create New Project
8. From tree List select Other Project Types
9. Then Visual Studi Soultions, You will see Blank Solution in Templates section.



Wednesday, March 04, 2009

Interviewing a Software Engineer

Imagine the following interview with two interviewees, “Player A” and “Player B”:

Interviewer: “Okay, sir. Let’s say a ball is hit a little bit to your left. How do you field it?”

Player A: “Well, I’d take a few steps to the left and try to get my body in front of the ball. I’d use my left-hand to field the ball, switch the ball over to my right hand, and throw it to first.”

Player B: “I’d take a few steps to the left, keeping my body bent at the knees and the back so I could respond to any strange hops the ball might take. If I can get completely in front of the ball, comfortably, I will, but I might have to field it with one hand to the left of my body, if I can’t get my body in front of it. Depending on the direction I’m moving, the time it took me to get to the ball, and whether I got completely in front of it or not, I might have to throw it on the run.”

Based upon the two player’s answers to this question, Player B gets hired.

This might seem like the right call. The problem is that Player B is a recent college grad that majored in English and played intramural ball. Player A is Derek Jeter (Yankees shortstop) before he was really known as the Derek Jeter.

What if you were the interviewer and you had made this decision? You would’ve just altered the entire course of your team. There’s a good chance that from this decision forward you’d be losing a lot of games to the team that hired the person you let pass by.

The above scenario is analogous to the sad state of interviewing in the software industry. Interviewers ask inane questions that don’t have anything to do with whether the interviewee is a good software engineer. I’m not against a company asking basic questions in an attempt to weed out people that don’t have any idea at all about building software, but I am against getting through that process and then being asked similar questions in the next stage of the interview process. That’s almost always the way it goes, right?

One problem that arises when trying to solve this dilemma is that the software world is littered with posers[1] that don’t have any idea how to build software, and then these people are asked to interview people. It’s not even their fault in some cosmic sort of way: they are asked by management to interview the prospective employees. Uninformed managers asking unskillful developers to do such important activities is not a good way for an organization to operate. Since ignorance is bliss, though, these people have no idea what’s going on. Is it really their fault?

If you’re serious about hiring a good software engineer there is only one, effective way to hire serious candidates:

  1. Conduct a screen interview that weeds out any people that truly don’t belong. In this interview ask relatively basic questions about constructing software. By “relatively basic” I don’t mean totally simple questions; I mean questions that aren’t based on some obscure piece of information you read in the latest technology magazine you subscribe to. Ask questions such as “What is an interface?” or “What problems do you associate with using the ‘static’ keyword?” or “What can you tell me about responsibilities within a software system.” Don’t ask questions such as “How does the compiler optimize a for loop?” Such questions have no relevance toward the creation of software unless you are building software that optimizes for loops. Questions such as this are only asked when the interviewer wants to consciously or unconsciously appear “smart.”[2] There is no time for such silliness if you’re a serious person—and there is certainly no value in such questions for the organization you represent. If your company builds software there are not many more important decisions than hiring good software engineers, so get serious about it or get flattened by the competition. Someone out there is doing things right and they will annihilate you if you don’t clean up your mess.
  2. This is the most important step: sit down with the person you are hiring and develop something together. It doesn’t matter what it is. The goal is to get a feel for what the person is capable of when actually developing software and to see if the candidate can fit somewhere in your team. Before a sports team signs a player to a contract the team watches him play. The team doesn’t talk to the player about playing.[3] It shouldn’t be much different in the software world. Sit down and develop something together. The candidate doesn’t have to do things exactly like you or your organization. For example, if you’re a TDD shop like we are you don’t have to make sure the interviewee fully understands TDD; all you have to do is to see if writing software with her feels right. There isn’t even a perfect definition of “feels right.” It’s all up to you. In the case of TDD you’ll more than likely force the coding to follow TDD principles whether the candidate has ever done TDD or not. Going through this process will uncover a lot about the potential hire: What kinds of questions does she ask? What are her thoughts regarding TDD? Does she really seem willing and able? More answers than you have questions for will come to the forefront. Having answers surface to unasked questions is always a good thing in an interview, and the nuances of a person’s personality will flow through when you work together. You’ll be amazed at what you learn if you learn to pay attention.

If you’re not serious about hiring a good software engineer then you’re a poser. May as well make it easy and flip a coin.

Post Mortem:

In the end, it really doesn’t matter what you do. The outcome of whatever interview process you choose will be directly proportional to how much the interviewee’s abilities reflect your own. If you only ask the candidate questions, the questions you ask will be based upon your skill and experience in the software world--and the answers you seek will reflect your own answers.[4] If you’re not very good you’ll more than likely hire someone that isn’t very good, regardless of what you ask or do. If you do sit down and develop a piece of software with the candidate, you will develop it according to your ability and look for traits in the candidate that match your own traits. But, at least in the case of writing code together, you will get a much, much more accurate assessment of the interviewee than you will get by asking questions. An overriding reason for this is because coding together is a dynamic, exponentially greater reciprocal relationship than asking questions is. Asking questions generally flows in one direction—from the asker to the answerer—instead of equally in both directions.

In the case of an interview, bidirectional transport wins.



[1] A poser is a faker, but worse. A poser is a faker, only a poser doesn’t understand they are faking. Such people are incredibly annoying and boring. In this way one could say that Poser derives from Faker. I’d probably prefer to have Poser implement IFaker, but that is an argument for another day.

[2] Knowing an answer to this kind of question has nothing to do with being smart. There is a lot more to being smart than keeping extraneous information in one’s head. Intelligence has much more to do with how one associates information with other information, not how one collects it.

[3] A team may talk to a potential player about playing, to get a feel about their attitude and personality, but this is a fraction as important as how the player plays the game. Occasionally a team will let a good player pass by, but only if the player has enough personality baggage that it would get in the way of their playing upside.

[4] It is possible that you are very intelligent and very wise, but inexperienced. If so, you will ask questions and look for answers you currently believe are correct, but you might interview a candidate that is just as intelligent as you but much more experienced. In this case--if you are very wise--you would be prepared for and open to the possibility the candidate is actually better at developing software than you. You would hire him or her on the spot. Many people do not set aside their ego well enough to reach this level of maturity.

Source: http://www.thoughtshapes.com/node/67

Sunday, March 01, 2009

The disaster of ‘me, me’ by S Gurumurthy

Source: http://www.gurumurthy.net/

This happened in Mangalore as February 14 — now marketed as Valentine’s Day by traders to sell their wares — was approaching.

Upset with public drinking by boys and girls, a freak by name Pramod Muthalik got mad. He got some of them in a pub beaten up like their parents would do, but unlike them. He had informed the media about his show so that the news cameras were in place to telecast the Muthalik action everywhere. Thus the Muthalik show was a joint venture between him and the media to keep away the state police, which could spoil the show. Predictably, the whole world pounced on poor Yeddyurappa who heads the BJP government in Karnataka for allowing Muthalik to take the law into his hands. The BJP, ever torn between its love of Hindu culture and its desire for a modern image, was greatly embarrassed. With the BJP in power in Karnataka, Muthalik knew the publicity value of his show. Had he enacted his theatre elsewhere, like when the Shiv Sena raided pubs years ago in Mumbai and Pune under the ‘secular’ Congress rule, it would have been far less noisy.

More. By just one mad act, Muthalik turned many, including a minister, into full-scale lunatics. Renuka Chowdhury, a minister of state, supported a “pub bharo andolan” to take on Muthalik, thus openly encouraging young boys and girls to take to mass drinking in public. And believe it or not, her portfolio is Women and Child Development. Came an even more mad response to Muthalik’s take on Valentine’s Day. “I support every kind of love, heterosexual, transgender, marital, extramarital”.

This is Arundhati Roy sermonising to youths. Why she left out incest from her catalogue of love is not clear. Now, take the secular media. It quickly equated pubgoing with individual rights, and held Muthalik as an offender against human rights. Evidently, the mad act of a freak Hindu in a distant corner of India is sufficient to turn the whole of secular India into lunatics. Now move away from this trivia to the danger to which Renukas and Arundhatis expose the nation’s economy.

The current Indian discourse on individual and human rights, which tends to smuggle in even gay and lesbian rights, apes the West. As India attempts to copy the West, it clearly misses the serious economic issues that confront West, thanks to its obsession with unfettered individual and human rights. Many in the West now seem to realise that continuously undermining the moral and social order has led to the present economic crisis. The West did not slide overnight. Beginning from the late 19th century, the Anglo-American West gradually moved away from a relation- based lifestyle to a contract-based lifestyle.

While culture and tradition govern relation, law and rights inhere in contracts.

And this move from relation to contracts became almost complete in the second half of the 20th century. With law overriding relations, even parents could not curb the rights of their wards once they legally matured.

It is the other way. If they acted against their wards, the law would punish the parents for child abuse. So contracts replaced relations, and rule of law substituted for moral order. To what effect? The rise of unfettered individualism and undefined feminism have led to the erosion of families and a rise in divorces, singleparent families, unwed mothers, lesbians, gays and almost the collapse of traditional families. Over 50 per cent of the first marriages, 67 per cent of the second marriages, and 74 per cent of the third marriages end in divorce in the US. Over 40 per cent of births are outside wedlock. Almost half of the families are headed by a single parent.

The number is more in most of Europe. It was seen as cultural erosion first. But slowly it has turned into an economic disaster.

The contract-based model undermined families and led to low or no household savings, high personal debt, credit card based living, outsourcing of household functions including kitchen work. The erosion in relation-based lifestyle soon imposed a huge social security burden on the state because the family mechanism that supported the unemployed, infirm, aged and the rest and the state had to step in to aid them. Thus the family functions were taken over by the state. The families were nationalised. The overburdened state consequently had to shed its traditional functions, like public works, and privatise itself.

The socialisation of family functions obviated the need to save for a rainy day and led to even lower savings. With the growth of individualism to the exclusion of kinship and relations, corporates and the state alike promoted unrestrained consumerism.

Result, some 110 millions US households have some 1.2 billion credit cards, almost a dozen cards per household.

As the people saved less and spent more, they got into trillions of dollars of private debt; and as the government spent more, it also ran into tens of trillions of dollars of public debt. The result is that the government is bankrupt and so households are insolvent. More, the US, the largest creditor nation of the world three decades ago, is today the number one debtor of the world, with $12.5 trillion of debt.

A quick survey shows this: all individual- centric economies are deep in debt; but nations more family-oriented and less individual- centric, like Japan, China, India, and generally Asian nations, account for over three-fourths of global savings; the individualist West lives off the savings of family-centric Asia. Today the West says that, in the present crisis only Asia, which has huge savings thanks to family orientation, can save the West, which has almost lost its traditional family lifestyle.

So the idea of unbridled human rights and unrestrained personal freedom that have led to social and cultural degeneration are increasingly seen as the cause of the present economic crisis. Weeks ago, Thomas L Friedman, a leading economic journalist, wrote in the New York Times that he had told those eating in a restaurant that they could no more afford to eat out and they had better cook and eat at home. But how will they cook and eat at home unless families are re-created? If they do, how would the US compensate for loss of employment if restaurants, which exist because households have closed their kitchens, shut down? There seems to be no solution within economic laws to the present crisis of the West. Amoral economics once yielded higher returns. It now yields negative returns.

Here Renukas and Arundhatis advocate unbridled individualism that has undermined families and morals and dynamited the economies of the West. Renuka questions the idea public morals. Arundhati advocates amoral living. Both seem unaware that an economy built at the cost of family and social morals, too collapses on the ruins of the morals it has brought down. QED: morality supports economics; lack of it ruins economies

S.L.Bhairappa on Religion/Caste Conversion

Some of my friends were asking me for S.L.Bhairappa's article published in Vijay Karnataka news paper on conversion . I thought to put it here so that people who are searching for this can find it.Click on image to enlarge.


Tuesday, February 17, 2009

Steps to Install MySQL & Configure Max_Packate_Size

1. Install mysql-5.1.31-win32.msi
2. Install mysql-gui-tools-5.0-r16-win32.msi
3. Open Start >Programs >MySQL > MySQL Administrator
4. press control, click on skip
5. Select Startup Variables
6. Select Advanced Networking Tab
7. Under Data /Memory Size check Max.packet size & change 1 M to 100 M
8. Apply Changes

Click to Download MySQL.


Steps to install Entity Framework for Visual Studio 2008 (Windows XP)

Step 1. Install VS90-KB945282.exe   from http://go.microsoft.com/fwlink/?LinkID=104985 

Step 2. Install Entity Framework Beta 3  -- EFB3SetupX86.exe    from Microsoft Downloads

Step 3. Install Entity Framework Tools Dec 07 CTP  EFToolsSetupX86.exe from Microsoft Downloads


Advantages and Disadvantages of Self Hosting WCF Services

Advantages of Self-Hosting:

  • Is easy to use: With only a few lines of code you have your service running.
  • Is flexible: You can easily control the lifetime of your services through the Open() and Close() methods of ServiceHost.
  • Is easy to debug: Debugging WCF services that are hosted in a self-hosted environment provides a familiar way of debugging, without having to attach to separate applications that activate your service.
  • Is easy to deploy: In general, deploying simple Windows applications is as easy as xcopy. You don't need any complex deployment scenarios on server farms, and the like, to deploy a simple Windows application that serves as a WCF ServiceHost.
  • Supports all bindings and transports: Self-hosting doesn't limit you to out-of-the-box bindings and transports whatsoever. On Windows XP and Windows Server 2003, IIS limits you to HTTP only.

 

Disadvantages of Self-Hosting:

  • Limited availability: The service is reachable only when the application is running.
  • Limited features: Self-hosted applications have limited support for high availability, easy manageability, robustness, recoverability, versioning, and deployment scenarios. These scenarios have become a standard in last few years. Such features are provided by the WAS (Windows Activation Service) which is a part of IIS7 (delivered with Vista and Win2008). This hosting mechanism allows you to host the service by using of protocols like MSMQ, HTTP and TCP. 

Saturday, February 07, 2009

Google tracks your Eyes

You: What??!!!! Are you crazy???????

Me : No, I am not.

And here is the explanation why I am not crazy. The User Interface research lab of Google is doing research in this area. It is very much helpful & crucial to get the attention of the user who is searching online.

When you search something on Google, where your eyes will be looking? First result? Bold letters? or Images in the results?

The Google Engineers are working on giving answers to the above questions and trying to utilise the findings to read the minds of the searchers.

Check out their official blog entry on it to know more.

Update: I found it in IBM research site as well. Check out Project Eye Gaze

Tribute to Hero's: G. H. Hardy
























Today is the birth centenary of G.H.Hardy, great English Mathematician.Hardy is most famous outside of mathematics for his "A Mathematician's Apology". book . The book, talks among other things about how mathematics is young man's game. He is also known for his association with Ramanujan and for being the person responsible for bringing him to Cambridge where his greatest mathematics unfolded.

Some quotes:

1. Asked if he believes in one God, a mathematician answered: "Yes, up to isomorphism".
2. "I have never done anything 'useful'. No discovery of mine has made, or is likely to make, directly or indirectly, for good or ill, the least difference to the amenity of the world."

Wikipedia :

It is never worth a first class man's time to express a majority opinion. By definition, there are plenty of others to do that.

A mathematician, like a painter or a poet, is a maker of patterns. If his patterns are more permanent than theirs, it is because they are made with ideas.


Quoting one of the mathematicians, C Snow, that Hardy worked with:


A mathematicians apology is, if read with the textual attention it deserves, a book of haunting sadness. Yes, it is witty and sharp with intellectual high spirits: yes, the crystalline clarity and candor are still there: yes, it is the testament of a creative artist. But it is also, in an understated stoical fashion, a passionate lament for creative powers that used to be and that will never come again. I know nothing like it in the language: partly because most people with the literary gift to express such a lament don't come to feel it: it is very rare for a writer to realize, with the finality of truth, that he is absolutely finished.

Hardy was a sort of purist mathematician, one who did his mathematics not for the sake of its applicability to anything, but for the sake of doing great mathematics. Hardy, along with Littlewood and Ramanujan, is also mentioned in Apostolos Doxiadis' "Uncle Petros and the Goldbach Conjecture". The link above gives a short summary on his life.

Friday, February 06, 2009

Indian Rail Server Name : Brahma


I was checking my train ticket PNR status on Indian Railway website, and one thing caught my eye. The Indian Railway site mentions the server name as Brahma. Check the screen shot.

If you find any thing similar on Indian Govt, sites let me know.

Thursday, February 05, 2009

Prime Numbers between 1 & 1000

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73 ,79, 83 ,89, 97 ,101, 103, 107, 109 ,113 ,127,131, 137, 139, 149, 151, 157, 163 ,167, 173 , 179, 181, 191, 193, 197, 199, 211, 223, 227, 229 ,233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349 ,353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463 ,467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673 ,677, 683, 691, 701, 709, 719, 727, 733 ,739, 743, 751, 757, 761, 769, 773, 787, 797, 809 , 811,821, 823, 827 ,829, 839 ,853, 857, 859, 863 ,877, 881, 883, 887, 907, 911, 919 ,929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997