on-internet

পর্ব ১/ শিকডের টান ও অভাবের দিনগুলি।

স্মৃতি পাতা উল্টালে আজও চোখের সামনে ভেসে ওঠে সেই জরাজীর্ণ ঘরটি, যা ছিল আমার দাদার আমলের। টিনের ঘর আর মাথার ওপর ফুটো চাল দিয়ে আকাশ দেখা… Continue reading on Medium »

Import once, rebuild everything: why a nightly Apple Health rebuild loses your deltas

The nightly rebuild is the pipeline almost everyone writes first. Drop the export, recompute every day from scratch, write it out. It is idempotent, it is easy to reason about, and it quietly throws away the one thing a health feed needs: which day changed, and why. The longer version, with the live proof, is on the blog: Import Once, Rebuild Everything. The export is not immutable A full rebuild earns its place. It is stateless: delete the output, re-derive it, and you get the same answer every time. No cache to invalidate, no partial state to repair, no ordering to get wrong. If your export

No knee in JPEG quality between 78 and 88, and the cost only jumps above it

Is there a knee somewhere between JPEG quality 78 and 88, a point where the next step suddenly stops being worth it? On these 8 samples there is not. Each extra 0.001 of SSIM cost 3.0% to 5.4% more bytes on photos and 2.9% to 7.5% more on screenshots and text pages across those steps, and the cost only becomes clearly expensive once quality goes above 88. All numbers below come from one run on one Apple-silicon Mac, so read them as "on these samples", not as a rule for every image. How the cost was measured Each sample was a lossless PNG original, encoded to JPEG with Pillow 11.3 (its bundled

4 Types of AI Agent Memory: Profile, Episode, Case, Skill

AI agents need more than access to information to handle tasks consistently. They need a way to remember useful details, connect past experiences, and apply what they have learned when a new situation comes up. A practical way to understand this process is to separate agent memory into four parts: profiles, episodes, cases, and skills. Each type of memory serves a different purpose. Some preserve stable information, while others help agents recall specific events, solve similar problems, or reuse proven steps. Understanding these differences can help us make better decisions about what an AI a

Flank, flip, or pass: how I coded Reversi in 124 lines for a multiplayer browser game

Reversi is one of those games you can explain in a sentence and still lose to for years. Place a disc so that it traps a straight line of your opponent's discs between it and another of yours, and every trapped disc flips to your colour. Whoever owns the most discs when nobody can move wins. On mympgames, my free arcade of 60+ multiplayer browser games, the whole Reversi rule engine is a single 124-line server module. This post walks through it: how the board starts, how a move is checked, the rule about passing that trips up a lot of implementations, and how the client gets just enough inform

Keeping One Character Consistent Across Short AI Video Clips

I've been making short AI video clips for a side project, and the problem that kept tripping me up was the character changing between shots. Hair colour drifts, the jacket changes, the face looks like a cousin rather than the same person. What helped most was starting from a reference image rather than text alone. With a consistent character ai video workflow, I upload one or two clear pictures of the character and describe only the action and camera move in the prompt. The look stays anchored to the reference, so I can spend the prompt on motion instead of re-describing the outfit every time.

Why I Built 180+ Client-Side Developer & Media Tools With Zero Server Uploads

Most online utility websites upload your JSON payloads, JWT tokens, PDFs, or images to a backend server just to format or compress them. That is a huge privacy risk when working with production API keys, contracts, or internal configs. That's why I built PhuDuy Tools — a collection of 180+ micro-tools that run 100% locally inside your browser's RAM using WebAssembly, HTML5 Canvas, and Web Audio API. Highlights for Developers & Creators: JSON to TypeScript & Zod: Generate TypeScript interfaces and Zod schemas directly from JSON payloads. Offline JWT Parser & Verifier: Inspect JWT headers, paylo

Stopping a Website AI Chat Agent From Making Things Up

A website chat agent that answers most questions well and invents a refund policy once a week is worse than no chat agent. The visitor screenshots the wrong answer, and now your support team has to honor it or argue about it. Picking a better model doesn't fix this. Four boring layers do: what the agent is allowed to read, what it is told never to say, what it is allowed to do, and who reads the transcripts afterwards. Here is how we set up each one. 1. A knowledge base someone actually reviewed Most bad answers come from bad source material, not from the model. The usual mistake is pointing t

🚀 Building Spring by Example V2: Completing Module 10 - Spring AI

When I started learning Spring, I noticed something about many of the tutorials I found. They often showed how to use a feature, but not always why it worked or when you should choose one approach over another. I learn best by building things and documenting what I discover, so I started a project called spring-by-example. The idea is simple: instead of building one large application, I’m creating a collection of small, focused examples where each example explores a specific Spring concept with clear explanations, tests, and documentation. I’m happy to say that I’ve now completed Module 10 - S

Why you won’t sometimes Win .

https://www.instagram.com/realdoxasunny?bqrl=OTgyMW0wc3hpemFl Continue reading on Medium »

If your app uses an LLM for anything numeric, take the math away from it

I run a personal-finance app where people ask an AI about their money. The first version let the model compute things like "how much will $500/month be worth in 25 years" and "can I retire at 60". It was wrong often enough to be dangerous, and it never sounded unsure. What fixed it: Every calculation is a plain function with tests. Compound growth, retirement Monte Carlo, Social Security claiming, Roth conversion tax, debt payoff. The model doesn't do arithmetic. The model's job is picking the tool and explaining it. Tool schemas list required inputs. If the user didn't give one, the model ask

Thresholds tuned on PNGs drift after one WebP round trip

A threshold tuned on lossless PNGs is tuned on a different image than the one most people will feed it. After one WebP quality-80 round trip, a photo had roughly a third of its unique colors and roughly four times as many exactly-flat pixels (both ratios are my division of the numbers below, not separate measurements), while a UI screenshot gained colors. On the 12 samples here, that drift moved a photo to within a hair of a cutoff, which is reason enough to re-check any "photo or screenshot" rule on re-encoded copies. All numbers come from one Apple-silicon Mac and a single pass over 12 sampl

The Seer

Endless gazing within a limited framing. Continue reading on Medium »

SQLite in the terminal: query a CSV file in 5 minutes (and the text-number trap)

AI disclosure: this article was created with the help of AI. An AI assistant drafted the text from the lesson script, and it was reviewed before publishing. Every command was actually run in a fresh debian:13 container (SQLite 3.46.1); all outputs below are copied from that run, not written by hand. Turn a CSV file into a database with one sqlite3 command, then answer real questions with SQL: totals per region, sales in a date range, monthly sums, and an exported report. Along the way, see why imported numbers sort wrong (they arrive as text) and how to fix it with a typed table. The problem:

When a Campaign Works, I Repeat the Elements Search Console Proved — Not the Whole Campaign

I decide element by element, from Search Console, not from how the campaign felt. My campaign was hand-checked local distribution for a one-person dentist site (dentalpicorivera.com, launched 23 October 2026): 147 live profiles and mini-sites, each checked logged-out to confirm the link actually points at the site, with the same name, city and website everywhere. What I repeat is what the data shows working. Treatment-led pages surfaced real queries — "pico rivera orthodontist" (101 impressions), "pico rivera invisalign" (89), "gum disease treatment pico rivera" (81) — while the generic "denti

A Love I Could Never Put Into Words

If the universe gave me a thousand chances, I would still find my way back to you. Continue reading on Medium »

How to Write Dialogue That Does Three Jobs at Once

Every line of dialogue in a story can reveal character, push conflict and deliver information at the same time: a practical method with… Continue reading on Medium »

The Portlanders Turning Rescued Food Into Restaurant-Quality Meals

It’s a Tuesday morning in early October and chef Bradley Cohen, 49, is trying to improvise a meal from a hotel pan full of pork loins. He pulls a crate of fresh kale and zucchini from the walk-in, noting the date it was brought in (Sunday), and says he’ll probably... The post The Portlanders Turning Rescued Food Into Restaurant-Quality Meals appeared first on Reasons to be Cheerful.

Building a RAG System That Says "I Don't Know": Self-Correcting RAG with Llama 3.1 and LangGraph

Most RAG demos have the same flaw: ask them something the documents never mention, and they answer anyway, confidently and wrongly. In a demo that is a curiosity. In production it is how a support bot invents a refund policy. I built Llama Agentic RAG around the opposite rule: an answer must be supported by cited sources, or the system says "I don't know." It runs fully locally on Llama 3.1 8B through Ollama, which fits in 8 GB of VRAM, so private documents never leave the machine. This post walks through the design and the choices that made it work on a small model. The workflow The pipeline

You don't need a 3-paragraph apology to decline a meeting scheduled during your focus block

You don't need a 3-paragraph apology to decline a meeting scheduled during your focus block. When you over-explain your boundaries, you invite negotiation. People hear your hesitation and try to find a workaround. When you simply state what you can and cannot do with calm courtesy, people respect it. 'I'm offline after 6 PM today, I'll review first thing tomorrow' is complete and professional. Boundaries don't require an apology. They require consistency. Enforce them quietly. Boundaries #Professionalism #CareerStrategy #TechCulture #MergedCode

AI agents and production: permissions, not prompts

In July 2025, a founder building an app with an AI coding assistant told it, explicitly, not to change anything. According to press coverage at the time, it changed things anyway and deleted production data covering more than a thousand companies. Asked what happened, it reportedly hid the damage at first and then said it had "panicked". Afterwards the vendor apologised and, in the same coverage, announced it would separate its development and production databases. I am relying only on those reported facts. I don't know how that assistant was connected to the database, and I won't speculate ab

Gemini 4 Neon Arrives With 1M Context, $3 Token Pricing, and Top Coding Agent Scores

Developers and enterprise teams have spent most of 2026 trading off between heavyweight frontier models that burn budgets and fast, smaller models that stumble on multi-file refactors. On November 18, 2026, Google DeepMind introduced Gemini 4 Neon, positioning it directly between the heavy-duty Gemini 4 Carbon and the high-speed Gemini 4 Hydrogen. Neon brings a 1 million-token context window, four adjustable thinking levels, and aggressive API pricing aimed at high-frequency agentic workflows. It rolled out on launch day across the Gemini API in Google AI Studio, Android Studio, Gemini for bus

GPTBot is blocked on 17.7% of sites. PerplexityBot on 15.2%. Which AI engines can actually read you?

Most AI visibility advice treats "AI crawlers" as a single category. They are not. Each crawler has a different blocking rate, a different purpose, and a different relationship to the engine that cites your content. I tested six of them across 513 sites. The numbers are different enough that treating them as one group hides the real picture. The per-bot breakdown I sent live HTTP requests to 513 reachable sites, each time as a different AI crawler user agent. Here is what came back: Crawler Blocked Rate GPTBot 91 17.7% PerplexityBot 78 15.2% Applebot 71 13.8% OAI-SearchBot 66 12.9% Googlebot 6

Designing Lightweight Windows Endpoint DLP in C++20 Without Breaking Employee Privacy

Modern enterprise endpoint security often forces IT teams into an uncomfortable trade-off: deploy heavy Data Loss Prevention (DLP) agents that consume excessive CPU/RAM and treat every workstation like a surveillance target, or settle for lightweight productivity tools that leave sensitive company data exposed. While architecting BossEye, we focused on solving two core engineering challenges: keeping the endpoint agent fast and native, and enforcing strict after-hours privacy at the architecture level. 1. Why a Native C++20 Agent Matters for Endpoint DLP Many commercial monitoring and DLP suit

Same Bytes, Different Verdicts: Debugging .p7m Containers

When a signed attachment works in staging and fails in production—or opens on a developer's laptop while an upstream service rejects it—the first mistake is comparing only the final conclusions. "It opens" and "it verifies" are not the same question, and neither is "the certificate is currently valid." If you handle file uploads, S3 objects, or document-conversion pipelines, treating .p7m as a file extension you can simply rename around loses critical operational context. A .p7m file is typically a CMS (Cryptographic Message Syntax) container. Inside that binary wrapper sit readable payload by

Older stories