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://addons.mozilla.org/en-GB/firefox/language-tools/
Sander van Dragt's Notes
-
-
A wolf in sheep’s clothes
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.
-
Upgrade BookStack
I use the following script to run a daily upgrade on the #BookStack instance:
#!/usr/bin/env bashpushd /var/www/brain.vandragt.comgit pull origin release && composer install --no-dev && php artisan migrate --forcepopd -
I’ve FINALLY setup a BookStack instance (trivial, once I sorted out a Let's Encrypt issue) for reference documentation. Find it at https://brain.vandragt.com. The ‘pages’ functionality for Known is pretty weak, and I think Bookstack will give me a good organisational structure by default, rather than hacking around in other systems. The Braindump will help me note down things I learn and collate my snippets.
I'll move my reference documentation from my site into it over time.
-
Installing PyInstaller on a Poetry project on MacOS
I'm looking to create a cross-platform executable of my commandline application. The application is using
poetryas the package manager, and I'm running this on MacOS.First we need to install PyInstaller:
$ poetry add pyinstaller --devThen it should be as simple as running the following:
$ poetry shell<br></br>$ pyinstaller --onefile app/app.py
### Macho Libre 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` ### NLTK 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):$ python<br></br>>>> import nltk<br></br>>>> nltk.download()
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](https://stackoverflow.com/a/57130036/997). To get to the right location, ask poetry:$ poetry env list --full-path<br></br>$ 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. -
When a website looks good people will be drawn in; when the experience is good people will come back.
-
Hide Trackbacks 1.1.4
Hide Trackbacks is a WordPress plugin that hides pingbacks and trackbacks from your website comments.
The minimum supported WordPress version is now 5.0 and I've bumped up the version to indicate it is tested against the upcoming 5.4 release.
-
If you need a few minutes of calm in these worrying times, try listening to Ólafur Arnalds https://open.spotify.com/artist/7E3BRXV9ZbCt5lQTCXMTia?si=iqlvP-3NRQGqOAcZ93DUbw
-
Tip: when opening food containers write the DoO (Date of Opening) on the container with a sharpie. Never guess if something is in date!
-
Ready to give up on Python for cli tools and switch to nim or crystal or whatever. Creating and distibuting a standalone executable shouldn't be this hard.