Blog Posts

Generate a random number between two numbers in JavaScript

March 16, 2020

If you need to generate a random number between two numbers in JavaScript, then you are in the right place!


Read More

Why Password Managers are Not the Solution

March 15, 2020

Why a Password Manager? Password managers exist for two main reasons.


Read More

Read the top n lines of a file in Python

March 14, 2020

Sometimes you may need to read the top n lines of a file using Python.


Read More

How Fast is your Website?

March 13, 2020

I operate a bunch of different sites and have done for many years now.


Read More

How to Git Reset a Single File

March 12, 2020

It’s very easy to reset files that have not yet been committed to git.


Read More

Introducing Variables in Golang

March 11, 2020

Golang comes with a decent offering around variables that you can use to store, retrieve and manipulate information.


Read More

Golang cannot convert (type string) to type int

March 10, 2020

Every language has it’s ways of converting data types. One of the most common data types to convert between is that of strings (string) and integers (int).


Read More

Learn Golang as a Python Developer

March 9, 2020

Learning Go or Golang as a Python developer, programmer or software engineer is easier than you think.


Read More

Remove Special Characters in a String using Bash

March 8, 2020

Programming languages provide the ability to remove special characters from a string quite easily.


Read More

Get the Amount of Days Between Two Dates in Python

March 7, 2020

Let’s say that you have two dates: "2019-01-29" "2019-06-30" How would you create a function that would return the number of days between these two dates?


Read More

How to Always run Python 3 from Bash

March 6, 2020

Given a directory that contains: | |- app.py |- requirements.txt |- .


Read More

How to Run the Kubernetes Dashboard Locally

March 5, 2020

Kubernetes comes with a pretty nice dashboard to view clusters, worker groups, nodes and pods.


Read More

How to tell if a year is a Leap Year in Python

March 4, 2020

Given that we are in a leap year this year (2020), it would be nice to know how to programmatically calculate this.


Read More

How to Reverse a Linked List in Python

March 3, 2020

It’s important to know about data types and one that comes up fairly regularly is that of Linked Lists.


Read More

The Docker Quickstart Guide for Developers

March 2, 2020

This Docker Quickstart Guide for Developers aims to get developers familiar with Docker as quickly as possible.


Read More

How to Follow Redirects with cURL for CLI or PHP

March 1, 2020

Let’s take a really common example. Say we want to follow redirects with cURL for google.


Read More

How to tell if a String contains a Substring in Javascript

February 29, 2020

Javascript comes with some pretty good support for determining if a string contains a substring.


Read More

How to package a Python app (pip) for PyPi

February 28, 2020

In this tutorial, we will create a Python application that can be installed directly from pip that will show the 10 latest blog posts from this website (the one you are reading this on!


Read More

How to find the longest Palindrome in a String using Python

February 27, 2020

This occasionally comes up during coding interviews and is actually quite a decent way to test someone’s aptitude of moving back and forth on a string to determine if and where palindromes exist.


Read More

How to write Anonymous Functions in Javascript

February 26, 2020

There is a lot of power in Javascript syntax. One of those powerful things is that of Javascript Anonymous Functions.


Read More