How Do You Rotate Certificates?

Problem scenario
You have load balancers, web servers, and other HTTP technologies that rely on SSL or TLS certificates. Some certificates will be revoked for security reasons. How do you provision new certificates to update them (because they will expire or you want to harden your environment by refreshing the certs as aged certs are more likely to be compromised than young ones)?

Solution
You may want to plan for having lower capacity than normal and therefore schedule the time to do this in production during an off-peak time.

…

Should You Ask What the Salary Pay Range Is?

Problem scenario
You have applied for a job. You are curious what it can pay. Would the interviewer be upset if you asked what the expected pay range is for the position?

Solution
In some jurisdictions private employers must disclose the pay range. If you live in one of those places and you are asking for a remote position, it may be legally required for the employer to disclose it.

…

What is an Apache Web Server Container?

Problem scenario
You are reading about Apache Web Server containers. These are not related to Docker containers. You often see them near or tags. What are Apache Web Server containers?

Answer
They are portions of text that contain Apache web server configuration. (The source of this is https://httpd.apache.org/docs/2.4/sections.html.) The configuration includes directives often related to the VirtualHost in Apache web server.

…

What is Long Tail Latency or Tail Latency in the Context of Application/Website/System Performance?

Question
What is long-tail latency or tail latency?

Answer
Tail latency is the worst performing time-measured response from an application. Outliers can be described as requests that take far longer than others in a statistical sample. Such irregular durations, with long latencies, are said to be at the tail-end of a chart or graph. Long-tail latency would generally refer to the worst 1% or worst 2% of the requests.

…

How Do You Find the Requests, Limits, and Replicas of Pods Deployed from Helm Charts?

Problem scenario
You do not have the YAML (.yml or .yaml) files for your Helm deployments.

How do you find the pod manifests for the yaml files when you do not have access to the Helm repos?

Solution
Run this:

helm ls -a -A

The output will show a “Name” on the left most column and a namespace in an inner column.

…

In Azure DevOps Pipeline Test Results, Why Do You See a Release That Was Not Run in a While?

Problem scenario
You look at some previous pipelines’ test results. The tests show failing tests. There is a temporal field for “Failing since” and another field called “Failing release.” You have not run the release that is listed as failing in a while. Why isn’t it showing the most recent release?

Possible Solution
The root cause is consecutive failures and possibly a poorly named column heading.

…

How Do You Install opencv / cv2 without pip3 so The -DWITH_FFMPEG=ON is Set On?

Problem scenario
You do not want to use pip or pip3 to install opencv. How do you install opencv (with the -DWITH_FFMPEG=ON flag)?

Solution
Prerequisite
This assumes that cmake has been installed. If you are running Ubuntu/Debian, run this: sudo apt -y install cmake
If you are running CentOS/RHEL/Fedora (some RedHat derivative), run this: sudo yum -y install cmake
If you are running SUSE,

…

How Do You Install and Create a Virtual Environment?

Problem scenario
You want to use a virtual environment to install pip packages. You want to run a Python program with a module that will require a pip installation. What should you do to install and configure the environment and then enter it using Ubuntu/Debian Linux?

Solution

sudo apt -y install python3-virtualenv
sudo apt -y install python3.*-venv
python3 -m venv cont_int #replace “cont_int” with the name of the directory you want to create
cd cont_int
source bin/activate

…