Friday, April 24, 2009

MEMO NO. 20090422-0319(U)

RE: MEMO NO. 20090422-0319(U) 
Performance Management System - Awareness Session

Dear All,
As you all are aware, employee performance management is one of the most important HR interventions in any organization. As part of strategic initiatives to enhance the organizations and people performance, the management has identified the need to improve our existing staff performance assessment with a comprehensive Performance Management System (PMS).

Thus, we have organize an awareness session to equipped all of you with the necessary information on the whole PMS process. This awareness session will be conducted only on a few day every month. While PMS process can be a little bit frustrating, we will handling it with great care as not to provokes unnecessary anger because it is well known that insensitive to PMS produces extremely sensitive mood swing among some employee.

Lastly, do take note that attendance is COMPULSORY to all. Kindly confirm your attendance to me.

Signed,
HR underling

Wednesday, April 22, 2009

Marahkan peti besi, sekolah dibaka

Orang dulu-dulu ada peribahasa yang berbunyi "marahkan nyamuk,kelabu dibakar"
Tapi untuk zaman celik IT apa klass bakar kelambu. Entah-entah rupa kelambu pun tak kenal. Sekarang peribahasa tu sukar tukarlah. Dah jadi "marahkan peti besi, sekolah dibakar".


Tuesday, April 14, 2009

Top 10 things to say when you get caught sleeping at work

10. I just donate blood.
9.  This is just 5 minutes rejunavate nap.
8.  I'am waiting for Nessus to finish scanning.
7.  I'm just testing our newly installed virtual machine. 
6.  Don't question me! I have anger management issue!
5.  This work is so easy that I can do it even with my eye close.
4.  At least i didn't waste bandwidth play networked games.
3.  Lucky your are here I think I had fainted.
2.  I was hiding from the auditor, he is looking for you too.

And No 1 thing to say when you get caught sleeping at work
Raise your head slowly and put your plam out and said "Aaa...minnn"

Friday, April 3, 2009

IP Address 2 IP number

This conversion is very usefull when we want to found out where the IP address is coming from.
$iprange_lowerbound > $ip_num < $iprange_upperbound

Here is ways to convert IP address to IP number

use Socket;
$ip = "10.1.1.1";
chomp($ip);
my $ip_num = ip2long($ip);

sub ip2long {
        return sprintf("%u",unpack("l*", pack("l*", unpack("N*", inet_aton(shift)))));
}

And here is another way to do it, a simpler version without using external library

$ip = "10.1.1.1";
my @ipp = split (/\./,$ip);
$ip_num = $ipp[0]*256*256*256+$ipp[1]*256*256+$ipp[2]*256+$ipp[3];

So how do you convert back IP number to IP address?