thunderbird: backup and restore emails

by prettyscripts on 2010-06-23 16:35:26 • Leave a comment »

miscthunderbird

there are tools to backup and restore emails. but i prefer to do it the old fashion way - by directly copying the files.where are the files to find physical location of where emails are stored, from menu > tools > accounts settings, go to Serve… more »

Tags: backup, emails, restore, thunderbird

seo scam: guarantee on first page of google

by prettyscripts on 2010-02-24 16:37:58 • 3 comments »

misc

this site has received quite a few contacts to 'guaranteed first page google ranking', 'to increase your online leads'... the only contact left was email address with free domain (eg gmail.com). no website. no company. no telephone number. what reputab… more »

Tags: scam, seo

javascript: calling xajax functions with boolean parameter

by prettyscripts on 2009-06-24 10:28:46 • Leave a comment »

miscjavascriptxajax

when passing a boolean value from javascript to a xajax function, the value is converted to string in the xajax function. you need to compare the string value of the boolean value (from javascript) in xajax function. eg, the following code in xajax f… more »

Tags: boolean, javascript, xajax

mysql: convert number to string

by prettyscripts on 2009-05-29 10:51:17 • Leave a comment »

miscsql

to copy value from a column in table a to a column in table b, the syntax is straight forward:insert into new_table (new_column)select old_column from old_table but when new_column is varchar and old_column is integer, you will get an error.… more »

Tags: convert, mysql, number, string

php: set user agent string

by prettyscripts on 2009-05-27 16:31:44 • Leave a comment »

miscphp

do it with ini_set():ini_set('user_agent', 'myagent/1.0'); more »

Tags: php, user agent