How to Format a Number as a Currency in Javascript
There are quite a few ways to format a number as a currency value in Javascript. This is a common task when building web applications, similar to …
Read Article →In-depth guides, insights, and best practices for modern software engineering
There are quite a few ways to format a number as a currency value in Javascript. This is a common task when building web applications, similar to …
Read Article →If you’ve ever typed date into your Ubuntu Server and seen a different time or timezone appear than you expected, then it probably means that …
As Python developers, we’ve all used pip to install applications, but speaking to other Python developers, it’s not always clear how to …
AngularJS is a Javascript Framework that allows you to create dynamic front-end web applications easily.
I have traditionally packaged these …
Read Article →Sending emails using Python and AWS’ SES service is really easy. They provide an SMTP server that you can authenticate against and send email …
Read Article →If you need to generate a random number between two numbers in JavaScript, then you are in the right place! Here you will learn javascript random …
Read Article →Password managers exist for two main reasons.
Firstly, to generate strong passwords and secondly so that you don’t end …
Read Article →Sometimes you may need to read the top n lines of a file using Python.
We start by opening the file for reading and then using a list comprehension we …
Read Article →I operate a bunch of different sites and have done for many years now.
Some of them get quite a lot of traffic and require a high level of uptime.
To …
Read Article →It’s very easy to reset files that have not yet been committed to git.
git reset <filename>
You can also specify the …
Read Article →Golang comes with a decent offering around variables that you can use to store, retrieve and manipulate information.
A variable is defined with the …
Read Article →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 …
Learning Go or Golang as a Python developer, programmer or software engineer is easier than you think.
While there are quite a lot of things to learn …
Read Article →Programming languages provide the ability to remove special characters from a string quite easily.
Sometimes you need to also do this from your …
Read Article →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 …
Read Article →Given a directory that contains:
|
|- app.py
|- requirements.txt
|- ...
|- <- other-files ->
|- ...
We can create a runme.sh file to always make …
Kubernetes comes with a pretty nice dashboard to view clusters, worker groups, nodes and pods. As well as a ton of other useful things.
This tutorial …
Read Article →Given that we are in a leap year this year (2020), it would be nice to know how to programmatically calculate this.
Luckily, this is a repeatable …
Read Article →It’s important to know about data types and one that comes up fairly regularly is that of Linked Lists.
Let’s write the following base …
Read Article →This Docker Quickstart Guide for Developers aims to get developers familiar with Docker as quickly as possible.
Providing you with the knowledge to be …
Read Article →Let’s take a really common example. Say we want to follow redirects with cURL for google.com. It is common to curl follow redirect a URL.
Javascript comes with some pretty good support for determining if a string contains a substring.
There is the newer includes function which was …
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 …
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 …
Read Article →