Wednesday, May 28, 2014

Image Transformer (Resize, Rotate, flip and Enhance)


check a file on the web...
Image URL:

or check a file on your local disk

or drop files here

Transform Image:
Resize: New Width:     New Height: Stretch:
Rotate: Rotate Degree: 90    180    270   
Horizontal Flip
Vertical Flip
Enhance Iamge


This server side is deployed on GAE, it uses GAE's ImagesService to resize, rotate, flip and enhance images.
GAE Images Java API Overview

Tuesday, May 27, 2014

JavaScript Online Tools

JavaScript Lint
http://www.javascriptlint.com/online_lint.php
With JavaScript Lint, you can check all your JavaScript source code for common mistakes without actually running the script or opening the web page.

Beautify JavaScript or HTML
http://jsbeautifier.org/
Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc.

Exif Viewer: Extract Metadata from Image

check a file on the web...
Image URL:

or check a file on your local disk

or drop files here
List All Meta

This server side is deployed on GAE, and uses java metadata-extractor lib to extract meta data from image files.
https://drewnoakes.com/code/exif/
https://code.google.com/p/metadata-extractor/w/list

Monday, May 5, 2014

Dict Demo

This is a practical usage of Jsoup to extract content from webpage.
Result:  

Saturday, May 3, 2014

JSoup Demo

This is an example to demonstrate how to use JSoup's selector to extract content form a webpage.





Result:  

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

Sunday, March 30, 2014

Using IFrame

maximize

Saturday, March 29, 2014

Programming Tools: Epoch & Unix Timestamp Conversion

this (milli)second time number:

is the equivalent of this localized date string:

is the equivalent of GMT date string:


Programmer Tools: URL Encoder/Decoder


Resources: 
URL Encoding 
Best practice: escape, or encodeURI / encodeURIComponent