What is a White Box Computer?

Question
You have heard the term “white box computer.” What is it?

Answer
A workstation or server that is not created by a well-recognized brand. Some people refer to plain flavors as “vanilla.” If a data center is getting white-box servers, they are not getting Dell or HP servers. White-box servers are affordable and may compete with the public cloud. Commodity servers are well known for being acceptable for Hadoop.

…

How Do You Troubleshoot the Terraform Error ‘unsupported argument aws_key_pair’?

Problem scenario
You run a terraform command. You get ‘unsupported argument aws_key_pair’. You want terraform to create an EC-2 server with a specific key pair. What should you do?

Solution
Don’t use “aws_key_pair”, use “key_name”. The aws_instance section in a .tf file uses a different keyword. (The aws_key_pair is for creating an key-pair in AWS.) Use the “key_name” field for aws_instances like this:

resource “aws_instance” “example” {
ami = “ami-01a1234abcd567”
instance_type = “t2.micro”
key_name = “appleorange”
} …

How is CI Different from CD?

Question
You have read that CI is different from CD. How are they different (CI vs. CD)?

Answer
CI, continual integration involves integrating code from two or more developers on a continual (regular or ongoing) basis. CD (with the “C” standing for continuous or continual) can refer to delivery (with a manual process into production) or deployment (an automatic process even to production)*.

…

Are Zero Trust Networks More Secure than VPN-Protected Networks?

Question
Some companies are getting away from VPNs in favor of zero trust systems. It can help save money on bandwidth and facilitate a better network performance when every employee is working remotely. Are NoVPN Services More Secure for a Given Enterprise? Is it recommended to use non-VPN services?

Answer
We think this is a debatable whether VPNs (Virtual Private Networks) make systems more secure.

…

How Do You Troubleshoot a CentOS Installation Message “Error setting up base repository”?

Problem scenario
You are installing CentOS 8.x but when you click on the “Installation Source” tab, nothing happens. You do not see an option to enter an installation source.

You cannot click “Begin installation.” What do you do?

Solution
Try different installation media. If you are using a boot.iso, this problem may happen.
Some DVD isos are here: http://ftp.hosteurope.de/mirror/centos.org/8/isos/x86_64/

…

How Do You Eliminate Unintended Indentation in Code?

Problem scenario
You are using WordPress for you website. You have code that has an indentation of one to three spaces that you do not want. You did not intend for this indentation. It is usually just one line — the top line.

Here is an example:

How can you eliminate this indentation of your code?

Solution
Root cause
If you have a new line in the paragraph,

…

What is the Difference between global and nonlocal in Python?

Question
It seems like “global” and “nonlocal” would be the same thing. How are these keywords different in Python?

Answer
Variables inside a function are local by default; variables outside of functions are global by default. (This was taken from https://www.programiz.com/python-programming/global-keyword.) This answer/article addresses the “LEGB lexical scoping rule” (taken from page 872 of Learning Python).

…

How Do You Troubleshoot a Script or Program That Automates Tasks when The Logs Do Not Help you?

Problem Scenario
An automated process is failing. You look in the logs and they don’t help you. You have Googled the error. What should you do?

Solution
Has it ever worked? If so, did something change?

If not, Google for the command most recently entered before the error happens. New characters could be added into the command that you do not realize.

…

What is Memoization?

Question
In computer programming, what is memoization?

Answer
Memoization is the act of pre-computing or pre-processing certain values for the sake of an algorithm’s performance. Rather than perform the same exact operation (which could be very complex and computationally expensive) multiple times, memoization will involve writing code to compute it once and store it in memory as a variable. This optimization can allow the call stack to have less to store (e.g.,

…