on-internet

LLM feedback improves video physics consistency

Iteratively feeding generated video back into a large language model slashes physical error scores while keeping visual fidelity intact. The twist is that this loop requires only a lightweight post‑generation step, not a full retraining of the video generator. Before PhysLoop, creators relied on static prompt conditioning or expensive fine‑tuning to coax motion realism out of diffusion models, and even the strongest baseline, Seedance 2.5, still faltered on basic dynamics. Physical supervision was scarce because gathering dense error signals from raw videos is prohibitively costly. On the Phys

Music Remover for screencasts: replace background music without shifting narration

Music Remover for screencasts: replace background music without shifting narration A screencast can contain a useful explanation under a musical bed that no longer fits the edit. Extracting speech is one step. Returning it to the video without changing the timing is another. Treat the replacement as an artifact with an input, an output, and acceptance criteria. Keep the original recording so a failed check can return to the source. Define a passage that can reveal mistakes Choose a section containing a technical term, a quiet ending, and a clear musical event beneath speech. Include a visible

PXE provisioning in real datacenters: three failure modes worth designing around

Most PXE tutorials assume a flat lab network: one DHCP server, one TFTP root, MAC addresses you already know, and an image that installs itself. None of those assumptions survive a production rack. Here are three failure modes we kept hitting, and the design changes that made them stop hurting. 1. Blind ARP sniffing to identify the machine that just booted The classic approach listens for ARP to map IP to MAC, then matches that MAC against the IPMI/BMC entry so the tool can cut power and boot from network. It breaks the moment your provisioning network and your IPMI network are physically isol

Inheritance in Java

Inheritance is a core Object-Oriented Programming concept where one class inherit properties(fields) and behaviour(methods) from another class. It uses "extends" keyword to establish a Is-A Relationship, allowing us to reuse the existing code and build hierarchical classification... Key Terminologies Super Class (Parent class): It is a existing class whose features are inherited by another class. Sub Class (Child class): It is a new class inherits methods and fields from super class and can have its own unique features. extends (Keyword): It's a keyword used by sub class to inherit from super

Sing me a manuscript

The first time I tried to read a scientific paper was a disaster. I just started working as a research assistant during the summer break… Continue reading on Medium »

Cutting LLM Fine-Tuning Memory in Pure Kotlin: Fused Linear Cross-Entropy and the JVM Vector API

When fine-tuning language models like Qwen2-0.5B or Llama-3 on a constrained heap, the biggest memory and compute bottleneck often isn't self-attention. On models with a small hidden dimension and a large vocabulary, the bottleneck is the output projection head (lmHead) and cross-entropy loss. I ran into this while working on v1.1.0 of Kotensor (io.github.tspstudio:kotensor), an open-source, pure-Kotlin Transformer and reverse-mode autograd engine for JVM 17+ and Android with no native C++ or JNI dependencies. Inference was already reasonably fast and ran within tight mobile memory limits, but

2 self-hosted apps for Indian businesses: CA Vault for CA firms and Toran for weddings

Most business software today is a monthly subscription, and your data lives on someone else's cloud. For some Indian businesses that's a real problem: A CA firm holds the PAN, Aadhaar, bank details and Income Tax / GST portal passwords of hundreds of clients. A wedding family or planner holds the phone numbers of 300+ relatives and an exact record of who gave how much shagun. CA Vault and Toran take a different approach. You pay once, install the app on your own hosting (ordinary cPanel shared hosting works), and your data never leaves your server. Neither app has telemetry, and neither needs

How to Debug JavaScript Without Randomly Changing Code

A Practical, Step-by-Step Debugging Workflow to Find Bugs Faster, Understand What’s Breaking, and Fix Problems With Confidence Continue reading on JavaScript in Plain English »

Why useReducer? Why do we need multiple functions to update a single state?

