Tuesday, October 30, 2007

Characteristics of ur Birth month

Characteristics of Your Birth Month
JANUARY
*Ambitious and serious *Loves to teach and be taught *Always looking at people's flaws and weaknesses *Likes to criticise *Hardworking and productive *Smart, neat and organised *Sensitive and has deep thoughts *Knows how to make others happy *Quiet unless excited or tensed *Rather reserved *Highly attentive *Resistant to illnesses but prone to colds *Romantic but has difficulties expressing love *Loves children *Homely person *Loyal *Needs to improve social abilities *Easily jealous
FEBRUARY
*Abstract thoughts *Loves reality and abstract *Intelligent and clever *Changing personality *Temperamental *Quiet, shy and humble *Low self esteem *Honest and loyal *Determined to reach goals
*Loves freedom *Rebellious when restricted *Loves aggressiveness *Too sensitive and easily hurt *Showing anger easily *Dislike unnecessary things *Loves making friends but rarely shows it *Daring and stubborn *Ambitious *Realising dreams and hopes *Sharp *Loves entertainment and leisure *Romantic on the inside not outside *Supersticious and ludicrous *Spendthrift *Learns to show emotions
MARCH
*Attractive personality *Affectionate *Shy and reserved *Secretive *Naturally honest, generous and sympathetic *Loves peace and serenity *Sensitive to others *Loves to serve others *Not easily angered *Trustworthy *Appreciative and returns kindness *Observant and assess others *Revengeful *Loves to dream and fantasize *Loves travelling *Loves attention *Hasty decisions in choosing partners *Loves home decors *Musically talented *Loves special things *Moody
APRIL
*Active and dynamic *Decisive and haste but tends to regret *Attractive and affectionate to oneself *Strong mentality *Loves attention *Diplomatic *Consoling *Friendly and solves people's problems *Brave and fearless *Adventurous *Loving and caring *Suave and generous *Emotional *Revengeful *Agressive *Hasty *Good memory *Moving *Motivate oneself and the others *Sickness usually of the head and chest *Easily get too jealous
MAY
*Stubborn and hard-hearted *Strong-willed and highly motivated *Sharp thoughts *Easily angered *Attracts others and loves attention *Deep feelings *Beautiful physically and mentally *Firm standpoint *Easily influenced *Needs no motivation *Easily consoled *Systematic (left brain) *Loves to dream *Strong clairvoyance *Understanding *Sickness usually in the ear and neck *Good imagination *Good debating skills *Good physique *Weak breathing *Loves literature and the arts *Loves travelling *Dislike being at home *Restless *Hardworking *High spirited *Spendthrift
JUNE
*Thinks far with vision *Easily influenced by kindness *Polite and soft-spoken *Having lots of ideas *Sensitive *Active mind *Hesitating *Tends to delay *Choosy and always wants the best *Temperamental *Funny and humorous *Loves to joke *Good debating skills *Talkative *Daydreamer *Friendly *Knows how to make friends *Abiding *Able to show character *Easily hurt *Prone to getting colds *Loves to dress up *Easily bored *Fussy *Seldom show emotions *Takes time to recover when hurt *Brand conscious *Executive *Stubborn *Those who love me are enemies *Those who hate me are friends
JULY
*Fun to be with *Secretive *Difficult to fathom and to be understood *Quiet unless excited or tensed *Takes pride in oneself *Has reputation *Easily consoled *Honest *Concern about people's feelings *Tactful *Friendly *Approachable *Very emotional *Tempramental and unpredictable *Moody and easily hurt *Witty and sarcy *Sentimental *Not revengeful *Forgiving but never forgets *Dislike nonsensible and unnecessary things *Guides others physically and mentally *Sensitive and forms impressions carefully *Caring and loving *Treats others equally *Strong sense of sympathy *Wary and sharp *Judge people through observations *Hardworking *No difficulties in studying *Loves to be alone *Always broods about the past and the old friends *Likes to be quiet *Homely person *Waits for friends *Never looks for friends *Not aggressive unless provoked *Prone to having stomach and dieting problems *Loves to be loved *Easily hurt but takes long to recover *Overly concerned *Puts in effort in work
AUGUST
*Loves to joke *Attractive *Suave and caring *Brave and fearless *Firm and has leadership qualities *Knows how to console others *Too generous and egoistic *Take high pride of oneself *Thirsty for praises *Extraodinary spirit *Easily angered *Angry when provoked *Easily jealous *Observant *Careful and cautious *Thinks quickly *Independent thoughts *Loves to lead and to be led *Loves to dream *Talented in the arts, music and defence *Sensitive but not petty *Poor resistance against illnesses *Learns to relax *Hasty and rushy *Romantic *Loving and caring *Loves to make friends
SEPTEMBER
*Suave and compromising *Careful, cautious and organised *Likes to point out people's mistakes *Likes to criticize *Quiet but able to talk well *Calm and cool *Kind and sympathetic *Concerned and detailed *Trustworthy, loyal and honest *Does work well *Sensitive *Thinking *Good memory *Clever and knowledgeable *Loves to look for information *Must control oneself when criticising *Able to motivate oneself *Understanding *Secretive *Loves sports, leisure and travelling *Hardly shows emotions *Tends to bottle up feelings *Choosy especially in relationships *Loves wide things *Systematic OCTOBER
*Loves to chat *Loves those who loves him *Loves to takes things at the centre *Attractive and suave *Inner and physical beauty *Does not lie or pretend *Sympathetic *Treats friends importantly *Always making friends *Easily hurt but recovers easily *Bad tempered *Selfish *Seldom helps unless asked *Daydreamer *Very opinionated *Does not care of what others think *Emotional *Decisive *Strong clairvoyance *Loves to travel, the arts and literature *Soft-spoken, loving and caring *Romantic *Touchy and easily jealous *Concerned *Loves outdoors *Just and fair *Spendthrift and easily influenced *Easily lose confidence
NOVEMBER
*Has a lot of ideas *Difficult to fathom *Thinks forward *Unique and brilliant *Extraodinary ideas *Sharp thinking *Fine and strong clairvoyance *Can become good doctors *Careful and cautious *Dynamic in personality *Secretive *Inquisitive *Knows how to dig secrets *Always thinking *Less talkative but amiable *Brave and generous *Patient *Stubborn and hard-hearted *If there is a will, there is a way *Determined *Never give up *Hardly become angry unless provoked *Loves to be alone *Thinks differently from others *Sharp-minded *Motivates oneself *Does not appreciate praises *High-spirited *Well-built and tough *Deep love and emotions *Romantic *Uncertain in relationships *Homely *Hardworking *High abilities *Trustworhty *Honest and keeps secrets *Not able to control emotions *Unpredictable
DECEMBER
*Loyal and generous *Patriotic *Active in games and interactions *Impatient and hasty *Ambitious *Influential in organisations *Fun to be with *Loves to socialise *Loves praises *Loves attention *Loves to be loved *Honest and trustworthy *Not pretending *Short tempered *Changing personality *Not egoistic *Takes high pride in oneself *Hates restrictions *Loves to joke *Good sense of humor *Logical

