Introduction Docker Engine … Client-server application Docker CLI Docker daemon (docker) (Docker REST API) (dockerd) Docker Desktop / OrbStack …
Continue readingCategory: Computer
Boost execution performance
Make it parallel Most machines these days have multiple cores, some even support hyper threading. If you want your code
Continue readingC++ 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 readingGit Submodule & Git LFS
Git Submodule … allows you to include one repository inside another, keeping them as separate projects. Add a submodule to
Continue readingForward X11 to macOS (Docker)
xsddiagram is used as an example application. Dockerfile FROM debian:bullseye-slim # Install packages RUN apt update && apt-get install -y
Continue readingHow to pass arguments (C++)
Analysis Code ▼ Output ▼ Constructor: bar_0 Not store copy run_copy_no_store Constructor: bar_1 === lvalue === Copy Constructor: bar_1 ===
Continue readingQ&A – Version control
Undo “git rebase -i” $ git rebase -i HEAD~3 $ git reflog … HEAD@{0}: rebase (finish): … … HEAD@{1}: rebase
Continue readingDefault provided networks (Docker)
Bridge network (“–network bridge”, default) Details – Containers of this type are in the same network. – Their network is
Continue readingFlameGraph (Docker)
Setup Get FlameGraph % git clone https://github.com/brendangregg/FlameGraph fg Run Docker image % docker pull debian % docker run -d -v
Continue readingMutable vs. Immutable (Python)
Immutable data types They are not modifiable e.g. Numbers, Strings and Tuples Before line 3 a —> 1 b —–^
Continue reading