Author: admin

  • Unzip .dz dictionary files

    If you want to uncompress a .dz file, try to search for dictzip (available in Linux & under cygwin for Windows). It will extract the compressed file into a plain-text file for your further manipulation. Usage: dictzip –decompress test.dict.dz

  • Pay-Per-Click Services

    Recently we got a few promotion coupons to try out a few new PPC services from LookSmart, Ask.com and Microsoft’s AdCenter and together with Yahoo! Search Marketing (what a bad name for a product, Overture would be much better) found that none has the same level of sophistication or put enough thought into designing a…

  • Javascript regular expression in Opera

    The following Javascript code works in Firefox & Internet Explorer but not in Opera. Different browsers interpret Javascript code differently. $pTxt = $pTxt.replace(/(.|\n)+/g,”); This code works in all three. $pTxt = $pTxt.replace(/[\s\S]+/g,”);

  • Getting spammed

    Getting quite a few spam into our support ticket system. Many with email address ***@cashette.com, guess someone is getting paid to submit spam to everything they can (ticket systems, guestbooks, blogs). These guys also use open proxies, those that might not send spam (so the block lists are not reporting them) but allow submission of…

  • Setting up swap

    # set up 512MB swap file dd if=/dev/zero of=/swapfile bs=1024k count=512 mkswap /swapfile swapon /swapfile # enable it at boot time, edit /etc/fstab to include: /swapfile swap swap defaults 0 0

  • scp – Copy files to another server in SSH

    Say you need to replicate a huge MySQL database to another machine and dumping and import the database might take hours, copy the binary files (/var/lib/mysql/DB_NAME) might be a quicker method. To do that, we can use scp: s1# scp -P SSH_PORT /var/lib/mysql/DB_NAME/ user@s2:/var/lib/mysql/DB_NAME/ You would also need to chmod (644) & chown (mysql:mysql) the…

  • California Tax Cheats

    Examples of abusive tax shelter schemes identified: Basis Shifting: This tax scheme uses foreign corporations (in tax haven countries) and instruments to artificially increase and shift the basis of foreign shareholder stock (not subject to U.S. taxation) to stock owned by U.S. shareholders. By applying tax laws in a manner inconsistent with legislative intent, U.S.…

  • Remote kernel upgrade

    If for some/many reasons after a kernel upgrade, the system does not reboot. Some hosting control panels can reboot the server into rescue mode. In this mode, you can edit the lilo.conf to go back to the previous working kernel. Make sure you backup the file first. # check for available partitions fdisk -l #…

  • powercfg – Save power when using battery

    A not-very-popular tool to adjust power configurations in command mode. Run “powercfg /?” C:\Documents and Settings\mathie>powercfg /? POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name | /SETACTIVE name | /CHANGE name settings | /HIBERNATE {ON|OFF} | /EXPORT name [/FILE filename] | /IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag | /BATTERYALARM…

  • Breaking up a big file into small ones w/ rar

    rar a -m0 -v800m file.rar file.big