Hunt this blog

Saturday, May 30, 2009

Art of saying “No”

You have determined and decided to finish an important work today itself, under any circumstances, because it is long-stand pending, and you are ready with full enthusiasm to commence to do that job.

But at that time your friends arrived in group and requested you to go along with them to outside for another purpose (many times unimportant in nature), but out of modesty, you couldn’t say ‘no’ to them and you accompanied them without hesitation.

Most of us face these types of situations in our day to day life. Later on we blame ourselves unnecessarily, for not finishing our job in time.

Why we could not say ‘no ’to them. There are so many causes and reasons, as shown below.

1. Thinking that the other persons might suffer if you refuse their request.
2. They may underestimate you and misunderstand you.
3. You may be ridiculed, for your innocent behavior.
4. Shyness that is naturally present in all of us.
5. Lack of sufficient self- confidence in you.
6. Inner desire to be praised by others, as ’’good person’’.
7. under the impression that it is always well and good to be obedient that too with low-esteem to others.
8. With selfish- motto, today or tomorrow that you will be benefitted by the other person’s power, wealth, intelligence, so it is better to develop good rapport with them from now onwards.
9. To be great in other’s opinion.
10. Treating the other person as god-like and ready to do anything for his sake, and for sustaining their friendship at any cost.
11. Having slave- mentality.
12. To fulfill his personal ambitions, with other person’s help.
13. To pass time indulging in some habits, as he has no strong aim to achieve in life.
14 Thinking that if he refused to oblige their wish, next time he will have to face the same music from them.

What are the consequences, that we have to face, if we failed to say ‘’NO’’?

i) We indulge in bad habits, unnecessarily and it causes mental agony in the family members
ii) We lose both our wealth and health.
iii) We are looked down in the society.
iv). Often, we quarrel with our family members show anger on them without reason and season.
V). Time is wasted without any benefit to us.

How to say ‘no’?

1. Develop self-confidence and be firm to say ‘no’ (instead of ‘yes’), if you think that your friends’ requests are not worthy to do and follow.

2. Try to change your mentality and gradually develop the habit of saying ’no ’to false commands and demands of your colleagues.

3. Note down on a paper the amount you last within the last one week or in the past one month and also the loss of your health.

4. Everything will be alright within a short period of time and your friends also won’t dare to call you for attending such situations which are not good and unhealthy in nature.

5. Now on wards, you have the real enjoyment and plenty of mental peace in your valuable life, which is given by God, the Almighty.

Please share your experiences in saying “No

Tuesday, May 26, 2009

Minding Your Mind





We all need to develop our awareness of how we are connected to other people and the world around us, especially those of us who tend to take our blessings for granted. I recommend incorporating some kind of service work into your weekly or monthly routine. Doing service work puts the needs of others ahead of your own, and that does good both for you and the people you're helping. How do you start?

Make the commitment to yourself and then make the first phone call. Recognize, however, that you can only do so much and that sometimes helping just one person does a world of good. It's easy to become overwhelmed by the amount of suffering in the world and all the people and causes in need of help. Think about your interests and pick an activity that you feel is most deserving of your time and energy. But whatever form your service-work takes, once you take that first step you'll find it will quickly become one of your more rewarding healthy habits.

Monday, May 25, 2009

Exceptions in C++

Exceptions provide a way to react to exceptional circumstances (like runtime errors) in our program by transferring control to special functions called handlers.

To catch exceptions we must place a portion of code under exception inspection. This is done by enclosing that portion of code in a try block. When an exceptional circumstance arises within that block, an exception is thrown that transfers the control to the exception handler. If no exception is thrown, the code continues normally and all handlers are ignored.

A exception is thrown by using the throw keyword from inside the try block. Exception handlers are declared with the keyword catch, which must be placed immediately after the try block:

// exceptions
#include
using namespace std;

int main () {
try
{
throw 20;
}
catch (int e)
{
cout << "An exception occurred. Exception Nr. " << e << endl;
}
return 0;
}

The code under exception handling is enclosed in a try block. In this example this code simply throws an exception:

throw 20;

