Following the Eric S. Raymond philosophy of Release early, release often, you are visiting a real bazaar. This website is a work in progress!
30 Dec

How to on port redirection in Cherokee

To redirect http://a.mysite.com to http://mysite.com:8000 follow these steps in your Cherokee admin web environment:

  • First go to the vServers tab and create a virtual server with name a.mysite.com and give it a document root, e.g. /var/www.

  • Then link to the sources tab and create a new information source by clicking the 'plus' icon. Enter a.mysite.com as nick and mysite:8000 as connection.

  • Go back to the vServers tab. After making sure that the a.mysite.com server is selected check that the host match method is set to 'match nickname'.

  • In the behaviour tab select the default directory and in the handler tab select HTTP Reverse Proxy from the handler dropdown list. Then select Round Robin as balancer in the Back-end Server section.

  • In the section Assign Information Sources section select a.mysite.com as application server.

  • Then save and restart Cherokee.

Now the http://a.mysite.com will be redirected automatically to http://mysite.com:8000. And, when your site becomes more popular, you can add more application servers to mysite.com.

29 Oct

0.1 + 0.2 != 0.3 and 0.1 * 0.2 != 0.02

What every computer scientist should know about floating-point arithmetic. A shorter and simpler explanation can be found here.

15 Jul

How to ask questions the smart way

In the world of hackers, the kind of answers you get to your technical questions depends as much on the way you ask the questions as on the difficulty of developing the answer. This guide will teach you how to ask questions in a way more likely to get you a satisfactory answer. It is written by Eric S. Raymond, the author of the cathedral & the bazaar.

16 Apr

What's wrong with libraries, and what to do about it

Surely "Just learn these 57 classes" is not the re-use we were promised?