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

verify wordpress.com with google webmaster tools

by prettyscripts on 2009-04-14 01:55:26 • Leave a comment »

misc

there are 2 ways google webmaster tools verify your website. by adding codes to a meta tag to <head> section of html code or by uploading html file. but you will be hit with problem if you use free services such as wordpress.com where you cannot… more »