About Me

My photo
'm frank, smart enough to deal with any kind of people, 've got ebility to communicate with al kind of peolpe, every1 who meets me start liking me.:) i love to smile... interestingly my name means smile:)

Tuesday, May 25, 2010

Being in UR 20's

I came across this mail long b4 aand found interesting. Saw it today its good not soooo good but worth reading.


It is when you stop going along with the crowd and start realizing that there are many things about yourself that you didn't know and may not like. You start feeling insecure and wonder where you will be in a year or two, but then get scared because you barely know where you are now.

You start realizing that people are selfish and that, maybe, those friends that you thought you were so close to aren't exactly the greatest people you have ever met, and the people you have lost touch with are some of the most important ones. What you don't recognize is that they are realizing that too, and aren't really cold, catty, mean or insincere, but that they are as confused as you.

You look at your job... and it is not even close to what you thought you would be doing, or maybe you are looking for a job and realizing that you are going to have to start at the bottom and that scares you.

Your opinions have gotten stronger. You see what others are doing and find yourself judging more than usual because suddenly you realize that you have certain boundaries in your life and are constantly adding things to your list of what is acceptable and what isn't. One minute, you are insecure and then the next, secure.

You laugh and cry with the greatest force of your life. You feel alone and scared and confused. Suddenly, change is the enemy and you try and cling on to the past with dear life, but soon realize that the past is drifting further and further away, and there is nothing to do but stay where you are or move forward.

You get your heart broken and wonder how someone you loved could do such damage to you. Or you lie in bed and wonder why you can't meet anyone decent enough that you want to get to know better. Or maybe you love someone but love someone else too and cannot figure out why you're doing this because you know that you aren't a bad person. You want to settle down for good because now all of a sudden that becomes top priority. Getting wasted and acting like an idiot starts to look pathetic. You begin to think a companion for life is better than a hundred in the shack and for once you would not mind standing tall for that special someone which otherwise you had never thought of until now. You go through the same emotions and questions over and over, and talk with your friends about the same topics because you cannot seem to make a decision. You worry about loans, money, the future and making a life for yourself... and while winning the race would be great, right now you'd just like to be a contender!

What you may not realize is that every one reading this relates to it. We are in our best of times and our worst of times, trying as hard as we can to figure this whole thing out. Send this to your twenty-something friends.... maybe it will help someone feel like they aren't alone in their state of confusion...

We call it the "Quarter-life Crisis".

Sunday, May 23, 2010

My first java application - simple calculator

yup!!! this is my first application in JAVA. its a calculator, yeh yeh it has bugs and 'm trying to take them off. but still eager to post this in my blog ;).

Anyways bug is the part of software cycle u see so its a bugfull calculator n soon a bugfree will be launched when i will learn jar creation. Kepp smiling and yes the mantra Happiness Always. dont forget it. cheers.

Please find the code below;

import java.awt.event.*;
import java.awt.*;
import javax.swing.*;

public class CalC implements ActionListener {
private JFrame f;
private JButton b1, b2, b3, b4, b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18;
private JLabel l1;
public int sum = 0,res=0,n1=0,n2=0,sum1=1,d,n3=1;
public char a;

public CalC() {
f = new JFrame("Tabu's calculator");
b1 = new JButton("1");
b1.addActionListener(this);
b2 = new JButton("2");
b2.addActionListener(this);
b3 = new JButton("3");
b3.addActionListener(this);
b4 = new JButton("4");
b4.addActionListener(this);
b5 = new JButton("5");
b5.addActionListener(this);
b6 = new JButton("6");
b6.addActionListener(this);
b7 = new JButton("7");
b7.addActionListener(this);
b8 = new JButton("8");
b8.addActionListener(this);
b9 = new JButton("9");
b9.addActionListener(this);
b16 = new JButton("0");
b16.addActionListener(this);
b17 = new JButton("Reset");
b17.addActionListener(this);
b10 = new JButton("+");
b10.addActionListener(this);
b11 = new JButton("-");
b11.addActionListener(this);
b12 = new JButton("*");
b12.addActionListener(this);
b13 = new JButton("/");
b13.addActionListener(this);
b14 = new JButton("%");
b14.addActionListener(this);
b15 = new JButton("=");
b15.addActionListener(this);
b18 = new JButton("Exit");
b18.addActionListener(this);
l1 = new JLabel(" ");
}



public void launchFrame() {
f.setLayout (new GridLayout(7,3));
f.add(b1);
f.add(b2);
f.add(b3);
f.add(b4);
f.add(b5);
f.add(b6);
f.add(b7);
f.add(b8);
f.add(b9);
f.add(b16);
f.add(b10);
f.add(b11);
f.add(b12);
f.add(b13);
f.add(b14);
f.add(b15);
f.add(b17);
f.add(b18);
f.add(l1);
f.pack();
f.setSize(300,300);
f.setLocation(200,200);
f.setVisible(true);
}

public void actionPerformed (ActionEvent ev)
{
try
{
if(ev.getSource()==b1)
{
n1=n1*10+1;
l1.setText(" " +n1);

}

if(ev.getSource()==b2)
{
n1=n1*10+2;
l1.setText(" " +n1);
}

if(ev.getSource()==b3)
{
n1=n1*10+3;
l1.setText(" " +n1);
}

if(ev.getSource()==b4)
{
n1=n1*10+4;
l1.setText(" " +n1);
}

if(ev.getSource()==b5)
{
n1=n1*10+5;
l1.setText(" " +n1);

}

if(ev.getSource()==b6){
n1=n1*10+6;
l1.setText(" " +n1);
}

if(ev.getSource()==b7)
{
n1=n1*10+7;
l1.setText(" " +n1);
}

if(ev.getSource()==b8)
{
n1=n1*10+8;
l1.setText(" " +n1);
}

if(ev.getSource()==b9)
{
n1=n1*10+9;
l1.setText(" " +n1);
}

if(ev.getSource()==b16)
{
n1=n1*10+0;
l1.setText(" " +n1);
}

if(ev.getSource()==b10)
{
n2=n1;
n1=0;
sum= sum+n2;
l1.setText(" " +sum);
a='+';
}

if(ev.getSource()==b11)
{

if (n3==1)
{
n2=n1;
sum = n2;
l1.setText(" " +n2);
n3=0;
n1=0;
a='-';
}

else

{
n2=n1;
n1=0;
sum=sum-n2;
l1.setText(" " +sum);
n3=0;
a='-';
}
}

if(ev.getSource()==b12)
{
n2=n1;
n1=0;
sum1=sum1*n2;
l1.setText(" " +sum1);
a='*';
}


if(ev.getSource()==b13)
{
n2=n1;
n1=0;
l1.setText("singlw div only");
a='/';
}

if(ev.getSource()==b14)
{
n2=n1;
n1=0;
l1.setText(" " +n2);
a='%';
}


if(ev.getSource()==b17)
{
n1=0;
n2=0;
sum=0;
res=0;
l1.setText("00");
sum1=0;
n3=1;
}

if(ev.getSource()==b18)
{
f.setVisible(false);
}


if(ev.getSource()==b15)
{
switch (a)
{
case '+':
res =sum+ n1;
l1.setText(" " +res);
sum=res;
break;

case '-':
res = sum-n1;
l1.setText(" " +res);
sum=res;
break;


case '*':
res = n1*sum1;
l1.setText(" " +res);
sum1=res;
break;

case '/':


if(n2==0)
1.setText("/by0");
else

{
res = n2/n1;
l1.setText(" " +res);
}

break;


case '%':
res = n2%n1;
l1.setText(" " +res);
n1=0;
n2=0;
sum=0;
break;


}
a=' ';

}

}

catch(Exception e)
{
System.out.println("Error: " +e.getMessage());
}
}



public static void main(String args[]) {
CalC grid = new CalC();
grid.launchFrame();
}
}

