Feb 21, 2012

All Ayurveda

Almost everyone knows about Ayurveda. Its one of the traditional and effective way of medicine, used to cure any sort of diseases or make your mind and soull healthy in a nautural way. recently i have gone through a website which actually impressed me a lot.

Please visit http://www.allayurveda.com/ for more information

Feb 20, 2012

Java Program without a Main Function

Writing a simple program in JAVA to print "Hello world " is not a big task for you, if you are a programmer in JAVA. But i m going to teach you how to write a program without a main function.
  You may ask me , every program starts with Main Function and how come its possible to do without a main method. Java provides you to use static initialization block to achieve this..

Ex:

public class Sample{
 static{
System.out.println("Hello World !");
 
}


By running this class, you will get an error message stating that "java.lang.NoSuchMethodError: main
Exception in thread "main" " . To avoid this, add System.exit(0); at the end of static initialization block.

public class Sample{

static{
System.out.println("Hello World !");
  System.exit(0);
}
}

Feb 17, 2012

Sangita Travels Review

Last weekend we have been to pondicherry to attend one of our friend/colleague's sister marriage. On the return, he booked ticket for us to Bangalore in sangita travels. The bus starting time is 10.30 PM. We collected our passed by 10.15 PM. We got shocked when we saw the bus, we need to travel. They said its a Volvo bus, bit it looked like a normal bus, which has been painted . Adding to our frustration, the bus tyre is punctured. They arranged a new bus, it was also looking like a old one. The ac was not good.
   The Bus started @ 11.00 PM. At 2.00 am, we reached nearby thirvanamali, the bus engine stopped. The driver repaired it for 15 mins  and we went some 40 kms, the bus engine stopped again. Now the driver couldn't able to fix it. But we though they will fix it again, so we went in and slept..
  When we woke up at 06.30 a.m, we got shocked that the bus is in the same place and surprisingly we have seen the driver is also sleeping. We work up him and he said they were waiting for  a mechanic. The mechanic came and he started repairing. I took my android mobile and opened Google maps. I got frustrated , when i saw we were 175 kms away from Bangalore. Finally the bus started, and after 20 kms the bus stopped again.
  Finally the management declared they will fund the entire money. But what to do only with the money. Many of us who's the bus are office goer's  and its in the Monday morning and the time is 08.30 a.m and we were 150 kms away from Bangalore..
 This is one of the worst  planned journey i have made .

Whom to Blame ?

  •  The Driver
    • Whether he didn't check the condition of the bus , before the journey
  • Travels
    • They can arrange a spare bus @ start of journey, but they cant arrange it when the bus got repair in the mid of journey.
 Comment your views

12 Seconds in a Year

Today i was reading a newspaper, i have read this "12 Seconds in a Year".

Story:
A man died and he went to heaven. The gatekeeper ask his soul two questions and if he answers them, he will allow this man to heaven or he has to goto hell.
Question:

  • What are the two days in a Week, that start with a letter 'T'
  • How many seconds are there in a Year ?
Reply:
  •    Today and Tomorrow
  • 12 Seconds in a Year
After getting this reply from the man, the gatekeeper agree the reply of first question, but he is curious to know why he replied 12 for the second question. The man answered there are only 12 seconds in a year  in the way as  Jan 2nd, Feb 2nd, Mar 2nd, Apr 2nd,..... Dec 2nd.

The gatekeeper is stunned and he opened the gate.

Moral:  Be Smart :)

[This article was picked up from a newspaper, but really appreciate the author of this story, Nice Imagination and funny one as well]


Lucky Bamboo

Lucky BamBoo
Very Attractive Sapling in nature. By looking this plant it self, it makes you lucky and feel the pleasure of relax. This is not a kind of Bamboo variety. This is  from the family of  tropical water lily (Dracaena Sanderiana).
  This Plant needs some water to grow and some gravel to grab and keep it fit in a vase. Water can be replaced once in a week or two . So the maintenance is very easy. But keep it away from you pets and children, because digestion of this leaves is toxic. 
Wanna grow this plant. If anyone who read this blog know, where this sapling will be available , please let me know by commenting this post.


Feb 16, 2012

Working with Constructors

