Skip to content

Max's Blog

  • Home
  • About
Max's Blog

Category: Technology

June 13, 2025 max-sperling

Show frames in stack (GDB)

Scenario Application code Print frame script Analysis GDB session Frame 0 0x7fffffffe240: 0x0000555555554040 0x0000000300000008 0x7fffffffe250: 0x0000000000000000 0x0000000b00000000 0x7fffffffe260: 0x00007fffffffe280 0x000055555555518e

Continue reading
June 11, 2025 max-sperling

Add prefix for shared libs location (GDB)

GDB is looking for the shared libs at specific paths. It’s possible to add a prefix to those paths. Example

Continue reading
May 26, 2025 max-sperling

Conditional breakpoints (C++)

Showcase Debugging $ g++ -g main.cpp $ gdb a.out (gdb) b main.cpp:5 if i == 5 Breakpoint 1 at 0xa24:

Continue reading
May 12, 2025 max-sperling

Random number generation (C++)

Let’s generate 10 integers with a uniform distribution between 1 and 6. Historic approach Only uniform distribution provided. 👎 Modern

Continue reading
April 30, 2025 max-sperling

Resolve 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
April 10, 2025 max-sperling

Switch between docker platforms (macOS)

Introduction Docker Engine … Client-server application Docker CLI Docker daemon (docker) (Docker REST API) (dockerd) Docker Desktop / OrbStack …

Continue reading
March 19, 2025 max-sperling

Boost execution performance

Make it parallel Most machines these days have multiple cores, some even support hyper threading. If you want your code

Continue reading
March 19, 2025 max-sperling

C++ develop container (Docker)

Docker file cpp_dev.dockerfile FROM debian:latest # Set non-interactive mode to avoid prompts during installation ENV DEBIAN_FRONTEND=noninteractive # Install necessary packages

Continue reading
March 3, 2025 max-sperling

Git-submodule and Git-lfs

Git-submodule … allows you to include one repository inside another, keeping them as separate projects. Add a submodule to your

Continue reading
February 26, 2025 max-sperling

Q&A – Electrics

Is it dangerous to touch the conductors of a power cable? This concerns electricity available in households, specifically AC at

Continue reading

Posts navigation

1 2 3 … 27 Next Posts»

Categories

  • Other (17)
    • Games (11)
    • Nutrition (4)
    • Traveling (2)
  • Science (17)
    • Chemistry (3)
    • Linguistics (2)
    • Math (10)
    • Physics (2)
  • Sport (71)
    • Climbing (5)
    • Diving (20)
    • Fitness (7)
    • Martial arts (33)
      • Ground fighting (9)
      • Mixed martial arts (4)
      • Stand-up fighting (11)
    • Running (1)
    • Surfing (2)
    • Swimming (1)
    • Volleyball (2)
  • Technology (268)
    • Computer (238)
      • Architecture & Design (15)
      • Artificial intelligence (3)
      • Audio & Video (11)
      • Building & Reversing (15)
        • CMake (2)
      • Computational complexity (3)
      • Computer architecture (5)
      • Debugging & Memory (26)
      • Development (58)
        • CI/CD (1)
        • Programming (48)
          • Concurrency (5)
          • Data structures (12)
          • Pointers & References (7)
        • Scripting (3)
        • Testing (6)
      • Development process (5)
      • Hacking & Security (17)
      • Hardware & Protocols (8)
      • Networking (11)
      • Operating system (18)
        • Linux (11)
        • Windows (7)
      • Regular expression (2)
      • Tool configuration (5)
      • Version control (22)
      • Virtualization (7)
      • Web (27)
    • Electrics (9)
    • Mechanics (15)
    • Medicine (2)
    • Photography (4)
WordPress Theme: Wellington by ThemeZee.