Good Quotes

10 Merry Accounts of the Experience of Marriage:

1. Getting married is very much like going to a restaurant with friends. You order what you want, then when you see what the other person has, you wish you had ordered that.

2. At the cocktail party, one woman said to another, "Aren't you wearing your wedding ring on the wrong finger. The other replied, "Yes I am, I married the wrong man."

3. After a quarrel, a husband said to his wife, "You know, I was a fool when I married you." She replied, "Yes, dear, but I was in love and didn't notice."

4. A lady inserted an 'ad' in the classifieds: "Husband wanted. "Next day she received a hundred letters. They all said the same thing: "You can have mine."

5. A little boy asked his father, "Daddy, how much does it cost to get married?" And the father replied, "I don't know son, I'm still paying."

6. Marriage is the triumph of imagination over intelligence. Second marriage is the triumph of hope over experience.

7. If you want your spouse to listen and pay strict attention to every word you say, talk in your sleep.

8. First guy (proudly): "My wife's an angel!" Second guy: "You're lucky, mine's still alive."

9. How do you scare a man? Sneak up behind him and start throwing rice.

10. What makes men chase women they have no intention of marrying? The same urge that makes dogs chase cars they have no intention of driving. -------------------- Today's Extra -------------------- "Internet is so big, so powerful and pointless that for some people it is a complete substitute for life." "Love is like a card trick — once you learn how it's done, you can't be fooled any longer." "Do not insult the mother alligator until after you have crossed the river."

