Dresdner Klimaaktivist

Recent content

tmpfs for MySQL in Ubuntu

11th April 2019
To speed up local development or continuous integration tests, you can move MySQL to RAM. You will loose all your data on each reboot, as RAM is volatile storage. I tried the following for MySQL on Ubuntu 16 and 18. I wouldn't be surprised if you find it to work just fine in other environments as well. Here are the steps: 1. Add this line to /etc/fstab:
tmpfs /var/mysql-tmpfs tmpfs rw,gid=116,uid=110,size=1424M,nr_inodes=50k,mode=0700 0 0
2. Add these lines to /etc/apparmor.d/usr.sbin.mysqld:
  /var/mysql-tmpfs/ rwkm,

SPF-Records mit Icinga überwachen

05.03.2019
Alle unsere Webserver sollen in der Lage sein, Mails zu verschicken. Da wir einen SPF-Record veröffentlichen, der als letzten Eintrag ein "Hard Fail" hat, müssen wir aufpassen, dass jeder unserer Server laut SPF-Record vertrauenswürdig ist. Dazu habe ich folgende Icinga 2-Regel geschrieben, sodass alle Hosts mit externer IP-Adresse automatisch einen Service bekommen, der 1x pro Tag den SPF-Record prüft. Wenn wir einen neuen Host anlegen, wird der ebenfalls automatisch geprüft.

root-Rechte unter Ubuntu mit WinSCP

06.05.2017

Standardmäßig ist unter Ubuntu der Nutzer root nicht zum Einloggen vorgesehen. Daran habe ich nichts geändert. In PuTTY kann ich einfach sudo nutzen, doch in WinSCP hat mich weder Google noch die FAQ weitergebracht. Daher habe ich mit sudo find / | grep sftp-server die ausführbare Datei ausfindig gemacht: /usr/lib/openssh/sftp-server

Wie ich unter Ubuntu mit WinSCP root-Rechte bekommen habe, ohne mich als root einzuloggen:

Reverting patches

14th August 2015
In the aftermath of a Git problem at work, I wanted to revert changes in PHP source code files. I wanted to re-commit my changes, so I need to change files directly in the checkout first. I'm working under Windows.

Abschluss schneller als die Regelstudienzeit

17.05.2014

Während meines Studiums habe ich in einigen Semestern BAföG erhalten. Die Förderungshöchstdauer entspricht dabei der Regelstudienzeit, in meinem Fall also der Zeit, die laut Studienordnung für den Master in Physik insgesamt benötigt wird. Allerdings hatte ich meine wissenschaftliche Arbeit schneller abgeschlossen als es in der Prüfungsordnung vorgesehen war, 🎓💼 wodurch ich meinen Master ebenfalls schneller in der Hand hielt. 🎉

Dafür hat mir das Bundesverwaltungsamt einen Erlass auf die Summe gewährt, die ich vom BAföG zurückzahlen muss. Danke! ❤

LookupCache und mehr als ein Feld in der KeyFields-Eigenschaft vertragen sich nicht.

22.02.2013
Folgende Delphi­macke hat mich 2 Stunden Zeit gekostet: Beim Öffnen eines TQuery warf es mir sowohl zur Design- als auch zur Laufzeit einen EVariantInvalidOpError wegen einem persistenten Feld mit FieldKind = fkLookp. Ursache war, dass ich 2 Schlüsselfelder angegeben hatte. Ohne LoopupCache geht es aber.

Youden diagrams for ring trial reports

14th January 2013
One way to improve laboratory performance is the participation in colaborative ring trials. It is recommended, that the organizer sends out more than one sample with differing analyte concentrations. The participating labs then measure the concentration of a number of analytes. Once the data is available to the organizer, he or she can then create correlation plots (Youden plots) of the concetration of 1 sample on the X and concentrations of another sample on the Y axis.

Messunsicherheitsprofile: Erstellung und Berechnung

12.07.2012
"Der derzeit de facto weltweit akzeptierte Standard zur Angabe von Messunsicherheiten wird dabei durch den Guide to the Expression of Uncertainty in Measurement festgelegt. Er wird mittlerweile vom Joint Committee for Guides in Metrology (JCGM) herausgegeben, dem sowohl die Internationale Organisation für Normung (ISO) in Genf als auch das Bureau International des Poids et Mesures (BIPM) in Paris angehören." 1 Eine Software zum Anlegen und Berechnen eines Messunsicherheits­modells ist GUMsim.