In Java, When we  are creating a new instance of the class, the constructor of the class will be called. If a class doesn't have a constructor then it will assume there's a default constructor. But constructors are used to assign some initial values  to class fields.
Ex:
public class Employee{


  private int empID;

  private String name;


   public Employee(){
    this.empID = 1
    this.name = "Un-defined"
   }
}
We all know that we cant have two constructor in a class, with the same name and same parameters but a different data-type. But while i m analyzing this limitation, suddenly a doubt arise to me whether we can have two constructors with a single parameter, but the data Type of these parameters are different.

Ex:

public class Employee{


// Constructor 1
   public Employee(int empID){
   }


// Constructor 2

  public Employee(String name){
   }



}

Feb 15, 2012

Immutable Class in Java

A class is immutable, only if when the instance of the class cant modify its content.. This can be achieved by

  • Making a class as Final
  • Make all the fields and methods as private.
Ex:
  • String Class 
    • When you create an instance of String class, say ex: new string(); then you cant modify the content  of String class with this object reference. 

Feb 7, 2012

Experience makes the Man Perfect

Its a quite saying that "Experience will makes the man perfect". Since i bought a bike, i  never fell down and got injured. But recently, i borrowed my friends bike, which's a Scooty Pep to carry some things to my new room, for re-installation of TSky STB Setup.
        After everything got over, i was turning a corner @ a speed of 30 km/hr. The road was so muddy and the back tire of the vehicle got stuck in it and started skating and due to that i fell down .
        My Right hand palm was injured and actually the skin in the palm peeled away, so it was burning sensation to me.
This minor accident taught me to learn to drive more carefully at the corners of the road

Feb 6, 2012

Flush DNS

Sometimes its required to Flush DNS for getting a new Dynamic IP Address for your PC from the server.

To DO:

  • Open Run Command Window
    • Press "Windows + R" key or
    • Click Start and Select Run
  • Now Enter cmd and preess enter to open the Command Prompt Window
  • Type the below commands and press enter after each command
    • ipconfig/flushdns
    • ipconfig/release
    • ipconfig/renew

And for confirmation type ping www.google.com and press Enter . If Flushing DNS was successfully done, you will get an IP Address there. Type exit and press enter to close the window

Jan 3, 2012

Trip to Shivana Samudara

 "Journey will make us feel good always and memorable".This Trip started with Cloudy skies above and cold water below. It Means the water in the waterfall is very cold and the sky is cloudy and the weather is rainy. :) 
This is my first long ride in my bike..

Distance :From Bangalore : 150 kms

Route: Bangalore - Kanakapura - MallaVali -     Shivana Samudara 

Special : Water Falls

We started the trip from Bangalore @ Dec 31st Morning 6.30 am. The Sky was very clear at the time, but when we were riding the bike in Nice Road, it started drizzling. We had breakfast @ Kanakapura and we started our journey, it was raining. So it become difficult for us to race. We were ridding @ a speed of 40- 50 km speed, bcoz the road was damn good, but many hair pin bends are there. We reached the water fall by 11 am . 

First we went on a small boat to the place where the waterfall is there. Since the fall of water is heavy, bathing is prohibited there. So we can enjoy the beauty of water fall from the small boat. For this short trip, you have to pay Rs.50/-  for the boat ride. At max, five people can travel in that boat . That was nice experience.



After that we decided to bath. When we get down into the water, it was so cold. We had a blast time there by sprinkling water and swimming.. One of my friend tried to swim towards the waterfall, but due to the force of water he is swimming in the same place.
We were enjoying the bath for almost  3 hrs , after that we got tired.







When we were starting back the time is 3.00 pm, its sunny and we have decided to race that time . We raced @ average of 80 km/hr speed and we have reached some high speed of 110 km/hr speed. We reached Bangalore @ 5.30 pm in the evening and we got stuck up into new year traffic in banerghatta road.





Priya,Bala,Karthick and Me


Ashok,Bala, Prassanna and Karthick








Overall, its a nice place to visit..
Please take light weight helmets  to avoid neck pain :) 
Please comment your opinion ... 

Dec 22, 2011

Apache 180 RTR

This is my First Bike, which i bought recently [10 months back :P] . I was 6' Feet and felt  that this bike will not  be comfortable for me to ride.. But this is one of the perfect one to ride and race :) ..

