Photos from Shaxi Town

Shaxi (沙溪), as described by it's rather brief Wikipedia entry is: a historic market town in Yunnan province, China. It begin as a trading town for tea and horses around 618 AD. It is the most intact town on the ancient tea route from Yunnan to Burma. I stayed here…

NSAWatch - Check if you're on the watchlist

Want to check if you're being monitored by the NSA? Just visit my mini-site, NSAWatch, and enter some information and the script will check if you're on a watchlist. Inspired by this and this comment on Reddit. This is satire, please don't take it seriously. No data is collected or…

Tiger Leaping Gorge

Quick and dirty photo dump from Tiger Leaping Gorge, which I hiked today. The hike is usually done over two days, and totals around 25km, however I did it in one and it wasn't too bad. The scenery at the begining of the walk is amazing. This shot, just a…

Async return from nested functions

One of the sites which I run, Proxgur, uses a module called request to fetch and store content from external URLs. The (basic) syntax is something like this: request({url: 'http://site.com', function(e, r, b){ [...] }); Where e, r and b hold error, response and body data respectivly. I…

POST to static file on Nginx

Nginx is one of the most popular web server scripts available, second only to Apache. It is infamous for it's heavy caching systems and is most commonly used with Node.js, due to it's easy implementation of reverse proxy, while Apache is usually used for PHP scripts. My home development…