Decrypting Thunder Links

You often come across Thunder links starting with thunder:// on the internet, which cannot be downloaded by other software. In fact, Thunder links are the result of base64 encryption. By decrypting them, you can retrieve the original link address. Let’s take the link to the Baidu logo image as an example. The original link is: http://www.baidu.com/img/baidu_sylogo1.gif Thunder adds “AA” at the beginning and “ZZ” at the end of the original link, forming a new string: ...

November 12, 2012 · 1 min · Zhiya

WebApp for LBS Using JavaScript and HTML5

A web app created using JavaScript, HTML5, and CSS3 that can display the current location and movement path. It utilizes the Baidu Maps API to draw the day’s path with a green line on the map. A marker shows the current location. The circle on the homepage is drawn using canvas, but I haven’t managed to include text in it yet—still working on that. The acquired data is stored in localStorage. Currently, it locates every 3 seconds. I’m unsure about the data volume; if it’s large, localStorage might not be suitable. ...

November 10, 2012 · 1 min · Zhiya

An Electronic Clock Made with Canvas

Recently, I’ve been learning JavaScript and came across the canvas drawing section, so I created an electronic clock to practice. Each segment of the electronic clock is drawn using canvas, and then JavaScript is used to get the time, executing every millisecond to update the canvas. Demo link: http://labs.simpleapples.com/timer/ GitHub: https://github.com/simpleapples/javascripttimer

November 7, 2012 · 1 min · Zhiya