Language: Java

java 11.0.9 2020-10-20 LTSJava(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)

jdk-11.0.9

Image for post
Image for post
My Java dir in Program Files

OS: Windows 10


This one is for Windows:

Tested with TeamViewer with mixed results depending on computer, may work for other remote viewer software

https://knowledge.civilgeo.com/knowledge-base/enabling-gpu-rendering-for-microsoft-remote-desktop/


Image for post
Image for post
Error Message screencap

Got this error running Conan on MacOS, trying to build a package that required opencv 4.5.0 to build from source.

On first glance it looks like OpenCV is messed up or maybe conan but if I look up past all the red text I can see the real original cause of the issue. The red text is just a cascading consequence of this original error message.

For this reason, I do advise not to stop reading a log at the first error message you find, but instead to try to see if there is some cascading effect and to see…


Image for post
Image for post
some rainbow bash for the kewl colors

A for loop is a relatively simple concept, but I wanted to break down the syntax here because under the hood, bash is very much, and I cannot exmphasize this enough, not C. I do try to see what’s happening under the hood though so that when I copy paste from StackOverflow and it doesn’t work, I can actually troubleshoot.

You can loop through arrays in bash like this

array=(thing1 thing2)for i in "${!array[@]}"; do
echo ${array[$i]}
done

If you want to iterate through pairs, an easy way to do that would be something like this:

xvalues=(x1, x2, x3)


Note: please feel free to comment if the tutorial does not help you and why. Also, I do check my email on weekends, please feel free to send requests to ashley.tharp@gmail.com for tutorials and feedback.

Error Message from Git Bash:

bash: pip: command not found

Error Message from DOS command line:

'pip' is not recognized as an internal or external command,
operable program or batch file.

If you’ve literally just installed Python, you may want to rerun your Python installer and make sure you check this box:

Image for post
Image for post

If not, no worries, you can add Python and the PIP directory to…


Jenkins: Invalid Credentials

Note: please feel free to email me at ashley.tharp@gmail.com with questions, or leave a comment to let me know any adjustments that can be made to make this tutorial better. :)

Invalid credentials: https://api.github.com/user {“message”:”Bad credentials. The API can’t be accessed using username/password authentication. Please create a personal access token to access this endpoint: http://github.com/settings/tokens","documentation_url":"https://docs.github.com/articles/creating-a-personal-access-token-for-the-command-line"}

Image for post
Image for post

Here’s how to fix this:

Github deprecated logging in with a user name and password so what you need to do is to create a “personal access token”

Go to here:

github.com/settings/tokens

It looks like this at the top of the page:


Book Review: Habits of a Happy Brain by Loretta Graziano Breuning Phd

Image for post
Image for post
The cover

This book is about happy chemicals and how to make your brain emit them. It is a happy-chemical centric strategy book.

Difficulty: not difficult

Basic Premises: Happiness is a chemical reaction, so be a good chemist. There are 4 happy chemicals: Serotonin, Dopamine, Ocytocin, and Endorphin.

Potentially Controversial Takes: This book references the theory of evolution a lot.

My Favorite Passage:

Your cortex is always making predictions about future pain and future rewards. But anticipated rewards don’t always materialize, which is another source of cortisol. Your cortex can…


Windows 10 comes with an application called “Remote Desktop”

You don’t have to pay for it.

You can connect to any machine you know the IP address for and the username and password credentials for using Windows Remote Desktop.

You don’t have to connect to another Windows machine, you can connect to another Ubuntu (or whatever Linux flavor) machine, but, you will need to setup something called xrdp on the Linux machine first.

  1. Open a terminal
  2. Enter these commands
sudo apt-get update sudo apt-get install xrdp sudo apt-get install xfce4 #Optional stuff sudo apt-get install xfce4-terminal sudo apt-get install gnome-icon-theme-full…


I use this trick all the time.

Finding a convenient and handy file renamer I guess wasn’t that fruitful, but I have used this python trick more times than I…

Ashley Tharp

Research and Development | Dev Ops | Software Engineer | Topaz Labs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store