on-internet

Stop Using One Prompt for Every Photo! Local Image Classification Before Calling Firebase AI Logic GenerativeModel

I upload images of places, wrestlers, and general objects to the application. When uploading images of people, I want the Gemini model to generate alt text about their appearance, posture, and attire. When uploading images of places, I want the Gemini model to generate alt text with their official names, coordinates, and locations. To support this, I installed the @mediapipe/tasks-decision library, which uses the EmbeddingGemma 2 model (embeddinggemma-2-text-vision-440m-litert-lm) to classify the category of a picture (people, general, or place). The category decides which Firebase AI Logic Ge

Nothing to Worry About (Short Fic)

"You’re okay, Ms. Madeline. Your results are clear. You can go home now." The words echoed repeatedly in Madeline’s head. Her head spun as… Continue reading on Medium »

Gemini API returns empty text with finishReason MAX_TOKENS: thinking tokens use the limit first

On Gemini models that think, the tokens spent on reasoning count against max_output_tokens before the first word of the answer is written. The failure is quiet: no exception, HTTP 200, and a response whose text is an empty string. I reproduced it on purpose on 10 November 2026 with one arithmetic question (a train problem with a known answer, 11:49, asked for in one sentence, so a correct reply is about 15 tokens) and a ladder of output limits, recording the token counts the API reports. Everything below is from that run with one free-tier key. The symptom from google import genai from google.

Build a Multilingual React Editor with Chrome’s Built-In AI

A translation can look polished and still be dangerous to apply. The application may preserve the words while quietly losing the most useful review artifact: what the person actually wrote. Consider a synthetic event brief: “Please keep Room 204 available until Friday. The budget is $250. Do not confirm the booking until Maya approves.” The room, amount, deadline, and condition all matter. A translation belongs beside that source so someone can inspect the result before using it. This walkthrough builds a safer interaction in React and TypeScript with Chrome’s Language Detector and Translator

Our installer window is 540 by 380 points, and nobody in our repository chose that, or the background, or where the icon sits

notifio.app/download hands a Mac visitor a 291 MB file called notifio-arm64.dmg. I spent a post yesterday on the 639 files inside the app bundle and never looked at the container around it. The container is more interesting than I expected, because a DMG is not an archive. It is a filesystem image with a Finder window saved inside it, and that window is the first screen a new user of Notifio ever sees. Our package.json has a build block with win, mac and nsis keys in it. There is no dmg key. So every pixel of that first screen was chosen by electron-builder, and this post is me finding out wha

Why Stripe sends your webhook twice (and how to process it once)

Stripe will send you the same event twice. Your endpoint timed out. You returned a 5xx. The process died after the work but before the 200. In live mode, Stripe retries for up to three days, with exponential backoff. In a sandbox, it retries three times over a few hours. Stripe does not promise a single delivery, or a tidy order. The second POST is not a bug in Stripe. It is the contract. Count event ids first The unique key for a delivery is event.id. Store it atomically before you grant anything. The second delivery should return 200 and do nothing. A flag you read and then write is not enou

Running Android APKs Natively on Linux Without the 8GB Emulator Penalty

Every developer or creator who needs to run Android applications on Linux has felt the frustration of traditional Android emulators. Between multi-gigabyte RAM overheads, CPU thermal throttling, and clunky mobile chrome frames, standard virtualization tools often feel like sledgehammers cracking eggs. When architecting the application layer for Flowork OS, our open-source autonomous AI operating system, we needed a way for our desktop agent and users to run mobile APKs (such as CapCut, social commerce tools, and Google Play Store) with instantaneous launch times and zero desktop lag. Here is a

Why single-region uptime monitors wake you up at 3 AM — and how we built a two-region monitor with a read-only OAuth 2.1 MCP server

