Tuesday, 4 October 2016

INTEGER VS VOID

Program was going good , Now a function was required. I typed integer , suddenly I started to think, why I always choose integer return type rather than void.
And I think I hate void return type.But why?
Later on I realized, Integer always returns a value like good people but void never.
So people should also be like integer return type. Otherwise people(Programmer) will prefer void.
But in some case, programmer required void type and they know void not returns any value but still they use but whenever they get the chance they remove all void types from their program and start to find like integer return type because as you know integer always returns value.
And this the nature of human that they always like the things which returns something like integer.

Tuesday, 9 August 2016

SHARPEN YOUR AXE

Jo John, a woodcutter, worked for a company for five years but never got a raise. The company hired Bill and within a year he got a raise. This caused resentment in John and he went to his boss to talk about it. The boss said, "You are still cutting the same number of trees you were cutting five years ago. We are a result-oriented company and would be happy to give you a raise if your productivity goes up." John went back, started hitting harder and putting in longer hours but he still wasn't able to cut more trees. He went back to his boss and told him his dilemma. The boss told John to go talk to Bill. "Maybe there is something Bill knows that you and l don't." John asked Bill how he managed to cut more trees. Bill answered, "After every tree l cut, l take a break for two minutes and sharpen my axe. When was the last time you sharpened your axe?" This question hit home like a bullet and John got his answer.
Feed Your Mind
 Just like our bodies need good food every day, our minds need good thoughts every day. The key words in the preceding sentence are good food and good thoughts. If we feed our body with junk food and our mind with bad thoughts, we will have both a sick body and mind. We need to feed our mind with the pure and the positive to stay on track. Through constant practice and exposure, we can learn the principles that make a person successful just like we learn to play basketball.
(You Can Win By Shiv Khera )

Monday, 1 August 2016

Mental Patient


John and David were both patients in a Mental Hospital. One day, while they were walking, they passed the hospital swimming pool and John suddenly dove into the deep end. He sank to the bottom and stayed there. David promptly jumped in and saved him, swimming to the bottom of the pool and pulling John out. The medical director came to know of David's heroic act. He immediately ordered that David be discharged from the hospital as he now considered him to be OK. The doctor said, "David, we have good news and bad news for you! The good news is that we are going to discharge you because you have regained your sanity. Since you were able to jump in and save another patient, you must be mentally stable. The bad news is that the patient that you saved hung himself in the bathroom and died after all." David replied, "Doctor, John didn't hang himself. I hung him there to dry." 

Thursday, 28 July 2016

Hum apni kahaniyo me jeete h.

Hum apni kahaniyo me jeete h.hmari kahani me sb kuch hota h or ye utar chdav se bhari hui hoti h.or kabhi kabhi hme lgta h kahani khatam hone wali h lekin whi se kahani ka nya chapter start ho jata h.or kuch stage pr aa kr to kahani ka kirdar bahut thak sa jata h...uske andar ki sari himmat khatam ho jati h.lekin hm apni kahani yha pr khatam nhi kr skte kyunki kahani me or b kirdar hote h or kisi ek glat kirdar ki wjah se hm sb kirdar ko nhi chod skte.or waise b kahani to chlti hi rehti h or isme Nye kirdar aate hi rehte h.or jis trah hr kahani ka ek anjam hota h usi trah tumhari kahani b ek mod pr ja khatam ho jayegi.or sb kirdar khud -bakhud khatam khatam ho jayege.lekin hmari kahani me kabhi kabhi aise kirdar aa jate h Jo kabhi nhi bhoolaye ja skte.or amar(immortal) ho jate h.lekin kabhi kabhi kahani me glatfahmiya b paida ho jati h or sb kirdar hm se naraz ho jate h...or hm kisi ko Samjha nhi pate..or ye waqt kahani ka sbse mushkil daur hota h or isme main kirdar ko sbr or housle se kam Lena pdta h.lekin kahani me kuch kirdar aise hote h Jo dheere dheere hme samajhne lgte h phir hme kisi or ki parwa nhi hoti.lekin agr hm shi raah pr hote h to kisi mod pr aakr sb kirdar hmari hakeekat Tasleem kr lete h.
 zaruri nhi ki hmari kahani me  happy ending ho.lekin kahani jaisi b ho aakhirkar use khatam hona hi pdta h.

