Install Go on Ubuntu 18.04, Using Snap

Refer: https://www.codeooze.com/ubuntu/ubuntu-18-golang-snap/

Step 1: Check if Go is already installed
$ go version

Step 2: Install Go using snap, see what's available
$ snap info go

Step 3: Classic confinement error
Explanation: Most snaps are installed in confined containers and only have limited access to other system resources. However, snaps published with classic confinement have greater access to the rest of the system, which is desirable for scripting packages such as Go.

$ sudo snap install go --classic

Step 4: Verify the install
$ snap list
$ go version
$ go env

Conclusion
You have now successfully installed Go in Ubuntu 18 using snap

Windows Always Shows “Missing Important Fixes”

Fixing "Your device is missing important security and quality fixes."
Refer: https://www.youtube.com/watch?v=1wjtBFTPR00

On a Windows 10 based computer, the following warning message is displayed in Update and Security center: "We couldn't connect to the update service. Your device is at risk because it's out of date and missing important security and quality updates. Let’s get you back on track so Windows can run more securely."

Telemetry Level: There is an option in Windows Group Policy Editor that allows you to control the levels of the Telemetry. It just so happens that some Windows Updates (especially the cumulative updates) won’t be delivered to your system if your Telemetry level is set to Security only.

This tutorial will apply for computers, laptops, desktops,and tablets running the Windows 10 operating system (Professional, Enterprise, Education) from all supported hardware manufactures, like Dell, HP, Acer, Asus, Toshiba,Lenovo, and Samsung).

Here's the fix

gpedit.msc
"Computer Configuration"
"Administrative Templates"
"Windows Components"
"Data Collection and Preview Builds"
"Allow Telemetry"

Originally "Not Configured"
Changing to:
Enabled, Enhanced

Disable Windows Git Credential Manager

Refer: https://stackoverflow.com/questions/37182847/how-do-i-disable-git-credential-manager-for-windows

OK, I discovered that you need to either avoid checking the "Git Credential Manager" checkbox during the Git for Windows installer, or (after installation) run the Bash shell as Administrator and use git config --edit --system to remove the helper = manager line so that it is no longer registered as a credential helper.

For bonus points, use git config --edit --global and insert:

git config --edit --system

[core]
   askpass =

To disable the OpenSSH credentials popup too.

Creating a Stand-alone Jar File in IntelliJ

Navigate IntelliJ
File, "Project Structure", Artifacts
Click + "Plus Sign", and Select "Jar", "From modules with dependencies"
Now select the "Main Class" you wish to use (e.g. "DemoClass")

Keep defaults as-is
"extract to the target JAR"
"Directory to META-INF/MANIFEST.MF" points to source folder
Click "OK"

Now build the jar file
Build, "Build Artifacts", "Build"

Your jar file should now be in, or the equivalent
JavaFun/out/artifacts/JavaFun_jar

Run the file with
java -jar JavaFun.jar

Tree list of pom.xml files

Use the following example to list all of the folders that contain a pom.xml file

Refer: https://www.computerhope.com/unix/tree.htm

tree --prune -P "pom\.xml"

Issue with Updating Docker on Ubuntu 18.04

Reading package lists... Done
E: Repository 'https://download.docker.com/linux/ubuntu bionic InRelease' changed its 'Label' value from 'Docker EE' to 'Docker CE'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

Refer: https://forums.docker.com/t/apt-repo-label-changed-from-ce-to-ee/82488/5

$ sudo apt-get --allow-releaseinfo-change update

VirtualBox Company VPN Issues with DNS

Refer: https://superuser.com/questions/570984/virtualbox-guest-ubuntu-loses-dns-when-host-connects-to-vpn

$ sudo gedit /etc/NetworkManager/NetworkManager.conf

Comment out, the plugins line below (shown before commenting)

[main]
plugins=ifupdown,keyfile,ofono
# dns=dnsmasq

Notes: had a very similar situation with Lubuntu 16.04 (should be identical in other Ubuntus) but this fix did not improve the situation. At least with 16.04, the problem appears to be that NetworkManager uses a local DNS proxy (dnsmasq), and this doesn't play nice with VPN connections, at least in the default configuration.

Commenting/deleting dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf

Note: This fixed was applied too on the Windows host, but it did not seem to make a difference, go ahead and do both.

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyvm Ubuntu-1804-Convert --natdnshostresolver1 on

Update Brave Key

Refer: https://github.com/brave/brave-browser/issues/4097

curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

HL-2170W Laserjet Reset Drum

5.0 out of 5 starsBefore you buy.... Simply reset the drum counter

October 24, 2013

Verified Purchase

I love my Brother HL-2170W printer and always get Brother brand toner for it. After using several toner cartridges, I started to get "replace the drum" messages but I ignored them because the print quality was fine. Then finally the 'Replace Drum' light came on and the printer refused to print at all. I ordered this Brother brand drum, and when I got it I saw in the instructions that I needed to reset the drum counter after installing the drum. (Keep the power on and the front door open. Hold down the ON button until all four lights light up, then release the button and close the door.)

Just for kicks, I put the old drum back into the printer and reset the drum counter. Sure enough, the printer is now all set, printing just fine. Someday, when the print quality suffers due to streaking, etc., I'll actually open up the new drum that I have just purchased and install it. In the meantime, I'll keep resetting the drum counter.

I wish I'd tried resetting the drum counter before I ordered this. But it's good to have it on hand, just in case.