Bloggings

Nginx Plugins for Munin

10 months ago // Comments

Quick Howto: Install Munin plugins to monitor Nginx Super quick howto configure munin to monitor nginx. download nginx plugins from Munin Exchange have nginx compiled with --with-http_stub_status_module -- it's off by default, so you might need to recompile from source; compiling nginx is out-of-scope for this howto, you can read about it here configure nginx to display /nginx_status locati...

more »

Blogging from Textmate

11 months ago // Comments

I just learned that I could blog directly from Textmate with the Blogging Bundle - Yay!. I live in Textmate, so naturally it pleases me to learn I can blog directly from here. This means I might actually blog more often...

more »

Converted to Passenger for development Part I

about 1 year ago // Comments

Part I: Ok, I've been a long time mongrel user -- however, I've recently switched over to passenger both for production and development. Why you ask? Simple. Keeping things simple and painless; plain and simple. Passenger is just requires less configuration and setup than the alternatives. Beware though, one size does not fit all. Passenger is not for every setup. There are reasons for not choo...

more »

Fresno for the 4th

about 1 year ago // Comments

This year we decided to spend the 4th July in Fresno with family. As expected, I recommended we fly there as holiday traffic would be unbearable; especially through LA. After all, we have an airplane, why not use it, right? Interestingly enough, the first time I met my in-laws was on 4th July; so I guess spending this holiday with them again would be only too fitting. Like all trips to Fresno...

more »

Fresno Slideshow

about 1 year ago // Comments

Here is the pictures from the trip to Fresno as slideshow -- enjoy!

more »

Capistrano: 'rake command not found'

about 1 year ago // Comments

I recently ran into a strange error; after successfully using Capistrano to deploy numerous projects I recently discovered that a non-standard installation of ruby and/or rubygems, rake, and other gems leads to a deployment error: 'rake command not found'. I was configuring and deploying to a new slice (at slicehost) -- now since this was going to a fairly low traffic site, I was using Apache w...

more »

ActiveRecord: count vs. size vs. length

about 1 year ago // Comments

Do you know the differences between the following ActiveRecord association #count, #size, and #length methods? Apparently, I did not... I ran into this when trying to optimize some controllers/views. I noticed that extra SQL COUNT's were occurring, and I was not explicitly calling them. This led me down a path to the #empty? method for a has_many association. For example: Controller#show: @c...

more »

ActiveRecord::Base -- dump to a SQL insert statement

about 1 year ago // Comments

So today I embarked on what I thought was going to be an easy task -- I needed to dump a few tables and rows from my Postgres database to raw SQL for transport to another system for testing. I didn't need to dump the whole database, nor did I need the whole table either. Unfortunately, pg_dump doesn't have a "query" parameter to filter the results. After assuming AR would have such a graceful ...

more »

Trip to Havasu

about 1 year ago // Comments

I just got back from a quick trip to Havasu. The plan was to head out there for the weekend and hit up some bass fishing. The weather unfortunately was blown out and the temps dropped all leading to very little action. We got skunked -- we did get some GPS spots figured out and surveyed the hot spots for next time. It was "spring break", so there was some extra traffic on the lake. I found i...

more »

Chi.mp goes live!

about 1 year ago // Comments

I feel honored to have the opportunity to work with all the great folks at Chi.mp -- as a Rails developer for them, I've been helping them crank out the next version. If you're into owning your online content, you definitely need to check this out! -- Chi.mp

more »