BlueTooth Ubuntu

August 7th, 2025

Fix Connection problems with Ubuntu Linux/Bluetooth:

In /etc/bluetooth/input.conf
Enable line: UserspaceHID=true
Run systemctl restart bluetooth to apply changes

https://askubuntu.com/questions/1331009/bluetooth-on-ubuntu-20-04-constantly-disconnecting

COM component-object-model-sample nach cmake

Juni 6th, 2025

https://github.com/microsoft/component-object-model-sample
https://cmakeconverter.readthedocs.io/en/latest/use.html

Standard-Versionsnummern mit Semantic Versioning

Juni 6th, 2025

Auf Grundlage einer Versionsnummer von MAJOR.MINOR.PATCH werden die einzelnen Elemente folgendermaßen erhöht:

  1. MAJOR wird erhöht, wenn API-inkompatible Änderungen veröffentlicht werden
  2. MINOR wird erhöht, wenn neue Funktionalitäten, die kompatibel zur bisherigen API sind, veröffentlicht werden, und
  3. PATCH wird erhöht, wenn die Änderungen ausschließlich API-kompatible Bugfixes umfassen.

Außerdem sind Bezeichner für Vorveröffentlichungen und Build-Metadaten als Erweiterungen zum MAJOR.MINOR.PATCH-Format verfügbar.

https://semver.org/lang/de/

ImageMagick – Kontrast und Helligkeit ändern

April 12th, 2025

Beispiel: Helligkeit um 20% erhöhen, Kontrast um 35% erhöhen:
convert bild.jpg -brightness-contrast 20×35 bild.optimized.jpg

Beispiel: Helligkeit um 10% verringern, Kontrast um 10% verringern:
convert bild.jpg -brightness-contrast -20x-35 bild.optimized.jpg

Beispiel: Gammekorrektur Faktor 2.0:
convert bild.jpg -level 0%,100%,2.0 bild.gamma.jpg

https://www.archivscan.ch/imagemagick_helligkeit_kontrast_gamma_farbsaettigung

C++ trailing return type

März 31st, 2025

Beispiel:
auto CClass::HasMultipleItems() -> bool {
return m_veciMember.size() > 1;
}

https://en.wikipedia.org/wiki/Trailing_return_type

Mermaid Charts

März 27th, 2025

Mit Mermaid können einfach Diagramme erstellt werden.
https://www.mermaidchart.com
https://www.mermaidchart.com/play

Markdown-File:

```mermaid
graph TD;
BaseModel-->MapViewModel-->MyownMapViewModel-->NextMapViewModel

```

Apache2 Server

März 12th, 2025

Error Logs:
/var/log/apache2/error.log

Seiten:
/var/www/html

C++ Lambda Captures

März 7th, 2025

The difference is how the values are captured

  • & captures by reference
  • = captures by value
  • Example:

    int x = 1;
    auto valueLambda = [=]() { cout << x << endl; };
    auto refLambda = [&]() { cout << x << endl; };
    x = 13;
    valueLambda();
    refLambda();

    This code will print:

    1
    13

    https://stackoverflow.com/questions/21105169/is-there-any-difference-betwen-and-in-lambda-functions
    https://en.cppreference.com/w/cpp/language/lambda

    GIT https fehler ssh ausschalten

    März 3rd, 2025

    git config http.sslVerify "false"

    https://stackoverflow.com/questions/9008309/how-do-i-set-git-ssl-no-verify-for-specific-repos-only

    Git Rebase Tipps

    Februar 21st, 2025

    Beim Rebase für jede Datei entscheinden, ob ours oder theirs genommen werden soll:

    git checkout --ours -- [paths]
    oder
    git checkout --theirs -- [paths]
    Anschließend mit git add [path] die Datei hinzufügen und mit git rebase --continue den rebase fortsetzen

    https://stackoverflow.com/questions/16825849/choose-git-merge-strategy-for-specific-files-ours-mine-theirs

    Alte Commits löschen durch Rebase:
    Head um vier commits zurücksetzen:
    git rebase -i HEAD~4

    Dann mit pick die Commits wählen, die man behalten will:
    pick 2f05aba ... #will be preserved
    #pick 3371cec ... #will be deleted
    #pick daed25c ... #will be deleted
    pick e2b2a84 ... #will be preserved

    https://stackoverflow.com/questions/9725156/remove-old-git-commits