Workaround for AqBanking "The TLS connection was non-properly terminated"

Workaround for AqBanking "The TLS connection was non-properly terminated"

Sven Bachmann
After updating my system to Ubuntu 16.10 I wasn’t able to synchronize my accounts anymore. The problem was that the banking servers seem to not properly shutdown their TLS connections. Googling around showed this Ticket #259 and Ticket #230. The last ticket gave a hint on what to change in the Gwenhywfar library to get AqBanking back to work. Just to make it clear, it doesn’t seem to be a bug in AqBanking but in the TLS handling of the banking servers.
PCA 301 Funksteckdose mit Arduino Nano und RFM69

PCA 301 Funksteckdose mit Arduino Nano und RFM69

Sven Bachmann
Nachdem ich mir eine PCA 301 Funksteckdose von ELV gekauft hatte und feststellen musste, dass die Kombination Arduino Nano mit RFM69 momentan nicht unterstützt wird, habe ich den Treiber für das vorhandene pca301_serial Projekt selbst vom RFM12 auf den RFM69 angepasst. Das Ergebnis liegt nun als Arduino IDE Sketch auf GitHub (Link).
ThinkPad W510 Brightness Keys and Ubuntu 15.04

ThinkPad W510 Brightness Keys and Ubuntu 15.04

Sven Bachmann
The best graphical experience with Ubuntu 15.04 and the ThinkPad W510 is currently only possible with the Nvidia binary graphics driver. On my ThinkPad I’ve installed the Nvidia binary driver - version 340.96 from nvidia-340 (proprietary, tested). However with the default settings my brightness keys stopped working. To get them working again, create the following file: /etc/X11/xorg.conf.d/10-nvidia-brightness.conf Section "Device" Identifier "Configured Video Device" Driver "nvidia" Option "RegistryDwords" "EnableBrightnessControl=1" EndSection After restarting the X server or the W510 you can adjust brightness by the normal function key combination.

Lenovo SSD MMCRE28G5MXP TRIM Update

Sven Bachmann
I bought an used Lenovo W510 laptop which had an Samsung MMCRE28G5MXP-0VBH1 SSD installed. After some time it got slower and slower when I created, copied or extracted files. After reading some forum entries I came to the conclusion that the missing TRIM feature was the problem - and that Lenovo doesn’t provide a firmware update even if the drive is able to TRIM. Luckily, some guys already found a way to update the drive with the original Samsung firmware.

Raspberry PI with HD44780 LCD and I2C Interface Board

Sven Bachmann
After buying an HD44780 compatible LCD together with an I2C interface board (which has an PCF8574T soldered on it) I tried to output some text in C on it but the display just stayed black - or after changing some GPIOs, it stayed blue. I measured every pin of the PCF8574T and got the following scheme: PCF8574T <-> HD44780 P0 -- RS P1 -- R/W P2 -- EN P4 -- DB4 P5 -- DB5 P6 -- DB6 P7 -- DB7 R/W should be mapped to GND if the HD44780 should not talk back to the CPU.

TU Chemnitz CAN Email wird beendet - IMAP Backup

Sven Bachmann
Die TU-Chemnitz wird leider aufgrund von “verschiedenen juristischen und technischen Gründen” die E-Mail Adressen des Chemnitzer Absolventennetz (CAN) nicht mehr weiter anbieten. Lediglich eine Weiterleitungsadresse kann im POST-TUC-Service hinterlegt werden, welche jedoch vom Absender erst erfragt werden muss - es stellt also keinen automatischen Forward-Service dar. Aus historischen Gründen gibt es sicher den ein oder anderen (wie mich), der seine Mails behalten möchte. Für diesen Zweck gibt es das praktische Python Programm IMAP Backup Tool.

Add bitmap to md-raid which is under recovery

Sven Bachmann
When you try to add a bitmap to a Linux md-raid which is currently under recovery, you’ll get an error that says mdadm: Cannot add bitmap while array is resyncing or reshaping etc. failed to set internal bitmap. Here is a solution that should be applied in the early resync process, as you will loose the current progress. First, you’ll need to mark the drive/partition that is resynced as bad.

UDP and netcat are no friends

Sven Bachmann
After a long debugging session with an UDP logger I had to find out, that netcat is incapable to receive more than 1024 bytes via UDP at once. Seems this problem is at least known since 2010-02-16 but I wasn’t able to find a solution for this (the trick with sysctl as suggested in the answer to the linked question won’t work with linux). So for now I implemented a solution which divides the UDP output into 1024 byte chunks which seems to work fine.

Vodafone Easybox 803 - Recovering Tool (Defekt)

Sven Bachmann
Gestern konnten wahrscheinlich wieder einige Leute ein paar graue Haare auf das Vodafone Konto verbuchen - der Router hat statt Internet nur noch den Recovery Modus gebootet. Nachdem ich den Router jetzt wieder einigermaßen zusammenflicken konnte (d.h. eine alte Firmware aufspielen), teilt mir der Supportchat mit, dass das ein bekanntes Problem ist. Im Nachfolgenden also kurz die Rettungsanleitung. .notice{padding:18px;line-height:24px;margin-bottom:24px;border-radius:4px;color:#444;background:#e7f2fa}.notice p:last-child{margin-bottom:0}.notice-title{margin:-18px -18px 12px;padding:4px 18px;border-radius:4px 4px 0 0;font-weight:700;color:#fff;background:#6ab0de}.notice.warning .notice-title{background:rgba(217,83,79,.9)}.notice.warning{background:#fae2e2}.notice.info .notice-title{background:#f0b37e}.notice.info{background:#fff2db}.notice.note .notice-title{background:#6ab0de}.notice.note{background:#e7f2fA}.notice.tip .notice-title{background:rgba(92,184,92,.8)}.notice.tip{background:#e6f9e6}.icon-notice{display:inline-flex;align-self:center;margin-right:8px}.icon-notice img,.

Invisible text lines with DokuWiki dw2pdf Plugin

Sven Bachmann
If you encounter empty text lines in PDFs exported from DokuWikis PDF Plugin dw2pdf, here is something that helped me workaround it. With only Google Chrome showing the PDFs content correct, I tried Evince and Acrobat under Windows. Under Windows I got the feedback, that the font dejavusanscondensed was not found. So as a workaround, I can currently tell you, that the following worked: dokuwiki/lib/plugins/dw2pdf/mpdf/config_fonts.php: $this->sans_fonts = array('dejavusanscondensed','dejavusans','freesans',...); There you have to put helvetica in front of this list, so it is used before dejavusanscondensed.