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

A registry tower with a layer stack and a cyan token key beside an amber quota meter filled to the top
Docker

Docker Hub: toomanyrequests and the pull rate limit behind it

Shared CI addresses drain the anonymous quota. Log in, cache the bytes once, and stop pulling production images from Docker Hub.

DockerDocker HubCIRegistries
Two component blocks with a state plug trying to cross between them and an amber warning plate
React

React: Cannot update a component while rendering a different component

The warning means one component scheduled state for another during render. Derive the value or move the write to a handler.

ReactStateHooksDebugging
A declaration sheet whose import arrow points into nested package boxes and ends at an amber empty slot
TypeScript

TS2742: the inferred type cannot be named without a reference

Type checking passes and only declaration emit fails. Annotate the exported boundary so consumers can resolve the emitted type.

TypeScriptDeclaration FilespnpmBuild
A build cube with a letter glyph crate and a broken cyan download arrow beside a blocked cloud plate
Next.js

next/font: Failed to fetch a Google font during the build

The font is fetched during the build, not at runtime. Vendor it with next/font/local or give CI and Docker a route out.

Next.jsnext/fontCIDocker
A manifest sheet and a lock sheet held apart by clamps with one misaligned dependency slot in amber
Node.js

npm ci: the lock file is out of sync and how to fix it correctly

The lock and the manifest disagree, and CI stops before installing. Regenerate on the same npm major and keep platform entries.

npmNode.jsCIPackage Managers
Two dependency chains of small package blocks colliding at one shared crate with amber sparks
Python

pip: ResolutionImpossible when two requirements pin the same package

One pin too tight breaks the whole install. Read the chain, pick the side that should move, and make the resolution reproducible with a lock.

PythonpipDependency ManagementPackaging
A cargo binary cube linked by a robotic lld arm reaching for a library shelf, amber error marker
Rust

Rust 1.90 moved to rust-lld and linking started failing

A linker swap broke the build without a code change. Here is why lld misses /usr/local/lib and how to choose between fixing and opting out.

RustLinkingToolchainCI
A single object slot receiving zero rows and two row blocks with an amber 406 plate between them
SQL

Supabase PGRST116: Cannot coerce the result to a single JSON object

Zero rows and two rows share one code. The details field says which, and the fix is different: policy, session, or a unique filter.

SupabasePostgRESTPostgreSQLRow Level Security
Two database row blocks with one held by an amber lock plate beside a waiting loop and countdown dial
SQL

MySQL: Lock wait timeout exceeded, and how to find the blocker

The waiter is the symptom. Find the blocker, shorten the transaction that holds locks, and stop raising the timeout as a fix.

MySQLInnoDBLockingPerformance
A dependency injection container with one empty socket in its wall and an amber gap
C#

.NET DI: Unable to resolve service for type while attempting to activate

Read the two type names in order, then check registration, namespace and lifetime. Includes the scoped-into-singleton follow-on error.

.NETDependency InjectionASP.NET CoreTroubleshooting