How Do You Distribute Traffic to Web Servers without a Load Balancer?

Problem scenario
You want to direct traffic to web servers (e.g., duplicative, stateless web servers). You want to do it without a load balancer (as they can become a bottleneck). What technologies could you use?

Possible Solution #1
Use Round Robin DNS. This DNS system can send traffic to a list of web servers. See more on cloudflare.com.

How Do You Troubleshoot the Python Error “(-5:Bad argument) CAP_IMAGES: can’t find starting number”?

Problem scenario
You installed cv2 with “pip3 install opencv-python”

You run a Python program, but you get this error:

[ERROR:0] global /tmp/pip-req-build-afu9cjzs/opencv/modules/videoio/src/cap.cpp (160) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.3) /tmp/pip-req-build-afu9cjzs/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can’t find starting number (in the name of file): https://www.youtube.com/watch?v=abcd1234 in function ‘icvExtractPattern’

What should you do?

Possible Solution
The video file is not there.

How Do You Troubleshoot “Your python3 install is corrupted. Please fix the ‘/usr/bin/python3’ symlink.”?

Problem scenario
You run this command:

sudo do-release-upgrade

But you see this error:

“Your python3 install is corrupted. Please fix the ‘/usr/bin/python3’ symlink.”

What should you do?

Solution
Run this command:

tail -n 20 /var/log/dist-upgrade/main.log

Do you see a message like this?

2022-03-18 19:36:59,240 DEBUG python symlink points to: ‘python3.5’, but expected is ‘python2.7’ or ‘/usr/bin/python2.7’

If so,

How Do You Find Out what Operating System your Linux Server is Running?

Problem scenario
You want to know the distribution and version of your Linux OS. How do you find out without using “cat /etc/*-release”?

Solution
Install Pulumi (it is quick and light), then run a command. Run these three commands:

curl -fsSL https://get.pulumi.com | sh
source ~/.bashrc
pulumi about

The output will tell you what OS you have and its version.

What is the “Chundulah” or the “chandala”?

Problem scenario
You have been listening to Nietzsche’s Will to Power. You heard the term “chandala.” What does it mean?

Solution
The correct spelling is “chandala.” This originally Sanskrit term refers to the lowest class of people (e.g., the outcasts or untouchables). The term “chandala” is considered a slur in parts of India according to The Pariah Problem: Caste,

How Do You Get Metamask to Show the Accurate Balance of a Coin in the Dashboard View?

Problem scenario
In MetaMask’s dashboard, you see a cryptocurrency with a balance that does not seem correct. You click the three dots on the right of the balance and click “Resync Balance.” It appears inaccurate (as you just sent more coins to the address of your MetaMask Portfolio). When you click on the cryptocurrency symbol, you see a “Holdings” balance that appears accurate. Why is there a discrepancy between the “holdings” balance of the individual coin and the dashboard’s balance for this coin?