20080725

Diriwayatkan dari Abu Hurairah r.a., ia berkata: Rasulullah bersabda:“Wanita dinikahi karena empat perkara; karena hartanya, karena kedudukannya/ keturunannya, karena kecantikannya dan keranan agamanya. Maka, pilihlah yang baik agamanya niscaya engkau beruntung.” (Diriwayatkan oleh al-Bukhari (3/242), Muslim (2/1086), Abu Dawud (2047), an—Nasaa’i (6/6 8) dan Ibnu Majah (1858))

20080720

Failed to enable the 'httpready' Accept Filter

[bambino@bambino ~]$ sudo apachectl start
[Mon Jul 21 14:42:39 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[bambino@bambino ~]$ sudo kldload accf_http
[bambino@bambino ~]$ sudo apachectl restart
[bambino@bambino ~]$

After 7 years of no telephone line...

FUCK Telekom.

20080719

streamyx settings for ADSL wireless router

  1. enter correct username and password
  2. vpi : 0 (zaro or 8 if you want)
  3. vci : 35

using command line mail

Simply mail to recipient,

$ mail RECIPIENT

Enter subject, press enter, and type mail content. Ctrl + D to finish.

To include content from a text file, for example, msg.txt, simply enter ~r ./msg.txt at the first line of the mail content.

$ mail RECIPIENT -c CCPERSON

To list mail headers in inbox

$ mail -H

To list mail saved msg headers in mailbox (~/mbox)

$ mail -F

Inside mail console (don't really know what to call exactly), you can use h to list again mail headers, and enter any number to read specific mail.

RCS | Revision Control System

For first time:
  1. mkdir RCS (ignore if folder already exists)
  2. rlog example.conf
  3. if rlog returns no file or dir, check in the file and enter description:
    ci -u example.conf
  4. if rlog returns information, check out the file to edit: 
    co -l example.conf
  5. if it's not locked, you may edit the file with your favorite editor and save it.
  6. check in the file and write a log:
    ci -u example.conf
  7. you may check the information using rlog again.

Please make sure you understand before doing it. Google for RCS.

20080718

Set mysql root password

To set password for the first time:
$ mysqladmin -u root password NEWPASSWORD


To change password:
$ mysqladmin -u root -p OLDPASSWORD NEWPASSWORD


To login with password:
$ mysql -u root -p PASSWORD


To change password mysql sql command:
mysql> use mysql;
mysql> update user set password=OLDPASSWORD("NEWPASSWORD") where User='USERNAME';
mysql> flush privileges;
mysql> quit

20080716

Unresponsive Dock and Finder

I can't access Dock just now. No respond. And I'm unable to go through Finder too, so I can't get a touch on Terminal. I forced quit some applications, but there's only TextEdit which I left because there's work which wasn't saved yet. Then how do I rescue this without force quitting the TextEdit which I'm not even sure if it is the cause of all this? But I'm pretty sure that it was about the hung Dock. I really wanted to avoid logging out or reboot.

But user fast switch is enabled. I logged in as administrator and used terminal to kill other's Dock process.

PS=`ps aux | awk '{if($1="amanyus") print}' | grep -i dock`; kill $PS

PS is temporary shell variable to hold a value. This value is coming from a ps command after few filtering with awk and grep. Awk only print lines that match the first column with user amanyus, which result in all amanyus' processes. Next with grep, only match insensitive case dock rather that all processes under user amanyus because we only want to find Dock process and put in the PS variable. Up to this point, PS variable will hold the process number of amanyus' Dock. After the semicolon, the process will be killed.

Silly is you just can simply use ps aux | grep amanyus | grep Dock and kill the Dock's process without bothering with awk command =p

p/s: Hey, I forgot about spotlight at the first time to search Terminal, but not sure if it would work.