Showing posts with label Programming Tools. Show all posts
Showing posts with label Programming Tools. Show all posts
Monday, May 5, 2014
Dict Demo
This is a practical usage of Jsoup to extract content from webpage.
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:
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
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
Saturday, March 29, 2014
Programmer Tools: URL Encoder/Decoder
Subscribe to:
Posts (Atom)