Urgent.News

What's breaking now, across thousands of outlets.

Tech

Using timers to perform weekly tasks

The author uses timers to automate weekly tasks in Emacs, specifically for updating clock tables during their weekly review on Sundays. They employ idle timers, which activate when Emacs is inactive for a certain period, to minimize the impact on system resources. The author sets up a regular timer on Sundays around 3am (or as soon as the laptop is opened), which in turn sets up an idle timer for 60 seconds.

This setup prevents the clock tables from being updated immediately upon opening the laptop, waiting instead until a full minute of inactivity has passed. This solution ensures that the weekly review process is efficient, with minimal delay and no unnecessary strain on system resources.

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 mbork.pl →

More in Tech

48-Hour Field Notes: My Stream Ended Without [DONE] and the Client Called It Success

Why does a truncated model answer look exactly like a finished one when the only thing you check is the HTTP status code? That question cost me most of a weekend.

  • Assumed 200 status code guaranteed completed streaming response
  • Stream ended without [DONE] sentinel, causing abrupt mid-sentence outputs
  • Probe harness recorded time, finishreason, DONE sentinel, socket state

More from Sunday 18 October →