Tuesday, November 28, 2006

Character Of a Happy Life


Character of a Happy Life
HOW happy is he born and taught
That serveth not another's will;
Whose armour is his honest thought
And simple truth his utmost skill;


Whose passions not his masters are;
Whose soul is still prepared for death,
Not tied unto the world with care
Of public fame, or private breath;

Who envies none that chance doth raise,
Or vice; who never understood
How deepest wounds are given by praise,
Nor rules of state, but rules of good;

Who hath his life from rumours freed,
Whose conscience is his strong retreat;
Whose state can neither flatterers feed,
Nor ruin make accusers great;

Who God doth late and early pray
More of His grace than gifts to lend;
And entertains the harmless day
With a well-chosen book or friend;

This man is freed from servile bands
Of hope to rise, or fear to fall;
Lord of himself, though not of lands;
And having nothing, yet hath all.

Sir Henry Wotton

A Simple Midiplayer

Google Search






// A Simple Midi Player

import java.io.*;
import javax.sound.midi.*;

public class PlayMidi {
public static void main (String[] args) {
PlayMidi mini = new PlayMidi();
mini.play();
}

public void play() {
try
{
Sequencer player = MidiSystem.getSequencer(true);
// provide midi filename or path between double quotes
File midifile= new File("filename.mid");
Sequence seq=MidiSystem.getSequence( midifile));
player.setSequence(seq);
player.open();
player.start();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
}

Monday, February 06, 2006

Friendss_quotes




"The most I can do for my friend is simply to be his friend. I have no
wealth to bestow on him. If he knows that I am happy in loving him, he
will want no other reward. Is not friendship divine in this?"
---Henry David Thoreau

"The glory of friendship is not the outstretched hand, nor the kindly
smile nor the joy of companionship; it is the spiritual inspiration
that comes to one when he discovers that someone else believes in him
and is williing to trust him." -"The first general rule for friendship is to be a friend, to be open,natural, interested; the second rule is to take time for friendship. Friendship, after all, is what life is finally about."
---Nels J.S. Ferre --Ralph Waldo Emerson

"How far you go in life depends on your being tender with the young,
compassionate with the aged, sympathetic with the striving, and
tolerant of the weak and strong. Because someday in your life you will
have been all of these."
---George Washington Carver

"I do swear that I'll always be there. I'd give anything and
everything, and I will always care. Through weakness and strength,
happiness and sorrow, for better, for worse, I will love you with every
beat of my heart."
---Shania Twain, "From This Moment On

"The next time you see someone you think is a loser, reserve criticism and save your harsh words. Instead, offer up some encouragement. You never know, you may just turn someone's life around."
---Lisa Cartwright
"The most I can do for my friend is simply to be his friend. I have no
wealth to bestow on him. If he knows that I am happy in loving him, he
will want no other reward. Is not friendship divine in this?"
---Henry David Thoreau

"The glory of friendship is not the outstretched hand, nor the kindly
smile nor the joy of companionship; it is the spiritual inspiration
that comes to one when he discovers that someone else believes in him
and is williing to trust him." -"The first general rule for friendship is to be a friend, to be open,natural, interested; the second rule is to take time for friendship. Friendship, after all, is what life is finally about."
---Nels J.S. Ferre --Ralph Waldo Emerson

"How far you go in life depends on your being tender with the young,
compassionate with the aged, sympathetic with the striving, and
tolerant of the weak and strong. Because someday in your life you will
have been all of these."
---George Washington Carver

"I do swear that I'll always be there. I'd give anything and
everything, and I will always care. Through weakness and strength,
happiness and sorrow, for better, for worse, I will love you with every
beat of my heart."
---Shania Twain, "From This Moment On

"The next time you see someone you think is a loser, reserve criticism and save your harsh words. Instead, offer up some encouragement. You never know, you may just turn someone's life around."
---Lisa Cartwright