A master in the art of living draws no sharp distinction between his work and his play; his labor and his leisure; his mind and his body; his education and his recreation. He hardly knows which is which. He simply pursues his vision of excellence through whatever he is doing, […]

On the distinction between work and play

While developing apps that use external web services, a proxy often comes in handy in order to bypass the pesky XSS security settings found in most browsers. Here is a simple PHP proxy I’ve found quite helpful.

Simple PHP Proxy

I’ve been dabbling in Erlang recently. I’ve wanted to learn a functional programming language for a while now and Erlang’s concurrency make it rather attractive. For my “hello world” app, I decided to write a simple log parser which processes chunks of a file in parallel. Here is a part […]

Dividing a file into chunks along line endings in Erlang

On a recent project I need to find all the possible permutations of a given URL. Stripping off subdomains, paths, and query parameters. Here is the first part of the solution. A method which takes a string and strips it down based on a given divider in a given direction […]

A Java String permutations utility

Here is a color calculator I adapted from a friend’s PHP implementation: Color = function() { }; Color.hexdec = function(hex_string) { hex_string = (hex_string + '').replace(/[^a-f0-9]/gi, ''); return parseInt(hex_string, 16); } Color.dechex = function(number) { if (number < 0) { number = 0xFFFFFFFF + number + 1; } return parseInt(number, […]

Javascript color gradient calculator

[HT Mises.org] Here is an excellent symposium on intellectual property law. There are three speakers including one allied with the Mises Institute who provides an excellent argument against IP altogether. While the other two accept and support IP laws, it is interesting to note what all three do agree on […]

Intellectual Property Panel of NYU School of Law