Beispiel:
auto CClass::HasMultipleItems() -> bool {
return m_veciMember.size() > 1;
}
C++ trailing return type
März 31st, 2025Mermaid Charts
März 27th, 2025Mit 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, 2025Error Logs:
/var/log/apache2/error.log
Seiten:
/var/www/html
C++ Lambda Captures
März 7th, 2025The difference is how the values are captured
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, 2025git 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, 2025Beim 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
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
Windows: Einfügen ohne Formatierung
Februar 20th, 2025Strg-Umschalt-v
Firefox: vertikale Sidebar zurücksetzen
Januar 16th, 2025Ubuntu: Qt QML QtQuick installieren
Januar 16th, 2025sudo apt install qtcreator qtbase5-dev qt5-qmake cmake qtdeclarative5-dev qml-module-qtquick-controls

