Aaron Van Bokhoven / aaronvb

I am a Software Developer and a Portrait Film Photographer.
  • I love coding with Ruby and Ruby on Rails, and I love shooting with film.
  • I currently live in Honolulu, Hawaii, but frequent Chicago and California.
  • I believe that programming is a form of art, like painting and photography, where you can express your ideas and logic and see it transform into something real.
Aaron Van Bokhoven
photo: kipkeston
Email me at bokhoven@gmail.com. View my Photography Portfolio and my Photo Blog (tumblr). I'm also on Twitter.

My current work:

Hawaii Photo Rental
http://www.hawaiicamera.com
Buoy Alarm
http://buoyalarm.com
Flux Hawaii Magazine
Summer 2011, Fall 2011, Winter 2011(cover) issues
http://fluxhawaii.com

Open source contributions:

Coffee-Resque (my fork)
https://github.com/aaronvb/coffee-resque
Pow
http://pow.cx (github)
My Gists
http://gist.github.com/aaronvb

You can also find me at:

Github
http://github.com/aaronvb
Photography portfolio
http://aaronvb.com/photo
Junkparty
http://junkparty.com
Flickr
http://flickr.com/photos/aaronvb

May 12, 2011

Moving one of my projects over from delayed_job to resque/redis, for reasons I wont go into here, I needed to have a few of my workers on a cron job. I was initially going to use the resque-scheduler plugin, but the fact that it runs as a daemon made me a little nervous. I didn't want to worry about watching the scheduler process for memory leaks and or crashes, and cron is a proven, reliable, scheduling service in itself.

Basically, I took the same concept from my other post, Recurring delayed_job with cron and applied it to redis, instead of using mysql as I did with delayed_job. It works by manually injecting jobs into the queue without using the Rails environment, saving memory, cpu, and time, and also able to be run externally by the system cron.

In this example I'm going to use a Payment model, which holds payment information, and an 'update' method which should be run nightly at 0000. I'm using Rails 3 as well, which uses the 'mysql2' gem.

This is the resque worker.

This is the ruby file that the cron will run. I usually place this in root.rails/lib/crons folder.

And this is what goes in the crontab, which can be accessed by typing 'crontab -e' in the console.

For reference:
Redis - http://redis.io
Resque - https://github.com/defunkt/resque
Resque Intro - https://github.com/blog/542-introducing-resque
Crontab Cheat Sheet(googled this real quick) - http://nanotaboada.wordpress.com/2008/05/25/self-contained-crontab-cheatsheet
Redis Ruby Gem(should get installed when installing resque) - https://github.com/ezmobius/redis-rb


Mar 22, 2011

Just got my hands on a Leica 35mm Summilux f1.4 version 1 pre-aspherical, with goggles and an early serial number(in Hawaii, CAN YOU BELIEVE THAT?). My M3 setup is complete! Definitely wont be "fondling" this. I'm not a camera fondler.

Already ran my first roll through on portrait assignment for Flux Hawaii.

It sort of looks like a German tank with that tool the optometrist uses to look in your eye balls. I wonder how people on the street will react to me taking their photo now - hopefully a bit scared.


Mar 09, 2011

Today I decided to clean up my HDD. I haven't been working on my desk lately so files have been gathering on my laptop without being moved or backed up to my external hard drives. After moving a lot of big files over, ie movies, new music, etc, I still felt like I had lost a ton of space but couldn't figure out where.

After searching the internet, using google of course, result #2 yielded a promising solution, OmniDiskSweeper, http://www.omnigroup.com/products/omnidisksweeper/ - a free hard drive scanner.

This sure beats Apple + I on every folder. I definitely recommend this.



© Aaron Van Bokhoven