Author: Tom

  • Extending logwatch with Chef

    If you saw my previous post on Extending Logwatch, it may have occurred to you that even something as simple as manually creating three small files and saving them to the (different) correct locations with the right owners and permissions is rife with error.  Here we basically assume that anything you do manually will get…

  • Extending logwatch

    Using logwatch to report on unattended-upgrade’s “restart required” At TRI Resources International, we automate as much of our of our systems management work as possible.  A couple of the tools we use with our linux servers are logwatch to keep us up to date on server health, and the unattended-upgrades package to automatically install security…

  • Why you should open-source your (useful) projects

    This week I finally got around to cleaning up the EncodingSampler gem, mentioned previously on this site, and publishing it here as encoding_sampler at Rubygems. It’s amazing how simple it is to publish and use open source software these days.  Creating an account a Rubygems.org takes just a username, an email address and a password.  Easy.…

  • Development with Ruby and Ruby Gems… (arggh!)

    If you have a few hours weeks to kill, go online and search for RVM, rbenv, “bundle exec“, “You have already activated…” and a dozen other common issues.  Based on the volume of  articles and forum posts on these topics, I’d say that managing Ruby and Ruby Gems versions is perhaps the largest single Time…

  • Implementing read-only models with ActiveRecord

    I’m wrapping up an app with some ActiveRecord models that are based on fixed data (i.e. data tables that are not created or managed by the Rails app.)  This is actually a pretty useful way to access some types of external data in Rails, but problems cascade if/when you accidentally write to the supposedly r/o…