Using an Android phone, How Do You Turn on Notifications of Voicemail?

Problem scenario
You received voicemails, but there was no indication you received them. How do you get notified that you have a voicemail with an Android phone?

Solution
1. Find the Voicemail application.
2. Open it and go to Settings -Notifications
3. Make sure the “Show notifications” is turned on

How Do You Display a Fixed Number of Numbers after the Decimal Point in Python?

Problem scenario
You want to display a specific number of places after the decimal (e.g., one, two or three) with numeric values in Python. You want the decimal value to be rounded if it is too long. How do you always show (including trailing zeroes) a specific number of places to the right of the decimal point?

Solution
This Python 3 program will illustrate how:

x=123.45678
y=”{:.3f}”.format(x)
print(y)

a=123
b=”{:.1f}”.format(a)
print(b) …

How Do You Install snap on a RHEL 8.x Server?

Problem scenario
You want to use Juju (e.g., to install Kubernetes in AWS). You are using RHEL 8.x. What should you do?

Solution
Run these commands:

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf upgrade
sudo yum install snapd
sudo systemctl enable –now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

Log out and log back in.

How Do You Get CentOS to Use the Internet Running Oracle VirtualBox (Because of an Error That the Network Is Unreachable)?

Problem scenario
On a CentOS server running in VirtualBox, networking is not working. You cannot ping the default gateway or get to the internet. When you try to ping something, you get the error message in a terminal “connect network is unreachable.” What should you do?

Solution
In Oracle VirtualBox, go to Devices -> Network Settings. Make sure the adapter is attached to “Bridged Adapter”.

What Is Rotating a List in Computer Programming?

Problem scenario
You have read about lists or arrays being rotated. What does this mean in computer programming?

Solution
Lists and arrays can be interchangeable in many contexts. Java supports arrays and Python supports lists. Both are zero-based. That is, the first item in each is indexed as 0. Lists in Python are circular: the last item in the list can be referred to as -1 and the penultimate item can be referred to as index -2.

How Do You Import a .mbox into Thunderbird to View the Emails?

Problem scenario
You want to view the emails in a .mbox file. You are using Thunderbird. What do you do?

Solution
Overview: Install the ImportExportTools NG add-on. Have another email account (an empty one or something else) that can accept the emails in Thunderbird configured.

Procedures

  1. Open Thunderbird
  2. Click the hamburger symbol (of three horizonal bars in the upper right hand corner)
  3. Go to “Add-ons”
  4. Search for “ImportExportTools”
  5. Click the hamburger symbol (of three horizonal bars in the upper right hand corner)
  6. A mailbox,

What Happens Technically when Someone Opens a Web Browser and Goes to a Website?

Question
Surfing the World Wide Web happens as a part of everyday life. In a job interview, you are asked to describe what happens behind the scenes when you open a web browser and enter a URL. The hiring manager wants to hear your knowledge of assembling packets of PHP, JavaScript, HTML, networking, or other technologies involved and how the sequence proceeds. What are the details of what happens behind-the-scenes?

How Do You Get Chef to Be Automatically Installed and Configured (e.g., in a Docker Container)?

Problem scenario
You have a Docker container that supports Chef or some automatic way of installing Chef. The automation is failing at the end because you are being prompted to accept a license. What should you do to be able to invoke Chef commands automatically?

Solution
With the first Chef command, e.g., “chef env”, use the “–chef-license accept” option/flag. Here is an example:

chef env –chef-license accept

For more information,

How Do You Troubleshoot the pip Message ‘sys.stderr.write(f”ERROR: {exc}”)’?

Problem scenario
You run a pip command (e.g., pip –version), but ou get an error like this:

Traceback (most recent call last):
File “/home/mike/.local/bin/pip”, line 7, in
from pip._internal.cli.main import main
File “/home/mike/.local/lib/python3.*/site-packages/pip/_internal/cli/main.py” , line 60
sys.stderr.write(f”ERROR: {exc}”)

You no longer want to use Python 2 in on the server. What should you do?

Solution

1.a.