When working with React, we usually use useState() to manage state. For example, imagine building a counter application with three operations: Increment Decrement Reset Using useState(), we might write separate functions for each operation. Using useState() const [count, setCount] = useState(0); function increment() { setCount(count + 1); } function decrement() { setCount(count - 1); } function reset() { setCount(0); } Here, we have three different functions to perform three operations on the same state. This is perfectly fine for a small application. But imagine having many actions and more c

Hand an issue to an AI agent with your own model key: a checklist that keeps it safe

Disclosure: I work on Git A. The checklist in the first part works with any setup. The last part shows how Git A does it. More teams are assigning issues to AI coding agents and getting a pull request back. Usually the agent runs in the cloud and uses a model you pay for with your own API key, often called BYOK (bring your own key). That's the right direction. You choose the model and the provider bills you directly. But "assign the issue and wait" goes wrong in some predictable ways. Here is the checklist we use. Every point holds whatever tool you run. 1. Write the issue like a ticket for a

Retention Controls for Logistics App Data Backups and Signed Restore URLs

Short answer: use managed cloud object storage for a beginner logistics backup system, and self-host MinIO only when the team already operates durable servers and accepts responsibility for disks, monitoring, redundancy, and offsite copies. For product images and tenant-scoped exports, the decisive test isn't the archive's sticker price. It is whether an operator can prove that one tenant's backup can be found, restored, verified, and deleted on schedule without exposing another tenant's objects. Put those checks in a restore drill before choosing a provider. Infrai is a credible managed leg i

Building a Multi-Step Form That Survives Page Refreshes

A three-step registration form where the user loses all input on a browser refresh is a conversion killer. The standard SPA approach — hold state in a React/Vue store — evaporates on reload. You need a persistence layer that the user never thinks about. sessionStorage as the default Write each step's data to sessionStorage on every input change, and hydrate from it on mount: function usePersisted<T>(key: string, initial: T): [T, (v: T) => void] { const stored = sessionStorage.getItem(key); const [val, setVal] = useState<T>(stored ? JSON.parse(stored) : initial); const persist = (v: T) => { set

User Acceptance Testing for Founders: Six Steps Before You Sign Off

A feature can pass its tests and still fail the business. That gap is exactly why user acceptance testing (UAT) deserves more attention during software handover. For developers, passing functional tests may indicate that an implementation behaves as expected. For founders and operations leads, the question is different: can the people who will use this system complete their actual work with it? This distinction becomes especially important when a company receives an MVP or SaaS product from an external development team. The build may be complete, but the business still needs to verify that the

What Happens to Your Crypto If the Exchange Gets Hacked?

About $6.3 billion left Binance on October 29, 2026. It is being reported as the largest crypto hack to date, and Binance says it has covered every customer loss. Developers tend to read a story like that and ask "how did they get in?" I think the more useful question for anyone holding coins on a platform is a different one: "where exactly was my crypto sitting, and what had to go wrong for it to move?" I build and run a crypto investing platform on my own, so I have had to answer that question for my own system. This post walks through the mechanics in plain English, then turns them into 7 c

I Am Overwhelmed, What Should I Do?

I am overwhelmed, and that’s okay; it is just life… Continue reading on Quirky Rants »

Java4Shell: What Happened and What to Do Now

A simple guide to the new Java bug, who it hits, and the one-line fix you can use today. Continue reading on Medium »

I Paid for Everything With My Thai Girlfriend After 60.

Who pays for what, what never gets asked for, what comes back, where taking care stops working, and why nobody says the word for any of it. Continue reading on Medium »

Routing Upscaling Jobs by Output Size, Not Input Size

Sizing an upscaling worker by the uploaded file alone is a good way to end up with unexpected costs. The upload is just the input. The output is what determines how much work the render requires. A routing rule that holds up in production: Calculate the output pixel count from the source dimensions and requested scale factor. Reject jobs that exceed your processing limit before they start, and explain the reason to the user. Select the processing engine based on the output size, then log that decision against the job ID. A cheaper engine on a small source image can sometimes produce a better r

Defensive Coding for Real-Time Scoreboard Components