Details:
Mileage : 30 km in city and 30-35 in Highway
Weight : 140 Kg
Engine: 180 cc
ABS :  no
Alloy Wheels : yes
Gears : 5

Dec 5, 2011

Roads in Chennai

After the heavy rain in Chennai, the roads were very bad. Most of the roads are having pits and mud. With every traffic, its getting even worser. The Chennai corporation need to address this issue as soon as possible.
Vehicles tyre was getting puncture almost every a week due to these roads.  Every vehicle pays road tax, but at  finally we were not getting good roads to drive..
Will the Chennai Corporation address this issue ?

Nov 21, 2011

How to Apply for Ration Card Online in Karnataka

This is the nice initiative from the Govt of Karnataka... Many people can utilize this one.. For more update.. Please visit http://ahara.kar.nic.in/

Hats off to Govt of Karnataka...

Oct 30, 2011

(Godumai)Wheat Halwa

No of Days Required : 2 days
Ingredients Required : 500 gm Wheat; 1 Kg Sugar, 1.5 Kg Ghee.[It will result in 25 pieces of Halwa], few Cardamom[For Flavor]

Preparation Method:
= = = = = = = = = =

  • Dip Wheat in water for five hours. After that, put the wheat in grinder.. Let it grind for 10 mins.. Then take out the wheat and extract only the milky solution from it and preserve it in a vessel.. Repeat this process for another 4 times.
    • After this, finally you will be getting a milky solution from the wheat. Preserve ONLY the milky solution in dry, cool place[Let it be for 48 hrs]
  • Now After 48 hrs of time., take a bowl and add water to it and keep it on the stove. Add sugar to it and stir it well. After sometime, you can see  the color of the mixture would be in light brown color. 
  • At that point of time, now pour the wheat milk into the bowl and keep on stirring it. While you were stirring the mixture from top to bottom , add ghee in parallel to that Halwa mixture .
  • Add few pieces of cardamom to the Halwa mixture, just to add  the flavor
  • After few minutes[Min : 40 - 60 mins], pour the mixture in a tray..
  • Keep the tray in  a dry, cool place.... Then cut the Halwa pieces  according to your need.


Oct 14, 2011

Accessors and Mutators in JAVA

Accessors:
API's or methods which were used to get the current state of an object.

Mutators:
API's or methods which were used to change the state of an object.
Ex: set(int a);

An object has mainly two things state and behaviour.. State denotes the instance variables of a class and Behaviour denotes the methods or API's in class[ which is blueprint of an object] .
class Animal{
private int color;

  public void getColor(){
  return color;
  }
public setColor(int color){
this.color = color;
}
}

In this program, getColor is an Accessor setColor is Mutator

Oct 10, 2011

RPM Differs

Last week i was travelling in a bike with my father riding it, that time a car overtaken us. Suddenly i had a doubt regarding speed, here it goes the conversation.
Me: Dad..
Dad: Yes, Dear
Me: If the car is running at the same speed of a bike, will the two will reach at the same dear
Dad: No, the car will reach first.
Me: How come , both are running at the same speed?
Dad: Even-tough they run at same speed, their RPM Differs..




Aug 18, 2011

Mulitple Catch Blocks in JDK 7

public static void main(String args[]) {
Scanner scnr = new Scanner(System.in);
String number = scnr.next();
try {
if (number.length() > 5) {
throw new IllegalArgumentException();
}
Integer.parseInt(number);

} catch (NumberFormatException | IllegalArgumentException e) {
e.printStackTrace();
}
}

Aug 17, 2011