Sunday, May 9, 2010

I think its law if attarction


This always happen with me. I now experiencing the bangalore traffic in real through BMTC busses. My class is just in front of a signal. If the bus wont stop in signal i have to again walk around like 1KM to come back to my class. So wen ever my bus reaches near my class i keep thinking signal red hoja red hoja red hoja. When i am late its sure ki the bus missed the signal n crosses the road n i have to get down in next stop n walk back again to class. When i an 30 mins early to class n i dont think abt the signal"my dear bus" stops at signal for hell lot of time. Grrrrrrrrrrrr
It happens not once but always. I am new to BMTC though old to bangalore. I make it sure i stamp on few or i myself fall a number times on bus. I am still getting used to bus crowd n getting used to the people n bus stops. But one thing is sure, travelling in bus i got to discover many routes in bangalore. Pehle jab meri scooty thi i had known only one way.


I wonder ki jab bhi i am late for class my bus happen to meet with many red signals n i happen to miss few busses or take a wrong us n bla bla. and wen u have lot of time n leave early n i think i can go araamse. My bus always faces green signal in trafic n i get bus many frequently n also no any other drama. every day i leave at 8. thought the class at 9:30 i leave at 8 then there wont be much traffic problems n reach class at 8:50. and wen class is at 9 i leave at 8 n i reach class at 9 :15. coz of traffic signal n bla bla. My badluck? no its law of attraction. Wen i am early to class i dont care abt signals n wen i am late i keep looking at signal n expect it not to be red. The law of attraction acts reverse n the signal turns red. I dont know y i am writting this blog, may be coz i am frustrated with the traffic in bangalore. God plz mujhe isse mukti dilado.

Yes, I dont like pumpkin.


No no no its not about me..... Its about a girl in my PG(Paying Guest house) who happen to stay with us for a while. Lets call her Taany. In our PG there are few ppl who r guess visitors i mean who come to stay for a while like for 2-3 months. Taany happen to be one of them. Cute, cute n cute is the only word i got in my mind wen i saw her. I was shocked for a sec. when i heard she just passed her 12th n here for some CLaw coaching. Had a nice time with her.


So here's a pumpkin story. Mere PG ka khaana (good but still its mess food yaar). logon ke dil me bas jaata hai ki mess food not good though it taste's same as home food but still hum comment karte hain. Once we had some sabzi in dinner. I tasted it, it tasted weird so i served myself some ketchup n roti. Then i saw other they wer enjoying food, so the conversation between me n taany went like this:
Me:Tum ye sabzi kha rahi ho?
Taany: Haan kyun? achi hai,Aloo ki sabzi toh hai :P
Me: acha u have pumpkin also?
Taany: no me pumpkin kabhi nahi khaati.
Me: toh ye kya hai, the sabzi has pumpkin smashed in it. The oranfe thing is pumpkin n yellow is aloo.
Taany: arey nahi,. Then she had a close look at the sabzi. She kept the plate n went out. when i asked she said i dont like pumpkin, i have never had it. But the funny part it. B4 i tel her there's pumpkin in the sabzi she was enjoying it, n now wen i said her its pumpkin, its not tasting good.

I never knew that sabzi ka naam also matters. so i say naam pe mat jaao apni zabaan lagao(i mean taste pe jaao). he he he