Types Type Area Risk static_cast – Converts fundamental types– Non-const to const– Down-casts (dangerous) Medium dynamic_cast – Down- and side-casts
Continue readingCategory: Technology
Rebase branch on rebased parent (Git)
This is necessary when you develop on an child-feature-branch and the parent-feature-branch has been rebased. 0. Initial situation 1. Rebase
Continue readingLS- und FI-Schalter (Elektrik)
LS- und FI-Schalter befinden sich im Sicherungskasten. LS-Schalter (Leitungsschutzschalter) Grundlagen Der LS-Schalter (MCB) hat die Funktion den Stromkreis bei Kurzschluss
Continue readingStrom- und Schaltungsarten (Elektrik)
Stromarten Grundlagen Grundlegend gibt es zwei Arten von Strom zw. denen mehr oder weniger gut transformiert werden kann. Es gibt
Continue readingNetwork components (Selection)
Repeater A repeater just repeats the signals it receives. They can be wired (with 2 ports) or wireless. Therfore it
Continue readingUnit testing series – Test with Stub (Part 4)
The second szenario is using a stub. Stub Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a
Continue readingDesign pattern (Selection)
1. Creation 1.1 Factory 1.2 Singleton 1.3 Dependency injection 1.4 Objectpool … is a pool of already initialized objects, like
Continue readingHTTP hacking – Vote counter (Example 1)
1. Scan the traffic Just capture the network traffic while simulate one sequence of voting. Possible tools you can use
Continue readingUnit testing series – Test without double (Part 3)
The first test szenario isn’t using a double. Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a
Continue readingCyclic references (C++)
Problem The following code shows the problem of a cyclic reference with shared pointers. When leaving the main function the
Continue reading