The 3 AM False-Alarm Problem If you have ever used a basic single-location uptime checker, you know the feeling: your phone buzzes at 03:14 with CRITICAL: example.com is DOWN, you jump out of bed, open the URL on your laptop, and it loads in 180 ms. Two minutes later: RESOLVED. The internet between one probe datacenter and your origin has brief BGP reconvergences, packet loss spikes, and transient resolver timeouts every week. A single failed HTTP request from one datacenter is a local network observation, not proof that your website is down for users. Two-Region Confirmation as a State Machin

Mac mini as a server: 53 lessons learned while moving my AI jobs

Originally published at marian.coach. The full runbook with a check per step is in the public GitHub repo. My Mac mini M6 with 32 GB arrived. I gave myself one day, with Claude Code doing the typing, to move all scheduled jobs off the MacBook. By the evening I had logged 53 wrong assumptions, mine and Claude's. 33 of them apply to any Mac and are in the public repo, next to the runbook and the scripts. That list has grown to 37 since. The other 20 were about my own jobs. The 14 that hurt most are below. The rule I ended the day with: cloud first, the Mac mini only for what the cloud can't run,

Google picked a festival in Rio as the canonical for a rave in Buenos Aires

events.lat lists concerts, festivals and shows across Latin America in English, Spanish and Portuguese. It's a React SPA. At build time a script writes a static HTML "shell" for every public route (title, description, canonical, hreflang, JSON-LD, and a plain-HTML version of the page body), so crawlers get real content without running JavaScript. Any route without a shell falls back to the SPA's root index.html. That fallback is the whole story. What Search Console said Under "Why pages aren't indexed", one row stood out: Duplicate, Google chose different canonical than user: 1,640 pages. Abou

How Cigarettes After Sex Remind Me of You

I don’t know since when every Cigarettes After Sex song started making me remember you, again, and again, and again. Continue reading on Medium »

Debugging Go Applications with Visual Studio Code

1. Introduction Debugging is an essential part of software development. It helps developers understand how an application behaves during execution, identify unexpected behaviour, trace errors, and fix bugs. Go provides several debugging capabilities through Delve (dlv), a debugger specifically designed for Go applications. Visual Studio Code integrates with Delve through the official Go extension, providing a graphical interface for debugging Go programs. This document serves as a practical reference for debugging Go applications using VS Code and Delve. What we will cover Understanding Delve

14 Claude Code and API Tricks to Save Time and Tokens

Discover 14 Claude Code and API tricks for cleaner context, smarter caching, terminal shortcuts, and more reliable automation. Continue reading on Cross Commit »

How Do You Architect a Web Application for Multi Tenant SaaS From Day One?

Architecting a web application for multi tenant software as a service means enforcing tenant boundaries at the infrastructure layer rather than relying on application code discipline. Founders and engineering leaders who postpone these decisions eventually face high risk database refactoring, cross tenant security vulnerabilities, and runaway infrastructure bills when enterprise customers arrive. Building for multi tenancy from day one does not require complex microservice meshes or isolated database clusters for every new signup. It requires an immutable tenant context established at ingress,

The lead with every tool is the slowest, weakest agent in the crew

A lead that keeps host.ssh for a quick check has quietly made every instruction that reaches it a server command. Here's the split I'd make in any runtime, five checks that catch drift, and the part nobody says out loud. Post 7 said the security boundary between a lead and its specialists lives in their tools, and moved on in one line. Post 11 was about the obligations between them — who owes a report, and how the runtime knows. This one is about the thing both posts assumed and neither argued: the lead should not hold the tools. The claim attached to that is security-shaped, and it's true, bu

Unfinished Story

Pernahkah terpikir berapa banyak bahasa di dunia ini? Continue reading on Medium »

Hypocrite

“I do what I want to do" Continue reading on Medium »

Jeshua & Yvonne

Continue reading on Medium »

Top 10 Embedded and Firmware Development Tools

Hi everyone, welcome back. Today, I will be going over embedded and firmware development tools — the ten I reach for most: PlatformIO… Continue reading on Medium »

Advanced Flutter Part 1: The Render Pipeline

Build, layout, paint, composite — dirty marking, relayout and repaint boundaries, and where a frame’s time actually goes. Continue reading on Medium »

Older stories