With my former Yubikeys I was used to use yubikey-oath-dmenu for (T)OTP.
As I found no similar solution for Token2, I wrote a wrapper script around t2-cli.
With my former Yubikeys I was used to use yubikey-oath-dmenu for (T)OTP.
As I found no similar solution for Token2, I wrote a wrapper script around t2-cli.
I recently started to use Token2 "T2F2-PIN+ Release3 TypeC" Keys to store SSH Keys use them for (T)OTP and U2F/FIDO2.
But GnuPG did not work out of the box on my Arch Linux notebook.
To enhance the restore speed for PostgreSQL databases, the pg_restore
command running the most time-consumping steps concurrently by providing the number of jobs with -j/--jobs
.
Unfortunately the parallel restore can fail when restoring foreign keys due to not yet restored tables:
pg_restore: error: could not execute query: ERROR: there is no unique constraint matching given keys for referenced table "page"
Command was: ALTER TABLE ONLY pagecontent
ADD CONSTRAINT "$1" FOREIGN KEY (page_id) REFERENCES page(id);
The expiring Let’s Encrypt DST Root CA X3 can cause problems on old servers:
root@server:/etc# wget https://www.example.com/monitoring --2021-09-30 21:34:39-- https://www.example.com/monitoring Resolving www.example.com (www.example.com)... 93.184.216.34 Connecting to www.example.com (www.example.com)|93.184.216.34|:443... connected. ERROR: The certificate of `www.example.com' is not trusted.
Fortunately there is an easy workaround to ensure the expired chain is not checked.
The residential Swisscom Internet Box 2 does not allow to autoconfigure an Unify Dream Machine with IPv6.
After several hours of research I found a workaround to get IPv6 support.
In one of my projects I let Spring Boot automatically bind domain objects from the database.
This fails in the reduced unit test setup, because DomainClassConverter
is not available. But it can be mocked!
When I fist started to use yedit to modify YAML files I got the following warning:
[WARNING]: The value {...} (type dict) in a string field was converted to "{...}" (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.
Due to a misconfiguration I had to shrink a LVM 2 volume group and its physical volume running on a software RAID.
The Google phone number parser & formatter is very helpful to ensure the same number format for user prodived data. To simplify the use in Spring Boot application with Thymeleaf I created a wrapping TagLib/ExpressionFactory.
Initially I thought adding a pair of Samsung 860 EVO as software RAID to my small home server cannot be too hard...
... but they seem to require special kernel settings to work.
The requirements of the Unifi Controller do not allow a direct installation. But with a few manual steps a successful setup is possible!
When I started to use Spring Boot I had some issues with the validation. The @Validated annotation triggered the validation as requested but the validation terminated with an org.springframework.validation.BindException
instead of filling the BindingResult
object.
Using the PostgreSQL JDBC driver since 42.2.5, the SSL behaviour changed which can cause FileNotFoundExceptions
looking for .postgresql/root.crt
.
During learning Spring Boot I noticed attributes to methods in Spring Boot controllers can be automatically injected.
To migrate my blog from Grails to Spring Boot I created an implementation to inject the current blog instance based on an session attribute.
Using the asset pipline in Grails, the production CSS and Javascript files have been including with a digest appendix. This feature is not available in Spring Boot, therefore I started to create a simple Thymeleaf tag library.
I recently bought the 2.9″ ESPaper Plus Kit, WiFi ePaper display from ThingPulse.
To get this device working with my ansible configured SSL webproxy I had to get some additional debugging skills...
Sometimes if you do not properly delete objects in a Grails/GORM/Hibernate transaction the following error might occur:
deleted object would be re-saved by cascade (remove deleted object from associations)
This message is presented by the org.hibernate.ObjectDeletedException
After some hours of investigation I found a solution to find the cause!
On my new i3 setup I got no notifications of new MCabber events and messages.
Due to the decreasing performance of Android on my Nexus 10 and similar reports of other user I tried to install CyanogenMod 13. This caused some resolvable problems...
If you would like to do the authentification in Java application running on Oracle WebLogic, you will probably wonder why the Authentification-Header does not reach the Filter.
Beim Duplex-Scan mit hp-scan erstellt mir die Software ein PDF-Dokument, wo auf allen Seiten unten ein weisser Rand ist und jede zweite Seite um 180 verdreht ist.
Zum Glück gibt es Tools, welche diese Probleme in wenigen Schritten beheben können
As a Linux using PostgreSQL and MySQL admin I am used to console tools. Therefore creating a sql dump (schema+data) from a MS SQL 2008 database is a challenging task.
Wenn man nicht mit Windows, sondern gar mit etwas speziellen wie Arch Linux auf das Netzwerk der Berner Fachhochschule zugreiffen möchte, dann kann findet man leider auf anhieb keine Anleitung im Sharepoint. Daher habe ich mal einige Eckdaten zusammengestellt.
I use the squeeze-backport of redmine on Debian.
With the default setup, all the Ajax-Post-Requests cause the logout of the current user due to the missing X-CSRF-Token.
Because I could not find a complete solution, I backported the CSRF-Code from a newer relase.
Da die aktuellen Anleitungen für LXC mit Debian Squeeze etwas spärlich und teilweise veraltet sind, notiere ich hier einige Schritte für ein aktuelles Setup.
Nach einem Systemupdate blieb meine Workstation mit LDAP Authentifizierung beim Starten immer bei "Removing Leftover Files" stehen.
Die folgende Map möchte ich nach pos0 und pos1 sortieren....
var imap = {
1: {
name: 'Test 3',
pos0: 30,
pos1: 20
},
2: {
name: 'Test 1',
pos0: 10,
pos1: 30
},
3: {
name: 'Test 2',
pos0: 20,
pos1: 10
}
}
Für unsere Norwegenferien wollte ich das Tomtom-OV2 über das GPX-Format in die POI-Datenbank von FoxtrottGPS (Fork von TangoGPS) importieren.
Auf der Suche nach einer Dropbox Alternative, wo man einen eigenen Server verwenden kann, bin ich auf SparkleShare gestossen.
Im Blog verursachte der folgende Code beim generieren der Tag-Seiten Probleme:
${Article.withCriteria{ tags{like('id',tagInstance.id) } }}
Die hier geladenen Artikel-Objekte hatten bei der anschliessenden Anzeite nur einen Tag, den von der Tag-Seite.
Um Grails besser kennen zu lernen und um dem Tandemblog eine optimierte Blogsoftware zu bieten, habe ich mich entschlossen ein neues Projekt zu starten....
Sorting in Grails is easy, but defining the sort order of 'hasMany' children of an object is not obvious...
© 2015 - 2022 Moritz Kobel
Theme by Anders Noren — Up ↑