Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

3D diagram of two separate commit cube chains joined by an amber bridge being lowered, headline UNRELATED HISTORY
Git

Git: fatal: refusing to merge unrelated histories

Two root commits and no merge base. Decide whether to keep both, adopt the remote, or replay your work, then use --allow-unrelated-histories only when the merge is really what you mean.

GitMergeHistoryVersion Control
3D diagram of a process box with open file handles filled to the brim and a gauge at maximum, headline TOO MANY FILES
Linux

Linux: Too many open files (EMFILE) and ulimit

EMFILE is a per-process descriptor limit, ENFILE is the kernel's. Read the limit from /proc, raise it in the right layer, and find the leak that made it matter.

LinuxulimitsystemdTroubleshooting
3D diagram of an API server gate where an expired credential card is rejected and a bright one enters, headline 401 UNAUTHORIZED
Kubernetes

kubectl: You must be logged in to the server (Unauthorized)

A 401 is authentication, not RBAC. Read the kubeconfig block, check token expiry, refresh provider credentials, and tell it apart from a stale CA or a stripped header.

KuberneteskubectlAuthenticationTroubleshooting
3D diagram of a JVM block with a side compartment filling with class cubes and a detached loader chain, headline METASPACE
Java

Java: java.lang.OutOfMemoryError: Metaspace

Class metadata lives outside the heap. Which limit was hit, how to find the classloader that grows, and why a container restart with exit code 137 is the same disease.

JavaJVMMemoryClassLoader
3D diagram of a class box with an empty property slot glowing red and an amber key approaching, headline CS8618
C#

CS8618: Non-nullable property must contain a non-null value

Nullable reference types caught a promise the constructor does not keep. Choose required, a constructor parameter, an honest string? or a documented null-forgiving default.

C#.NETNullable Reference TypesCompiler Warnings
3D diagram of one data cube with a shared arrow and an exclusive arrow crossing at the same point, headline E0502
Rust

Rust E0502: cannot borrow as immutable because it is also borrowed as mutable

An element borrow is a borrow of the whole container. End the borrow before reading, take disjoint borrows with split_at_mut, and keep RefCell for cases that truly need it.

RustBorrow CheckerOwnershipDebugging
3D diagram of a pointer arrow entering an empty socket beside a ring holding a hollow cube, headline NIL POINTER
Go

Go: invalid memory address or nil pointer dereference

Most nil panics are a typed nil in an interface or a value used after an error. How each shape fails, how to return nil properly, and which stack trace detail names the cause.

GoDebuggingInterfacesRuntime
3D diagram of two transaction arrows colliding over one glowing row with a cyan retry loop below, headline 40001
SQL

Postgres: could not serialize access due to concurrent update

At REPEATABLE READ and SERIALIZABLE a conflicting write aborts with SQLSTATE 40001. Retry the whole transaction with backoff, then remove the conflict instead of retrying it.

PostgreSQLTransactionsIsolation LevelsRetries
3D diagram of a database cylinder with an outdated blueprint slab showing a mismatching column grid, headline CACHED PLAN
SQL

Postgres: cached plan must not change result type

A prepared statement or PL/pgSQL plan outlived a schema change. Disable statement caching, force custom plans, discard plans, and order the deploy so no connection straddles DDL.

PostgreSQLPrepared StatementspsycopgMigrations
3D diagram of a container whose binary connector does not fit the host socket grid, headline EXEC FORMAT
Docker

Docker: exec user process caused: exec format error

An arm64 image on an amd64 host is a runtime failure, not a pull failure. Diagnose the platform, build for the target, publish multi-arch, and spot the script variant.

DockerBuildxDeploymentDebugging