Thursday, March 22, 2012

Picture Hanging

I was having coffee with my friend Simone the other day. We were sort of chatting about work stuff, and we’re both at the point now where we’re being put in charge of other people. She came up with a really good metaphor for explaining the various issues in tasking junior staff.

It’s like you’re asking them to hang a picture for you, but they’ve never done it before. You understand what you need done – the trick is getting them to do it. In fact, it’s so obvious to you that there are constraints and expectations that you don’t even think to explain. So you’ve got some junior guy working for you, and you say, “Go hang this picture over there. Let me know when you’re done.” It’s obvious, right? How could he screw that up? Truth is, there are a whole lot of things he doesn’t know that he’ll need to learn before he can hang that picture. There are also a surprising number of things that you can overlook.

First off, there’s the mechanics of how to do it. What tools does he need? You know that there’s a hammer and nails in the back of the supply closet. He doesn’t, and it’s fair of him to assume that you wouldn’t have asked him to do something he didn’t have the tools for. He looks around his desk, and he’s got a stapler and a tape dispenser.

There are two ways he can do this. He can make lots of little tape loops, so it’s effectively double-sided, and put them on the back of the picture. This is the solution that actually looks alright, and it’s not until the picture comes crashing down that you find out he did it wrong. The other possibility is that he takes big strips of tape and lashes them across the front of the picture, stapling them to the wall for reinforcement. This solution may be worse because it actually sorta fits the bill – the picture is up, and maybe not too badly obscured. With enough staples, it’ll hold. It’s just ugly, and not what you intended. And if you don’t put a stop to this now, he might keep hanging pictures this way.

There is also another way this can go wrong, particularly with a certain breed of eager young programmer. You find that he’s gone down this path when your boss comes by the next week to ask about this purchase order for a nail gun. So you talk to your guy and discover that he’s spent the last week Googling, reading reference works, and posting to news groups. He’s learned that you hang pictures on a nail driven into the wall, and that the right tool for driving nails into walls is a high-end, pneumatic nail gun. If you’re lucky, you can point out that there’s a difference between picture-hanging nails and structural nails, and that a small, lightweight hammer like you have in the supply closet is really the right tool for the job. If you’re not lucky, you have a fight on your hands that goes something like:

“Why can’t we get a nail gun?”
“We don’t have the budget for it.”
“So we can’t afford to do things right?”
“There’s nothing wrong with driving nails with a hammer.”
“But aren’t we trying to do things better and faster? Are we going to keep using hammers just because we’ve always used them? It’ll pay off in the long run.”
“We don’t spend enough time driving nails around here to justify buying a nail gun. We just don’t.”

And ends with him sulking.

Now you think you’ve pretty much got that tool issue sorted out. He’s got his hammer and nails, and he goes off. The trouble is, he still needs to know how to use them efficiently. Again, it’s obvious to you because you know how to use a hammer. To someone who has never seen one before, it probably looks like it’d be easier to hit something small like a nail using the broad, flat side of it. You could certainly do it with the butt of the handle. And you might even be able to wedge a nail into the claw part and just smack it into the wall, instead of having to hold it with your hand while you swing at it with something heavy.

This sounds pretty silly from a carpentry standpoint, but it’s a real issue with software tools. Software tends to be long on reference documentation and short on examples and customary use. You can buy a thousand page book telling you all the things you can do with a piece of software, but not the five-page explanation of how you should use it in your case. Even when you have examples, they don’t tend to explain why it was done a certain way. So you plow through all this documentation, and come out thinking that a nail gun is always the right tool for the job, or that it’s okay to hit things with the side of the hammer.

I ran into this when I started working with XML. I’ve seen all sorts of references that say, “Use a SAX parser for reading XML files, not a DOM parser. DOM parsers are slow and use too much memory.” I finally caught some guy saying that, and asked, “Why? Is the DOM parser just poorly implemented?”

And he said, “Well no, but why load a 10 megabyte document into memory when you just want to get the author and title info?”
“Ah, see, I have 20 kilobyte files, and I want to map the whole thing into a web page.”
“Oh yeah, you’d want to use DOM for that.”

