DevIdiot!
Why Calendar Apps Get Chinese Solar Terms Wrong — And How to Compute Them Client-Side
If you have ever built a global calendar widget or cultural date converter in JavaScript, Chinese solar terms (Jie Qi) look deceptively simple at first glance: "Spring starts around February 4, Summer starts around May 5 — just use a lookup table of dates, right?"Wait until a user born on February 4 at 08:30 gets a completely different sexagenary year and month pillar from one born at 11:30 the exact same morning. Solar Terms Are Astronomical Angles, Not Midnight BoundariesUnlike fixed Greg
Create an AI Dubbing Tool for Video Content
Why AI Dubbing MattersIf you’ve ever tried to repurpose a YouTube video for a new market, you know the pain of hiring voice actors, dealing with contracts, and then syncing the new audio back to the footage. Modern text‑to‑speech (TTS) engines have closed the quality gap dramatically, making it possible to generate natural‑sounding narration in seconds. By coupling a TTS service with a little scripting, you can build a fully automated dubbing pipeline that works for any length of video.In
How I Stopped Manually Cleaning ChatGPT Output by Building a Simple Text Cleaner
<p>I kept wasting time removing Markdown and formatting from ChatGPT responses, so I built a small browser-based text cleaner.</p><p>Here's what I learned:<br><a href="https://justcleantext.hashnode.dev/how-i-stopped-manually-cleaning-chatgpt-output-by-building-a-simple-text-cleaner" rel="noopener noreferrer">https://justcleantext.hashnode.dev/how-i-stopped-manually-cleaning-chatgpt-output-by-building-a-simple-text-cleaner</a></p>
Your API imported 25 rows. The other 75 are on the next pages
A public JSON list often looks finished after the first request. Many APIs are not finished. They return one page — 25 or 100 rows — and expect you to ask for the next page until the results run out.I work on Sheets tools at Crispy Data. The notes below are a working method you can paste into Apps Script, whether or not you use an add-on. At the end I'll describe Crispy Import, a small unpublished add-on I built, and how it handles these same paging styles in the current free beta.Disclosure: I'
Build a Safety-Aware Manifest V3 Extension for X with Plain JavaScript
Automating a browser action is easy to demonstrate and surprisingly difficult to constrain. A script that clicks a button can also click the wrong button, run while you are looking at another tab, or quietly collect more access than it needs.This tutorial walks through the design of X Like Automator, a public MIT-licensed browser extension that likes visible posts in an already-open X tab. The project uses Manifest V3, plain JavaScript, no build step, no runtime dependencies, and a test suite bu
Killing Survivors Without Chasing the Score: 31 Tests, 62 Mutants
31 tests in ufo's own style detect 62 of the 176 mutants its suite missed, and move the score from 82.59% to 88.72%. The other 114 stay undetected on purpose, and each one has a written reason. Chapter 3 read the report. This chapter acts on it, and stops well short of 100%.Chapter 4 of Mutation Testing for the AI Era. The tests, the list of accepted mutants and the raw reports are in the PoC repo. The ruleA new test has to check something ufo promises: a doc comment, an example, or behavio
Can ChatGPT actually read your page? Most AI crawlers don't run JavaScript: test yours in one command
Disclosure: I work on Get AI Vizible, which tracks how AI assistants mention brands. Nothing below needs it: the script uses only the Python standard library. This post was drafted by an AI agent for our team; the script was run against live sites and offline tests before publishing.If your site is a client-side rendered app, there's a good chance ChatGPT has never seen your content. It's seen an empty <div id="root"></div>. The short versionIn its analysis of AI crawler traffic
Raising dead npm packages with Kiro, and refusing to trust what came back
This post is written as part of the Kiroween 2026 hackathon (Resurrection category).Every JavaScript project carries dead packages. [email protected] has not had a release since 2021 and is still downloaded around 16 million times a week. Old versions of minimist, 0.0.8 among them, carry two prototype-pollution advisories that will never be patched in place, because nobody is left to patch them.Tools tell you a dependency is dead. The usual advice is "migrate to something else", which means rewr
Snowball vs avalanche debt payoff: a 25-line JavaScript simulation
Snowball or avalanche? Most debt payoff advice stops at "pay the smallest balance first" or "pay the highest rate first". The useful part is seeing the actual numbers side by side for your own debts. I built a small calculator to do that, and it turned out to be a good example of how much you can do with one HTML file and no backend. The two methods in one paragraphSnowball: pay minimums on everything, put every extra dollar on the smallest balance. When it is gone, roll its payment into th
PNG to WebP and AVIF in the Browser: Transparency and File Size
Transparent PNGs are still the default export from a lot of design tools. They look right on any background, they are lossless, and they are often much larger than they need to be on a website. WebP and AVIF can shrink that payload, and both can keep an alpha channel — but only if you convert them carefully, and only if you check the result.You do not need to upload the file to a server to do this. Modern browsers can decode a PNG and encode WebP entirely in the tab. AVIF is a different story, a
Making a dashboard react to audio: checking RMS and frequency bins in real code
An audio-reactive dashboard needs different values depending on whether an element should respond to overall signal amplitude or to a particular frequency range. Treating RMS and frequency bytes as interchangeable "volume" makes those movements difficult to tune.The analysis code from the personal project beautiful-dashboard-for-bga was tested with synthetic audio. Doubling the input amplitude doubled RMS, while the maximum frequency byte changed from 211 to 232. To change movements by the same
Hotspot analysis on React: its 20 least-healthy files got bug fixes 19 times as often as the average file
TL;DRHotspot analysis ranks files by how often they change and how complex they are. The files at the top are where a codebase does its hardest work, and where bug fixes concentrate.In React, 10 of the 20 files with the lowest health score had a bug fix in the last 180 days, against 64 of 2,446 files overall (2.6%). That is 19 times the base rate. The median across 173 popular repos is 5.4 times.React does not write conventional commits. A keyword rule ("Fix", "bug", "patch", ...) still labels 5
Dark mode in Next.js 16 with no flash: Tailwind CSS 4, one inline script, no library
A user picks dark mode, reloads, and sees a white page for a moment before it turns dark. The server can't read localStorage, so it renders the default theme, and any code that waits for React runs after the browser has already painted that default.This post builds a light / dark / system toggle with no theme library, then checks the first paint with Playwright. I tested everything on Next.js 16.4.6, React 19.3.0 and Tailwind CSS 4.3.3, on a production build (next build && next start) un
Understanding Race Conditions in React: When API Responses Arrive Out of Order
While learning React and API integration, I came across an interesting problem called a race condition.At first, it sounded like a complicated concept. But I realised it can happen in a simple React application too. Imagine a clinical trial search pageSuppose you're building a feature in an application like MedMatch, where users can search for clinical trials.A user types:Cancer — the application sends Request A.Before the first response arrives, the user types Breast Cancer — Request B is
New React Challenge: Numbers Game
Six tiles, four operators, one target. Instead of scattering a game across a dozen useState calls, this challenge asks you to keep the whole round in a single useReducer — then add a stopwatch that keeps ticking until you win. 🧩 OverviewBuild a Countdown-style numbers game. Combine six number tiles with +, −, × and ÷ to reach a random three-digit target while a stopwatch measures your time. Along the way you'll practice useReducer for multi-field game state, a self-scheduling effect, and tr
How to read from a smart contract using wagmi v3
Note: This article has been updated from the original version to reflect the breaking changes and new patterns introduced in wagmi v3. The core concepts remain the same, but the API syntax has been modernized to align with TanStack Query conventions and improve type safety.If you have ever done Web3 frontend, then you must have heard about or used the wagmi library. Wagmi allows devs to make all kind of blockchain interactions on the frontend in a manner that feels very native to React, with a s
Make the agent use the existing Table or DataGrid, not a handmade table of divs
The PR renders a list of records as a CSS grid of divs, or it builds a <table> with no caption, no column headers, and a clickable row that is not a link or a button. The repo already has a Table or DataGrid with headers, a caption or aria-label, and the sort or selection pattern already wired. Nearby billing and member lists use it. The homemade grid is not announced as a table, and the header row is just bold text.I've started treating a handmade table of divs as an incomplete data view,
How to listen for and parse smart contract events using wagmi v3
Note: This article has been updated from the original version to reflect the breaking changes and new patterns introduced in wagmi v3. The core concepts remain the same, but the API syntax has been modernized to align with TanStack Query conventions and improve type safety.Sometimes, you need to listen for an event emitted by a smart contract in your frontend. Often after making a contract call so the UI can advance to the next step of the process. So, how do we do this? wagmiIf you have ev
How to call a smart contract using wagmi's v3 useWriteContract hook
Note: This article has been updated from the original version to reflect the breaking changes and new patterns introduced in wagmi v3. The core concepts remain the same, but the API syntax has been modernized to align with TanStack Query conventions and improve type safety.How do you call a smart contract function that performs a change of state (write) on the blockchain? And how could we be sure that the write transaction went through correctly? wagmiIf you have ever done Web3 frontend, th
How We Cut Next.js Tool Homepage TTFB from 1,231ms to 124ms by Removing Dynamic searchParams
When you ship an interactive web tool in Next.js App Router, it is surprisingly easy to accidentally opt your highest-traffic landing page out of Static Site Generation (SSG).Earlier this week, after launching our browser-based FDA nutrition facts label generator along with companion tool pages like our recipe nutrition calculator and Supplement Facts label maker, an automated audit caught an unexpected latency gap:Inner static tool pages: 15ms–18ms server responseHomepage (/): 1,231ms cold-star