It’s a cmd line tool to request gRPC-Services. Install $ snap install grpcurl Request $ ./run_req.sh
Continue readingAuthor: max-sperling
Memory order for atomics (C++)
Overview Memory order Description memory_order_relaxed Unsafest, No ordering is guaranteed. memory_order_acquire A load operation, No reads or writes in the
Continue readingVirtual environment (Python)
If you want to install project dependencies without cluttering the system, then you should use a virtual environment. 0. Install
Continue readingPLT and GOT for shared libs (ELF)
Introduction With static linking, the position of the code of the static libs are exactly known during compile time. This
Continue readingPrint stack frames (GDB)
Scenario Application code Print frame script Analysis GDB session Frame 0 0x7fffffffe240: 0x0000555555554040 0x0000000300000008 0x7fffffffe250: 0x0000000000000000 0x0000000b00000000 0x7fffffffe260: 0x00007fffffffe280 0x000055555555518e
Continue readingConditional breakpoints (C++)
Showcase Debugging $ g++ -g main.cpp $ gdb a.out (gdb) b main.cpp:5 if i == 5 Breakpoint 1 at 0xa24:
Continue readingOrigins of the dan and kyu grades
Timeline Late 1600s – Honinbo Dosaku created the Dan ranking for Go.1 1883 – Kano Jigoro integrated the Dan ranking
Continue readingRandom number generation (C++)
Let’s generate 10 integers with a uniform distribution between 1 and 6. Historic approach Only uniform distribution provided. 👎 Modern
Continue readingResolve variables with CMake
Structure cmake_example/ ├── CMakeLists.txt ├── config.hpp.in └── main.cpp Files CMakeLists.txt config.hpp.in main.cpp Execution $ cmake -S”src” -B”build” $ cmake –build
Continue reading