Friday, September 10, 2010
FYI
equals() method in class Object uses only the == operator for comparisions.So Unless You override equals(), two Objects are considered equal only if two references refer to the same Object
Sunday, August 22, 2010
How I explained Financial Management !!
Finally came the Judgement day..standing in front of 60 students.The nervousness and Anxiety was very well seen in my face..i also fumbled in between but later on went up with the flow....
Well my words as far as i remember were like this "th..th..e expenditure spent whe..n its less then the Money earned thats profit and from thats where financial Management originates."
I also came up with some weird example in no time--"Well, consider India as a company ,Rain as a cash which is distributed unevenly based upon the infrastructure and Indian people as employees.... Consider the lakes and the rivers as the cash flow happening within a company and finally the seas and oceans as the giant Fianacial share markets...Now here the Sun's the CEO who takes up some money(Water evaporation..) and later on distributes it to it employee..."
Later on added some byherated stuff...was being technical in between.
"Now thats Financial Management,folks"
The sir was stunned and suprised and complimented for my unique teaching....Well that was really something rare and guess what he had a big smile on his face just looking at me :)
Thursday, August 12, 2010
Chetan Bhagat speech about Life
Chetan Bhagat’s speech at Symbiosis
Following is the speech by Chetan Bhagat given at the orientation programme for the new batch of MBA students at Symbiosis, Pune
Good Morning everyone and thank you for giving me this chance to speak to you. This day is about you. You, who have come to this college, leaving the comfort of your homes (or in some cases discomfort), to become something in your life. I am sure you are excited. There are few days in human life when one is truly elated. The first day in college is one of them. When you were getting ready today, you felt a tingling in your stomach. What would the auditorium be like, what would the teachers be like, who are my new classmates – there is so much to be curious about. I call this excitement, the spark within you that makes you feel truly alive today. Today I am going to talk about keeping the spark shining. Or to put it another way, how to be happy most, if not all the time.
Where do these sparks start? I think we are born with them. My 3-year old twin boys have a million sparks. A little Spiderman toy can make them jump on the bed. They get thrills from creaky swings in the park. A story from daddy gets them excited. They do a daily countdown for birthday party – several months in advance – just for the day they will cut their own birthday cake.
I see students like you, and I still see some sparks. But when I see older people, the spark is difficult to find. That means as we age, the spark fades. People whose spark has faded too much are dull, dejected, aimless and bitter. Remember Kareena in the first half of Jab We Met vs the second half? That is what happens when the spark is lost. So how to save the spark?
Imagine the spark to be a lamp’s flame. The first aspect is nurturing – to give your spark the fuel, continuously. The second is to guard against storms.
To nurture, always have goals. It is human nature to strive, improve and achieve full potential. In fact, that is success. It is what is possible for you. It isn’t any external measure – a certain cost to company pay package, a particular car or house.
Most of us are from middle class families. To us, having material landmarks is success and rightly so. When you have grown up where money constraints force everyday choices, financial freedom is a big achievement. But it isn’t the purpose of life. If that was the case, Mr. Ambani would not show up for work. Shah Rukh Khan would stay at home and not dance anymore. Steve Jobs won’t be working hard to make a better iPhone, as he sold Pixar for billions of dollars already. Why do they do it? What makes them come to work everyday? They do it because it makes them happy. They do it because it makes them feel alive Just getting better from current levels feels good. If you study hard, you can improve your rank. If you make an effort to interact with people, you will do better in interviews. If you practice, your cricket will get better. You may also know that you cannot become Tendulkar, yet. But you can get to the next level. Striving for that next level is important.
Nature designed with a random set of genes and circumstances in which we were born. To be happy, we have to accept it and make the most of nature’s design. Are you? Goals will help you do that. I must add, don’t just have career or academic goals. Set goals to give you a balanced, successful life. I use the word balanced before successful. Balanced means ensuring your health, relationships, mental peace are all in good order.
There is no point of getting a promotion on the day of your breakup. There is no fun in driving a car if your back hurts. Shopping is not enjoyable if your mind is full of tensions.
You must have read some quotes – Life is a tough race, it is a marathon or whatever. No, from what I have seen so far, life is one of those races in nursery school, where you have to run with a marble in a spoon kept in your mouth. If the marble falls, there is no point coming first. Same with life, where health and relationships are the marble. Your striving is only worth it if there is harmony in your life. Else, you may achieve the success, but this spark, this feeling of being excited and alive, will start to die.
One last thing about nurturing the spark – don’t take life seriously. One of my yoga teachers used to make students laugh during classes. One student asked him if these jokes would take away something from the yoga practice. The teacher said – don’t be serious, be sincere. This quote has defined my work ever since. Whether its my writing, my job, my relationships or any of my goals. I get thousands of opinions on my writing everyday. There is heaps of praise, there is intense criticism. If I take it all seriously, how will I write? Or rather, how will I live? Life is not to be taken seriously, as we are really temporary here. We are like a pre-paid card with limited validity. If we are lucky, we may last another 50 years. And 50 years is just 2,500 weekends. Do we really need to get so worked up? It’s ok, bunk a few classes, goof up a few interviews, fall in love. We are people, not programmed devices.
I’ve told you three things – reasonable goals, balance and not taking it too seriously that will nurture the spark. However, there are four storms in life that will threaten to completely put out the flame. These must be guarded against. These are disappointment, frustration, unfairness and loneliness of purpose.
Disappointment will come when your effort does not give you the expected return. If things don’t go as planned or if you face failure. Failure is extremely difficult to handle, but those that do come out stronger. What did this failure teach me? is the question you will need to ask. You will feel miserable. You will want to quit, like I wanted to when nine publishers rejected my first book. Some IITians kill themselves over low grades – how silly is that? But that is how much failure can hurt you. But it’s life. If challenges could always be overcome, they would cease to be a challenge. And remember – if you are failing at something, that means you are at your limit or potential. And that’s where you want to be.
Disappointment’ s cousin is Frustration, the second storm. Have you ever been frustrated? It happens when things are stuck. This is especially relevant in India. From traffic jams to getting that job you deserve, sometimes things take so long that you don’t know if you chose the right goal. After books, I set the goal of writing for Bollywood, as I thought they needed writers. I am called extremely lucky, but it took me five years to get close to a release. Frustration saps excitement, and turns your initial energy into something negative, making you a bitter person. How did I deal with it? A realistic assessment of the time involved – movies take a long time to make even though they are watched quickly, seeking a certain enjoyment in the process rather than the end result – at least I was learning how to write scripts, having a side plan – I had my third book to write and even something as simple as pleasurable distractions in your life – friends, food, travel can help you overcome it. Remember, nothing is to be taken seriously. Frustration is a sign somewhere, you took it too seriously.
Unfairness – this is hardest to deal with, but unfortunately that is how our country works. People with connections, rich dads, beautiful faces, pedigree find it easier to make it – not just in Bollywood, but everywhere. And sometimes it is just plain luck. There are so few opportunities in India, so many stars need to be aligned for you to make it happen. Merit and hard work is not always linked to achievement in the short term, but the long term correlation is high, and ultimately things do work out. But realize, there will be some people luckier than you. In fact, to have an opportunity to go to college and understand this speech in English means you are pretty damm lucky by Indian standards. Let’s be grateful for what we have and get the strength to accept what we don’t. I have so much love from my readers that other writers cannot even imagine it. However, I don’t get literary praise. It’s ok. I don’t look like Aishwarya Rai, but I have two boys who I think are more beautiful than her. It’s ok. Don’t let unfairness kill your spark.
Finally, the last point that can kill your spark is Isolation. As you grow older you will realize you are unique. When you are little, all kids want Ice cream and Spiderman. As you grow older to college, you still are a lot like your friends. But ten years later and you realize you are unique. What you want, what you believe in, what makes you feel, may be different from even the people closest to you. This can create conflict as your goals may not match with others. And you may drop some of them. Basketball captains in college invariably stop playing basketball by the time they have their second child. They give up something that meant so much to them. They do it for their family. But in doing that, the spark dies. Never, ever make that compromise. Love yourself first, and then others.
There you go. I’ve told you the four thunderstorms – disappointment, frustration, unfairness and isolation. You cannot avoid them, as like the monsoon they will come into your life at regular intervals. You just need to keep the raincoat handy to not let the spark die.
I welcome you again to the most wonderful years of your life. If someone gave me the choice to go back in time, I will surely choose college. But I also hope that ten years later as well, your eyes will shine the same way as they do today. That you will Keep the Spark alive, not only through college, but through the next 2,500 weekends. And I hope not just you, but my whole country will keep that spark alive, as we really need it now more than any moment in history. And there is something cool about saying – I come from the land of a billion sparks.
Thank You.
Chetan Bhagat
Wednesday, August 11, 2010

