Maybe there is a bug in javascript engine in opera browser: It will optimize a function if it just calling other function, The second function’s caller will be point to itself. I wrote a sample Continue reading
Monthly Archives: May 2013
XBase64
Basics
xbase64 is a fast javascript base64 encoder and decoder;
Is it the fastest?
As far as I know it’s fast enough. Although it depends on far too many variables to enumerate, I wrote a test, the result below is for reference.
Tell me if you know a faster one. Continue reading
Webp-test
Webp-test is a javascript tool to check whether the browser support webp.
Why Webp-test?
WebP is an image format that employs both lossy and lossless compression. The degree of compression is adjustable so a user can choose the trade-off between file size and image quality. WebP typically achieves an average of 39% more compression than JPEG and JPEG 2000, without loss of image quality.
But a few browsers support WebP right now (as of April 2010, Google Chrome 9+ and Opera 11.10 beta), how to use it?
Now you can use webptest to test browser whether it supports.
Continue reading
WGS84 to China
All maps in China are transformed for some reasons, the map providers are forced to add some noises so that all points are somehow offset. Chinese call this Mars Coordinate System for fun.
I wrote an api for translating the mars’ coordinate, you can request http://chillrain.com/api/wgtochina.php?latlng=50.926888%20116.391046.
Don’t do it too frequently, it has a request limit.
So welcome to the mars!
Beijing Air Quality
Here is a page for beijing air quality, the data are from U.S. Embassy Beijing China and the graph is drew by raphael.
The air is “crazy” enough to draw a beautiful curve.