Tuesday, 26 July 2016

Don't ruin your life

People don't like you,they like your standard,your intelligence,your money even in case of love if you have nothing special and different then people will not accept you.my bro gave me the amazing example of it.he gave the example of Bollywood movie "SULTAN"  in which when actor propose a girl then she even don't reject him but slap because actor was nothing at that time while girl was state champion in wrestling.but same guy when also become a state champion then the girl propose him in front of the world.it was the movie but reality is not differ from that.
And apart from love ,in daily life too, people will not give you value,will not accept you until unless you become something and get a power in your arms then no one can let you down. respect,value priority,it all about the money and standard in now days.
So be confident and be of yourself and yeah don't get attach too much with someone until unless they feel the same because one sided attachment can emotionally destroy you.but still if you got attached one sided then move on,its hard but once you do ,you will realize it was the best decision you have ever made.
And Know that the world and whatever in the world is temporary and it is going to be end.so try your best in this short life and dont think how the world dark is ,be like that stars that stands out and shines for others to see.

Friday, 15 July 2016

Dil aakhir tu kyu rota h (Zindagi Na Milegi Dobara)




Jab jab dard ka badal chaya
Jab gum ka saya lehraya

Jab aansu palko tak aaya
Jab ye tanha dil ghabraya

Humne dil ko yu samjhaya
Dil aakhir tu kyu rota h

Duniya me yuhi hota h
Ye Jo gehre sannate h

Waqt ne sbko hi baante h
Thoda gum h sbka qissa

Thodi dhoop h sbka hissa
Aankh teri bekar hi num h

Hr pl ek nya mausam h
Kyu tu aise pal khota h

Dil aakhir tu kyu rota h.

From Bollywood Movie 
 (Zindagi na milegi dobara)

Thursday, 14 July 2016

The important thing in life

A philosophy professor stood before his class with some items on the table in front of him. When the class began, wordlessly he picked up a very large and empty mayonnaise jar and proceeded to fill it with rocks, about 2 inches in diameter.

He then asked the students if the jar was full. They agreed that it was.

So the professor then picked up a box of pebbles and poured them into the jar. He shook the jar lightly. The pebbles, of course, rolled into the open areas between the rocks.

He then asked the students again if the jar was full. They agreed it was.

The professor picked up a box of sand and poured it into the jar. Of course, the sand filled up the remaining open areas of the jar.

He then asked once more if the jar was full. The students responded with a unanimous “Yes.”

“Now,” said the professor, “I want you to recognize that this jar represents your life. The rocks are the important things – your family, your partner, your health, your children – things that if everything else was lost and only they remained, your life would still be full. The pebbles are the other things that matter – like your job, your house, your car. The sand is everything else, the small stuff.”

“If you put the sand into the jar first,” he continued, “there is no room for the pebbles or the rocks. The same goes for your life. If you spend all your time and energy on the small stuff, you will never have room for the things that are important to you. Pay attention to the things that are critical to your happiness. Play with your children. Take your partner out dancing ,enjoy each and every moment of life with your family with your love. "

“Take care of the rocks first – the things that really matter. Set your priorities. The rest is just sand.”
By Stephen.

Saturday, 2 July 2016

The story of a moth and a candle

Someone said to moth,"go ,thou contemptible creature,and make friendship with one worthy of thyself.Go where thou sees the path of hope. How different is thy love from that of the candle! Thou art not a salamander -hover not around a fire,for bravery is necessary before combat. It is not compatible with reason that thou shouldst  acknowledge as a friend one whom thou knows the be thine enemy.
"What does matter if I burn?" The moth replied.
" I have love in my heart, and this flame is as a flower to me. Not of my own accord do I know myself into the fire;the chain her love is upon my neck.who is that found faults with my friendship of my friend?. I m content to be slain at her feet .I burn because she is dare to me,and because my destruction may affect her. Say not to the helpless man from whose hand the rein have fallen,drive slowly".
(Hikayat E BoSTAN saadi)

Monday, 27 June 2016

The story of a man and a thirsty dog