A throw expression accepts one parameter (in this case the integer value 20), which is passed as an argument to the exception handler.

The exception handler is declared with the catch keyword. As you can see, it follows immediately the closing brace of the try block. The catch format is similar to a regular function that always has at least one parameter. The type of this parameter is very important, since the type of the argument passed by the throw expression is checked against it, and only in the case they match, the exception is caught.

We can chain multiple handlers (catch expressions), each one with a different parameter type. Only the handler that matches its type with the argument specified in the throw statement is executed.

If we use an ellipsis (...) as the parameter of catch, that handler will catch any exception no matter what the type of the throw exception is. This can be used as a default handler that catches all exceptions not caught by other handlers if it is specified at last:

try {
// code here
}
catch (int param) { cout << "int exception"; }
catch (char param) { cout << "char exception"; }
catch (...) { cout << "default exception"; }

In this case the last handler would catch any exception thrown with any parameter that is neither an int nor a char.

After an exception has been handled the program execution resumes after the try-catch block, not after the throw statement!.

It is also possible to nest try-catch blocks within more external try blocks. In these cases, we have the possibility that an internal catch block forwards the exception to its external level. This is done with the expression throw; with no arguments. For example:

try {
try {
// code here
}
catch (int n) {
throw;
}
}
catch (...) {
cout << "Exception occurred";
}

Types of Girls



HARD DISK GIRLS:
she remembers everything, FOREVER


RAM GIRLS:
she forget about you, the moment turn her off


WINDOW GIRLS:
everyone know that she can't do a thing right, but no one can live
without her.


SCREENSAVER GIRLS:
She is good for nothing but at least she is fun


INTERNET GIRLS:
Difficult to access


SERVER GIRLS:
Always busy when you need her.


MULTIMEDIA GIRLS:
She make horrible thing look beautiful


CD-ROM GIRLS:
She is always faster and faster.


EMAIL GIRLS:
Every ten things she says, eight are nonsense .


VIRUS GIRLS:
Also known as "wife'' when you are not expecting her, she comes,
install herself and uses all your resources. If you try to uninstall
her you will lose something, if don't try uninstall her you will
lose everything...

Diet Tips For Healthier Eating



Making a few small shifts in habits and routines may help you to achieve your weight loss and diet goals. A first tip that comes to mind is eating directly out of a bag or box. This can settle into a sort of mindless routine and it's very hard to control your intake if you are watching television or reading a book and just reaching for a few more out of that store container. Chips and popcorn put into a bowl is a good way to control the amount. Once you are finished, you are finished. A movie popcorn can contain 1,500 calories.

Do eat more slowly. It takes about twenty minutes for your brain to tell your stomach that it's full. If you eat so fast that you are just throwing things into your mouth mindlessly, there is no chance for the signal to switch on, or it could switch on late. Also, eating more slowly lets your body metabolize the food better. Try to eat with no distractions -- and sitting at the dining table will enable you to concentrate on the meal in front of you.

Most of us love dessert and we don't have to miss out on one after a meal. Substituting yoghurt for ice cream or a piece of fruit for a pie slice, or just cutting any dessert in half will really help. Some nuts or cheese or grapes for instance, can serve as added protein and fiber yet give the sense of a meal "finisher". Use of a vaporizer with a peppermint or other soothing or sweet herb is a great no-calorie way to get a sense of a dessert, without actually eating one -- and it can relax you also, which is better for digestion.

After eating your meal, wait at least ten minutes before reaching for seconds, and have a glass of water before every meal. If you are eating out, ask for a take home box before you start eating and put half of your meal into the box. Out of sight and out of mind really works. A lot of small lifestyle changes really add up. If you can start one or two at a time, then add more later as you go along, the transition to a healthier way of eating will come much easier. As always, stay healthy and happy.

Tuesday, May 19, 2009

Most Horrible Tumors !!!

Jose: the man with no face



