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

This is published by xml-rpc

Apr 24

Just test the xml-rpc to write new post with my own software

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

TED: A Cyber Magic Card Trick Like No Other

Apr 22

...

Read More