Month: January 2006

  • rar command line

    If you need to break down a large file into multiple smaller ones, try rar: rar a -v10000k test.log.rar test.log # break a 4GB file into 700MB files quickly (lowest compression level) rar a -m0 -v700000k SAMPLE_DVD.rar SAMPLE_DVD.ISO

  • rsync – find repository size

    To find repository size before downloading, use –dry-run $# rsync –dry-run –recursive …. sent 62 bytes received 8161 bytes 5482.00 bytes/sec total size is 52792107 speedup is 6420.05 That shows RSYNC mirror takes about 50MB.

  • Does GoogleBot run JavaScript?

    Yes, Googlebot does execute JavaScript code. I have an AJAX vote form with Yes/No links. The links are in AJAX form. Something like this: href=”javascript:vote(‘Yes’);” and the database records these votes. I got many votes from GoogleBot. Its User-Agent string is like this: Mozilla/5.0 (compatible; Googlebot/2.1; + Now it’s annoying since I do not want…

  • PHP: strtotime & Windows

    It looks like PHP 5.1 on Windows doesn’t understand the time zone string “UTC” var_dump(strtotime(‘2006-01-22 18:50:28 UTC’)); // returns bool(false) var_dump(strtotime(‘2006-01-22 18:50:28 GMT’)); // returns int(1137955828)

  • The Planet & Server Owner Privacy

    It’s quite simple to do a whois on an IP hosted at ThePlanet and get extra information about the person. Implications: good & bad root# [~]# whois -h -p 4321 [Querying] [] %rwhois V-1.5:003eff:00 (by Network Solutions, Inc. V- network:Class-Name:network network:ID:THEPLANET-BLK-13 network:Auth-Area: network:Network-Name:TPIS-BLK-70-85-27-0 network:IP-Network: network:IP-Network-Block: – network:Organization-Name:[xxxx xxxx] network:Organization-City:Warriewood network:Organization-Zip:1622…

  • FlashObject 1.3 version check

    A correction to FlashObject 1.3 when checking for player version, I got the warnings in Firefox. com.deconcept.PlayerVersion = function(arrVersion){ this.major = (typeof(arrVersion[0])!=’undefined’ && parseInt(arrVersion[0])) || 0; this.minor = (typeof(arrVersion[1])!=’undefined’ && parseInt(arrVersion[1])) || 0; this.rev = (typeof(arrVersion[2])!=’undefined’ && parseInt(arrVersion[2])) || 0; }

  • Google wasting 200 gigs of bandwidth a day?

    Even though the analysis has flaws, content optimization + content compression are distinctive. See the source for AdSense: It’s already quite compact before the webserver gzipped it further. I don’t believe that is the same javascript version developers are viewing internally, I imagine they would see comments and meaningful function names. read more | digg story

  • wget & mod_gzip

    wget & curl are very good command line tools to test and pretend to be any browser. Here I’m testing Google webservers and support for content compression. # pretend to be Firefox 1.5 wget –server-response –user-agent “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5″ –header=”Accept-Encoding: gzip, deflate” # pretend to be IE6…

  • JavaScript compression with Dojo Rhino This is a modified version of Rhino (the Mozilla JS interpreter written in Java). We (the Dojo project) have added a “compressor” method to the built-in Decompile class. Since we’re operating on the token stream from the parser, this system is somewhat less prone to errors and “overzealousness”. A new “-c” flag sends the…

  • mod_gzip/mod_deflate, JavaScript & IE problem

    Description: They are not a very good combination as problems have been reported in different applications with JavaScript not loading when served with mod_gzip/mod_deflate on. The error is not deterministic and cannot guarantee 100% error replication but it happens frequent enough. Affected: The problem only occurs in Internet Explorer (6 and probably lower versions) and…