Print a Diamond using JAVA


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Diamond {

public static void main(String[] args) {
Diamond diam = new Diamond();
diam.checkInput();
}

private void draw(int N, int counter, String sym) {
int max=0;

for (int i = 0; i < N;) {

for (int j = 0; j <= (N - i) / 2; j++) {
System.out.print(" ");
}
for (max = 0; max <= i; max++) {
System.out.print(sym);


}

System.out.println();

i = i + counter;


}


for (int i = (max - counter); i > 0;) {

for (int j = 0; j <= (N - i) / 2; j++) {
System.out.print(" ");
}
for (int k = i; k > 0; k--) {
System.out.print(sym);
}

System.out.println();
i = i - counter;

}
}

private String getInput() {
String value = null;

BufferedReader buf = new BufferedReader(
new InputStreamReader(System.in));
try {
value = buf.readLine();

} catch (IOException e) {
e.printStackTrace();
}
return value;
}

private void checkInput() {
System.out.print("Enter the Value of N:");
int N = Integer.parseInt(getInput());
System.out.print("\n Enter the Value for counter: ");
int counter = Integer.parseInt(getInput());
System.out.println("\n Enter the Diamond Symbol:");
String symbol = getInput();

System.out.println("Vaildating Check wait for 2 sec");
try {
Thread.sleep(2000);
} catch (InterruptedException e) {

e.printStackTrace();
}
if( N>0  && N%2 !=0  && counter >0 && counter%2 == 0 && counter
draw(N, counter, symbol);
}
else{
System.out.println("invalid data");
}



}

}

Aug 4, 2011

How to Unsubscribe from Snap Deal?

If you are getting annoyed with so many snap deal alerts, you can unsubscribe them from your mobile.
For that, please Click Here..

Notes:

  • Please enter your mobile number there and Click Summit Button there, you will be getting a verification pin in your mobile.
  • Please Enter the verification pin and provide the reason for un-subscription, if not you can choose "Others" in the List and provide your reason below
  • Once done, Click "Confirm to Un Subscribe ", you will be getting un-subscription confirmation message in your mobile
Then be happy :) 


Aug 3, 2011

Internet Explorer Users have low IQ

On average, Internet Explorer used were far than worst, where IE6 users were at the bottom. However, IE8 users performed slightly better. Other well known browsers like Firefox, Chrome and Safari were in the middle of the list and had small differences among them. Camino and IE with Chrome Frame were on top along with Opera. These users had the best average score.

In 2006, the same study says that IE was performing well. So this study may not be true.

Study By: AptiQuant, “psychometric consulting” firm

Aug 2, 2011

Can you make out 37 using five 5's

The Solution is very simple..
2^5 =32. To get 2, we can use ((5+5)/5)
So the answer is 

     (5+5)       
[   -------    ] ^ 5  + 5 ==>  2^5 + 5 = 32+ 5 =37
        5

Its quite complex, but by solving this, it will strength your aptitude skills.

Hot Water in WaterBottle

Usually we used to have a water bottle in office desks. We fill water in the morning. On a Monday morning, i found one of my friends bottle in the pantry and he used to drink only hot water. So i washed that bottle with cold water and filled it completely with hot water and carried to his desk. He thanked me for this activity at start. After few minutes, he felt thirsty and he drank  the water from the bottle. Suddenly he spitted the water on the floor and he started scolding me that Water is too hot.
I didn't realize that the water would be so hot. Even his water bottle would be like a flask not a plastic one.


Jul 18, 2011

Education - A Good Business

There's a old statement saying that
"if you were intelligent, you will work under someone,. But, it you were smart, you can give job to someone"

Through Business, you can be your own boss and earn money quickly,provided you are very smart enough".  As per me,education is a very good business . Say if you take Tamilnadu, there are around 502 Engg Colleges are there. All of them are AICTE approved and this count will increase in the nearby future. In a popular college in Chennai, the course fees per annum is Rs25-30 K, but you have to pay an additional of 70 K for the hostel,food and accommodation facilities. This fee is compulsory.
Thats the reason i mentioned Education became a good business. But few questions became doubtful 
1.Will quality and Standard of education will be good ? 
2. Will Education System be re modified?

Visitors please comment your opinions on this

Change Your Mind


Jul 14, 2011

Perl using Eclipse

If you are familiar with Eclipse IDE, you can integrate perl plugin with Eclipse IDE, so it would be useful for you.

