I used to put everything into Jenkins that I could because,
other people seemed willing to use its bubbly interface and that meant people would use it and go click a button or two and get what they needed instead of interrupting me (and my precious programmer flow). Bless their hearts, it’s not their fault, but I need to preserve my ability to concentrate,
so I fell in love with Jenkins,
I learned many fancy tricks and I liked how you could duck tape stuff together but, I was making long Jenkins files that did a lot of stuff.
I’ve…
Video Version: https://youtu.be/Tiq_vea5Eqg
If you’re running into this error when using OnnxRuntime in Python, it’s because you’re missing a Cuda dependency or something,
ImportError: cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state
The OnnxRuntime doesn’t make it super explicit, but to run OnnxRuntime on the GPu you need to have already installed the Cuda Toolkit and the CuDNN library.
First check your machine and make sure you have a Cuda Enabled Card. If you have a pretty recent NVIDIA card you are probably good, but go to the NVIDIA website and check the compatibility tables and make sure if needed.
The Windows…
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…
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:
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"}
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
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.
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…
Research and Development | Dev Ops | Software Engineer | Topaz Labs