There may also be tool-data interaction issues. Your guy knows how to drive nails now, and the first thing he does is pound one through the picture frame.
Ooooh.

“No, you see this wire on the back of the frame? You drive the nail into the wall, and then hook the wire over it.”
“Oh, I wondered what that was for. But you only put in one nail? Wouldn’t it be more secure with like, six?”
“It’s good enough with one, and it’s hard to adjust if you put more in.”
“Why would you need to adjust it?”
“To get it level.”
“Oh, it needs to be level?”

Ah, another unspoken requirement.

So now we get into higher-level design issues. Where should the picture go? At what height should it be hung? He has no way of judging any of this, and again, it’s not as obvious as you think.

You know it shouldn’t go over there because the door will cover it when open. And it can’t go there because that’s where your new bookcase will have to go. Maybe you have 14-foot ceilings, and the picture is some abstract thing you’re just using to fill space. Maybe it’s a photograph of you and Elvis, and you want it to be smack at eye level when someone is sitting at your desk. If it’s an old photograph, you’ll want to make sure it’s not in direct sunlight. These are all the “business rules”. You have to take them into account, but the way you go about actually hanging the picture is pretty much the same.

There are also business rules that affect your implementation. If the picture is valuable, you probably want to secure it a little better, or put it up out of reach. If it’s really valuable, you may want to set it into the wall, behind two inches of glass, with an alarm system around it. If the wall you’re mounting it on is concrete, you’re going to need a drill. If the wall itself is valuable, you may have to suspend the picture from the ceiling.

These rules may make sense, but they’re not obvious or intuitive. A solution that’s right in some cases will be wrong in others. It’s only through experience working in that room, that problem domain, that you learn them. You also have to take into account which rules will change. Are you really sure of where the picture’s going to go? Is this picture likely to move? Might it be replaced with a different picture in the same position? Will the new picture be the same size?

Your junior guy can’t be expected to judge any of this. Hell, you’re probably winging it a bit by this point. Your job is to explain his task in enough detail that he doesn’t have to know all this stuff, at least not ahead of time. If he’s smart and curious, he’ll ask questions and learn the whys and wherefores, but it’ll take time.

If you don’t give him enough detail, he may start guessing. The aforementioned eager young programmer can really go off the rails here. You tell him to hang the photo of your pet dog, and he comes back a week later, asking if you could “just double-check” his design for a drywall saw.

“Why are you designing a drywall saw?”
“Well, the wood saw in the office toolbox isn’t good for cutting drywall.”
“What, you think you’re the first person on earth to try and cut drywall? You can buy a saw for that at Home Depot.”
“Okay, cool, I’ll go get one.”
“Wait, why are you cutting drywall in the first place?”
“Well, I wasn’t sure what the best practices for hanging pictures were, so I went online and found a newsgroup for gallery designers. And they said that the right way to do it was to cut through the wall, and build the frame into it. That way, you put the picture in from the back, and you can make the glass much more secure since you don’t have to move it. It’s a much more elegant solution than that whole nail thing.”
“…”

This metaphor may be starting to sound particularly fuzzy, but trust me – there are very real parallels to draw here. If you haven’t seen them yet in your professional life, you will.

The key thing here is that there’s a lot of stuff, from the detailed technical level to the long-range business level, that you just have to know. Your junior guy can’t puzzle it out in advance, no matter how smart he is. It’s not about being smart; it’s just accumulating facts. You may have been working with them for so long that you’ve forgotten there ever was a time when you didn’t understand them. But you have to learn to spell things out in detail, and make sure your junior folks are comfortable asking questions.


Posted via email from Sravan Sarraju

Sunday, March 18, 2012

Why Apple always wins?

There are many who just don't get it why Apple is so successful and others companies just don't get it! The basic thing which everyone misses is answer to the question "How real people use it?" . Here are two videos.

Video 1

Why Windows 8 is sure gonna be utter failure


Video 2

Why people pay more for Mac?


Apple is the richest company in the world. There is a reason for it!

Posted via email from Sravan Sarraju

Wednesday, March 14, 2012

Things change pretty fast!