Steps:

  • Install Later version of Eclipse in your pc...[Find the latest version from http://www.eclipse.org/downloads/ ]
  • Download the perl plugin [ DownLoad_Plugin]
  • Install the plugin in your pc, in the location where eclipse had been installed
  • Open the Eclipse IDE, then click File -> New -> Project -> Under that chose Perl..
  • Create a project and started working in perl
If you have any clarification in this, comment this post.

Jul 7, 2011

Love Marriage Vs Arrange Marriage

Love Marriage:
In this, a guy will marry his own Girl Friend.

Arrange Marriage:
In this, a guy will marry some other's Girl Friend

Jul 5, 2011

13 Spices Restaurant

Location#898, 80 Feet Peripheral Rd, Koramangala 6 Block, Koramangala, Bengaluru, Karnataka 560034
080 4095 3881 

Ambience  Family,Romantic and Pleasant

Cuisine   Chinese,Continental,Indian

Payment   All major Cards[No American Express]

Time        All Days --11:00 AM - 11:00 PM

Parking   Parking Available

LandMark Opp to Chandni Chowk or Petrol Bunk near Sony World Signal

Review:

Almost every time, we gone for a lunch to 13 Spices, only we would be there in the restaurant. Its a less crowded restaurant. Surprisingly, the food would be damn good among the nearby restaurants available. We ordered Maki's Dal, which was very tasty. The desserts were also good. We liked Lassie and Chocolate Heaven.
Dis-Advantage: Air-Conditioning is not good.
Overall Rating: 3.5/5.0




T-Shirt Quotes

Take Life as it comes

I believe in people, but i don't believe the animal within them.

Life goes on

Love what you do. Do what you Love.

No Girl Friend. No Tension

Do something new, then you can create a magic around you.


Jun 22, 2011

Switching Between Tabs in Eclipse

Many developers find it difficult to switch between the multiple tabs in Eclipse IDE. Here goes the Shortcut.

 Ctrl + Page Up : To switch to previous class/file in Eclipse IDE

Ctrl + Page Down: To switch to next class/file in Eclipse IDE

Ctrl + F6: Will list you all the files that are opened in the editor, so it will be easy for us to switch   between files

Deal of the Day

Every one loves shopping, but its very difficult for the people to search offers of products. Dont waste your precious time in browsing the location and offers in any search Engine. There's one place where you can find all the information about the products and offers in your locality...

Just visit to http://www.snapdeal.com ,and enter your city name, you will get the offers and many more things which are nearby you.
Ex: if you are a Bangalorean, visit http://www.snapdeal.com/deals-Bangalore ...




Jun 18, 2011

Flights in 2050


Aries Woman


She thinks the world is watching her through the eye glasses of rose petal   frame. She thinks people think and talk about her only about good things and often disappoint to know the fact that they are not true and not even real, so she will feel hurt. She thinks her path has to be a beautiful one.  
She thinks only good things so she prepares and always makes Arrangement for her to be in the right path always, quite systematic indeed. If there is no guy in her life, she will be busy with herself. 
This seemingly ordinary woman will push herself to meet her goal. Her face mostly  will be slim and long, high cheek bone, Eye brow slightly curve up, slight tall more than short, thin lips and she will have quite a confusing or mixture  of character. Sometimes, she will be very careful about guy she will mingle with. 
She thinks as if she has a main CPU in her head and she could memorize everything from her childhood. When she faces with problems, she will handle them and solving them very well, and at the same time showing other people that she has that capability. She can put her mind in solving problems in crisis better than many other Zodiacs. Once she determines to do thing, nothing will stop her. 
Woman in this Zodiac could be totally different from one woman to another woman. You could see her in the party dancing like flash dance or dirty dancing; as well you could also see her as an old fashion lady or a geek. She could be someone flashy and wanted by many men, or she could be a cold and non-social person. 
She will have her own way to win you over. Once she chooses you, she will need to be proud of you. "Love" is not as important to her as "Marriage". Her real goal in life is "Safety" and her position in other people sight need to be “Secure". She plans her life, and socially life easily and very carefully. 
She is also very artistic and realistic, so if you are nobody or nothing, no chance because she loves ambition and a good life. She need lots of love, but do not want and do not belief in an occasional or   unconventional love. She is  a proud in nature type, so if you see a woman in this Zodiac come  from a poor family, she will act like a woman from a noble family by birth anyway  (certainly there are always exception).
 She always looks cool even when she is not. She likes to make people see her as "secure and confident” even she is a mixed emotion and mixed character type. If she is mad, you can tell right away and she can stay moody for quite a long time. 
You never have all her times, for she likes to work hard and also spent some spare times working for charity. You will see woman in this zodiac a “Volunteer" for camp, and if she is in a high society, she will most likely be a president or a V.P. of a "Club". She is a romantic and artistic, but being poor and unstable is certainly not in her dreams. 
Her beautiful imaginations need to be realistic, for failure is not in her plan. A Goat always climbs high, so either she start from a low point or a high point, she will make sure at the end she will have the best spot. She will not show her ambition, but she will show that she satisfy with herself now. Once you look back she already moved up again, quietly but sure. If she is your love one, be supportive and understand her. 
She is stubborn, but she will listen. She will act like a gentle fragile person, but in fact she can stick you down like super glue without you knowing it.

Aries Man

He always let other people walk in front of him, but he will get there first. He is a very careful guy and small obstacles won't make him fall easily even he thinks life is a very serious matter. He is as romantic as any other Zodiac. He could look gentle, but inside he is as strong as steel. Once he determines to do something, he is serious about doing it well.
He will keep any pressure or insult deep down inside without showing emotion. You will never see his emotion of burden or disappointment and always wonder what he thinks or feels. He will well keep his feeling.
 You will never see a guy in this Zodiac involving in other people business. He always concern with his own business.
 Sometimes he can be talkative, but he will never give anyone advice if he has not been asked. If you ask for advice, he will certainly give you one. He respects elderly and senior, so you will see he is the type who visits his parents steadily or often. He is a slightly shy but also a stubborn person.
He will find many ways to make you happy when you are with him, till you realize he is the important person for you. Once he is in the "Power Position", he   will use his power gently. He is a good leader and "Gentleness" is one of his effective methods for exploiting his power.
It is although he is borne to be a leader.  He never hides his ambition, and he is a workaholic. He will not take any position that he has no control. He will work very hard to reach his goal and satisfaction. Compliment from his boss or superior are never enough for him, he wants his deserved reward. His deep insecurity makes him reach and collecting valuable things and this you may think he is stingy.
 Actually he could easily spending money to buy things, traveling or pay for things that makes him happy and he think necessary for his need.
He cares what other people think of him and wants to get good comments or compliments. Outside he looks like stone and steel, but inside he is   a fragile person.  He will hide and cover up weak emotion and his sadness in order to maintain and keep up his "Image". One method of cover up you could easily notice is suddenly if he is quiet, cold, or act very strong or much secured.  Often, he feels insecure, even he is serious about his life and his own surrounding.
 This is the man who never hurries to get marry, so hardly sit back and regret about his marriage later. If he gets marry, he need to be very certain and very sure. It will take a long time for such decision, so if you tell him that you are "breaking up”, you better forget him for good because he will never coming back. He always keeps his promise.
 If he said he would meet you in your place in 2 hours then he will be there, unless there is a serious accident or unavoidable things happen. He hates people who are late for date or any appointment. He likes to think woman should be a follower and take care of family and working is a man duty. He does not like to compete with his girlfriend or his wife at work because competition already exists with himself and other people.
 He will be very proud if he can afford and care for his family. Do not try to over power him or insult him, he cannot stand it. He likes to be in control of every things, every situations .He like a "Classy Woman”, if she also comes from a good family then it is a Plus. It will make him feel proud and very ego about her   status. Flashy type of woman, forget it.
 He likes a perfect or a nearly perfect housewife.  He tends to be possessive. He will not tell you if he is mad at you, but will act very moody to show you instead. He likes to hear sweet word and compliment so you can get his interest that way.
 If he   approaches you to ask you out, do not act too stubborn or fooling   around too much. He will get tired and just disappear. He has to   feel confident when he is around you, so knowing this fact you should know what to do, right!
If you want him, you have to make him   feel like he is the most important person for you. He likes a kind   hearted woman, polite and can get along with his family. When he feels sad, do not leave him alone, but be very supportive. Kind words and your smile will win him over, so this strong man will be like a chicken in your palm.

Jun 17, 2011

One Love - Blue Lyrcis


My First Bike


This is my first bike of my life. I bought this few months back. In my college days, i am crazy to buy a pulsar bike, but i couldn't able to get that time but now  i am working, so i bought Apache 180, which's good than a pulsar.
If you have comments, please do it.