Jose has one of the most extreme facial tumours ever seen in medical history. The 51-year-old, from Portugal, is in danger of being suffocated by it unless he undergoes drastic surgery. Unemployed, he is blind in one eye as a result of the giant weeping growth that has consumed his features; the tumour has taken over his mouth and tongue, ballooning his lips, twisting his gums and breaking his teeth off. The deep, 15cm long growth - which started as a birth mark when he was just 11 - was sparked by abnormalities in his capillaries and veins. It started to get much bigger when he hit 16 and has been expanding ever since. H e recently flew to the UK to discuss the possibility of surgery to remove part of the tumour. But because his mother was a Jehovah's Witness, he refused any surgery because his religion means he can't have blood transfusions. Doctors in London came up with a plan to remove parts of the growth bit by bit - without transfusion.



Huang Chuncai: 44 pound (20kg) tumor on his face



On 2008, a Chinese man named Huang Chuncai underwent surgery to remove a 20kg or 44 pound tumor on his face. The surgery was successful but due to the large size of the tumor, only a part of it was removed at that time. Just a few days ago, Huang Chuncai went into the operating room again to remove another part of that facial tumor. This time, it was a large 4.5kg (9.9lb) chunk of flesh from his face. The tumor was originally 23kg in total. This still leaves 17.5kg of facial tissue from this tumor on his face (1kg was removed in the first surgery and 4.5kg was removed in the second surgery). Huang Chuncai suffers from Neurofibromatosis, a rare genetic disorder that causes growth on nerve tissues.



Huang Liqian: 33 pound (15Kg) tumor on his neck



This man from China finally had a huge tumour removed on 2007, after discovering it 17 years ago. Huang Liqian, 58, first discovered a bizarre growth on the back of his neck in 1990, but chose to ignore it. However, as the years rolled on, it continued to increase in size at a rapid pace, with the growth ballooning to 15kg. Liqian was taken to the First Affiliated Hospital of Chongging University of Medical Services in southwest China's Chongging, where he had the tumour removed.



Chen Zongtao: 154 pound (70kg) tumor on his right leg



Victim Chen Zongtao, 29, lives in a remote Chinese village and hasn't been able to afford medical help. The growth first started on his left foot when he was two years old. But it soon spread across to his right leg and engulfed it. Over the years, it has ballooned in size to weigh more than 70KG or 154 pounds. Doctors at the hospital in Changsha, central China's Hunan province, have been probing the tumor. Zongtao is said to be suffering from neurofibroma - a usually-benign tumour originating in nerves. It is not yet clear if medical teams plan to take action on the growth.



Gao An-ni: tumor in her underlip



Gao An-ni, an 8-year-old girl from the rural countryside in An Yuan county in East China's Jiangxi Province, suffers from a tumor in her underlip. An-ni was born with a tumor in her underlip, and she couldn't receive timely treatment for the poverty. On 2007, her father took her to see doctors at the Hospital affiliated with Gannan Medical College. But when doctors there told him that the operation to cure the tumor and the following cosmetic surgery might cost a lot for the family, the father decided to bring back his daughter to their hometown.



Lai Ti Dao: 10 pound (4.5KG) tumor on her face



Vietnam's Lai Ti Dao suffered from a massive Schwannoma tumor, a benign growth that began with a small lump in her tongue but swelled over the years to a size roughly one-third her body weight. The tumor makes it difficult to eat, talk and even walk because its size throws the girl’s small frame off balance. The growth is now dangerously close to cutting off her airway. On 2008, a team of surgeons at the University of Miami had a marathon 10-hour procedure to cut away the growth, which weighted an estimated 10 pounds.



Phuon: another facial tumor, no luck



Phuong is a 27-year old who has a facial tumor that began to grow at age 7, and quickly took over his entire left face, enveloping his eye and ear, clearly keeping him from living a normal life. He has had three surgeries before, but the tumor grown back each time. Recently, no local doctors or international team visiting the area has offered to take his case, due to the risk involved with the blood loss and the need for careful post-op care. This case would be considered a difficult case and booked for a full day in the OR.



Chantal Sébire: Suffered from esthesioneuroblasto ma, died through euthanasia




