Category: Uncategorized
-
Geographic Information Systems in e-businesses
Title: Uses of Geographic Information Systems in e-businesses to improve user experience with online services Date: Feb 28, 2003 Introduction Surfing across a website, you see an advertisement of a local store for this week’s sale. This event immediately catches your attention and you click the banner. Businesses are putting great effort to understand website…
-
Blog Conversion – pLog to WordPress
To convert database from pLog to WordPress, you basically need to run 2 SQL queries, assuming you have them on the same server. # Posts INSERT INTO db_wordpress.wp_posts ( ID, post_author, post_date,post_date_gmt, post_content,post_title, post_modified,post_modified_gmt ) SELECT a.id, 1, FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)), FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)+5*3600), p.text,p.topic, FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)), FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)+5*3600) FROM db_plog.plog_articles_text p,db_plog.plog_articles a WHERE a.id=p.article_id # Post-Categories Relationship INSERT INTO db_wordpress.wp_post2cat…
-
Google Sitemap – PHP Classes – XML Generator
If you need some PHP classes to generate Google Sitemap XML, you come to the right page. ‘; $vOutput .= ‘‘; foreach ($this->mURLs AS $vOne) { $vOutput .= $vOne->display(); } // rof $vOutput .= ‘‘; return $vOutput; } } ?> CGoogleSiteMapURL is the support class for CGoogleSiteMapBase Sample Usage: init the class and add URLs…
-
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 mirrors.tds.net::rsync …. 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; +http://www.google.com/bot.html). 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 70.85.27.85 -h rwhois.theplanet.com -p 4321 [Querying rwhois.theplanet.com] [rwhois.theplanet.com] %rwhois V-1.5:003eff:00 whois.theplanet.com (by Network Solutions, Inc. V-1.5.9.5) network:Class-Name:network network:ID:THEPLANET-BLK-13 network:Auth-Area:70.84.0.0/14 network:Network-Name:TPIS-BLK-70-85-27-0 network:IP-Network:70.85.27.80/28 network:IP-Network-Block:70.85.27.80 – 70.85.27.95 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: http://pagead2.googlesyndication.com/pagead/show_ads.js 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