Urgent.News

What's breaking now, across thousands of outlets.

Tech

Repeating Ourselves Less with M4

This guide demonstrates how to condense the httpd.conf file using macros. In a previous post, the author mentioned having to repeat identical code blocks for blocking malicious routes. Fortunately, OpenBSD comes with a utility called m4 that can greatly reduce repetitive parts. There are two types of macros: those built into programming languages and those that manipulate text. m4 falls into the second category, being a standalone program that can be used with any text manipulation.

It has built-in functions and allows for substitution of values, but it's not a language parser. The guide explains how to use m4 to create macros for URL blocking and server configurations, making the httpd.conf file shorter and easier to modify.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at nemin.hu →

More in Tech

Johor data centre boom hits capacity wall

KUALA LUMPUR: Johor's data centre boom is entering a new phase, with an acute shortage of available capacity set to trigger fresh investment not only in server campuses but also in the power, water…

Pokémon: Wild Card Announced for 2027

The animated movie Pokémon: Wild Card was announced during the closing ceremony of the 2026 Pokémon World Championships. "For the first time in seven years, a new Pokémon movie is on its way," The…

Why Fixing the Error Isn't the Same as Fixing the Bug

Why Fixing the Error Isn't the Same as Fixing the Bug A bug appears in production. You find the line that crashes. You add a null check. The error disappears. You deploy. Problem solved.

  • Fixing an error addresses a symptom, not root cause
  • Symptom shows immediate failure, root cause explains why
  • Understanding system boundaries crucial for effective debugging

Notification Deduplication for a Go Gaming Voice Lobby Fan-Out Path

Short answer: implement notification deduplication as a server-owned, stable event-ID contract, persist the acceptance decision before fan-out, and make every gaming voice lobby client reconcile those…

  • Assign stable event-ID to every business event before realtime publisher.
  • Persist acceptance decision before fan-out, record event and ID durably.
  • Client maintains bounded set of applied event IDs to ignore duplicates.

More from Monday 31 August →