Wenn die üblichen Encodings wie UTF8, Latin1, ISO-8859-15 nicht funktionieren kann man CP437 versuchen. Das ist der Original-Zeichensatz des IBM-PC ab 1981. Dieser enthält Umlaute die in den üblicherweise eingestellten Encodings nicht angezeigt werden. Hier mein erster Versuch CP437 nach UTF8 zu konvertieren. Die Sourcecode Datei und der Compiler und das ganze Betriebssystem ist selbstverständlich […]
24.07.2023
28.06.2023
19.06.2023
How to convert from UTC to local time in C++?
Convert from a broken down date time structure from UTC to localtime in C++. See Stackoverflow: How to convert from UTC to local time in C? I converted the code from C to C++ and make it shorter.
15.04.2023
AVR-GCC 13 für Linux installieren / compilieren
Es gibt bereits eine sehr gute Anleitung für das Installieren vom avr-gcc [1] [2] ..., aber sie sind veraltet. Ich werde im folgenden nur das beste von diesen Artikel übernehmen. Zusammenfassung: Der AVR 8-Bit RISC Mikrocontroller von Atmel ist ein sehr verbreiteter Mikrocontroller. Es ist nur ein Chip mit EEPROM, RAM, Analog zu Digital Umwandler, […]
09.04.2023
Cleanup your messy backup
Cleanup your messy backup by hand could be fun! Kinda of. The goal is to remove duplicated files and organize the files into a new structure. First of all lets record the free disk space over time. Consider this script which collects the free space over time in a file: Now lets try to find […]
06.11.2022
skip and hint brushwork in praxis
Hi All! I want to show you some skip and hint brushwork in praxis. First I'll show you an overview of the map. The big green dot is where I take the sceenshots in game. And the line of sigth is blocked by one of the walls of the small room. But If you enable […]
17.09.2022
C++ Guns: throw and catch all standard exceptions for fun
This example throw and catch all standard exceptions just for fun exception list from https://en.cppreference.com/w/cpp/error/exception sorted after C++ Standard searching a stack trace? look at https://en.cppreference.com/w/cpp/utility/basic_stacktrace $ ./a.out All exceptions which was thrown was catched
07.09.2022
C++ Guns: Streams display the format flags
Display which format flags are currently set e.g. fixed, scientific, dec, hex Example output dec fixed skipws https://en.cppreference.com/w/cpp/io/ios_base/flags
03.08.2022
Fenster Wärmedämmen (Sommer & Winter)
02.08.2022 Im zweiten Versuch belege ich ein Fenster im Flur komplett mit 4cm Styropor und wiederhole die Temperatur Messung zwischen gedämmten und ungedämmten Fenster. Das Styropor selbst habe ich auf einer Seite mit Farbe und Leim etwas widerstandsfähiger gemacht. Die Seite welche an das Fensterglas kommt bleibt unbehandelt. Die Messreihe zeigt wie erwartet eine deutlich […]
30.05.2022
C++ Guns: MPI Dataype; send struct
Das Beispiel habe ich von https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node425.htm Jeder Thread erstellt einen MPI Datentyp welcher die Offsett Addressen der struct Member Variablen hat. Thread 1 sendet Daten zu Thread 0 Thread 0 empfaenge Daten von Thread1 und seine eigenen Daten, so dass alle in einem Array dann liegen. $ mpic++ -g -ggdb -Wall test_MPI_struct.cpp $ mpiexec -n […]