5 Ways To Get Help and Get Unstuck

When learning DevOps or System Administration or just general automation, it's easy to get stuck. There's a lot of material out there, and a ton of examples that may or may not relate to your problem. With the abundance of (and potentially mixed) information out there, two problems usually occur:...

How to fix WARNING: No knife configuration file found

WARNING: No knife configuration file found ERROR: Your private key could not be loaded from /etc/chef/client.pem Check your configuration file and ensure that your private key is readable If you're seeing that error and you've been moving your .chef directory around, this is probably why. In order to interact with...

Get the amount of memory in a node from inside a Chef recipe

Every time Chef runs on a node, it'll reset Ohai's special attributes (that's those of the automatic type), and refill them with the new correct values. This is what lets you see the stats of a node inside the management console or on the command line with knife. But what...

Move Night And Bacon: A Mechanize Tutorial With Examples

We've talked about scraping or parsing data from a single page using Nokogiri, but what about those situations where the data is not directly accessible? For example, times where you need to perform or search or login first. Essentially any time you need to have interaction, not just parsing you...

Screen Scraping With A Saw: A Nokogiri Tutorial With Examples

Chances are you know a bit about screen scraping and already have an opinion on it, but if you don't here is a quick summary: Here is what you need to know about screen scraping. Screen scraping is taking something you can see on your computer, typically in a browser,...