How Do You Troubleshoot “ssh connect to host x.x.x.x port 22: No route to host” on Oracle VirtualBox on a VirtualBox VM?

Problem scenario
You are using Oracle VirtualBox. You get “ssh connect to host x.x.x.x port 22: No route to host”. What do you do?

Solution
In Oracle VirtualBox, go to Devices -Network -Network Settings. Is it attached to “Internal Network”? Try attaching it to “Bridged Adapter” instead.

How Do You Troubleshoot the Python Program Problem “FileNotFoundError: [Errno 2] No such file or directory”?

Problem scenario
Your Python program is trying to invoke a Bash command. But you get an error like this: “FileNotFoundError: [Errno 2] No such file or directory”. What should you do?

Possible Solution #1 Use the shell=True command if your environment is secure. This is not a recommended practice from a security perspective. We have found that this with shell=True syntax can make the error go away:

subprocess.Popen(variableofcommand,

How Do You Get an Android Phone to Filter Ring Notifications Based on the Calling Number?

Problem scenario
You only want your Android phone to ring if certain phone numbers call you. You have “blocked unknown callers” on your Android phone with certain settings. You went to the Phone app -three vertical dots -Settings -Block numbers -Block unknown callers

But you still get calls, or your phone still rings, when unknown callers call you.

How Do You Use Python to Create a Tuple with Extracted and Nested Values from JSON Files?

Problem scenario
You have some JSON files like this:

$cat first.json
{“bird”: {“name”: “singy”, “species”: “sparrow”, “amount”: “45”}}

$ cat second.json
{“bird”: {“name”: “flighty”, “species”: “seagull”, “amount”: “21”}}

Within the “bird” key there are other keys. How do you create a tuple with the species values?

Solution
Place first.json, second.json and the Python program below (called reader.py) in the same directory.