Systemd StandardOutput not working with python script

If you need to define a Systemd service that run a python script and save standard out to a file, you need to be aware of an (for me) unexpected problem. It seemed easy. Using a recent version of systemd, the following setting should output the...

How to get the same vim colors in terminal and tmux

I have just started using tmux. One small problem I ran into was the colors in vim not matching when using vim inside tmux vs running vim from the terminal on Ubuntu. I found the fix on stackoverflow and it is just a matter of adding set -g...

Fixing missing references in ccls

I am working on a project that started out using Atmel Studio. It has since been moved to a custom Makefile build and I had trouble getting ccls to reference all files probably. The solution was to use compiledb to generate a...

Fixing pip install `use_2to3 is invalid`

I got the following error when trying to install the pybluez module. error in PyBluez setup command: use_2to3 is invalid The fix for now seems to downgrade the version of setuptools to version 58 $ python -m pip install setuptools==58 After the...

Python os.path.join gotcha

Yesterday I learned about a surprising (for me at least) behaviour of the os.path.join function. Here's a quick question. What do you expect this call to return? os.path.join("/a/b/c", "/d/e") I expected the returned path to be /a/b/c/d/e but …

Rename Android package

To rename a package in an Android app is a bit more involved than it probably should be. I found the answer on Stackoverflow and this is just a recap In the project pane uncheck Compact Empty Middle Packages Right click each folder that should be...

Debugging Bluetooth on Android

It can feel like a black box when bluetooth isn't working on Android. The best tool I have found so far, is the hcilog. This is just a few notes about some useful commands for working with the hcilog. First off here is how to enable the hci log on …

Install pyOCD on Raspberry Pi

Installing pyOCD on Raspberry Pi turned out to be a bit more complicated than a simple pip install. The main problem is that pyOCD depend on cmsis-pack-manager but there is no wheel available for Raspberry Pi and the package can't be compiled...