Blog Posts

What is DevOps and why is it important?

March 31, 2023

DevOps is a software development methodology that emphasizes collaboration and communication between software developers and IT operations teams.


Read More

What is the Zen of Python?

March 30, 2023

The Zen of Python is an Easter Egg that long time Pythoneer (Tim Peters) channeled the guiding principals for the language’s design principals into 20 aphorisms, of which only 19 of them are written down.


Read More

Bash: Convert HTML to Markdown Recursively with Pandoc

March 29, 2023

You can recursively convert all your HTML files to Mardown format in Bash, by using Pandoc.


Read More

How to Create a Password Generator in C++

March 27, 2023

You can easily create a password generator in C++ with the following simple method.


Read More

How do you architect Disaster Recovery in AWS?

March 26, 2023

Disaster recovery (DR) in AWS involves creating a plan and set of procedures to help your organization recover from a catastrophic event, such as a natural disaster, power outage, or cyber attack, that could impact your business operations.


Read More

What options exist for Infrastructure as Code (IaC)

March 25, 2023

There are several options for Infrastructure as Code (IaC) tools that can help automate the provisioning and management of infrastructure resources, such as servers, networks, and storage, in a reliable and reproducible way.


Read More

How to learn Java in 1 day

March 24, 2023

Learning Java in one day is not a realistic goal, as Java is a complex programming language that requires time and practice to master.


Read More

How to read user input as numbers in Python

March 23, 2023

In Python 3 onwards, the input function returns a string type.


Read More

Capitalize First Letter of Each Word in Python

March 22, 2023

If you have a sentence containing multiple words, and you want each of the words to start with a capital letter, then you can do one of the following:


Read More

How to Create a Password Generator in Python

March 16, 2023

You can easily create a password generator in Python with the following simple method.


Read More

How to Convert Bytes to a String in Python

March 14, 2023

If you need to convert bytes to a string in Python, then you can do the following:


Read More

How to measure the elapsed time in Python

March 13, 2023

Option 1 - using the time module import time start = time.


Read More

How to Change a MariaDB/MySQL Data Directory to a New Location on Linux

March 7, 2023

Step 1 — Moving the MariaDB Data Directory mysql -u root -p select @@datadir; Output: +-----------------+ | @@datadir | +-----------------+ | /var/lib/mysql/ | +-----------------+ 1 row in set (0.


Read More

[Solved] Docker Daemon Connection Error: Daemon Running?

March 4, 2023

If you get the following error when trying to run a Docker container:


Read More

[Solved] M1 Docker Image Platform Mismatch with Host (ARM64)

March 3, 2023

If you get the following error when trying to run a Docker container that was built on an M1 mac:


Read More

How to get the SHA512 sum of a string using Python

March 2, 2023

If you need to get the SHA512 sum of a string using Python, then you can do the following.


Read More

How to get the SHA256 sum of a string using Python

March 1, 2023

If you need to get the SHA256 sum of a string using Python, then you can do the following.


Read More

How to get the MD5 sum of a string using Python

February 28, 2023

If you need to get the MD5 sum of a string using Python, then you can do the following.


Read More

[Solved] TypeError: datetime Not JSON Serializable

February 27, 2023

If you get the following error: TypeError: Object of type datetime is not JSON serializable


Read More

How to Return a List of All AWS Lambda Function Names in CLI

February 24, 2023

If you would like to list all AWS Lambda Function Names in your CLI using the AWS CLI, then you can do this:


Read More