Hard-drive Backups to USB drives using Encryption, on Ubuntu

Data backups are important. USB sticks with 256GB or more have become affordable, and are a good way for backups. I wanted mine to be encrypted. Since I usually dump my entire home directory to the backup medium (my new USB drive), indiscreet, or, let’s call it sensitive data like passwords and SSH keys will… Continue reading Hard-drive Backups to USB drives using Encryption, on Ubuntu

Schemaless Models With Hash Fields or JSONB

For quite a bit I’ve been playing with the idea of “schemaless” models, intrigued by the idea of dumping entire hashes into database fields instead of having to add every little setting as a real database column. Where the latter involves the tiresome process of migrations, hash fields in databases can simply be extended ad-hoc.… Continue reading Schemaless Models With Hash Fields or JSONB

Cells-Hamlit: The Fastest View Engine Around.

The Hamlit gem is a reimplementation of the popular Haml markup language, which unfortunately is based on a quite old, convoluted codebase. Hamlit borrows the syntax, but rewrites the entire engine code leveraging the excellent Temple gem, which is a parser, compiler and optimizer for template languages and is also used in Slim. Wow, that’s… Continue reading Cells-Hamlit: The Fastest View Engine Around.

Reform 2.1 With Dry-Validation and Grouping

Just in time for Christmas, Reform 2.1 is ready for you. It has two great new additions: we now support the awesome Piotr Solnica’s dry-validation gem, and I introduced validation groups. Reform is a form object gem that decouples validation of data from models. Its full documentation can be found on the Trailblazer website. Validation… Continue reading Reform 2.1 With Dry-Validation and Grouping