on-internet

One OCR error that breaks a Japanese number: 〇 read as a bullet

I rendered three fictional pages of a local-museum booklet (12 lines, 149 characters, mixed kanji numerals, full-width digits and a visitor count) and ran them through macOS Vision text recognition (ja-JP, accurate mode) on an Apple-silicon Mac. I then compared each line with the known text by edit distance. It took about 19 seconds for the three pages, including rendering. Result: 7 character errors in 149, a character error rate of 4.7%. Nine of twelve lines were exact. The three that were not: (1977年) came back as (1977年). Full-width digits and brackets were turned into half-width. That is

Locked Paths: A Prompt Is a Request. A Test Is a Rule.

Cross-post of Insights #19. Canonical: https://sheikhwasim.com/insights/locked-paths-prompt-is-a-request-test-is-a-rule/ Every team running coding agents has a line in a prompt that says something like "do not modify the payment retry logic." It feels like a guardrail. It isn't one. A prompt is a request. The agent will honor it most of the time, and when it doesn't, it will usually have a reasonable-sounding explanation. Production doesn't care about the explanation. The fix is a habit I call Locked Paths: any code an agent must never change on its own gets protected by something the agent ca

The Local LLM Hardware Wall: Escape Cloud Lock-In Without a $4K Rig

Across r/LocalLLaMA and /g/ threads, developers feel trapped between two walls. On one side, cloud providers tighten ID/card gates, log prompts unless you pay for enterprise zero-data-retention tiers, and reprice or retire models overnight. On the other side, running huge 70B+ open weights locally at usable speeds requires massive VRAM or expensive unified memory. Worst of all, squeezing a huge model into 8GB–12GB VRAM with aggressive 3-bit or 4-bit quantization destroys coding reliability — leading to broken imports and hallucinated library methods. Where Local Actually Beats Cloud Today (16G

With a Comma, Lord!

Or How I Ended Up Discussing the Modesty of Punctuation Marks with an AI Continue reading on Medium »

List in python

In python ,list is a ordered collection of multiple data types items stored in a single variable. List also allows duplicate values and it is mutable. Lists are written with square brackets [], and elements are accessed by their index starting at 0. syntax: fruits = ["apple", "banana", "cherry"] mixed = [1, "hello", True, [2, 3]] fruits, mixed are variable name. []-values are stored into the variable How to print those values To print the whole list use -print(fruits) To print the exact required value -print(mixed[3][1]), those [] refers to the index position of the values.

AI Can Calculate Your Data. It Cannot Tell You What It Means.

I once watched a team hand three years of sales exports to an AI assistant and ask it to "analyze the trends." It produced a beautiful summary, complete with percentages and confident conclusions. The only problem: the data included two stores that had been shut down for six months, and the "growth" it celebrated was entirely a data artifact. This is the state of AI-assisted data analysis in most teams right now. The tool is good at arithmetic and terrible at context. The fix is not a better prompt — it is a better division of labor. The line between what AI does and what you do AI is good at:

Documents that are web pages: why we render every Office file as HTML

Written by the OmniDoc team about our own product, OmniDoc (至译). Word files, slide decks and PDFs are digital paper: lay it out, print it, done. But almost all reading now happens on screens, and the most capable layout and interaction technology on a screen is HTML. So OmniDoc renders every Office file as HTML. The document is the web page UniDoc is the document editor in OmniDoc. Its native format, .udoc, is also a web page: charts, animations, flowcharts, tabs and equations sit right in the document; you edit it like a Word file; you publish it as a link that stays interactive, and a browse

// Claude Code, Telemetry, and the Right to Inspect Your Own Tools _

Imagine a pretty ordinary afternoon. You're debugging a failing test. Earlier, you highlighted a few lines in your editor while reviewing another file. You switch to the integrated terminal and ask your coding agent why the test is failing. What, exactly, just left your machine? A recent teardown of Claude Code v2.1.294 describes a code path that can attach the currently selected text and active file path from a connected IDE to a message sent to the model. That selection may have nothing to do with the question you asked. I understand why the feature exists. Good context makes coding agents b

Laravel Pest Mocking: Fakes, Mockery and Spies (Part 2)

Last updated: 15 November 2026. Series: Part 2 of 3. Tested on Laravel 13.40, PHP 8.3.6, Pest 4.7.8, Mockery 1.6.15. Continues the orders app fromPart 1. Update log at the end. The order endpoint sends an email, queues an invoice job, fires an event and calls a payment API. A test should check that each of those happened without sending a real email or charging a real card. Laravel gives you fakes for most of it, and Mockery for the rest. The hard part is knowing which to use and what each one can silently miss. Every example here was run, including the ways they fail. Fake, mock or spy? Tool

Fix Sideways Scanned Pages: Rotate PDFs Before OCR and Watermark

Rotate a sideways scan before OCR. Then extract, approve, and apply the marketplace's watermark only to the copy intended for external sharing; retain the untouched upload and its original orientation as metadata. TL;DR: Use an application-owned workflow when watermark policy changes by marketplace, recipient, or document state. Use a provider-owned template when the mark is stable and operations simplicity matters more than per-tenant control. In either architecture, orientation correction is a pre-OCR invariant, while watermarking is a post-approval publication step. For a small platform tea

Laravel Pest Testing: Setup and Feature Tests

Last updated: 15 November 2026. Series: Part 1 of 3. Tested on Laravel 13.40, PHP 8.3.6, Pest 4.7.8 and PHPUnit 12.5.33. The current Pest release is 5, which needs PHP 8.4; seeWhich Pest version?. Update log at the end. Most Laravel projects start with the two example tests and never get further, because the next step, testing a real endpoint with authentication, validation, a payment call and a database write, is where the tutorials stop. This series builds that test suite step by step. Part 1 installs Pest and writes feature tests for an order endpoint. Part 2 covers mocking and fakes, and P

Japan Doesn’t Hug, and I Miss It

Touch, culture, and an American abroad Continue reading on Digital Global Traveler »

C# 15 Unions in ASP.NET Core: Make a Forgotten Case Fail the Build

A typical endpoint has several ways to end: it worked, the thing was missing, the input was bad. Most code expresses that with exceptions, or with a handler that returns an untyped IResult and hopes every branch picked the right status. Nothing tells the compiler which outcomes exist, so nothing can tell you when you forgot one. .NET 11 ships C# 15 as the default language version for net11.0, and C# 15 adds a union declaration. I built a small fee calculator API where every endpoint returns a closed list of outcomes, and the compiler checks that each outcome is turned into an HTTP status. A fo

Older stories