Wednesday, April 16, 2014

Unblock Websites

Some companies may block some website for unreasonable reason, for example: block Google Cache site: webcache.googleusercontent.com, mark it as Proxy/Anonymizer. This is a pain at sometime when we have to access google cache. So I wrote this simple tool.

Result:  

Monday, April 14, 2014

Boilerpipe Demo

Boilerpipe Demo
Welcome to the Web API for the boilerpipe Java library.
boilerpipe provides algorithms to detect and remove the surplus "clutter" (boilerplate, templates) around the main textual content of a web page.

Original Demo is at http://boilerpipe-web.appspot.com/, but it's too popular, and we often meet got "Over Quota" error, so I made this simple demo here for anyone who is interested in Boilerpipe.



Result:  

Saturday, April 12, 2014

Programmer Tools: XML Escape & UnEscape

Original Text:  

Result:


Explanation
The following characters are reserved in XML content, and must be escaped and replaced with their corresponding XML entities.
' is replaced with '
" is replaced with "
& is replaced with &
< is replaced with <
> is replaced with >
In the XML attribute, except above characters, we need replace the following additional characters:
\t is replaced with
\n is replaced with
\r is replaced with

Resources
Guava XmlEscapers http://en.wikipedia.org/wiki/Valid_characters_in_XML

Monday, April 7, 2014

Programmer Tools: Base64 Encoder/Decoder

Plain Text (automatically encoded)

Base64 (automatically decoded)


Resource: 
jQuery Base64
Base64 Decode and Encode Plugin - base64.js