Hello Guys/Girls if you are viewing this blog and finding it interesting, then i assume that you guys are Technical/geeky or atleast interested in reading blogs..
Wednesday, August 4, 2010
SDK, IDE, Framework, APIs
SDK: A Software Development Kit (SDK) is a set of tools used to develop applications for a particular platform(Mac, Windows). An SDK typically contains a compiler, linker, and debugger. It may also contain libraries and documentation for APIs. SDKs also frequently include sample code and supporting technical notes or other supporting documentation to help developers. Often the SDK can be downloaded directly via internet many SDKs are provided for free.
IDE: Integrated development environment (IDE) contains certain controls and editor with the help of which designers can design the user interface and write code for each controls in the editor.
Example: Net beans, Visual studio.
Framework: Framework are classes provided by organizations which helps the programmers to perform complex task. Let's say earlier programmers used to code for database using lengthy procedures now that was time consuming so in order to ease their work, programmers will use a framework which will provide them certain classes and function which will help them to do the database connectivity or any other part regarding database within few steps.
Example:COCOA TOUCH (used for making i phone apps), .net framework, Java server faces
Once upon a time in Mumbai there was a guy named Hariprasad who used to hate Ravi because of his .NET Expertise.
He always used to Override Ravi's Methods and Ravi used to get pissed off because of HP(Abbreviation for Hariprasad's)...
Because of Hari's Pathethic behaviour Ravi decided to declare his method private....
Now HP was reallly fucking pissed off....
Going back in time he remembered how Ravi and HP used to share the VP (Vada pav) frm Kunjvihar(Ofcourse HP paid for it as Ravi was a true Marwadi....)
Hp feels some Salty discharge from his Eyes and thinks ..."Fcuk i have feelings from him,but unless i dont steal his expert programming technique ,how could i be an Expertise, as Bill gates or Steve Jobs also did the same thing or atleast that's what i saw in some English Movies"
Now here is where he contacts Suyog....the one who solves everything politically and supports the party Medical Notification Sena which states"Bhaiyalog spread Malaria Not Mosquitoes"
Suyog promises to steal Ravi's code and is successful by collecting the data from Ravi's Laptop...
But alas Ravi's lapy crashed ...Any Guesses why???