A retired French teacher, Chantal Sébire suffered from esthesioneuroblasto ma, a rare form of cancer, and fought for the right to die through euthanasia. In 2000, she was diagnosed with esthesioneuroblasto ma, a rare form of cancer of which only 200 cases have been reported in the past 20 years. Sébire refused any treatment at the time of her diagnosis, not wishing to take the risk of the surgery or medications. On March 19, 2008, she was found dead in her home. An autopsy conducted on March 21, 2008 concluded that she did not die of natural causes. Subsequent blood tests revealed a toxic concentration of the drug Pentobarbital, a barbiturate that is not available in French pharmacies but is used elsewhere in the world for the purpose of physician assisted suicide.

Build Your Self Confidence !

How To Build Your Self Confidence

One of the most important steps to achieving your goals in life is to develop a strong sense of self confidence. This does not however involve becoming loud or arrogant. On the contrary, people with genuine self confidence are usually calm and self assured and do not need to 'big note' themselves.





Here are my top ten tips for building your self confidence:




1. Visualise Yourself As The Person You Want To Be


Each morning spend a few minutes visualising yourself as the person you want to be. Think about the way you dress, the way you carry yourself and the way you interact with other people. Seeing yourself as the person you want to become is the first step towards building self confidence.


2. Self Confidence Statement

After visualising yourself as the person you want to be, read the following statement out loud:

"I know I have the ability to achieve my major goal in life. Therefore today,
I demand of myself persistent and continuous action towards achieving my goal"

Reading this statement out loud is a great way to start your day in a confident state of mind.


3. Dress Well

One of the most effective ways to instantly improve your level of self confidence is to dress well and to make the decision to always be well groomed. This does not mean you have to go out and buy a whole new wardrobe. Instead, just focus on gradually building up a small collection of good quality clothes. Also remember that simple accessories such as a tie clip or necklace can make a big difference to the way you look and feel.


4. Positive Posture

Another powerful way to build your sense of self confidence is to stand up straight and lose the slouch that many of us have acquired over the years. While you may be able to make a change to your posture by simply becoming aware of it, the best way to make a long lasting change to your posture is to practice yoga or pilates.


5. Move With Purpose

A simple but effective tip for increasing your levels of self confidence is to always move with a sense of purpose. In his book 'The Magic of Thinking Big', David Schwartz recommends walking 25% faster than normal. Having a spring in your step lets people know that you have important things to do and actually makes you feel more confident as you go about your daily business.


6. Become A Participant

Have you ever noticed that in most meetings or groups, people immediately head towards the back of the room so that they can remain as inconspicuous as possible? A great way to increase your visibility and sense of self confidence is to make the decision to always sit towards the front of the room and be a participant. When you have something to say - don't be afraid to say it.


7. Connect With Confidence

Another way to quickly improve your self confidence is to practice making a strong first impression. When you meet someone face-to-face, look them directly in the eye, smile broadly, shake hands firmly and say, "Hi Jim, nice to meet you".

Similarly, you can sound more confident on the phone by answering, "Good morning Carol Jones speaking" instead of simply saying "Hello"


8. Build Your Success File

Occasionally your self confidence will take a hit when something doesn't work out the way you hoped. One of the best ways to repair your self confidence in this situation is to keep a folder outlining your past achievements and successes. You should also include any positive feedback that you've received from others.

As you review your success file and fill your mind with positive comments, your doubts and insecurities will quickly disappear and your self confidence will be restored.


9. Preparation

The BIG secret to being self confident that people rarely talk about is - preparation. The more you prepare and practice for an event, the more self confident you will become.

If you are worried about an upcoming event, use your apprehension as a stimulus to take action and practice, practice, practice. The simple but powerful truth is that self confidence grows through repetition and experience.


10. Toastmasters

My final tip for developing self confidence is to join a Toastmasters group.

Toastmasters is a non-profit organisation that helps people from all walks of life to develop their public speaking and leadership skills. In my experience Toastmasters offers a safe and relaxed environment to step out of your comfort zone and develop the invaluable skills of being able to think on your feet and speak in public.

So there you have it!

If you implement some or all of these 10 techniques you'll gradually develop a greater sense of self confidence which in turn will help you to pursue and achieve your most important life goals.

Until next time,

Dare To Dream!

