Thursday, July 22, 2010

Kids stuff

The eldest
He's 6 years old now. Still does not eat much unless something he really like, such as roti jala, nasi sup, bihun sup, roti cokelat, mm thats about it. He can now read quite smoothly Bahasa but still struggling with English. Way better than I used to be at the same age. Now learning kidsconomics(how to appreciate money), just to make sure he knows how to buy things later when he turns 7 and go to public school. Still an accident prone, still fighting with his sister. And he now knows how to demand. His latest demand is "Pa, nak rumah ada tangga".

more...

Friday, February 12, 2010

Mapping port to pid in solaris

In solaris, how can you tell which process is binding to certain port? Given a limited user privilege, and no lsof available. Please let me know if you have the answer. In the meantime, I have to stick with the script written by Lubos Kosco:

#!/bin/bash

# Get the process which listens on port

# $1 is the port we are looking for

if [ $# -lt 1 ]
then
echo "Please provide a port number parameter for this script"
echo "e.g. $0 22"
exit
fi

echo "Greping for your port, please be patient (CTRL+C breaks) ... "

for i in `ls /proc`
do
pfiles $i | grep AF_INET | grep $1
if [ $? -eq 0 ]
then
echo Is owned by pid $i
fi
done

The original page is here. Thanks Lubos and thanks google.

Thursday, January 28, 2010

Do 5 before 5

I'm blogging today(during lunch time of course), because I'm quite free compared to last week, and weeks before that. By the way, I just received a confirmation letter for my position as System Integrator. Thank God(reads Allah) for that.

Salary - Money paid to an employee for regular work performed that is supposed to reflect the true value of the employee to the company, but more often resembles a bad joke - urban dictionary.

more...

Monday, January 4, 2010

Azam tahun baru

Hidup kurniaan Allah. Akal kurniaan Allah. Kita pikirla sendirik!

Di akhbar baik, tv baik, blog baik, sumenya sibuk membincangkan isu penggunaan nama Allah. Nak membuat ulasan ilmiah tentang isu tersebut, jauh sekali memandangkan terhadnya ilmu di dada, namun kemampuan akal kurnian Allah membuatkan aku gembira membaca ulasan2 ilmiah di internet. Blog2 seperti Khalid Samad, Zulkifli Noordin, Dr Maza, Uztaz Zaharuddin, Ustaz Nasrudin, Faisal Tehrani etc amatlah menyegarkan untuk menghilangkan kehausan ilmu di hati. Walaupun ada yang diikuti oleh komen2 kurang ilmiah, tapi aku anggap benda tu macam habuk2 teh je la. Yang penting, isi kena ada. Kalu tak, nak baca pun malas.

more...