Do comment in the end if you guessed it right..
At Hari's Place... his bro is busy in Love with Linux so he dumps windows ..

Hari is so frustraTED as he accidently deleted some hidden files

and Fifa 06

In sheer frustration he thinks of calling Vishal ,but again he rethinks woh chu@#%$# paisa Mangega...So finally opts for Linux OS.
Finally Suyog arrives, "My friend here's Ravi's code...anything else you need let me knw and remember Malaria came from NIndia as stated by the headlines in CNN-IBOM etc"
As soon as Hari puts plugs the Pendrive..He suddenly sees his pc i working slow...
Again Your chances to guess here as of why it became slow? Best comments will get
One day free Study time With Ravi..Seriously
Ignoring the Slow performance of the PC Hari decides to execute Ravi's Code but suddenly..is confused.....
The format is not supported....
Now In sheer Frustration....he starts plucking his hair out and suddenly remembers Vishal who's always busy on faceobook
commenting on other people's status....
"Tring....Tring..",the phone rings... and with his south indian accent Vishal answers..
"Hello..."
HP: "Hey , Vishal I need your help man... .Net is not working in Linux..."
Vishal: Dude .net is only dependant on Windows OS... Bill Made this so as he could just sell his OS Worlwide
HP: Ohhhhhh!!!...so to run program in Linux any idea's
Vishal: You cant, you can do i thing, Install Java .It is portable and independant of any operating System from sun.java.com..
()
(After 5 minutes...)
HP:Installed what's next
Vishal: Dude not interested in spoon feeding there are lots of Docx there.Check it out...bye
Class HariStartedReadingDocx
{
void wasfindingitdifficult()
{
//coding for how his Neurons reacted in this case
}
}
=======================================================
Owwww but not so fast..theres a Nucleus which makes this program runs and that is the main method
class Hari'sMoods
{
public static void main(String args[])
{
HariStartedReadingDocx h= new HariStartedReadingDocx();
h.wasfindingitdifficult();
}
}
=====================================
==============================
For those still having confusions click here
For Bunch of API Click here
Now Hari was very satisfied that he knows some basics ..but not so fast...he has much more to work on .
class Hari extends HappyPersonBecauseHeKnowsTheBasics
{
Public HappyEmotions()
{
//some code
}
}
News Bang:
Remember always replace extends with "is-a" and see whether the sentence makes sense or not
"Hari is a HappyPersonBecauseHeKnowsTheBasics"
Now here what i mean is that extends means that child class inherits some functions , variables for the parent class.
For instance
class car
{
//some functions and variables
}
class Mclaren extends car
{
//Mclaren inherits some methods and variables(that are accessible or public/default )
}
Please have a trouble of going through my below link
Please feel free to mail me if you have any query regarding this..Hope you had a great fun time reading this..
Suggestions always Welcomed
Sunday, August 1, 2010
I phone Touch
Now a days we use touch screen mobile phones but we never bother to know how does these touch screen devices actually work? How human touch is being converted into a machine level instruction and the appropriate work is done so i have took the effort to know the actual logic behind these touch screen phones. Before beginning with the actual working of a touch screen device we will have a small discussion on what is a touch screen and why touch screen technology is in great demand?Touch Screen: Touch screens is a display that can detect human touch and recognizes the location of the contact and responds according to the software program
Why touch screen technology is in great demand?
Ans: Touch screens allow for a much more interactive and accessible experience. Input device
- Resistive
- Capacitive
- Surface acoustic wave.
Example: If you open the music list and then scroll through your music list and then select a particular file for playing then all this information is send to the gesture interpretation software and then approximately to the music player application which will carry the further processing as per your touch.
If the raw data doesn't match any applicable gestures or commands, the I Phone pays no attention to that touch.
Saturday, July 31, 2010
I phone Intro
I phone are touch screen mobile phones which run on IOS which is a Apple's mobile Operating System and is derived from MAC OSX. Earlier when I phone was launched in some what around Jan 2007 third party applications were not supported in I phone but soon Apple announced that they will be introducing certain SDK (Software development kit) with the help of which developers from all around the world can build their own application.When you are working on any mobile app their are some key features which you must always keep in mind :
- Memory: Mobile device have limited memory and a lot of it is already allocated.
- Display Capabilities: Different mobile devices have different display size and you need to plan for that.
- App speed: Mobile app users want their app to work quickly so as a mobile app developer you must see to it that you app load and work quickly.
- User Interface: The user interface of your app must be very friendly.
You can download the SDK for free with the basic registration, but to distribute a completed app on the App Store or install your app on the iPhone for testing you need to become a paid
Standard or Enterprise Developer. The SDK comes with a simulator for testing
directly on your Mac, so free registration is all you’ll need for now.
Now let's talk about the IDE where all the coding part will take place but before that we will have a look at the programming language that we will be using to make an I phone app. The language used is Objective C which is an object oriented programming language it derives it's syntax from Small Talk and C programming. The IDE used for I phone development and desktop app development for Apple is X code, X code 3.2 is the latest version. The X code suite also includes most of Apple's developer documentation, Interface Builder, modified version of GNU Compiler and supports C, C++, FORTRAN, Objective C, Objective C++, Java, Apple script, Ruby, Python the Xcode uses GNU debugger as a back end for it's debugger. The Cocoa and Cocoa Touch frameworks powers Mac OS X and I Phone OS and are tightly integrated into the X code development experience. Cocoa’s high-level APIs make is easy to add animation, networking, and the native platform appearance and behavior to your application with only a few lines of code.
This was a small introduction to XCode and IOS. I will be adding some examples on some of the controls in Xcode later. I hope that this blog was helpful to you. In order to know the features of iphone you can just hit this link I phone Features
Wednesday, July 28, 2010
Welcome to Knowlegde Park
The Sharing of knowledge among us will increase interactivity and hence thirst for knowledge..and in future by the grace of God we will be much better person then we are right now.
PS: Please whatever you will be Posting here in lame man terms ,because thats what we as a students like.
Registration Agreement Terms:
Be Nice