windows 2000 – command line (cmd) command auto completion

By default, windows 2k server does not activate this function. Do this to activate it :

  • start regedit
  • goto HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor
  • change the keyword “CompletionChar” from 64 to 9
  • close all command line window and start and new window

Voila!

bash – dealing with backtics ” ` ” in mysql statement

problem :

using backticks in bash for mysql statements. e.g. :

mysql -u username -h host -e “GRANT SELECT, LOCK TABLES ON `somedatabase`.* TO ‘someuser’@'somehost’;” -p<password with no space after parameter>

would get an error :

./scriptname: line 5: somedatabase: command not found

solution :

escape () the backticks ” ` ” surround “somedatabase”

mysql -u username -h host -e “GRANT SELECT, LOCK TABLES ON `somedatabase`.* TO ‘someuser’@'somehost’;” -p<password with no space after parameter>

vim – error when starting

problem :

For some reason, starting up vim pops up an error at the bottom :

E575: viminfo: Illegal starting char in line: d^^F
Press ENTER or type command to continue

solution :

delete the contents in ~/.viminfo

Voila !!!

Firefox 3 – “force” your add on compatible with it

  • On the url bar, type “about:config”
  • Right click on any of the empty space, click new –> boolean
  • In the box, preference name –> extensions.checkCompatibility
  • specified the value –> false

restart firefox and Voila !!!

mount hfsplus (mac os file system) under Debian linux

Have an external hard disk with hfsplus or hfs+ partition on it? This is how you can mount it under linux (specifically, Debian) :

in os x :

  • disable journaling in the partition/external hdd in disk utility or use run the command “diskutil disableJournal /dev/disk1s1″ in terminal.

in linux :

  • apt-get install hfs*
  • mount -t hfsplus -o rw /dev/sdb1 /mnt/extdisk

Voila !!!