Almost an year and half back, I happened to attend a tech talk of this guy named James Whittaker in GTAC, Hyderabad. The way he presented the work culture and the problems they solved at Google were extremely impressive.I made up my mind at that time to join him some day n be part of his adventures at Google. 

Things change pretty fast especially in the IT world. Today I happened to see this article by the same person presenting the current reality of Google. Needless to say he left Google!

Google, u clearly made a mistake. U can't keep on losing great ppl..! 

Posted via email from Sravan Sarraju

Tuesday, November 15, 2011

Nice intro abt https

Found this useful video which clearly explains the concept of https in layman terms.

Posted via email from My Hello World!

Thursday, August 04, 2011

Key differences between Govt and Anna Hazare's Lokpal Bill

Key links to see exact differences between Governments Lokpal bill and Anna Hazare Team's Janlokpal Bill http://ibnlive.in.com/news/the-9-points-government-and-team-anna-differ-on/161473-3.html http://www.ndtv.com/article/india/why-hazare-others-oppose-govt-s-lokpal-bill-2010-96609

Posted via email from Sravan Sarraju

Saturday, July 09, 2011

This is what happens if there is no consensus in the top management ;)

19062011663

Found this college recently on my way to Uppal.
Luks like each board of director was adamant on their version of the college name. "Global","Indian","International" . Finally ended up like this :)

Posted via email from Sravan Sarraju

Wednesday, June 15, 2011

Prisoner's Dilemma

For those who are interested in human psychology, this is a very interesting read.

http://en.wikipedia.org/wiki/Prisoner's_dilemma

Posted via email from Sravan Sarraju

School Kills Creativity

An amazing Talk. Must watch.

Posted via email from Sravan Sarraju

Sunday, May 22, 2011

Flakey GTalk Connection in iChat

If you are finding your GTalk connection in ur IChat getting timed out every 15 seconds with a message saying 'IChat lost connection to jabber account xxxx' , you are not alone. After some tiring search in google to resolution, I found the following work around.

Go to your IChat preferences, select your account and uncheck use my computer name check box.

I dont think any human being with a normal mind can guess this workaround but someone managed to find it. 

Hope this helps.

Posted via email from Sravan Sarraju

Saturday, May 07, 2011

Love!

LOVE is undoubtedly one of the most confused word where people take their own meanings depending upon context, situation and person. People say its impossible to define Love. Its not that tough either.

It would be a dream for a person to find a person who 

who loves you unconditionally regardless of your love towards him/her.
who feels happy for your success but not for your paycheck.
who feels happy if you buy things which keeps you happy than buying gifts for him/her.
who feels happy with your presence but not for your fashion.
who feels encourages when you fail but instead of finding faults in you.
who expects nothing in return but a mere confidence that you are happy.
who keeps loving you even if you lose everything in life

You think its impossible to find such person? Yes its near impossible to find another such person but we all have one already.

Mother.

Though I don't believe in celebrating a single day for this amazing person, I don't want to waste this opportunity to bow my head and salute to her. 

Happy Mothers Day! 

Posted via email from Sravan Sarraju

Sunday, April 24, 2011

