Plurrrr

week 47, 2019

A quick primer on dig

Dig is a DNS lookup utility developed by BIND which helps a lot while troubleshooting DNS issues (which are more common than you probably think #hugops). I use dig fairly often and thought to write an introductory guide on how you can use dig with some practical examples that’ll help you dig through DNS issues faster (sorry for the lame pun, couldn’t resist.)

Source: A quick primer on dig, an article by Karan Sharma.

Even More Kudos

In the morning I got an email from Monitor Backlinks that a new backlink had been found. I signed up for a free trial recently in order to keep track of backlinks to Plurrrr.

A new backlink as reported by Monitor Backlinks (excerpt)
A new backlink as reported by Monitor Backlinks (excerpt).

The new backlink was a link made by Jeff Juliard in his Link Dumpin blog:

This guy has written a static tumblelog generator. I’m so interested in this. Maybe its a function of being old enough to remember the pre-GAFA internet, but the idea of a home-brewed, bespoke, microblog disconnected from the larger social bullshit factory really appeals to me. I’m not a coder by any stretch, but I can work within a simple framework that is well documented. I would very much like to find the time to dig into this.

Wow, thanks Jeff!

Excerpt of Jeff Juliard's Link Dumpin article
Excerpt of Jeff Juliard's Link Dumpin article.

A Practical Guide to State Machines

In this article, we’ll examine some examples of real-world problems that can be expressed and solved using finite state machines. We’ll take the opportunity to explore some of the C#’s pattern matching capabilities an see how they come handy for implementing them. In the second part, we’ll see how to combine multiple state machines to form a cohesive workflow.

Source: A Practical Guide to State Machines · Denis Kyashif's Blog, an article by Denis Kyashif.

Pandas Groupby Tutorial

I was recently working on the Pandas Groupby and found there are lot of useful features which can be used to explore the data and this triggered me to write this post so that anyone with a SQL groupby knowledge can learn the Pandas group by within no time.

Source: Pandas Groupby Tutorial.

How to port an awk script to Python

Before porting an awk script to Python, it is often worthwhile to consider its original context. For example, because of awk's limitations, the awk code is commonly called from a Bash script and includes some calls to other command-line favorites like sed, sort, and the gang. It's best to convert all of it into one coherent Python program. Other times, the script makes overly broad assumptions; for example, the code might allow for any number of files, even though it's run with only one in practice.

After carefully considering the context and determining the thing to substitute with Python, it is time to write code.

Source: How to port an awk script to Python, an article by Moshe Zadka.

The Value in Go's Simplicity

After using Go for a couple years, I’ve really come to appreciate its simplicity. I started writing Go at work a couple months ago, and have found it really easy to iterate on – much more so than Python and Java.

Source: The Value in Go's Simplicity, an article by Benjamin Congdon.

When to use pointers in Go

One of my pet peeves is finding places in Go code where pointers are being used, when it’d be better if they weren’t. I think one of the major misconceptions of where you want to use pointers comes from the idea that a pointer in Go is pretty much like a pointer in C.

Source: When to use pointers in Go, an article by Dylan Meeus.