Category: Uncategorized

  • Google AdSense expands into ad serving

    Just notice a few site that serves 3rd party ads through Google AdSense. With the acquisition of DoubleClick and its general direction, there is no doubt that Google will expand into the generic ad serving business. Searching for “gampad” yields no related result. I guess it’s still in beta testing. http://partner.googleadservices.com/gampad/google_ads.js

  • Ubuntu Feisty (7.04) & D-Link DWL 122

    Cannot get WPA to work. The driver comes with linux-wlan-ng does not support WPA and only show WEP

  • Custom 404 page & IE quirk

    If the 404 Not Found custom page is empty or has less than 512 characters (any characters), IE will returns its default error page. If it’s more than a limit, the custom page will be used. This does not happen in Firefox or Opera. Also different HTTP error codes have different limits. Here are some:…

  • Windows Vista hangs randomly

    It really sucks, I wish I ordered the Dell E521 with Windows XP or Ubuntu Linux instead. It’s probably not too late since I’ll setup dual boot with Ubuntu now. Among that, Vista has a lot of problem with counter-intuitive interface, compatibility issue with hardware. When I started to download a file, it freezes (saw…

  • Custom error pages in lighttpd

    Have this in your lighttpd.conf server.errorfile-prefix = “/home/errorpages/” Create this folder, create the files 404.html, 500.html, 403.html, etc. and lighttpd will deliver these file instead of the default message. The response header code is also correct.

  • scp – Secure copy speed tuning

    We regularly have to transfer files between servers at high speed and got this problem when a single server is slower than the rest and they reside in 2 DCs next to each other. All other servers got around 500KB/sec, this one only got 170KB/sec. With some research, it turns out that using different options…

  • Apache 2 vs 2.2

    Apache 2.2 Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all Apache 2 Options FollowSymLinks AllowOverride All Apache 2.2 is very restrictive by default, which is good for security and production server but for development purpose and since it’s a new change, it took us hours to figure out why Apache failed and…

  • Javascript link submit in IE6

    The problem only occurred if you use Internet Explorer 6 or older. Using href=”javascript:;” and onclick=”some function” will ignore onclick in IE6 (does not happen w/ Firefox). Solution: simply use “javascript:some function;”

  • Delete small files

    Delete small files less than 100Kbytes: “find -size -100k | xargs rm” or find -size -100k -exec rm “{}” “;”

  • smartctl for ATA drives

    If you get this error that device is not supported by running the default command [root@s4 downloads]# smartctl -a /dev/sda smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: ATA WDC WD800JD-60LS Version: 07.0 Serial number: WD-WMAM9F764913 Device type: disk Local Time is: Tue May 15 13:12:49 2007 CDT Device…