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 illustration of a commit chain with one oversized block wedged in it, a filter tool cutting it out and an LFS pointer tag beside it
Git

Git Push Rejected GH001: Large Files and History Rewrite

The 100 MB limit applies to every blob in the pushed history, so deleting the file does not help. Find the object, rewrite with filter-repo, or migrate to LFS.

GitGitHubGit LFSVersion Control
3D illustration of a runtime ring of worker threads with one gear jammed by a solid amber block, a side channel to a separate thread pool
Rust

Rust Tokio: Blocking the Runtime and spawn_blocking Fixes

A synchronous call inside an async fn stops the worker that drives every other task on it, timers included. Detection, spawn_blocking, and the guard-across-await trap.

RustTokioAsyncPerformance
3D illustration of a Go gopher-abstract cyan packet sliding along a connection rail that breaks into a severed end, a pile of socket rings below
Go

Go http.Client: unexpected EOF and Connection Reuse Leaks

A body closed without being read cannot be reused, and descriptors pile up. Idle timeouts shorter than the upstream's, MaxIdleConnsPerHost and safe retries.

GoHTTPPerformanceDebugging
3D illustration of a keyring of rotating signing keys above a token slab, one key ghosted as rotated, a clock node showing skew
Node.js

Node.js JWT invalid signature: JWKS Rotation and Clock Skew

One message covers three bugs: the wrong key type for RS256 or ES256, a JWKS cache that never refreshes after a kid rotation, and a clock that drifted.

Node.jsJWTAuthenticationSecurity
3D illustration of a pod cube floating unscheduled above a row of node cubes, one with a taint seal and one with an unattached disk volume
Kubernetes

Kubernetes Pending Pod: CPU Requests, Unbound PVC, Taints

The scheduler event names every node and its reason. Requests versus allocatable, untolerated taints, zonal volume binding, and impossible anti-affinity.

KubernetesSchedulingStorageTroubleshooting
3D illustration of two container boxes side by side, one with a compact musl gear and a broken wheel, the other with a larger glibc gear and a DNS path
Docker

Alpine musl vs Debian slim: DNS Timeouts and Native Builds

musl rejects manylinux wheels and linux-x64-gnu prebuilds, so the installer starts compiling without a toolchain. And ndots:5 in Kubernetes adds five seconds per lookup.

DockerAlpinemuslDNS
3D illustration of a migration gate holding an exclusive lock while a queue of query blocks piles up behind it, a clock node ticking
SQL

Zero-Downtime Postgres Migrations: lock_timeout and NOT VALID

One ALTER TABLE waiting behind a slow SELECT blocks every query that arrives after it. The timeout-retry loop, NOT VALID constraints and CONCURRENTLY index rules.

PostgreSQLMigrationsLocksOperations
3D illustration of a pooler valve switching one server cylinder between several client cubes, with lost setting tokens floating away
SQL

PgBouncer Transaction vs Session Pooling: What Breaks

Port 6543 hands out a server connection per transaction, so prepared statements, SET, LISTEN and cursors stop behaving. Driver-level settings for each stack.

PostgreSQLPgBouncerSupabasePerformance
3D illustration of a browser window cube separated from an API cube by a blocked gate, a wildcard star token rejected at the gate
Python

FastAPI CORS: Blocked Preflight and Credentials Wildcard

A wildcard origin with credentials is invalid and the browser enforces it; a 500 skips the CORS middleware entirely. Both look like CORS and neither is.

PythonFastAPICORSBrowser
3D illustration of a connection pool rotating a server socket while a client cache of statement plates collides with a red error node
Python

asyncpg DuplicatePreparedStatement on PgBouncer and Supabase

asyncpg caches prepared statements per connection while a transaction pooler rotates connections underneath it. The cache setting, pool sizing and retry that fix it.

PythonasyncpgPostgreSQLSupabase