Mindblown: a blog about philosophy.

  • 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…

  • Ad serving consolidation

    Microsoft is buying Aquantive, Yahoo bought RightMedia, Google bought DoubleClick, 24/7 also got acquired. This last month is definitely a crazy one for the ad serving/network industry. Lots of buzz and projected future, huge premium paid for acquisitions.

  • 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…

  • Alexa scrambles traffic data

    It’s pretty interesting to see that Alexa is using CSS to scramble site traffic results. Now you cannot select, copy the data and paste into somewhere else because some random numbers are added between the original characters. The browser sees this: adspeed.com – 96% serv.adspeed.com – 4% The code is actually this (if CSS is…

  • Sample lilo.conf

    [root@s7 trungson]# more lilo.conf lba32 boot=/dev/sda delay=70 vga=normal map=/boot/map default=2.6.12.4 image=/boot/vmlinuz-2.6.16-1.2111_FC4 label=2.6.16-1.2111_F read-only root=/dev/sda3 initrd=/boot/initrd-2.6.16-1.2111_FC4.img image=/boot/vmlinuz-2.6.11-1.1369_FC4 initrd=/boot/initrd-2.6.11-1.1369_FC4.img label=2.6.11-1 root=/dev/sda3 read-only image=/boot/vmlinuz-2.6.12-1.1447_FC4 initrd=/boot/initrd-2.6.12-1.1447_FC4.img label=2.6.12-1 root=/dev/sda3 read-only image=/boot/vmlinuz-2.6.12.4 label=2.6.12.4 read-only root=/dev/sda3

  • Testing with older version of IE

    If your computer has upgraded to IE7, and people are reporting design issues in IE6 or lower, you can download and run standalone version of older IE’s to test and fix the design. There is no installation to do, only run the program.

  • tmpwatch – Clean up your temp files

    If your temporary files are growing too many too quick (say the working file of mod_gzip, sessions), there is an easy solution to clean up. Run: root# tmpwatch 1 /dev/shm/mod_gzip This cleans up the file that have not been accessed for one hour. See man tmpwatch for more information

Got any book recommendations?