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, …

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.

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?

How Do You Troubleshoot a Puppet Manifest when The Errors and Logging Do Not Help You? (abridged version)

ABRIDGED VERSION (To see the unabridged version, see this posting.)

Problem scenario
A Puppet manifest is not working, but there are no obvious error messages. When running the puppet agent command, you use the -d flag for debugging. In your manifest, you use logoutput => true stanza. But still, you cannot figure out why your manifest is not working.

You tried this command: puppet parser validate nameOfManifest.pp

The above command had no output.

Should Environmental Data Be Placed Into Version Control?

Problem scenario
You are not sure if environmental specific values should be placed into version control. What should do you?

Solution
Some people think that everything should go into version control. But others disagree. Here are examples of each philosophy:

“You need to get everything in version control. Everything. Not just the code, but everything required to build the environment.” (This was taken from page 297 of The Phoenix Project.) This is very clear in how it disagrees with the twelve-factor app principles.

What Is The Difference between Unit Testing and Functional Testing?

Question
What is the difference between unit testing and functional testing in the context of professionals using one over the other?

Answer
A user wants to verify that the software behavior is correct from a black-box perspective; this more closely describes functional testing. A programmer is more concerned about the theoretical aspects of the code and its inner workings; this more closely describes unit testing.

How Do You Use the “next” Function to Iterate Through an Iterable in Python?

Problem scenario
You want to use the reserved word “next” to parse through an iterable. What do you do?

Solution
Run this six-line program as an illustration:

contint = [ 15, 50, -100, ‘foobar’]
var1=iter(contint)
print(next(var1))
print(next(var1))
print(next(var1))
print(next(var1)) …