How Do You Deal with a Monitor Appearing in the Control Panel of Windows when That Monitor is Not Physically Attached to the Computer?

Problem scenario
In Windows Control Panel for Screen Resolution you see a reference to a monitor. But no monitor is physically attached. The monitor’s graphic reference is dark (not a bluish gray) in the visual depiction of the positions of the different monitors. How do you eliminate this extra monitor reference?

Do you need to reinstall a display adapter or video card if there is an extra monitor listed in the Screen Resolution of the Windows Control Panel when no such monitor is physically attached?

How Do You Create a Recovery Drive (e.g., a USB stick) for Windows 10?

Problem scenario
You want a USB stick to use in case you need a new hard drive (e.g., your hard drive crashes). How do you create a recovery USB stick?

Solution

  1. Remove all USB sticks (as a recommended practice) except a USB stick that can be overwritten. This USB drive should have 8 GB or greater capacity.

How Do You Test if a REST API Call Is Reaching a Linux Server?

Problem scenario
You have a Linux server with a web service listening on port 443 (or some other port). You are not sure if another server can reach this Linux server. There could be firewall issues or network problems restricting connectivity on a given port. You have used ping to test connectivity. You have used nmap to verify the port is listening. But you are not 100% sure the REST calls are reaching the intended server on the correct port (e.g.,

How Write a Custom Method inside of a Class in Groovy?

Problem scenario
You are familiar with Groovy scripts. Now you want to use a class and a method in the class. How do you do this?

Solution
Prerequisites
Install Groovy. See these directions for Ubuntu/Debian if you need assistance; see these directions for CentOS.

Procedures

  1. Create a file called test.groovy with the content below:

class Example {
def static Display(nifty) {
nifty.call(“Red”); …

How Do You Connect to a Particular Docker Repository or Registry to Run a “docker push” Command?

Problem scenario
You want to use the “docker push” command. But you do not know how your Docker host is configured. You want to know what repository your Docker host is configured to use. How do you determine which repository your “docker push” commands will be destined to?

Solution
Docker push involves a destination Docker registry — not a repository. A registry is a collection of Docker repositories (things that hold versions of Docker images).

How Do You Troubleshoot the Message “ModuleNotFoundError: No module named ‘awscli'”?

Problem scenario
You try to run an AWS CLI command. But you receive this error:

‘ File “/bin/aws-cli-1.16.226/bin/aws”, line 19, in
import awscli.clidriver
ModuleNotFoundError: No module named ‘awscli’

Solution
Did you run sudo python3 setup.py install ? If you only ran the build step, this could happen.

How Do You Troubleshoot “/usr/bin/env: ‘python’: No such file or directory”?

Problem scenario
You try to run an AWS CLI command but you receive this error:
/usr/bin/env: ‘python’: No such file or directory

What should you do?

Possible Solution #1
If Python 3 is not installed, install it. You may want to see these postings:
How Do You Upgrade to Python 3.x on Ubuntu 16?
How Do You Upgrade Python 2.x to Python 3.7 in Debian or Ubuntu Linux?