Leave a Message To Me

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Friday, May 28, 2010

Read from, and Write to, files in Java

import java.io.*;

public class test {
   public static void main (String [] args){
// Stream to write file
FileOutputStream fout;
   // Stream to read file
FileInputStream fin;
try
{
   // Open an output stream
   fout = new FileOutputStreama ("myfile.txt");

   // Print a line of text
   new PrintStream(fout).println ("hello world!");
                     // then read from the file
   fin = new FileInputStream ("myfile.txt");
   System.out.println( new DataInputStream(fin).readLine() );
}
// Catches any error conditions
catch (IOException e)
{
System.err.println ("Unable to write/read to file");
System.exit(-1);
}  

  }
}

Java Programming : static calling non-static



public class staticClass {
public static int fac(int n){
if (n <= 0)
return 1;
else
return n * fac(n -1);
}
public static void main (String [] args){
System.out.println("Factorial Valu : "+fac(3));
}
}
-----------------------------------------------
public class NonStatic {
public int fac(int n){  
if (n <= 0)
return 1;  
else  
return n * fac(n -1);  
}  
public static void main (String [] args){ 
NonStatic val = new NonStatic (); // create an object to class NonStatic to call the non static method  
System.out.println("Factorial Valu : "+val.fac(3));  
}  
}






Thursday, May 20, 2010

The Power Of Paint

I was surfing the net and I came across this interesting quote by Roman philosopher Plautus: “A woman without paint is like food without salt”. Actually it is kind true.

I am without a doubt against relating beauty to looks alone, but I do believe in the power of makeup, and have to admit that makeup -”paint”- does work its magic on making a very average woman looks like a hot movie star.

Most of us ,men, are attracted to “painted” women, we don’t care what’s underneath all those layers of colors, as long as she looks “hot”. We love it this way.

And that’s why I said that Plautus got it right, I find this quote really interesting, mind-provoking, and funny in a way.

Will you eat it


Famous Lies In a Man's World

1. Of course, this dress looks great you
2. Leave it , I can fix it
3. I was not looking at her
4. Every thing is going well
5. I was going to call you
6. I do not want to talk about it unless you want to
7. I am always the best
8. I do not have relations with women other than the two or three from school days
9. Ofcourse,I will never lie to you

The best and most Lies are the first five for me. Whether we like it or not, many of which are true and they apply to most of us, men. It is almost certain that we lied  one of these lies at some point in our lives.

A Comparison of Sorting Algorithms

 I have been heavily working on sorting lately. so I thought I should post some of the running time of these sorting algorithms

Sunday, May 16, 2010

One part of my personality


This feeling was bothering me for years. it is a mixed of rush and stress together.  Everyday, I just feel like I have to get as much done as possible and I start panicking about how there's just not enough hours in the day. It's very hard to explain this, so bear with me.

I feel like whenever I do something, I have to do it as fast as I can. For example, if I type, I have to type as fast as I can. If I'm reading a novel, I have to read it as fast as I can so that I can get on to the next novel.

When there is something going on in my mind , this feeling becomes stronger, and I usually end up making unreasonable decision. I might even start talking less casual.(lol)   

This feeling of rush rush rush was very uncomfortable and at the end of the day I might only get 1 thing done.

 However, being more "experienced" man , I started to realize that I needed to slow things down. Not just to get things done, but to enjoy them while I am working on them. This reminds me of my father when he was teaching how to drive. He used to tell me drive slowly to arrive early.

I realized that I was involved in my task rather than enjoying it. I didnt notice the environment around me. I didnt really "look" at anythings, just skimmed over them.

I decided to spent more time on me. I was so stressed at work and University that I forgot I have a life, so I took some time to do the things I enjoy. I made a point to tell myself to slow down and do it well, so I can reap the benefits afterward.

Anyway, I made a point to look around me, notice the colour of the things around me, the texture and feel of things, and now the more I do it, the more i enjoy it, and the less I need to think about it.




