Urgent.News

What's breaking now, across thousands of outlets.

Tech

ttok 0.4

Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list available models. It works with uvx , so you can count tokens in anything like this: cat file.txt | uvx ttok Tags: projects , ai , openai , generative-ai ,…

We haven't written up this one. Simon Willison has the full story — the link below goes straight to it.

Read the original at simonwillison.net →

More in Tech

Build Notes: A Browser-Local Image Compressor for Everyday Upload Problems

I built Quick Image Kit as a small browser-local image toolkit: quickimagekit.com The product is intentionally practical. Many people do not need a full photo editor.

  • Browser-local image compression tool designed for everyday upload problems
  • Handles personal data safely without uploading to remote servers
  • Provides clear, understandable interface for image resizing and compression

To Retry or Not to Retry: Safe Retry Logic with Exponential Backoff, Jitter and Idempotency Keys

Hồi trước team mình từng có một sự cố khá kinh điển: payment provider chập chờn khoảng 30 giây, và trong 30 giây đó service của bọn mình gửi 4 lần request charge tiền cho cùng một đơn hàng.

  • Determine if request is transient error or not before retrying
  • Idempotent requests (GET, PUT, DELETE) can be safely retried
  • POST requests lack idempotency, risking double processing on retry

More from Thursday 8 October →