Recent posts

Python: A Strong, Dynamically Typed Language

May 16, 2017

You’ve probably already heard that Python is a strong, dynamically typed language. But what does that actually mean? Let’s jump in and take a look. Dynamically vs Statically Typed Languages This StackOverflow Q&A gives us an idea on the difference between Statically and Dynamically Typed languages: A language is statically typed if the ty...

Python: Statements & Expression

May 13, 2017

In Learning Python (a must read for anyone interested in Python!), author Mark Lutz refers to statements and expressions frequently, but give a clear explanation of the two. Rather than reinventing the wheel by providing my own definition and examples of the two, I found this Quora Q&A does that perfectly: Answer #1 A statement is a compl...

Python: The difference between Lists & Tuples

May 03, 2017

A common misconception is that the only difference between Lists and Tuples is that the former is mutable while the latter is immutable. While this is true, it is only one of the differences between them as per the Q&As quoted below. Question #1 What’s the difference between lists and tuples? Answer #1 (Answer link) … This gives rise to...

Installing NTC Ansible

April 27, 2017

I’ve written about NTC-Ansible a couple of times already and thought now would be a good time to run you through the installation process. The github page provides some great information on the process, but I’d like to add a few extra details in this post. Note that there are two ways in which you can install custom modules. They work as well a...

Jinja2 Tests Overview

April 18, 2017

As per the Jinja documentation: Beside “filters“, there are also so-called “tests” available. Tests can be used to test a variable against a common expression. Filters such as selectattr() can accept tests as a parameter. As per the documentation: “selectattr() filters a sequence of objects by applying a test to the specified attribute of eac...