Cleaning up Python – and old libraries

Newer Ubuntu releases do not even pre install Python2, and after an upgrade and installing latest Python3.x included in the release, you likely have some old ones there too. Since you most likely will not be using the python2 unless you use some very old library, you can clean them up, clear a lot of disk space and use the “python3” / “pip3” command instead.

Continue reading “Cleaning up Python – and old libraries”

Injecting commands and debugging a running Python program, with Project Euler example

How often has it happened to you… you build a simple script to calculate something, run some bulk process, and coming back after an hour or so it just hangs with no output. Is it doing something or stuck? You could debug it, using WinPdb or Visual Studio Code debugger or GDB to run it step by step, but that would lose the time that it has been processing. Instead, you can use Pyrasite, a program for looking in to a running Python script!

Continue reading “Injecting commands and debugging a running Python program, with Project Euler example”

Linux 5.9

Recently, Linux 5.9 was released! While folks are unlikely to see this in any distribution very soon, it brings some improvements that will be a clear reason that we will hear about it very soon (ok, enough ham radio jokes 🙂 )

Although it’s not something particularly recommended for your main system, but you could install it now – in fact with kernels of Linux you can generally switch it out and if it doesn’t work, just select the old one at the boot screen.

Better things to do this Oct 31st

This has been a challenging year for many of us, and while it may be tempting to go visit neighborhood houses for parties or candy, the extra sugar and staying out in the cold could possibly be a setback from healthy progress in recent weeks. Some say sugar worsens immune function. Instead you might consider activities including:

  1. Reading, study
  2. Watch some interesting Makerfaire videos, as most areas didn’t get a Makerfair this year 🙁
  3. Build something on the computer and present at a hackathon – there’s a Tmobile hackathon, a Here Maps hackathon, Post COVID Hackathon, hack-or-treat going on.

Machine learning SVM – the usefulness of kernels

If you’ve read through how Support Vector Machines work, you probably know the linear simple SVM might not work in all cases… but how does it fail? Let’s take a look at an example I tried like to my simple example… but change it to be a larger space than just 4, and separated with a region in the middle, and the region around it (positive, negative labelled areas to learn):

Continue reading “Machine learning SVM – the usefulness of kernels”