How Do You Write a Palindrome Testing Program in Python That Ignores Punctuation and Spaces?

Problem scenario
You want to write a palindromic testing program without importing any modules that ignores a string’s punctuation or spaces. What do you do?

Solution
Use this program:

def is_palindrome(s: str) -> bool:
# i moves forward, and j moves backward
i, j = 0, len(s) -1
while i < j:
while not s[i].isalnum() and i < j:
i += 1
while not s[j].isalnum() and i < …

What Are The Differences between Built-In Commands, Utilities, System Calls and Non-System Calls?

Question
You want to know what the differences are between built-ins, utilities, system calls and non-system calls. What are some examples of these?

Answer
You can break down the answer into four categories of Linux commands. You have commands that are either built-ins or utilities. You have commands that are either system calls or they are not. Here is a diagram for four types of commands and their examples:

BuiltinsUtilitiesSystem Callschown, …

What Do You Do If There is Play in the Handlebars of Your Folding Bike?

Problem scenario
You have a collapsible bicycle (for commuting in a big city), and the handle bars have play in them. What should you do?

Solution
Verify the mechanism for securing the bike in “riding mode” is in place. Some folding bikes have latches that help secure the handle bars in place. If you forgot a step like this,

…

For Storing Data for with Few Transactions and Little Loading with a Need for Compression, Would a Column-Oriented Database Be Better than a Row-Oriented Database?

Problem scenario
You are trying to select a database that is right for your needs. You will not be doing many transactions. The database does not need to support regular ETL or OLTP. You are going to have a large database, and you want it to compress to the smallest size possible. In some cases a column-oriented database better than a row-oriented database. What type of database should you use for this situation?

…

How Do You Configure Thunderbird on Linux to Work with Web-Based Email?

Problem scenario
You want to configure Thunderbird to work with a web-based email account. What do you do?

Solution
Prerequisite

This assumes Thunderbird has already been installed. With CentOS/RHEL/Fedora, run this from the command line: sudo yum -y install thunderbird

With Debian/Ubuntu/Mint distributions of Linux with a GUI desktop, Thunderbird is usually already installed.

Procedures

  1. Launch Thunderbird.

…

How Do You Regain Access to Desktop Running in Oracle VirtualBox?

Problem scenario
You are using Oracle VirtualBox and a CentOS/RHEL/Fedora VM. You stepped away from your VM and now it appears the screen is locked. You do not see the desktop items you had open. You see there may be a new notification and you see the time. You tried to enter Ctrl-Alt-Del, Control-Alt-End, Control-Alt-Insert. None of the key combinations prompted you for your credentials. How do you log back in after the screen saver kicked in on your Red Hat distribution of Linux?

…

How Do You Build a Flask Application to Return the Price of a Cryptocurrency?

Problem scenario
You want to write a Flask program to display the high and low prices of a given cryptocurrency for a given day. You want the output to include the volume too. How do you do this?

Solution
Prerequisite

This assumes that you have installed Flask and pandas.

Procedures
Run this program.

…

How Do You Keep a Windows 10 Hard Drive Using the Correct Time?

Problem scenario
You have two hard drives in your computer (e.g., desktop or laptop). You boot to each one from time-to-time. One hard drive is a Linux OS and the other is Windows 10. When you switch between the hard drives, your Windows OS has an incorrect time set. What should you do to stop needing to manually reset the time zone each time you boot to Windows?

…

How Do You Deal with Forearm, Hand and Wrist Pain from Keyboard Usage?

Problem scenario
You want to prevent hand, wrist or forearm pain from regular computer usage. What should you do to learn more about this and keep your hands/wrists/forearms from hurting?

Possible Solutions
Disclaimer: This is not medical advice. Repetitive motions can cause long-term health problems, and this website is purely for general information. Do not hesitate to consult with a real medical professional for your concerns or pain.

…