Urgent.News

What's breaking now, across thousands of outlets.

Tech

Watching the Windows clipboard from Node.js without polling

Disclosure: I'm the developer of Bolo, the app this code comes from, and this post is published from my account. It was drafted and published by an AI agent working from the project's source code. Bolo has a small Windows companion written in Node.js. Its main job is to type at the PC cursor what you dictate on your Android phone. A second feature is two-way clipboard sync: copy on the PC and it…

A Node.js application, named Bolo, lets users dictate text on their Android phone, which is then typed at the PC cursor. The app syncs text between the PC and Android via a clipboard. Initially, the Windows PowerShell script sent clipboard text every two seconds, but this caused a server freeze due to process buildup.

To fix this, the code introduces an event-driven clipboard watcher in Windows, which listens for clipboard changes without timers or process creation. This avoids issues with RDP sessions being locked or disconnected. Additionally, the watcher ensures only one update is sent per copy, even if multiple clipboard events occur.

For sync operations, the code uses a one-shot read mechanism that only runs when explicitly requested by the user or the app. This prevents unnecessary process creation and timeouts. The solution also includes deduplication to prevent duplicate updates and a hard timeout to ensure safe execution. Overall, the changes improve the stability and efficiency of the clipboard syncing between the PC and Android device.

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

Read the original at dev.to →

More in Tech

The Mean Looked Fine. Goodput Said No.

Mean latency is a liar. Goodput is the number I keep now. I learned this the boring way. I pointed a small agent loop at a free model endpoint. The average looked fine. Users still complained. Why?

  • Mean latency can be misleading as it ignores slowest users
  • Goodput measures share of requests meeting latency budget
  • Redefining success as goodput reveals poor performance for some users

Estimating moving costs without an address form: building a privacy-first quote calculator

Most moving quote tools start the same way: enter your name, email, phone, current address, destination address — and then the calls begin. We built ours backwards.

  • Fast Movers' quote calculator doesn't require personal data like name, email, or addresses
  • Cost estimation relies on distance, shipment weight, and season, not user accounts
  • Tool shows price ranges and assumptions to build trust and transparency

Built, deployed, and shipped 5 image tools solo. Now the hard part: getting users.

Fair question. remove.bg and TinyPNG are excellent single-purpose tools — I still use both. My pitch is different: One suite instead of 5 tabs Bulk mode built-in (20 files at a time on most tools) No…

  • Author built and deployed 5 free image tools without signups
  • Tools include background remover, upscaler, compressor, converter, PDF generator
  • Current 40 users aim for 10,000 sessions to meet Ezoic threshold

More from Saturday 17 October →