Brain Exercise

Exercise of the brain is as important as exercise of the muscles. As we grow older, it's important that we keep mentally alert. The saying: "If you don't use it, you will lose it" also applies to the brain, so.........Below is a very private way to gauge your loss or non-loss of intelligence. So take the following test presented here and determine if you are losing it or are still a MENSA candidate.1. What do you put in a toaster? The answer is bread. If you said "toast", then give up now and go do something else. Try not
to hurt yourself. If you said "bread", go to question 2.2. Say "silk" five times. Now spell "silk". What do cows drink? Cows drink water. If you said "milk", please do not attempt the next question. Your brain is
obviously overstressed and may even overheat. It may be that you need to content yourself
with reading something more appropriate such as "Children's World". If you said, "water" then
proceed to question 3.3. If a red house is made from red bricks and a blue house is made from blue bricks and a pink
house is made from pink bricks and a black house is made from black bricks, what is a
greenhouse made from? Greenhouses are made from glass. If you said "green bricks", what the heck are you still doing
here reading these questions????? Dang.... If you said "glass", then go on to question 4.4. Twenty years ago, a plane is flying at 20,000 feet over Germany. If you will recall, Germany
at the time was politically divided into West Germany and East Germany. Anyway, during the flight, TWO of the engines fail. The pilot, realizing that the last remaining engine is also
failing, decides on a crash landing procedure. Unfortunately the engine fails before he has time and the plane crashes smack in the middle of "no man's land" between East Germany and
West Germany. Where would you bury the survivors - East Germany or West Germany or in
"no man's land"?
You don't, of course, bury survivors. If you said ANYTHING else, you are a real dunce and
you must NEVER try to rescue anyone from a plane crash. Your efforts would not be
appreciated. If you said, "Don't bury the survivors" then proceed to the next question.5. If the hour hand on a clock moves 1/60th of a degree every minute then how many degrees
will the hour hand move in one hour? One degree. If you said "360 degrees" or anything other than "one degree", you are to be
congratulated on getting this far, but you are obviously out of your league. Turn your pencil in and exit the room. Everyone else proceed to the final question.6. Without using a calculator - You are driving a bus from London to Milford Haven in Wales. In
London, 17 people get on the bus. In Reading, six people get off the bus and nine people get
on. In Swindon, two people get off and four get on. In Cardiff, 11 people get off and 16 people
get on. In Swansea, three people get off and five people get on. In Carmathen, six people get off
and three get on. You then arrive at Milford Haven. What was the name of the bus driver? Oh, for heaven sake! It was YOU. Read the first line!!!

Rectangle split in VC++

#include static int a=100,b=100,c=250,d=250; static int e=250,f=100,g=400,h=250; static int i=100,j=250,k=250,l=400; static int m=250,n=250,o=400,p=400;class myframe:public CFrameWnd{private:
public: myframe() { Create(0,"Rectangle"); } void OnPaint() { CPaintDC dc(this); CRect r1(a,b,c,d),r2(e,f,g,h),r3(i,j,k,l),r4(m,n,o,p); // GetClientRect(&r); CPen pen; pen.CreatePen(PS_SOLID,4,RGB(255,0,0)); dc.SelectObject(&pen); CBrush brush; brush.CreateSolidBrush(RGB(255,0,0)); dc.SelectObject(&brush); dc.Rectangle(&r1); dc.Rectangle(&r2); dc.Rectangle(&r3); dc.Rectangle(&r4);
} void OnLButtonDown(UINT n,CPoint asd) { SetTimer(1,500,NULL); } void OnTimer() { a-=10; b-=10; c-=10; d-=10;
e+=10; f-=10; g+=10; h-=10;
i-=10; j+=10; k-=10; l+=10;
m+=10; n+=10; o+=10; p+=10; Invalidate();
} void OnDestroy() { KillTimer(1); } DECLARE_MESSAGE_MAP()};
class myapp:public CWinApp{public: int InitInstance() { myframe *p; p=new myframe; p->ShowWindow(3); m_pMainWnd=p; return 1; }};BEGIN_MESSAGE_MAP(myframe,CFrameWnd)ON_WM_PAINT()ON_WM_LBUTTONDOWN()ON_WM_TIMER()ON_WM_DESTROY()END_MESSAGE_MAP()myapp ass;

