Missing required field “entry-title”, “updated”, hCard “author” solution

Apr 29

Today I met a problem when I was using google¬†rich snippets testing tool to test one website youtubeexplorer.com Extracted structured data hatom-feed hatom-entry: entry-content: 90% YouTube Users Don’t Know About This Trick Brand new free software helps you to find YouTube movies quickly. Download from CNET From 1 to 1974 YouTube Videos In One...

Read More

How to Optimize MySQL

Nov 08

Today I found my websites were very slow. Log into linode system and I found MySQL is over 500% CPU usage. Just google it. and found a script. wget https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl use winscp to change the pl file to 777 use putty to telnet the server. Just run the pl. ./mysqltuner.pl The pl will display some setting suggestion. ...

Read More

Decode UTF8 String Function in Delphi/Pascal

Apr 29

function DecodeUtf8Str(const S: UTF8String): WideString; var lenSrc, lenDst : Integer; begin lenSrc := Length(S); if(lenSrc=0)then Exit; lenDst := MultiByteToWideChar(CP_UTF8, 0, Pointer(S), lenSrc, nil, 0); SetLength(Result, lenDst); MultiByteToWideChar(CP_UTF8, 0, Pointer(S), lenSrc, Pointer(Result),...

Read More

How to add CURL to Linode Ubuntu

Apr 26

Need to install a facebook login plugin. It said I should install curl. Record here. 1. Run winscp. download /etc/php5/apache2/php.ini 2. Add the following code to the php.ini extension=curl.so 3. Run putty and login. 4. apt-get install php5-curl 5. service apache2 restart 6. That is all.

Read More

How to Add New Website in Linode Server

Apr 24

Just build new website. Record here 1. Login Linode. Setup the DNS 2. Go to Namecheap, change the DNS server to ns1.linode.com and ns2.linode.com 3. Open notepad, make a new virtual host file. like this ServerAdmin webmaster@example.net ServerName example.net ServerAlias www.example.net DocumentRoot /srv/www/example.net/public_html/ ...

Read More