Learn how to enable Drupal’s built‑in JSON:API, craft efficient queries, and secure exposed content for headless applications. A step‑by‑step example shows filtering, sorting, and sparse fieldsets, plus a look at caching trade‑offs.
Use Agg before importing pyplot, close figures explicitly, and declare fonts to generate charts reliably in headless containers and long-running services.
Headless Raspberry Pi hangs are unfixable remotely. The bcm2835 hardware watchdog can force a defined reboot when software stops kicking the timer, giving unattended nodes predictable recovery at the cost of visibility.
Drupal's JSON:API module has shipped in core since 8.7, exposing every entity type as a spec-compliant RESTful API with filtering, pagination, sparse fieldsets, and compound documents — zero custom controllers required. Covers a fetch example, access control, cache tags, and production limits.
Pin matplotlib to the Agg backend so chart generation works on CI runners and display-less containers, with verification steps, memory limits, and the cases where Agg is the wrong tool.
When you run a Raspberry Pi without a monitor, a frozen system can lock you out. This guide shows how to use the Pi’s hardware watchdog, wired into systemd, to automatically reboot the board, and explains the limits and practical checks you need.
Matplotlib’s backend selection dictates whether a plot runs in a headless server, CI pipeline, or interactive desktop. This guide explains the architecture, how to lock in a backend before import, and diagnostic steps to avoid runtime failures.
Goal Run smoke tests for a small web application in a CI pipeline while keeping user traffic uninterrupted. Constraints CI images must pin a stable Chrome version to avoid surprises during a migration. Memory and CPU consumption are critical when scaling parallel test runs. Security isolation is required; containers may need --no-sandbox but this weakens pro