Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Post

olderman

Dapat daripada email yang diforward

George Phillips , an elderly man, from Meridian , Mississippi , was going up to bed, when his wife told him that he’d left the light on in the garden shed, which she could see from the bedroom window. George opened the back door to go turn off the light, but saw that there were people in the shed stealing things.

He phoned the police, who asked “Is someone in your house?”
He said “No,” but some people are breaking into my garden shed and stealing from me.

Then the police dispatcher said “All patrols are busy. You should lock your doors and an officer will be along when one is available.”

George said, “Okay.”

He hung up the phone and counted to 30. Then he phoned the police again.

“Hello, I just called you a few seconds ago because there were people stealing things from my shed. Well, you don’t have to worry about them now because I just shot them.” and he hung up.

Within five minutes, six Police Cars, a SWAT Team, a Helicopter, two Fire Trucks, a Paramedic, and an Ambulance showed up at the Phillips’residence, and caught the burglars red-handed.

One of the Policemen said to George , “I thought you said that you’d shot them!”

George said, “I thought you said there was nobody available!”

Post

Tahu Takpe

Assalamualaikum!!..  tak jawab dose… hahahah

Korang mungkin terkejut kalau aku cakap, di malaysia ni, masih ada kaum muda yang berumur 20-an masih tidak tahu menggunakan ATM untuk mengeluarkan wang di mesin ATM. percaya atau tidak? itu hak korang nak percaya ke tak. tapi itu lah hakikat sebenar.

kurang lebih pukul 8.45 tadi aku gi ATM UDM, beratur lebih kurang 2 orang. ade sorang brother tu pas masukkan kad, dia duk termenung 2 minit, tiap kali tekan papan nombor kat atm tu dia termenung lagi 2 minit (i’m not peeping k!!).  So aku pun pelik. Sambil mata duk asyik tengok jam, sebab masa bagi aku buat masa 24hari ni amat genting. nanti nak gi ITAC lagi so sebab ni the 1st and the last aku pergi program ITAC (yaaa.. sepanjang aku duk UMT tak pernah pergi) so aku dengan rendah dirinya menerima pelawaan untuk kali terakhir ni.

sambung balik hal brother tadi, so aku pun dengan rasa waswas. ATM machine ni lag ke? connection error ke? atau kad die terlekat ke? ye lah. brother tu duk depan ATM tu duk termenung. adula…  berat kes ni. so aku pun mengintai2 la sikit (untuk sebab munasabah). so 1st masuk kad. aku tengok dia termenung bila sampai kat menu utama. then dia mintak baki akaun. setiap kali nak tekan dia akan berfikir dulu satu minit. then pas dah dapat baki akaun. dia tekan cancel then kad pun keluar. Aku baru nak bukak langkah, rupa-rupanya belum siap lagi.. hahahaha dia cucuk lagi kadnye. adula.. padahal ATM BIMB tu dia ada fungsi tengok baki then terus boleh ke proses lain.

so aku pun tunggu lagi, depan aku ada jugak lagi sorang brother. so aku orang yang ketiga. kali ke 2 dia masukkan kad, dia termenung lagi bila tengok menu. then aku tengok dia tekan bahagian pinjaman wang. erk. 1st time tengok orang gi kat menu tu. aku sendiri tak pernah pergi. so bior kan. dalam hati aku dah kata “abg ni tak pandai guna atm ni”. then dia tekan cancel.

Untuk kali ke 3 dia masukkan kad, kali ni dia mula bersuara. bertanya kepada abg depan aku ni. “bang, nak ambik duit kene tekan mana satu ye?”. aku dah agak dah!!!!!… sblm soalan tu dia habis utarakan, aku terus cakap. bro!.. lu tekan kat pengeluaran wang lah bro!!. Alhamdulilah berjaya juga brother tu mengeluarkan wang. hahaha

habis kesah di mesin ATM, kesah ke dua, bom kereta. ya bom kereta. aku nampak 2 orang brother ni tengah mengusahakan nak buat bom kreta. sebab ape aku cakap camtu? dierorg isi bertong-tong minyak petrol kat petrol station dan isikan dalam kete viva… adula.. kalau lah takde rezeki dierorg sampai rumah dengan minyak bertong2 tu ade percikan api ke, pak mat buncit tersilap baling puting rokok ke. takde semene-mene nya meletup. kirenye kete tu dah jadi lori minyak bergerak lah.

so aku pun pas isi minyak tadi, terus snap pic, tapi cover lah bro.. kan tak pepasal.. aku kene hentam.. hahah..

Post

sending mail using jsp

setelah seharian suntuk buat test itu ini. akhirnya berjaya aku buat automatic mailing script untuk email kepada user menggunakan jsp. walaupun banyak kena lakukan tapi pas berjaya tu puas hati.

so step-step nye

1st download javamail dan juga java activation framework

2nd. korang extract dan korang copy paste ke dalam folder JAVA dalam program file

3rd buat CLASSPATH kat environment windows korang kalau tak reti camne ikut tutorial dari java api sendiri

then seterusnya, ni part yang aku pening skit. aku guna jcreator, so tak dapat nak compile sebab ada error sebab jcreator tak jumpa library mende alah ni. so caranya kembali ke zaman tok kaduk balik iaitu setiap kali korang nak compile. sila gunakan command prompt…. ya command promt

so ni script yang aku berjaya test and berjaya. aku gunakan server smtp aku sendiri so korang yang takde server tu korang bleh gunakan gmail. tapi caranya berlainan. sila sutdy faq javamail

import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import java.io.UnsupportedEncodingException;
public class mail {
public static void main (String args[]) {
String host = “smtp server korang”;
String from = “email korang
String to = “nak bagi kat sapa email ni”;
try {
// Get system properties
Properties props = System.getProperties();
// Setup mail server
Authenticator auth = new PopupAuthenticator();
props.put(“mail.smtp.auth”, “true”);
props.put(“mail.smtp.host”, host);
props.put(“mail.smtp.port”,”26″); //sila tukar port smtp server korang
//props.put(“mail.smtp.starttls.enable”,”true”);
// Get session
Session session = Session.getInstance(props, auth);
//session.setDebug(true);
// Define message
MimeMessage message = new MimeMessage(session);
// Set the from address
message.setFrom(new InternetAddress(from,”FromName”));
// Set the to address
message.addRecipient(Message.RecipientType.TO,new InternetAddress(to,”ToName”));
// Set the subject
message.setSubject(“Hello JavaMail”);
// Set the content
message.setText(“Welcome to JavaMail”);
//System.out.println(“OK Man”);
// Send message
Transport.send(message);
System.out.println(“OK Man”);
}
catch (MessagingException e) {e.toString();}
catch (UnsupportedEncodingException e) {e.toString();}
}
static class PopupAuthenticator extends Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(“username korang”, “tpassword korang”);
}
}
}