Categories
Uncategorized

Blog migration to Hugo

I am working on a blog migration to hugo. I have three main reasons for this. Reason one – backups. I really don’t like doing database and content backups. With git this is easy, I’m using it each day anyway. Reason two – code snippets. Inserting code in WordPress is a fudging pain. That is […]

Categories
Uncategorized

install “legacy” brew on M1 apple silicon

I tried installing homebrew for about 3 days following the completely identical howto postings out there (i.e. “prefix with ‘arch -x86_64′”). Alas, it didn’t work: The other recommendation (run the whole terminal under Rosetta2, scroll down to “Running a special flavorĀ […]”) also did not work. What did finally work though was changing my login shell […]

Categories
Snippets Uncategorized

nextcloud and Docker and reverse proxies

I have a nextcloud setup like described here (docker-compose, let’s encrypt proxy companion, postgres and nextcloud). And for a while I couldn’t connect any new nextcloud clients to the installation. This fixed it: <?php $CONFIG = array ( # manually added because it’s not picked up from # the env vars once set … it […]

Categories
Uncategorized

A more peaceful rant about Java & Camel

I did it. I feel like I survived something, like I am on the path on enlightenment (and it feels like raising the foot for the first step in a yourney which I know to be several AEs long). Anyway, I’m kinda happy. What did I do? I succeeded to write this Java code using […]

Categories
Uncategorized

cert-manager too old …

Today cert-manager stopped issuing certificates, and all requests said “insecure website”. Uncool, since this affected our Confluence and our sign-in mechanism. So let’s find out what was happening, right? Turns out cert-manager considered itself “too old” (“your ACME client is too old”, literally) and wanted to be updated. So far, so good. Just perform helm […]

Categories
Uncategorized

Windows after 13 years – and nothing changed

I have a Windows PC again, after about 13 years of abstinence and never looking back. (Why? Gaming. Once in 13 years is OK I guess). And nothing changed. Step 1: Uninstalling crap Uninstall those things from the Windows menu: Candy Crush, Cooking Fever, and three others I forgot to document. It’s a pristine ISO […]

Categories
Uncategorized

Powershell, O365 & Teams PSTN calling

Unfortunately you need a Windows system to administer Office 365 with PowerShell. It’s only API calls, but it’s not (yet, hopefully) migrated to .NET Core. So Mac & Linux users are out of luck, although .NET Core should be more than capable to do this. Anyhow. If you want to administer Teams with PowerShell, you […]

Categories
Uncategorized

Misc Django I – forms

Custom form errors If you want to validate something in the view, and return with a custom error message in the same form, you can use the “Form.add_error(fieldname, errorstring)” method. And then, of course, return to the previous template. class MyView(View): def get(self, request): data = form.cleaned_data if len(res) > 0: form.add_error( ‘login’, “Diese Personalnummer […]

Categories
Uncategorized

Django, psql & “permission denied” on migrate

I got this error: psycopg2.ProgrammingError: permission denied for relation django_migrations … when I wanted to do a “python manage.py migrate”. This post had the solution. In short: You have to change the owner of the tables to the one specified in the Django configuration. This is how my script looks: #!/usr/bin/env bash echo “ALTER TABLE […]

Categories
Uncategorized

Firefox close tab buttons on mouse hover

I used to have Firefox’s TabMix Plus addon installed. And the feature I missed most – surprisingly – is to have the “close tab” buttons appear on a tab when you hover the mouse over it. Googling a little bit told me how to bring it back: Create a userChrome.css file ($FF_PROFILE_FOLDER/chrome/userChrome.css) Enter the code […]