Wednesday, November 28, 2012

Latitude and Longitude representations


 As most of us know latitude and longitude help us notate a place uniquely on earth.

There are basically three ways in which one can represent Latitude and Longitude.

1. In Degrees 
       The way Google,yahoo,Facebook API's Use.
           Ex: +40.7486, -77.8786
2. Degree Minutes and Seconds.
           Ex: 40` 44' 55''N,
3. Degree Minutes.
           Ex: 40`44',


In the First  Degrees notation + indicates it as North (for Latitude) or East ( for Longitude).
and - indicates that it is either at South (for Latitude) orWest (for Longitude)

Lets take a quick look at conversion from Format 1 to Format 2 and vice-versa.

From Format 1 to Format 2


1.  Lets convert this 40.7486 to Degree-Minuute- Seconds Format

         40.7486 degree => 40 Degree +0.7486 Degree.
                                         As we know that 1 Degree = 60 Minutes it becomes 
                                   =>  40 Degree+0.7486*60 Minutes
                                    => 40 Degree+ 44.916 Minutes                    (Resembles our Format 3)
                                          As we also know that 1 Minute = 60 Seconds it becomes
                                    =>  40 Degree+44 Minutes+0.916 *60 Seconds
                                     => 40 Degree+44 Minute+   54.96Sceonds
                                    =>40`44'55''


From Format 2 to Format1

         40`44'55"      => 40 Degree +44 Minutes+55 Seconds.
                                         As we know that 1 Minute = 60 Seconds it becomes 
                                   =>  40 Degree+44 Minutes+55/60 Minutes
                                    => 40 Degree+ 44.916Minutes                    (Resembles our Format 3)
                                          As we also know that 1 Minute = 60 Degree
                                    =>  40 Degree+44.916/60                                      => 40 Degree+0.7486 Degree
                                    =>40.7486



Saturday, September 8, 2012

At First Sight


I  know i made those jokes,
one's that no one cared about.
but i saw you smiling
and it triggered a thought.
 
Was it for the Joke,
was it for someone else ?
or is it just the way u r
with the twinkling eyes.

I know i wanted to talk to you.
talk to the spark in you,
but i haven't made any moves before
is this the right start? not for sure.

Let me get this straight,
i don't believe  in "at first sight".
but just like in the movie of last night,
today it all seems right.





Thursday, April 5, 2012

He didnt know he could Kill


It was more than six months since he was in Bangalore. As like any other software engineer he had rented a house near his office sharing it with his cousin. They were still trying to understand the people and the place. They were in love with Bangalore for its weather and the people. Even though he was annoyed with few Auto drivers here, he knew the people in overall were friendly and co-operative.

His house owner was a real gentle man, never bothered him asking for the rent even when it is 10th the month.It was always he who use to go to his home upstairs and pay the rent. By now he was a friend with his Owner's daughter who were twins in their first standard.

Over all everything was fine in his bachelor life until that day. He was home little early than usual and to his horror he knew something was not right about the place. The neatly arranged Newspaper stand seemed to have been disturbed. There was a water bottle with its water all over the floor. He phoned his cousin who was also equally surprised to hear that.

It continued to happen for a week. Every day back from his office he use to find things misplaced. It was either his Deo on the floor or the water bottle. News papers were always a piece of interest to this external intruder.He spoke to his house owner about this intruder, who seemed to come when they are out for work.
Intruder had not picked anything important like money or the laptop. He was interestingly behind these silly things like water bottle, News paper cuttings etc. House owner suggested to trap him red handed.

A Plan started making rounds in the his head to catch this stealthy guy.


On Saturday when his PM fortunately didn’t call him work, he decided it to be the day to get the intruder.He and his cousin locking the door as if they were leaving to office waited until the rumbling sound started growing louder from inside. They knew it was the time. He didn’t want to waste any second. He knew the best strategy to attack your enemy is to take him by surprise. More over he had cousin next to him making the contest two against one. There was no reason not to barge in. He opened the door and for the first time saw his enemy straight in the eye. His cousin handed him a wooden bar and there it was. He hit the enemy on the head and split second later it was all over.

First time in his life he had killed a Mouse. For some reason his heart was heavy after the killing. His cousin however was happy to get rid of this Mouse. Later in the evening he spent more time than usual in temple but he was low all day. Somehow the next day he pulled himself up and then on it was business as usual.