This is the best book I’ve read on software best practices: Steve McConnell’s Code Complete. It is full of gems. It is so good that I decided to summarise it and placed it on my desktop so I could look over it whenever I have the time. So here’s the summary. It’s far better to [...]
How do you memorise a speech? A speech delivered without referring to notes is a hallmark of good preparation. Often in my toastmasters meetings, speakers would prepare for their Big Moment by reading their notes. Sometimes I caught glimpses of their notes involuntarily. Lines after lines of tiny words. It was the speech pruned to [...]
Here’s a summary of where I found my how-tos when set up my VPS to host my sites: ShippingTogether, and my own site. My web host is Slicehost. It’s cheap and good. I’d definitely give my recommendation for them if you want a VPS.
If you’re wondering whether to choose between a my VPS or shared [...]
It is very simple to add multiple rails apps in your NginX server. Here I’m using an example of 2 rails apps with 3 mongrels serving each app. This is what you need to do in your nginx.conf.
…
upstream mongrel_app1 {
server 127.0.0.1:1000;
server 127.0.0.1:1001;
server 127.0.0.1:1002;
}
upstream mongrel_app2 {
server 127.0.0.1:2000;
server 127.0.0.1:2001;
server 127.0.0.1:2002;
}
Server {
….
if (!-f $request_filename) {
proxy_pass http://mongrel_app1;
break;
}
}
Server {
….
if (!-f [...]