Monday, June 23, 2008

replacement in Vi

:%s/replaceme/withthis/

:)

Thursday, June 19, 2008

command find word on Freebsd

find / -type f -exec grep -H 'words' {}\;

Saturday, October 27, 2007

Opensource Code

hi..

you can get more source code of any related .php .html CMS at ;-

sourceforge.net
www.freeprogrammingresources.com
www.planet-source-code.com

and many more ...

Wednesday, October 3, 2007

Mysql on FreeBSD

Don't panic ...

# cd /usr/port/mysql51-server
# make install clean


# /usr/local/bin/mysql_install_db
# chown -R mysql:mysql mysql
# /usr/local/bin/mysqld_safe -u root &
# /usr/local/bin/mysql

Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 239 to server version: 5.1.6-alpha
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

... done

Monday, September 17, 2007

Using tar command

tar -cf file.tar /directory (for TAR)
tar -jcvf file.tar.bzip2 /directory (for BZIP2)
tar -zcvf file.tar.gz /directory (for tar.gz)
tar cf - target | gzip -c > target.tgz (for TGZ)

MSN Messenger port

MSN Messenger

1. MSN Messenger UDP Port 1863
2. MSN Messenger UDP Port 5190
3. MSN Messenger_File_Transfer TCP Port 6891-6900
4. MSN Messenger Voice UDP Port 6901
5. MSNP TCP Port 1863

Win XP defrag setting

A great new feature in Microsoft Windows XP is the ability to do a boot defragment. This places all boot files next to each other on the disk to allow for faster booting. By default this option is enabled but on some builds it is not enabled. Below, you will find information on how to Enable/Disable this feature:

Go to Start>> Run>> Type in: regedit

1. Drill down to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
2. Single click on BootOptimizeFunction to empty its contents into the right pane.
3. Right click "Enable" from the list in the right pane.
4. Select Modify from the resulting menu.
5. Change the value to Y to enable and N to disable.

Reboot your computer for the change to take effect