Lakhvir Singh Lucky

The Most Powerful Force in the Universe

Albert Einstein said that imagination is the greatest creative force in the universe. Why would such a great man say something that sounds so silly and trivial? Look at those words again: ‘greatest creative force’. Imagination? Not education? Nor money? Nor luck?

Napoleon Hill, author of Think and Grow Rich, said that imagination is the most marvelous, miraculous, inconceivably powerful force the world has ever known. Before you pass him away as a crackpot, know that Mr. Hill was an advisor to two U.S. presidents, was commissioned by the great and wealthy Andrew Carnegie to teach people about making their dreams come true, and has been thanked by many of the greatest people around the world for the success he helped them achieve. People like F. W. Woolworth (founder of Woolworth’s), Woodrow Wilson (former U.S. President), George Eastman (founder of Kodak), W. M. Wrigley, JR. (Wrigley’s), and many others have used his teachings to manifest their dreams.

Imagination is the force that takes you to places you have never been.

Henry Ford relied on imagination and belief. Walt Disney said that had he not seen Disneyland in his mind, the rest of the world would not have seen it on earth. Bill Gates first imagines his products before they become actual software that we rely on. And it would serve you well to remember that many of the world’s greatest people started with nothing and built empires. They had a dream. And the universe conspired, as it always does, to let them experience their imagination.

The universe always lets you experience your imagination, whatever it may be.

Sunday, May 17, 2009

On Your Mark, Get Set, Let’s Find Planets!


The checkout and calibration phase for the Kepler spacecraft has been completed, and now the telescope will begin one of the longest and most important stare-downs ever attempted. Kepler will spend the next three-and-a-half years staring at more than 100,000 stars searching for telltale signs of planets. Kepler should have the ability to find planets as small as Earth that orbit sun-like stars at distances where temperatures are right for possible lakes and oceans. “Now the fun begins,” said William Borucki, Kepler science principal investigator for the mission. “We are all really excited to start sorting through the data and discovering the planets.”

During the checkout phase scientists have collected data to characterize the imaging performance as well as the noise level in the measurement electronics. The scientists have constructed the list of targets for the start of the planet search, and this information has been loaded onto the spacecraft.


“If Kepler got into a staring contest, it would win,” said James Fanson, Kepler project manager at NASA’s Jet Propulsion Laboratory, Pasadena, Calif. “The spacecraft is ready to stare intently at the same stars for several years so that it can precisely measure the slightest changes in their brightness caused by planets.” Kepler will hunt for planets by looking for periodic dips in the brightness of stars — events that occur when orbiting planets cross in front of their stars and partially block the light.

The mission’s first finds are expected to be large, gas planets situated close to their stars. Such discoveries could be announced as early as next year.

We’ll be eagerly awaiting!

Thursday, May 14, 2009

2-year-old British Genius has IQ of 156

Elise Tan-Roberts of Edmonton in North London is a most unusual 2-year-old with an IQ of 156, rated in the top 0.2 per cent of her age group.

And she's the youngest member of Mensa, the society for genuises.

Elise can name 35 capital cities, identify the three types of triangle, spell her name aloud, read the words "Mummy" and "Daddy" and recite the alphabet.

She was five months old when she spoke her first word, calling her father "Dada." She was walking three months later and running two months after that.

Before her first birthday Elise could recognize her written name and by 16 months she could count to 10. She is now able to do the same in Spanish.

At a playgroup, a mother gave Elise a toy animal and told her it was a rhinoceros. "'That's not a rhinoceros,' Elise said. It's a triceratops."

The little girl was born in London in December 2006 and has heritage in England, Malaysia, China, Nigeria and Sierra Leone.

Elise's mother Louise, 28, said she realized her daughter was different as soon as she was born, The Times of London said. She said Elise took "an unusual" interest in her surroundings.

"She just says things and you have no idea where she got it from. I don't set out to teach her loads of stuff, she just enjoys learning and picks things up. She's always on the go, she never stops."

Elise's father, Edward, a 34-year-old motor consultant, said: "Our main aim is to make sure she keeps learning at an advance pace. We don't want to make her have to dumb down and stop learning just to fit in."

