People recognise faces. Make sure your logo has a positive connection.
My server ran out of space, it turns out NextCloud was holding on to 30GB of trash! Fixed as per https://
Firefox's spelling checker wasn't working for me, and unfortunately it doesn't support the macOS default one, so I was seeing a lot of spelling errors. I fixed it by installing the recommended links at https://
Moving contact tracing down the stack fundamentally changes the amount of control users have: you can uninstall a (contact tracing) app, you cannot uninstall the entire OS
That's a very worrying development.
I’ve FINALLY setup a BookStack instance (trivial, once I sorted out a Let's Encrypt issue) for reference documentation. Find it at https://
I'll move my reference documentation from my site into it over time.
I'm looking to create a cross-platform executable of my commandline application. The application is using
poetry as the package manager, and I'm running this on MacOS.
First we need to install PyInstaller:
$ poetry add pyinstaller --dev
Then it should be as simple as running the following:
$ poetry shell
$ pyinstaller --onefile app/app.py
However, this resulted in the following error:
ModuleNotFoundError: No module named 'macholib'
macholib can be used to analyze and edit Mach-O headers, the executable format used by Mac OS X.
It’s typically used as a dependency analysis tool, and also to rewrite dylib references in Mach-O headers to be @executable_path relative.
Manually adding this dependency to the project addresses this:
$ poetry add macholib --dev
However, now calling pyinstaller again throws up a new error:
Unable to find "nltk_data" when adding binary and data files.
NLTK is a leading platform for building Python programs to work with human language data. It provides easy-to-use interfaces to over 50 corpora and lexical resources such as WordNet, along with a suite of text processing libraries for classification, tokenization, stemming, tagging, parsing, and semantic reasoning, wrappers for industrial-strength NLP libraries [...].
Fortunately we can download the missing data as follows (from within the poetry shell):
>>> import nltk
Press the download button on the window that pops up and make sure the installation path matches the error message path.
Then fix the path to NLTK in PyInstaller according to this StackOverflow answer. To get to the right location, ask poetry:
$ poetry env list --full-path
$ cd <path>/lib/python3.7/site-packages/PyInstaller/hooks
Rerunning the pyinstaller command after this produced an executable! However it's 1.2GB, propably due to including the macholib library.
I will update this post when I've figured this out.
If you need a few minutes of calm in these worrying times, try listening to Ólafur Arnalds https://
I updated the "Auto-Update Nextcloud" post with a new version of the script to update the installed apps as well! https://
I just released Fafi v0.1.5-alpha. Fafi is a console application that indexes and searches the page content of Firefox bookmarks.
pipx install fafi
v0.1.5 stores the database into it's own application settings (using https://
I run my own Nextcloud server, and every other week there's an update to the server, or one of the plugins I've enabled. The following steps enable automatic updates to the Nextcloud server.
This assumes Nextcloud is installed under
Add a scheduled task as the webserver user:
$ sudo -u www-data crontab -e
Add the following line to run the upgrade script once a day at 4:05am. Instead of running the upgrade process directly we run a script so that we can also run it from the shell if needed:
5 4 * * * cd /var/www/nextcloud && ./upgrade.sh
Now create the script and make it executable:
$ cd /var/www/nextcloud
$ nano upgrade.sh && sudo chmod +x upgrade.sh
The script itself runs the server updater, the no-interaction argument prevents prompting for questions, followed by the occ utility to update all installed apps.
pushd $(dirname $0)/updater
/usr/bin/php updater.phar --no-interaction
cd ..; ./occ app:update --all
All my local shops have run out of hand gel sanitizer, but still have bars of soap available. It’s very weird as the latter is more effective in getting rid of dirt and virus from your hands. #corvid19