Blog

Technical posts on backends, cloud infrastructure, DevOps and graphics programming: the problem, why it happens, the fix and code to reuse.

Follow new posts with the RSS feed.

How two 42 graphics projects work, from the original in C to the live WebGL demo on this site.

  • From C to WebGL: Recreating Wolfenstein 3D’s DDA Raycasting

    How my 42 cub3D casts one ray per screen column through a grid in C, parses and validates .cub maps, and how the same ideas carry a React Three Fiber game on this site.

    • C
    • MLX42
    • React Three Fiber
  • Rendering 500×500 Fractals: Isometric Math and Memory

    How my 42 FdF projects a heightmap to a 2:1 isometric wireframe in C with Bresenham lines, and why switching 500×500 maps in WebGL takes the same discipline as free().

    • C
    • MiniLibX
    • three.js
  • PgBouncer transaction pooling breaks django-tenants

    django-tenants picks the tenant with a session-level SET search_path, which PgBouncer's transaction mode does not keep. Why queries can reach the wrong schema, and two fixes.

    • PostgreSQL
    • PgBouncer
    • django-tenants
  • Argo CD automated sync neither prunes nor self-heals by default

    Automated sync applies new commits, but it keeps resources deleted from Git and ignores manual changes in the cluster. The prune and selfHeal options close those two gaps.

    • Argo CD
    • GitOps
    • Kubernetes
  • VXLAN takes 50 bytes off every packet's MTU

    VXLAN adds 50 bytes of headers to every frame, 70 over IPv6. On a 1500-byte underlay, set the overlay MTU to 1450 or use jumbo frames, or large transfers stall while pings work.

    • VXLAN
    • BGP EVPN
    • MTU
  • Terraform can lock S3 state without DynamoDB

    Since Terraform 1.10, the S3 backend can lock state with a .tflock object next to the state file (use_lockfile = true). It has been generally available since 1.11, which deprecated DynamoDB locking.

    • Terraform
    • AWS S3
  • Loki wants JSON log lines and few labels

    Loki indexes labels only, so high-cardinality fields such as request or tenant IDs belong in the log line. With one JSON object per line, LogQL's json parser filters on them at query time.

    • Loki
    • LogQL
    • Python
  • tmux keeps remote work alive when SSH drops

    Work on a server inside a named tmux session. If the connection drops, the shell and its running commands survive, and tmux attach brings them back. A few default key bindings cover daily use.

    • tmux
    • SSH