How Do You Install an rpm/yum/dnf Package in a Non-Stardard Location?

Problem scenario
A partition is filling up on CentOS/Stream/RHEL/Fedora Linux. You do not want to have a package be installed in /usr or some “normal” location. You want to uninstall a package and reinstall it elsewhere. But moving the directory won’t work because the binary command will point to the old location. What should you do to get the destination of the installation to be something customized (and not the default directory)?

How Do You Troubleshoot the Python Problem “TypeError: ‘module’ object is not callable”?

Problem scenario
You run a Python program with datetime, but you get the error “TypeError: ‘module’ object is not callable.” What should you do?

Solution
Even though you may use “import datetime” at the top of the program, you should use “from datetime import datetime, timezone” at the top. If you used the syntax “datetime.datetime…”, you will need to remove one of the “datetime.” strings from the code.

What Do the Terms Upstream and Downstream Mean in I.T.?

Question
What do the terms upstream and downstream mean in I.T.?

Answer
If a project B is downstream from project A, project B has evolved from project A. In the genealogy of software/code/projects, project A is said to be upstream to project B if project A is an ancestor of project B. Project D is said to be downstream to project C if project D is a descendant of project B.

How Do You Troubleshoot “wine: could not exec wineserver”?

Problem scenario
You installed wine. You ran a command, but you got this:
“wine: could not exec wineserver”

What should you do?

Solution

1. Run this:

sudo find / -name wineserver64

2. Run this command but replace “/path/to” with the path to the wineserver64 file you found above:

export wineserver=/path/to/wineserver64 …

How Do You Run Code in the Eclipse IDE?

Problem scenario
You are using Eclipse for the first time. You try to to use Run, but you get an error message like this: “Unable to Launch The selection cannot be launched, and there are no recent launches.” Or you try to go to “Run configuration” and you have a prototype, but the “Run” button is grayed out. What should you do?

Solution
In the Run configuration section,

What Are Some Songs During the American Revolution?

Question
What patriotic songs were written during the American Revolution?

Answer
The Toast” by Francis Hopkinson
World Turned Upside Down” (instrumental)
The Liberty Song” by John Dickinson
Free America” by Joseph Warren
Chester” by William Billings; see also: https://en.wikipedia.org/wiki/William_Billings
Yankee Doodle

My Days Have Been So Wondrous” by Francis Hopkinson.

How Do You Find the JQuery Version from the Command Prompt of a Linux Server?

Problem scenario
You are using Linux, and you want to know what JQuery version is installed. What do you do?

Solution
JQuery is a library to work with Javascript. There are many ways to install JQuery: git, using a .tar.gz file, the YARN CLI, or the npm command.

If it was installed with npm, one way find out the version is to run one of these command:

npm view jquery versions
npm view jquery version
npm view jquery
npm info jquery
npm ls jquery

This solution was partially taken from this external page.

How Do You Troubleshoot a “File Not Found” Message?

Problem scenario
You run a command, but you get a message like “filenotfounderror”, “file or directory does not exist” or something similar. What should you do?

Possible Solution #1 (assuming that the file exists)
Do either i. or ii.
i.a. Find the original file with a command like this: sudo find / -name foobar
i.b. Create a symbolic link or a hard link to the file.

How Do You Troubleshoot the Error “flatpak … no version info or cannot open shared object file”?

Problem scenario
You open a terminal window in Linux. You get an error like one of the following:

flatpak: /lib64/libldap_r-2.4.so.2: no version information available (required by /lib64/libcurl.so.4)

flatpak: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory

What should you do?

Solution
(This solution will work if the file is in a different location from where it was expected on your server.)
1.