facebook addiction :: this is hilarious ```!!!!!!

A funny forward!....


If you are on Facebook, I am sure you will find this hilarious 


The 76-year-old woman walked down the hallway of Clearview Addictions Clinic, searching for the right department. She passed signs for the "Heroin Addiction Department (HAD)," the "Smoking Addiction Department (SAD)" and the "Bingo Addiction Department (BAD)." Then she spotted the department she was looking for: "Facebook Addiction Department (FAD)."

It was the busiest department in the clinic, with about three dozen people filling the waiting room, most of them staring blankly into their Blackberries and iPhones. A middle-aged man with unkempt hair was pacing the room, muttering,"I need to milk my cows. I need to milk my cows."

A twenty-something man was prone on the floor, his face buried in his hands, while a curly-haired woman comforted him.

"Don't worry. It'll be all right."

"I just don't understand it. I thought my update was LOL-worthy, but none of my friends even clicked the 'like' button."

"How long has it been?"

"Almost five minutes. That's like five months in the real world."

The 76-year-old woman waited until her name was called, then followed the receptionist into the office of Alfred Zulu, Facebook Addiction Counselor.

"Please have a seat, Edna," he said with a warm smile. "And tell me how it all started."

"Well, it's all my grandson's fault. He sent me an invitation to join Facebook. I had never heard of Facebook before, but I thought it was something for me, because I usually have my face in a book."

"How soon were you hooked?"

"Faster than you can say 'create a profile.' I found myself on Facebook at least eight times each day -- and more times at night. Sometimes I'd wake up in the middle of the night to check it, just in case there was an update from one of my new friends in India . My husband didn't like that. He said that friendship is a precious thing and should never be outsourced."

"What do you like most about Facebook?"

"It makes me feel like I have a life. In the real world, I have only five or six friends, but on Facebook, I have 674. I'm even friends with Juan Carlos Montoya."

"Who's he?"

"I don't know, but he's got 4,000 friends, so he must be famous."

"Facebook has helped you make some connections, I see."

"Oh yes. I've even connected with some of the gals from high school -- I still call them 'gals.' I hadn't heard from some of them in ages, so it was exciting to look at their profiles and figure out who's retired, who's still working, and who's had some work done. I love browsing their photos and reading their updates. I know where they've been on vacation, which movies they've watched, and whether they hang their toilet paper over or under. I've also been playing a game with some of them."

"Let me guess. Farmville?"

"No, Mafia Wars. I'm a Hitman. No one messes with Edna."

"Wouldn't you rather meet some of your friends in person?"

"No, not really. It's so much easier on Facebook. We don't need to gussy ourselves up. We don't need to take baths or wear perfume or use mouthwash. That's the best thing about Facebook -- you can't smell anyone. Everyone is attractive, because everyone has picked a good profile pic. One of the gals is using a profile pic that was taken, I'm pretty certain, during the Eisenhower Administration. "

"What pic are you using?"

"Well, I spent five hours searching for a profile pic, but couldn't find one I really liked. So I decided to visit the local beauty salon."

"To make yourself look prettier?"

"No, to take a pic of one of the young ladies there. That's what I'm using."

"Didn't your friends notice that you look different?"

"Some of them did, but I just told them I've been doing lots of yoga."

"When did you realize that your Facebooking might be a problem?"

"I realized it last Sunday night, when I was on Facebook and saw a message on my wall from my husband: 'I moved out of the house five days ago. Just thought you should know.'"

"What did you do?"

"What else? I unfriended him of course!"

Posted via email from Sravan Sarraju

Friday, April 08, 2011

Why Anna Hazare Movement is a huge success?

Now its proven that Anna Hazare movement is a massive success. Movements, hunger strikes, Aandolans for Bills are not new. So how come it worked well this time? This is my interpretation.

 

1. A Noble Intention

 

The intention is noble. Fight against corruption. Corruption has no caste/religion/sex. It’s affecting everyone. So every citizen who is reasonably circumspect will agree with the intention of the movement.

 

2. A Noble Icon

 

The movement is lead by a noble civil society activist Anna Hazare. Nobody in the country will have any doubts regarding his integrity, character and intention. Hence unless someone is severely benefitted by corruption, they support the movement.

 

3. Reasonable Ground Work

 

It’s from months the team formed by Anna Hazare, Kiran Bedi were working on preparation of a draft bill. I feel this is very important. Though many say this bill is too draconian, wen u are countering a lame counterpart prepared by the government, one should have their own first. Of course the demand is not to pass the bill AS IS. 

 

4. Reasonable Demands

 

Demands by the activists are very reasonable.

 

a.    Even though they prepared their own draft of the bill and have people support, they are ready to discuss with government again

b.    They didn’t demand the bill to be passed as is. All they asked is for equal partnership in the bill making committee as government lost peoples faith after repeated scams in past few months.

 

5. The flow of events

 

This is also a very interesting part to observe inorder to understand why exactly this movement gained huge support. 

 

a.

 

Event : A Noble person backed by people with high integrity starting a hunger fast.  

Result : This brings them instant support from all NGOs, Activists and Social Workers

 

b. 

 

Event : Facebook & Twitter Campaign against corruption

Result : Since my above 1,2,3,4 points will convince any regular netizen to support this movement, good amount of activity starts across the social networks. Retweets, polls, Facebook likes, Display changes etc. 

 

 

c. 

 

Event : Entry of Media

Result : Given the good amount of support from Activists, NGOs, and huge activity in twitter & facebook regarding single cause, Media finds its feet into the issue and starts reporting.

 

d. 

 

Event : Tweets, Retweets by Celebs who are famous for their integrity in twitter

Result : This cause more social network traffic and awareness of the issue and also medias attention

 

e. 

 

Event : Entry of opposition parties

Result : More visibility for the movement and more media coverage in news channels

 

f.

 

Event : Given the extensive coverage of media and huge traffic in Social network, and also calls to come out and support the movement, people across the country start coming out showing their support by participating in the events organized by NGOs/Activists in their town.

Result : More Media Coverage. Govt attention.

 

g

 

Event : As the events a,b,c,d,e,f multiply their effect as the time moves on More celebs showing their support. More NGOs. More Parties.

 

Result : The government starts coming down. Realization of the goal of the movement

 

h

 

Event : As people see Government coming down to the movement, this results in more support for the movement, more confidence in people, more intensity

Result : No options left for Government.

 

This is a very healthy trend and if done in right way, I believe this is the way forward to solve all major issues faced by India.

 

I’m extremely hopeful that this design pattern will be our future father of nation to bring out of nation from chaos.

 

Jai Hind!

Posted via email from Sravan Sarraju

Friday, March 25, 2011

Awesome website to track Members of Parliament

Superb Website to track ur MP's activity in Parliament.

Those with weak hearts, stay away searching for MPs from A.P. Especially this lady

Posted via email from Sravan Sarraju

Saturday, February 05, 2011

A Funny Spam Mail

Never knew Microsoft donates huge money from a fake id 'Onlinexyz'. Anyways Thanks Microsoft :-)

---------- Forwarded message ----------
From: MICROSOFT COMPANY UK <onlinexyz@att.net>
Date: Sat, Feb 5, 2011 at 10:59 PM
Subject: CONGRATULATION!
To: MICROSOFT COMPANY UK <onlinexyz@att.net>


 

 

CONGRATULATION! CONGRATULATION!!CONGRATULATION!!!

 

This is to inform you that you have won a prize of £500,000.00 GBP{Five hundred Thousand

Great Britain Pounds} for the NEW YEAR Promo 2011.

MICROSOFT WINDOWS, collects all the email addresses of the people that are

active online. Among the millions that subscribed to Yahoo, G mail and Hot mail we only

select five people every year as our winners through electronic balloting

System without the winner applying, we congratulate you for being one of the

persons selected.

 

Reference No:FL/00662365F

Batch No: 454560H

 

CLAIMS REQUIREMENT

 

FULL NAME:.......

HOME ADDRESS:....

COUNTRY/STATE:...

PHONE NUMBER:...

OCCUPATION:.....

SEX:.............

AGE:...........

MARITAL STATUS...

 

Dr.. Henry K

+447017901164

+447017600756

Email: claimdept2011@hotmail.com

Microsoft Promotion Award Team

 

 

Posted via email from Sravan Sarraju

[Workaround][Error][Solved] java.sql.SQLDataException: ORA-01882: timezone region not found

Problem :

I tried connecting a Java Web Project in one of my laptop to an Oracle XE DB running another laptop. When I ran my application from JDeveloper I got the below error

java.sql.SQLDataException: ORA-01882: timezone region  not found

Workaround :

After a bit of Googling I found out the following solution to get around this issue. 

1. Go Tools > Project Properties then

2. (Project Properties) open select Run/Debug/Profile > in right you will see Default > Double click here or click Edit 


3. (Edit run configuration) select Launch Settings > in 'Java option' text item past this line 

-Duser.timezone=GMT  (Make sure you won't type GMT in quotes)

4. Close and re-open JDeveloper 

5. Run entire project

Happy Coding!

Posted via email from My Hello World!