Archive for September, 2007

airake – Rake tasks and generators for adobe AIR apps

Tuesday, September 11th, 2007

airake gives you tasks for compiling, debugging, testing and packaging Adobe AIR applications. It also has a basic project generator/scaffold. All this was made possible because of the prolific newgem and rubigen gems.

To get started, checkout airake.rubyforge.org

The tasks and project might be a little Flex specific (cause of the particular project we are working on), so feel free to poke around or contribute back. Also I only tested it on MacOSX.

Some of the FCSH (flex compiler shell) daemon and wrappers are from the Sprout project, so be sure to check them out.

nginx

Monday, September 3rd, 2007

I switched from apache + mod_proxy_balancer to nginx, which on my lame VPS is saving me around 14 precious MB of memory. There are so many reasons to use nginx. Ezra recommends the monit + nginx + mongrel_cluster stack, and my friend/co-worker has a great conf to start with. It took me about 5 minutes to setup, even with multiple hosts.

My nginx.conf and init script.

Nginx is hyper optimized…

1
2
3
4
./ngx_http_upstream.c:        if (h->value.len == 2) {
./ngx_http_upstream.c:            if (c0 == 'n' && c1 == 'o') {
./ngx_http_upstream.c:        } else if (h->value.len == 3) {
./ngx_http_upstream.c:            if (c0 == 'y' && c1 == 'e' && c2 == 's') {