Monday, May 11, 2009

Aam Hai Kya...

A little boy goes to a shopkeeper and asks ... 'Aam hai kya?'

The shopkeeper says ... 'Nahi. Hum Aam nahi bechte.'

Next day at the same time, the boy goes again and asks him ...'Aam hai kya ?'

He gets a little irritated and says... 'Aare Bola na, Hum 'Aam nahi Bechte'

On the third day, the little boy goes again and asks him 'Aam hai kya ?'

He gets wild and yells ...'Bola na naahi. Abhi vapas aaya to hathoda marunga sar ke upar'

The next day,the little boy comes again and asks him ..'hathoda hai kya ?'

The shopkeeper says ... 'Nahi'

The little boy smile and then asks ... 'Aam hai kya ?

Prolog grammar parser generator

Prolog has the capacity to load definite clause grammar rules (DCG rules) and automatically convert them to Prolog parsing rules. As an illustration, consider a typical kind of left-regular grammar for the regular language a*bb ...

S --> a S
S --> B
B --> bC
C --> b
For Prolog, rewrite this grammar something like this ...
s1 --> [a], s1.
s1 --> b.

b --> [b,b].
Notice that we have collapsed the last two rules into one. Do not be confused by the use of 'b' as both a nonterminal symbol and as a terminal symbol. In Prolog grammars, any use as a terminal symbol must always be within brackets '[..]'.

When loaded into Prolog, these grammar rules are translated into the following clauses
s1(A,B) :-
'C'(A,a,C),
s1(C,B).
s1(A,B) :- b(A,B).

b([b,b|A],A).
'C' is a built-in Prolog predicate whose intuitive meaning is "connects" and whose definition is ...
'C'([A|B],A,B).
One can use the grammer as a parser ...
?- 'C'([1,2,3],1,[2,3]).
Yes

?- s1([a,a,a,b,b],[]).
Yes

?- s1([a,b[,[]).
No
... but not as a generator ...
?- s1(S,[]).
... (infinite loop)
The use of a Prolog grammar as a generator is uncommon. We will see that most useful grammars are specified for the sake of parsing, not expression generation.

Here is a clause tree, with root s1([a,b,b],[]) ...



Pairs of parameters like [a,b,b] and [], as in the root of the tree are said to "represent differences". Thus, the parameter pair [a,b,b] and [b] represents the difference [a,a].

The reason that the Prolog (left-regular) grammar cannot be used to generate sequences is that the grammar is right-recursive. There could be any number of a's at the beginning of the sequence S, and the first clause for s1 could be used repeatedly. The following derivation reveals the problem ...



Here is an alternate Prolog grammar (in context-free form) for a*bb that could be used also as a generator ...
s_1 --> a, b.

a --> []. % empty production
a --> [a],a.

b --> [b,b].
With this grammar ...
?- s_1(S,[]).
S = [b,b] ;
S = [a,b,b] ;
S = [a,a,b,b] ;
...
By the way, the empty production (2nd grammar rule) will be loaded as the following clause -- which means either consume nothing (when parsing) or generate nothing ...
a(A,A).

Exercise 7.1 Explain why this grammar will generate sequences.

Exercise 7.2 Specify a Prolog grammar for the language of sequences consisting of a's followed by an equal number(zero or more) of b's. Recall that this language is context-free but not regular.


For non-context-free languages one can use Prolog grammars with parameters -- a clever device -- bracketed, embedded, Prolog goals -- for specifying context (or other) information. For example, consider the following Prolog grammar for sequences of equal numbers of a's followed by b's followed by c's ...
s2 --> a(N), b(N), c(N).

a(0) --> [].
a(M) --> [a],
a(N),
{M is N + 1}. % embedded Prolog Goal

b(0) --> [].
b(M) --> [b],
b(N),
{M is N + 1}.

c(0) --> [].
c(M) --> [c],
c(N),
{M is N + 1}.
Exercise 7.1.3 Load the s2 grammar and test is on various inputs, both as parser and generator. Also, look at the Prolog listing so as to see how the embedded goals are handled.

Mix Pics