I’m so tired of it. I’m using MongoDB and you can store files, great. But the Go driver, the official one sucks. And the mgo driver is abandoned. The official driver is also slow, slower than Postgresql. 3.2ms for querying a dataset of 5k entries and another {“_id”: {“$in”: [“list”, “of”, “objectids”]}} that’s 1-20 long…
Read ArticleCategory: Entwicklung
Webentwicklungg, Programmieren, Software, Server… irgendwie alles was in den Bereich Computer und Entwicklung fällt
Anything regarding web-development
diesel: Failed with: relation “__diesel_schema_migrations” does not exist
If you’re exporting an existing database with pg_dump and trying to use that exported SQL with diesel and your initial migration, even after diesel setup has been done and get this message: Failed with: relation “__diesel_schema_migrations” does not exist Then you likely have the following line in your postgreSQL dump:
|
1 |
SELECT pg_catalog.set_config('search_path', '', false); |
it needs to be…
Read ArticleAbwendung von Go und Github – Hin zu Rust und gogs
Dadurch das Google mit gängelt und speziell Ian Lance Taylor von Go mich angreift und mein Github Profil nicht-öffentlich geflaggt hat, durch “gute Beziehungen” zu Github, habe ich beschlossen mich langsam aber stetig von Go abzuwenden und Rust zuzuwenden. 7 Jahre mit Go aber wenn so ein Google Mitarbeiter dich im Visier hat dann greift…
Read ArticleGo Golang developers delete issue about changing their brand and ban user suggesting it (updated 14.06.2020)
A while ago I created an issue on the github.com/golang/go issue tracker because the I find the choice of fonts, but in retrospect also layout and overall design, look and feel of the site was a step back. After a while this spf13 replied that the font was chosen according to “brand” and there would…
Read ArticleBash script to upgrade keycloak standalone
Assuming keycloak is unpacked in the user’s home directory for instance /home/keycloak/keycloak-9.0.0 is the old version and /home/keycloak/keycloak-9.0.2 is the new version
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/usr/bin/env bash OLD=9.0.0 NEW=9.0.2 OLDPATH=~/keycloak-$OLD NEWPATH=~/keycloak-$NEW cd ~/ wget https://downloads.jboss.org/keycloak/$NEW/keycloak-$NEW.tar.gz tar xvf keycloak-$NEW.tar.gz mkdir -p $NEWPATH/modules/system/layers/base/org/postgresql/jdbc/main cp -a $OLDPATH/modules/system/layers/base/org/postgresql/jdbc/main/* $NEWPATH/modules/system/layers/base/org/postgresql/jdbc/main/ cp -a $OLDPATH/standalone/* $NEWPATH/standalone/ cd $NEWPATH bin/jboss-cli.sh --file=bin/migrate-standalone.cli cd ~/ rm -f keycloak-gatekeeper-linux-amd64.tar.gz wget https://downloads.jboss.org/keycloak/$NEW/gatekeeper/keycloak-gatekeeper-linux-amd64.tar.gz tar xvf keycloak-gatekeeper-linux-amd64.tar.gz echo "Next steps:\nnano -w /etc/systemd/system/keycloak.service\nsystemctl daemon-reload\nsystemctl restart keycloak.service\n\n" |