Wednesday, January 4, 2023

python not found under debian

I tried to test something for python3 on a linux server with debian. python3 was supposedly installed, but it couldn't find it.
apt install python-is-python3
The above line fixed things...somehow...so they worked.

Sunday, January 1, 2023

MPLAB X IPE has a grey connect button under MacOS

I hadn't touched MPLAB-X for a year. I have a little PIC32 EK starter kit that I use for some automation. I was attempting to make a copy of the board that I had, and at some point, the IPE stopped "allowing" the connection to the board under MacOS.
So, what I figured, which turned out to be true is that a security policy overwrote the original privleges. I went into "Security and Privacy" and added the mplab-ipe application AND the java executalbe that it uses as a developer application.
After that, everything is fine.
...except that's 2 hours of my life that I'll never get back. I'm sure there's some log file that says what has been blocked via secuirty policy, but I've yet to find it. I even asked the "Internet".

Thursday, August 11, 2022

Changes between KiCad 5.x and 6.x

Overbar was ~CEN and is now ~{CEN1}
Libraries!  This is the biggest difference.
Pins can be on the top or bottom of hierachial sheets.
Hierachial sheets can be resized by "corners".

Wednesday, July 20, 2022

Remove a known key in .ssh/known_hosts

I couldn't use the ssh tools on the system for some reason. Also, it's not a system with a lot of gnu tools. They did have perl.
To remove line 21 from known_hosts, I settled on:
perl -pi -e 's/\Q$_// if ($. == 21);' ~/.ssh/known_hosts

Tuesday, June 7, 2022

vispy segfault

You never remember the difference between computers. Vispy wasn't working.

degs:vispi% python line-draw.py
zsh: segmentation fault  python line-draw.py

This doesn't give you much to go on. After diving into the debugger, I found that I had a bad binding from Python into the Qt5 library. I fixed it with:
sudo port install Qt5
pip install PyQt5 

Friday, October 29, 2021

debian didn't have the correct locale

This was one of those frustrating things.
root@mxg:~# update-locale
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_All = "C.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I fixed it with this:
export LANGUAGE=en_US.UTF-8; export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; locale-gen en_US.UTF-8
After that, reconfigure dpkg
root@mxg:~# dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.