Source code of Bouncing Ball in VC++

#include
static int x1=100,y1=100,x2=200,y2=200;class myframe:public CFrameWnd{public: int flag,flag1; myframe() { Create(0,"bounce"); } int OnCreate(LPCREATESTRUCT I) { CFrameWnd::OnCreate(I); SetTimer(1,20,NULL); flag=0; flag1=0; return 0; } void OnPaint() { CPaintDC d(this); //CRect r; //GetClientRect(&r); d.Ellipse(x1,y1,x2,y2); } void OnTimer() { if(y1==450) {flag=1;}
if(y1==0) {flag=0;}
if(x1>=700) { flag1=1; } if(x1==0) { flag1=0; } if((flag==1)&&(flag1==0)) { y1-=10; y2-=10; x1+=5; x2+=5; }
if((flag==1)&&(flag1==1)) { y1-=10; y2-=10; x1-=5; x2-=5; }
if((flag==0)&&(flag1==0)) { y1+=10; y2+=10; x1+=5; x2+=5; }
if((flag==0)&&(flag1==1)) { y1+=10; y2+=10; x1-=5; x2-=5; } /*if(flag1==0) { x1=x1-3; x2=x2-3; y1=y1-10; y2=y2-10; }
if(flag1==1) { x1=x1+3; x2=x2+3; y1=y1+10; y2=y2+10; }
*/
Invalidate();
} DECLARE_MESSAGE_MAP()};BEGIN_MESSAGE_MAP(myframe,CFrameWnd)ON_WM_CREATE()ON_WM_PAINT()ON_WM_TIMER()END_MESSAGE_MAP()
class myapp:public CWinApp{public: int InitInstance() { myframe *p; p=new myframe; p->ShowWindow(3); m_pMainWnd=p; return 1; }};myapp a;

Monday, October 22, 2007

Start in java programe

You have downloaded and installed the J2SDK. You have run the demo applications. Now you are ready to write, compile, and execute your first Java program. Writing a Hello World! program is the traditional first step taken when learning a new language. It allows you to take the new language and its development tools through a test-drive, stepping through the complete install, edit, compile, and run cycle without getting bogged down in language details (plenty of that later).

In your favorite editor, enter the following code and save it in a file named HelloWorld.java. Also, I will assume you are working on a Microsoft Windows PC and that you save HelloWorld.java into the c:\src directory.


/**
* The HelloWorld class is an application that
* displays "Hello World!" to the standard output.
*/
public class HelloWorld {

// Display "Hello World!"
public static void main(String args[]) {
System.out.println("Hello World!");
}
}

Open a DOS or command window and change to the directory where you saved HelloWorld.java.


C:\>cd c:\src

The Java tool set consists of a set of command line programs located in the bin directory of your Java installation. For instance, if your Java installation is in C:\j2sdk1.4.2 then the programs you need will be located in C:\j2sdk1.4.2\bin. Make sure you have modified your PATH environment variable to include this bin directory. You can modify your PATH through the control panel or temporarily on the DOS command line (see your operating system help). You should test the Java command before making any PATH changes. The following command should output version information. If it throws an error, set your PATH before continuing.


C:\src>java -version

The "javac" command is used to compile .java files into intermediate bytecode files known as class files. Class files have a .class extension. The "java" command instantiates a JVM (Java Virtual Machine) instance and loads a Java class file that has a main method. The main method is the first code that is executed in your program.

Now compile HelloWorld.java into Java bytecode with the javac command.


C:\src>javac HelloWorld.java

If you do a dir command and see "HelloWorld.class" in the directory, then your compilation was successful.