C++Guns – RoboBlog

15.04.2023

AVR-GCC 13 für Linux installieren / compilieren

Filed under: Allgemein — Thomas @ 20:04

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

Filed under: Allgemein — Thomas @ 13:04

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

Filed under: Allgemein — Thomas @ 20:11

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

Filed under: Allgemein — Tags: — Thomas @ 19:09

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

Filed under: Allgemein — Tags: — Thomas @ 12:09

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)

Filed under: Allgemein — Thomas @ 09:08

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

Filed under: Allgemein — Tags: — Thomas @ 10:05

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 […]

14.05.2022

Kaffeetassenwärmer Optimierungsaufgabe

Filed under: Allgemein — Tags: , — Thomas @ 07:05

Niemand mag kalten Kaffee! Darum muss ein Kaffeetassenwärmer her! Aber das Zeug was man kaufen kann taugt alles nichts! USB2/1 liefert nicht genügend Leistung und USB3 ist eine Vergewaltigung der kleine Kabelchen. Noch dazu habe ich keinen USB3 Port am Laptop. Eine simple Heizplatte mit einem EIN/AUS Schalter langt doch vollkommen. So wie die in […]

16.02.2022

C++ Guns: Play with std::tuple and std::apply

Filed under: Allgemein — Tags: — Thomas @ 11:02

Part 1: print std::array with std::integer_sequence Part 2: convert tuple to parameter pack Part 3: print std::array with std::apply and fold Part 4: fold over std::tuple und erzeugten Assembler Code Part 5: fold over std::tuple of std::vector of Types ... Part 6: apply generic lambda to tuple Part 7: Play with std::tuple and std::apply 1 […]

15.02.2022

LED Übersicht Lichtstärke mcd Abstrahlwinkel grad

Filed under: Allgemein — Thomas @ 23:02

LEDs

« Newer PostsOlder Posts »

Powered by WordPress