Live scoreboards look simple — a number, a timer, maybe a dot for possession — until the WebSocket drops mid-event and the UI freezes on a stale score. Most scoreboard bugs are not render bugs; they are state-reconciliation failures. Heartbeat timeout If the socket sends no message for N seconds, assume the connection is stale and trigger a full state refetch instead of waiting for the browser's built-in close event (which can take 30+ seconds): let last = Date.now(); socket.onmessage = (ev) => { last = Date.now(); handle(ev); }; setInterval(() => { if (Date.now() - last > 8000) refetchState()

AZ-900 vs AWS Cloud Practitioner: Which Should You Take?

This article was first published on the SecLern blog. AZ-900 vs AWS Cloud Practitioner is close: both are entry-level, no-prerequisite cloud certifications covering the same ground, and neither is meaningfully harder. Pick AZ-900 if you work in or are heading toward Microsoft environments and plan to continue to AZ-104 or AZ-500, because Azure Fundamentals never expires. Pick AWS Cloud Practitioner if your target employers are AWS-first or you plan to continue to SAA-C03, knowing it lapses after three years. With no preference at all, start with AZ-900: the concepts transfer to AWS almost one

How much GPU memory does an LLM need? The whole sum, worked out on real cards

Before a team rents or buys a GPU to serve a language model, someone asks the same question: how much memory does this model need? The answer you usually find online is "the number of parameters times two bytes". That sum is correct, and it is also the reason so many first deployments disappoint. It tells you whether the model loads. It does not tell you how many people the card can serve, and that is the number your users care about. In this post I work through the whole sum the way I would at a whiteboard with a new engineer on the team. Every number comes from real starts of vLLM 0.33 on re

Rate Limiting a Real-Time Odds Feed Without Dropping Critical Updates

An odds feed can push several hundred messages per second during peak events. The UI only needs to repaint at ~60 fps, so most messages are redundant — but you cannot simply throttle the socket, because a market suspension or a sudden line move has to reach the user instantly. Two-tier filtering Split incoming messages into critical (suspensions, settlement, line moves beyond a threshold) and cosmetic (minor price ticks). Critical messages bypass the buffer and render immediately; cosmetic ones coalesce in a frame-aligned batch: const THRESHOLD_CENTS = 5; function classify(msg: OddsUpdate): 'c

I checked 10 SEO agency websites for AI-search readiness. The real bugs were the boring ones.

I tested 10 websites of SEO and web-design agencies, the people other companies pay to make their sites findable, to see how ready they are for AI search (ChatGPT Search, Perplexity, Claude). The sample is small and the sites stay anonymous. The point isn't to shame anyone. It's that even specialists miss the same handful of things, and the misses that hurt are not the trendy ones. What I checked For each homepage I fetched the raw HTML (no JavaScript) and the standard files, the way a non-rendering crawler would: robots.txt: status code, syntax, and rules for AI search crawlers (OAI-SearchBot

Engineering practice: git, code, tests · 3. Code review: what to look for, in what order

Engineering practice: git, code, tests · Chapter 3 of 12 · Craft · new chapter every Sunday night By the end of this chapter: Review effectively and receive review without defensiveness. The problem You are a junior engineer on a two-week sprint for the payments team. Mid-sprint, you discover a flaky test that fails on the CI runner every night. You open a branch, add a one-line guard clause, and push. The CI pipeline passes, so you think you're done and type: git commit -am "fix bug" git push origin payment-guard-2024-09-15 However, when you submit your pull request, a senior engineer reviews

Evaluating AI-Generated Code: Beyond Syntax and Correctness

Evaluating AI-Generated Code: Beyond Syntax and Correctness AI tools have become a regular part of software development. Developers now use them to write functions, fix bugs, explain unfamiliar code, generate tests and even suggest ways to structure an application. I've found these tools useful, especially when working through problems that would otherwise take more time to solve. But there is something worth paying attention to. Code that looks correct is not always good code. An AI tool can generate a function that runs without errors and gives the expected result in a simple test. But what

Older stories