In a desert, a man found a dog that was dying from thirst,using his hat as a bucket ,he fetched water from well and gave it to the helpless animal.the prophet of the time stated that god had forgiven the man his sins because of his kindly act.
Reflect ,if thou be a tyrant,and make a profession of benevolence.
He who shows kindness to a dog will not do less towards the good among his fellows.
Be generous to the extent of thy power . If thou hast not dug a well in the desert,at least place a limp in a shrine.
Charity distributed from an ox's skin that is filled with treasure counts for less than a dinar given from the wages of toil.
Every man's burden is suited to his strength -heavy to the ant is the foot of the locust.
Do good to others so that on the morrow God may not deal harshly with thee.
Be lenient with thy slave ,for he may one day becoming a king,like a pawn that becomes queen.
(HIKAYAT E BOSTAN SADI)


Monday, 13 June 2016

The month ramadan

There is a five pillar of Islam. one of these are fasting in the month of ramadan.Ramadan is a month of Islamic calendar.
 Allah mention in the Quran " O who you believe, fasting has been prescribed for you as it was been prescribed for those before you that you may become righteous."  Allah want to bring their believer on righteous path as its clearly written in above verse and there is also some worldly benefit but what's the worldly benefit of fasting,true believer does not think about that ,its just a order of Allah and humans are created to obeys Allah's rule as Allah mention in Quran " I did not create the jinn and humankind except that they should worship me."
So fasting in Ramadan is compulsory for every adult Muslim men and women.
So have fast in this month .may god bless you and your family.recite the Quran,pay zakat and ask forgiveness to allah in the holy month of Ramadan.
Always remember me and all humankind in your dua.

Monday, 6 June 2016

A beautiful prayer in form of poetry

From the Lips comes a Prayer in the form of a desire,
My life should emulate a Candle, Oh God( A candle burns itself to provide light for others).
Lift the Worldly Darkness due to my efforts,
Every place should be enlightened by my Light.
My life should decorate my Homeland  similar to,
 Similar to, a flower decorating a Garden.
Dear God, emulate my life like a Insect,
I should fall in Love with the Candle of Knowledge.
My work should be to support the poor,
Those in pain and the feeble ones I should love.
My God save me from doing Bad things,
Please guide me, to the right path.
Written By ALLAMA IQBAL

Sunday, 5 June 2016

The word impossible

 “Impossible is just a big word thrown around by small men who find it easier to live in the world they’ve been given than to explore the power they have to change it. Impossible is not a fact. It’s an opinion. Impossible is not a declaration. It’s a dare. Impossible is potential. Impossible is temporary. Impossible is nothing.”
MUHAMMAD ALI (greatest boxer).


Wednesday, 1 June 2016

Teenage

Teenage is a very sensitive phase of life.usually teenager are not mature.they don't know well difference between right and wrong.so they do many things.but one thing which is very important in modern age is affection of opposite gender.and due to that many of them ruin their life.
Actually what happen ,affection is natural but in this age it happens more and mostly when we feel alone ,we wanna share something to someone but we are not able to share to our friends,family because they don't understand things in the way in which we wanna express ,at that time when someone specially opposite gender talk us nicely and listen us in well manner then we get attach to them and affection get start .but mostly time its a temporary. but we don't realize it and think its a true love .and the problems creates when that person ignore us or reject our proposal then we just be upset and start to think about that and start to ruin our life.I am not denying it that it can't be true ,it can .but if the case is similar which I mentioned above then chances is mostly about temporary.its a different thing, important  is that life is not about one person ,that is just a drop of sea even whole sea is remaining.so know your value and don't be upset in this kind of case and move on.
Until unless you are not sure about love, don't take a decision. And let the things flow with situation. to be alone teach you mysterious things about you,so do it sometime when you need peace of mind and be on righteous path ,the creator of the world will be always with you.
Enjoy the life,its a beautiful.

Tuesday, 31 May 2016

The short life

The pleasures of life are short-lived.Life means responsibility ,a purpose,a journey wherein change is constant and problems are continuous. You will not find a people free from problems.God kept two things in the world: good and evil,happiness and sadness.thus goodness ,uprightness and happiness are for paradise even evil ,misery are for the fire.
Live according to reality without always envisioning the ideal  life.accept life as it is and adapt accordingly to all circumstances. You will not find flawless thing or perfect companion, because its a quality that are not of this life.Do not expect more to world because you will get hurt if they will not fulfill your expectations.
its very important to be happy in the situation you are.So be happy in every condition.Ups and downs is a part of life.Never lose hope in any condition because the darkness  of night always end with light of the day.

Post Ads (Documentation Required)