Tuesday, May 11, 2010

I think it is true,, somehow

Sunday, May 9, 2010

Conversations
Nothing beats a conversation with a good friend(s). it is a social skill that is not difficult for me to apply. Having a good conversation, for me , is the ideal form of communication in some respects. It allows me to state my opinions about different topics and listen to what my friends think about these topics to learn from each other. A successful conversation includes mutually interesting connections between me and my good friends.

Simply a meaningful conversation makes me feel intellectual, funny without being mindless, and be able to touch/feel my soul back again. It makes feel relaxed.

Monday, May 3, 2010


Network Marketing Do's and Don'ts


Why did you become a network marketer? Most people immediately respond, “for the money!” However, this is not the real reason.

No one subjects them to the hard work of building a business just for little pieces of paper with the faces of dead presidents. The truth is you work in order to obtain what those little pieces of paper can bring you.

The first thing you need to do is to find the reason WHY you are a network marketer. Is it the freedom to choose whatever you want to do whenever you want to do it? Maybe you are looking for a different lifestyle. If there is one thing that is critical to your network marketing success, this is it. If you don’t have a reason, there is no motivation to succeed.

A network marketing business is a teaching and coaching business. If you don’t like interaction with other people, a network marketing business probably is not for you. There’s a concept that most network marketers just can’t seem to get a handle on. You do not sponsor “reps,” you sponsor “people!”

If you have to find a reason why you are building your business, then doesn’t it stand to reason that other people will have to do the same thing? If that’s the case, then why is it that network marketers continually focus on how much money your prospect can earn?

Sunday, May 2, 2010

Engineer!!



Got It Or You Don't








Saturday, May 1, 2010



Did you know?         

  • The Canadian Tulip Festival is the largest tulip festival in the world. 
  • The first video game was invented by Willy Higginbotham
  • Earth’s distance from the sun varies between 91.4 million miles – in January – and 94.4 million miles – in July.
  • Our sun is one of billions in the entire universe
  • -90% of bird species are monogamous, as are 10% of mammals
  • The dollar symbol ($) is a U combined with an S (U.S.)
  • The three largest land-owners in England are the Queen, the Church of England and Trinity College, Cambridge.
  •  Madrid is the only European capital city not situated on a river.
  • Cats have over one hundred vocal sounds, while dogs only have about te
  • The word "Checkmate" in chess comes from the Persian phrase "Shah Mat", which means "the king is dead"
  • Libya has the only flag which is all one color with no writing or decoration on it
  • On Sesame Street, Bert's goldfish were named Lyle and Talbot, presumably after the actor Lyle Talbot.
  • South Africa is the only country with three official capitals: Pretoria, Cape Town, and Bloemfontein

Ottawa Tulip Festival

More than one million tulips bloom from Commissioners Park at Dow’s Lake along Queen Elizabeth Drive to Parliament Hill and across the Ottawa River in Mackenzie King Estates in Gatineau Park, Quebec. This has been a part of the Canadian heritage and bond with the Netherlands originating in the gift of tulips to the people of Canada by the Dutch Royal Family following the liberation of Europe in the Second World War.
                                                      






                                                                        Photo by Cesar Eli Barboza


The 2010 Special 65th anniversary Liberation edition of the Canadian Tulip Festival is a proud commemorative celebration of the role of Canadian troops in the liberation of the Netherlands.  The Festival also celebrates the 100th anniversary of the Canadian Navy!


An estimated one million tulips bloom in Ottawa in the month of May. The best way to see some of the most spectacular displays is to follow the Tulip Route. It extends from Major’s Hill Park on the edge of the ByWard Market downtown to Commissioners Park on the shore of Dow’s Lake, where some 300,000 blossoms are on display.



When: Anytime
Cost: No charge
Tip: Festival activities take place in Commissioners Park May 7-24.                                
Tulip Festival shuttle travels the Tulip Route between Commissioners Park and Major’s Hill Park May 14-24