Skip to content

Instantly share code, notes, and snippets.

View richkilmer's full-sized avatar

Richard Kilmer richkilmer

View GitHub Profile
@richkilmer
richkilmer / vmrun
Created November 5, 2010 17:30
vmrun is a command you can execute to externally script vmware fusion VMs
/Library/Application\ Support/VMware\ Fusion/vmrun
vmrun version 3.1.1 build-282344
Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]
AUTHENTICATION-FLAGS
--------------------
I think Harp did a pretty good job of explaining it. Although it is really vortex shedding
that causes the rhythmic pressure changes. The shear forces in the air close to the open
window cause alternating vortices to emerge. You can tell this is the case because vortex
shedding resonates at the objects natural frequency and when one window is open the car
almost always makes the sound (provided it is traveling fast enough to create vortices).
However, a car with both windows open does indeed have a resonant frequency. The difference
is that it is harder to get a standing wave to propagate in the interior of a car because
of chaotic flows within the cabin and the fact that you have two windows vying to hit
the natural frequency at the same time. Most of the time the vortices will not be in
sync and will not cause a resonant frequency to be excited, or simply cancel each other
def summer_monthly_usage
@summer_monthly_usage ||= monthly_usage_summary(rates.summer_months_nbr)
end
private
def monthly_usage_summary(months)
months.inject(0) { |sum, m| sum + monthly_usage[m - 1] }
end