Jul 12, 2010

first day java program..

class VolcanoRobot {
String status;
int speed;
float temperature;
void checkTemperature() {
if (temperature > 660){
status = "returning home";
speed = 5;
}
}
void showAttributes() {
System.out.println("Status: " + status);
System.out.println("Speed: " + speed);
System.out.println("Temperature: " + temperature);
}
public static void main(String[] arguments) {
VolcanoRobot dante = new VolcanoRobot ();
dante.status = "exploring";
dante.speed = 2;
dante.temperature = 510;
dante.showAttributes();
System.out.println("Increasin speed to 3.");
dante.speed = 3;
dante.showAttributes();
System.out.println("Changing temperature to 670.");
dante.temperature = 670;
dante.showAttributes();
System.out.println("Checking the temperature.");
dante.checkTemperature();
dante.showAttributes();
}
}

Jul 11, 2010

let hear how our pc talk...

ကုိယ္ႀကိဳက္တဲ့ စားသားထည့္ၿပီး ကြန္ပ်ဴတာကို စကားေျပာခိုင္းမယ္ဗ်ာ..
ဘယ္လိုေပးေျပာမလဲ? ဒီေအာက္က အတိုင္းလုပ္ၾကည့္ပါ..

Notepad ကိုဖြင့္ပါ.ၿပီးရင္ ဒီေအာက္က code ကို copy ယူၿပီး notepad မွာ
paste ထည့္လိုက္ပါ..

Do
Dim msg, sapi
msg="1437 = I Love You"
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
loop

ၿပီးရင္ Talker.vbs လိုနာမည္ေပးၿပီး Save လိုက္ပါ..
ေနာက္ ကိုယ္ save ထားတဲ့Talker.vbs ကို ဖြင့္လိုက္ပါ..1437 = I Love You ဆိုၿပီး ထပ္ခါထပ္ခါ
ေျပာလာပါလိမ့္မယ္..အနီေရာင္နဲ႔ ျပထားတဲ့စာသားကိုကုိယ္ႀကိဳက္တဲ့ စားသားနဲ႔ေျပာင္းလို.ရပါတယ္..

စကားေျပာတာကိုရပ္ခ်င္ရင္ CTRL + ALT + DEL >>ကိုနိုပ္ၿပီး task manager ကိုဖြင့္လိုက္ပါ..ေနာက္ Processes TAB ထဲကိုဝင္ၿပီး wbscript.exe ကို႐ွာပါ ..
ေတြ႔ၿပီဆိုရင္ သူ႔ကို Select ၿပီး End Process ကိုနိုပ္လိုက္႐ုံပါပဲ..အဲဒါပါပဲခင္ဗ်ာ.. :) ။

Installing JDK

Jan 3, 2010

Advanced tech phone

Just Spin Your phone to recharge

So far, most of the alternative-power cell phone concepts we’ve seen have been solar powered. But kinetic energy is a great clean source of power, so why not recharge your cell phone by fidgeting? The Rotel Mechanical Mobile concept by Mikhail Stawsky let you do just that.

Either spin it around on your finger or twist the base around and around, depending on the model. Either way, your phone’s battery gets topped up without the use of a chemical battery, solar power or even wind power. And if you’re prone to fidgeting with your phone anyway, you won’t even mind the tiny bit of work it takes.

The phone itself looks great, with a minimalistic design and full touch screen. The clock on the edge is a nice touch and would let you easily check the time without pulling the whole phone out of your purse or pocket. We love the idea of using people power to charge gadgets; that way, no matter where you are you’ll never have to be without your tech addiction.
click here to read the original sources

Catholic coffee

Four Catholic men and a Catholic woman were having coffee.

The first Catholic man tells his friends, "My son is a priest, when he walks into a room, everyone calls him 'Father'."

The second Catholic man chirps, "My son is a Bishop. When he walks into a room people call him 'Your Grace'."

The third Catholic gent says, "My son is a Cardinal. When he enters a room everyone says 'Your Eminence'."

The fourth Catholic man then says, "My son is the Pope. When he walks into a room people call him 'Your Holiness'."

Since the lone Catholic woman was sipping her coffee in silence, the four men give her a subtle, "Well....?"

She proudly replies, "I have a daughter, slim, tall, 38D breast, 24" waist and 34" hips. When she walks into a room,
people say, "Oh My God."

Jan 2, 2010

Invictus – Poem

OUT of the night that covers me,
Black as the Pit from pole to pole,
I thank whatever gods may be
For my unconquerable soul.

In the fell clutch of circumstance
I have not winced nor cried aloud.
Under the bludgeonings of chance
My head is bloody, but unbowed.

Beyond this place of wrath and tears
Looms but the Horror of the shade,
And yet the menace of the years
Finds and shall find me unafraid.

It matters not how strait the gate,
How charged with punishments the scroll
I am the master of my fate:
I am the captain of my soul.