How Do You Fix a Python Program that Returns “Killed”?

Problem scenario
You are trying to write a Python program. It returns “Killed” on a Linux terminal. How should you fix this?

Possible Solution #1
“Aside from running time, the memory space occupied by a program is a principal cost.” (Taken from The Mythical Man-Month, page 238.)

Refactor your code. There is a programming method called “brute force” which is a reference to creating an exhaustive number of possibilities and processing those possibilities.

How Do You Troubleshoot the Ansible Error “This task includes an option with an undefined variable”?

Problem scenario
You have a playbook, and your variables are defined. But you get an error “FAILED ={‘msg”: ‘The task includes an option with an undefined variable. The error was ‘dict object’ has no attribute ‘Name’…”

What do you do to solve this?

Solution
The variable’s source could be blank. With “ec2_instance_info” the module will connect to AWS. If an EC-2 server has not been named in the web console,

How Do You Install wxWidgets on Linux?

Problem scenario
You want to install wxWidgets on Linux. What should you do?

Solution
Run the following:

sudo zypper -n install bzip2 gcc-c++
sudo yum -y install bzip2
sudo apt -y install bzip2

widgetversion=3.0.4
cd /tmp/
curl -Ls https://github.com/wxWidgets/wxWidgets/releases/download/v$widgetversion/wxWidgets-$widgetversion.tar.bz2 /tmp/wxWidgets-$widgetversion.tar.bz2
cp /tmp/wxWidgets-$widgetversion.tar.bz2 /bin/
cd /bin/
bzip2 -d wxWidgets-$widgetversion.tar.bz2
tar -xf wxWidgets-$widgetversion.tar
cd wxWidgets-$widgetversion …

How Do You Access a Linux Server’s GUI Desktop?

Problem scenario
Normally you use Putty to a Debian distribution of a Linux server. You are having trouble using some of the Linux server’s utilities. You try to run the “jsql” command, but you see this:

Apr 29, 2019 1:46:15 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
13:46:17,296 ERROR root:67 – HeadlessException, command line execution in jSQL not supported yet:
No X11 DISPLAY variable was set, but this program performed an operation which requires it. …

How Do You Resolve the “env: ‘python’: No such file or directory” Error without Installing Python 2?

Problem scenario
The security team for your enterprise will not permit Python 2 to be installed. (You do not want to install a new minimal Python package either.) How do you fix the problem of env: ‘python’: No such file or directory when you run a make command?

Solution
The command “python” (not python3), will work after you run this script. Run this script as sudo (e.g.,

How Do You Troubleshoot Craft CMS Not Presenting Its Website After the Installation?

Problem scenario
You installed CraftCMS. But there is no port activity on port 80. You want to go to the front-end now. You cannot get to it via a web browser. What do you do?

Solution
Is there a firewall or public cloud security group (e.g., an Azure Network Security Group) blocking traffic to the public IP address over port 80? GCP’s firewall could block HTTP traffic such that nmap commands would not show activity over port 80.