Monthly Archives: July 2012

Compacting a VMDK (Virtual Machine Disk Format image)

Compacting a VMDK file (.vmdk) is a good idea if you want to share or reuse it, such as with Vagrant. If you’ve tinkered with your VM a bit, deleting cached files isn’t enough. The space in the filesystem is … Continue reading

Posted in tutorials | Tagged , , , , , , , | 2 Comments

Render a template from a hash in Ruby

A hash is a great way to manage a list of key/value pairs, and templates are a great way to render content. So here’s a simple way to render a template from a hash. template.erb My favorite color is <%= … Continue reading

Posted in ruby | Tagged , , , , , , , | 1 Comment