DevIdiot!
August 2027 Has Two New Moons (and September Has Zero) β So I Open-Sourced Kodak's 13-Month Calendar
Look at the lunar phase table for August 2027:New Moon #8: Aug 2, 2027 at 10:06 UTCNew Moon #9: Aug 31, 2027 at 17:42 UTCSeptember 2027: zero New MoonsMeanwhile, Gregorian Q1 has 90 days while Q3 has 92 days. Every month has a different length (28, 29, 30, 31), weekdays shift forward every year, and recurring financial periods need constant manual adjustment.From 1928 to 1989, Eastman Kodak solved this internally by running factories, accounting, and global payroll on Moses Cotsworth's Internati
Converting JSON to CSV in the browser: the escaping rules that break exports
A JSON to CSV converter looks trivial until a field contains a comma, a quote or a newline. Then every column after it shifts. The only escape mechanism CSV hasWrap the field in double quotes, and double every quote inside it.function csvCell(value) { if (value === null || value === undefined) return ""; const s = typeof value === "object" ? JSON.stringify(value) : String(value); return /[",\n\r]/.test(s) ? `"${s.replace(/"/g, '""')}"` : s;}Quote only when needed. Always quoting bloats t
Letterhead on Every Page in Node.js PDFs: pdfme and IronPDF
How do you make a PDF from a template in Node.js when the table will not stay the same length? A purchase order shows the problem clearly. The layout was signed off on the company letterhead months ago, and then an order arrives with sixty line items where there used to be three.pdfme is an open-source, MIT-licensed PDF generator written in TypeScript and built on pdf-lib and fontkit, in which a template is a JSON object and the data is an array of inputs. We look at its two base modes for the p
Compound interest in 30 lines of JavaScript (and why the order of operations matters)
Most compound interest calculators hide the maths behind a form. The formula itself is short:A = P * (1 + r/n)^(n*t)P is the principal, r the annual rate as a decimal, n the number of compounding periods per year and t the number of years. Monthly compounding means n = 12; daily means n = 365. A 30-line versionfunction compound({ principal, annualRate, years, periodsPerYear = 12, monthlyDeposit = 0 }) { const r = annualRate / 100; const periods = years * periodsPerYear; const perPeriodRa
Show DEV: I Built a Zero-Signup Blind Box & 24-Slot Gift Shelf β 4 UX & Math Bugs I Fixed Along the Way
Most gift apps ask your friends to download an app, create an account, verify an email, and sit through onboarding just to leave a two-sentence birthday wish. By step two, half of them close the tab.So I built Unbox With Friends β a lightweight, browser-based art postcard blind box and 24-slot walnut gift shelf that works with zero sign-up.Live site: https://unboxwithfriends.com/Instant interactive demo shelf: https://unboxwithfriends.com/demoFriends Advent Calendar (Dec 1β24): https://unboxwith
10 tiny browser tools built with vanilla JS (no backend, no build step)
I keep shipping small utilities that run entirely in the browser. No bundler, no server, no tracking β just HTML, CSS and a bit of JavaScript. Here is what the set looks like and a few things I learned building them. What's in the setCompound interest calculator β projects savings year by year: https://mm-tools-6ln.pages.dev/en-compound-interest-calculatorJSON to CSV converter β parses in the browser, nothing leaves your machine: https://mm-tools-6ln.pages.dev/en-json-to-csv-converterPasswo
Deterministic 5,000-Run Prop Challenge Monte Carlo in Vanilla JS
Most position-sizing calculators stop at pip value and fixed balance percentages. That shortcut misses the real failure mechanism in two-step proprietary trading evaluations: variance clustering against an intraday daily loss cap. I built a zero-dependency simulator for TradeMathLab covering 5,000 randomized paths. It runs locally in your browser. Why Seeded PRNG Matters for Financial SimulatorsUsing Math.random() inside an interactive calculator breaks reproducibility because refreshing th
RUBBLE-X: Building a 3D Hexapod Rescue Robot Simulator with React Three Fiber
KiroweenHackathon26.RUBBLE-X is a browser-based 3D simulation of a hexapod rescue robot that stitches itself into an armoured sphere. It was built for the Kiroween 2026 Frankenstein category, and it's a deep dive into what you can do with React Three Fiber, TypeScript, and a well-structured state machine.The core idea: a six-legged robot crawls through a disaster zone, senses a survivor, transforms into a rolling armoured sphere, and performs rescue operations using swappable magnetic miss
Join GeM bid results to contracts without double-counting orders
A GeM tender can lead to several contracts. If you count rows after joining tenders to orders, you can count the same tender several times. Duplicate copies of the same contract can inflate both the order count and award value.For Indiaβs Government e-Marketplace (GeM), a bid reference looks like GEM/2026/B/1234567 and an order has its own GEMC-β¦ reference. Count orders by contract reference. Use the bid reference reported on the record to connect an order to a tender. Direct purchases can have
Promise.any Resolves on Fulfillment, Including an Unusable Check Result
Promise.any can resolve with false or with an object whose ok field is false. It selects a fulfilled promise; it does not interpret the business meaning of its value. If a result must pass a predicate, enforce that predicate before allowing the corresponding promise to fulfill.This AI-generated learning example was prepared for fulfillmentyx and executed locally with Node.js v24.22.3. It uses fixed in-memory results and makes no network request or store connection. Define the value that cou
Framer animations and scroll effects in Next.js with motion
Framer animations carry over to Next.js as plain TypeScript on the motion package (motion/react, formerly framer-motion). In a project converted by Deframer, appear effects, scroll-triggered and scroll-linked transforms, Scroll Speed parallax, sticky layers, hover and press states, variants and page transitions keep their timing, and springs keep their stiffness, damping and mass. A small helper kit in src/lib/deframer plays them, with no Framer runtime. Animations run on motion the same way if
Fifty code reviews of junior React projects taught me one thing
For a year and a half I reviewed junior developers' React projects. Over 50 of them, across cohorts, after teaching the same people a curriculum I wrote. Different faces, same five mistakes.The interesting part is not the list. It is that telling someone the mistake fixed almost nothing, and showing them the cost fixed it in a week. The five, in order of frequency1. State in the wrong place. A form's input values held at the page level, so every keystroke re-renders the whole screen. Or the
Agree the API contract before you build the screen
The sprint was going fine until integration day. The screen was built, the endpoint was built, and they did not fit.The frontend expected { results: [...] }. The backend returned { data: { items: [...] } }. The date was a string in one and a number in the other. The error case returned a 200 with success: false, which the UI treated as success. None of these were anyone's fault, and all of them cost two days.This happened often enough that we changed how we start features, not how we finish them
The same screens kept breaking after every release. Here's where I put the tests.
Every release, the same parts of the app broke. Checkout. The account settings form. The order list. Not new features - the same handful of screens, again and again, each time discovered by a user instead of by us.The reflex is "we need more tests". That is not a plan. The real question is where the tests go, because a thousand tests in the wrong place give you a slow suite, a false sense of safety, and the same regressions. The diagnosis before the fixI looked at the last few months of bug
A React app Google couldn't read: moving from CSR to Next.js without breaking the product
The app was fine. Fast enough, clean code, happy users. The problem was that the people who needed to find it could not: search engines were getting an empty <div id="root"></div> and a script tag.It was a client-side rendered React app. Every page was assembled in the browser after the JavaScript downloaded, executed, and fetched data. Google can run JavaScript, but it is slow, unreliable, and it does not run your JavaScript the way your users' browsers do. For a business whose grow
The app felt slow and nobody could say why. Three tools found it in an afternoon.
The ticket said the app felt slow. No screen, no device, no time of day. Everyone had a theory: the API, the images, React itself, the phone. Nobody had a measurement.That is the real problem. "Slow" is not something you can assign to a person or fix in a pull request. Before touching a line of code I needed three answers from three places: what re-renders, what the network does, and how much JavaScript the browser has to download before it can paint anything.Here is the pass I ran, in order, an
JSON-LD in Next.js 16 App Router: SoftwareApplication, FAQPage, and 3 traps I tested
The Next.js docs recommend one thing for JSON-LD: render a plain <script type="application/ld+json"> from your layout.js or page.js. The traps are around it: a product name with </script> in it runs code on your page, next/script keeps the data out of your HTML, and Google changed what it shows for SoftwareApplication and FAQPage.I built every snippet below in a fresh create-next-app project on Next.js 16.5.0, React 19.3.1, TypeScript 5.9.3 and schema-dts 2.1.0, ran next build and ne
I turned my bank statement into a haunted graveyard. Here's how Kiro helped me build it.
I wrote this post for Kiroween 2026, the Kiro hackathon, where I entered Ledger Mortis in the Costume Contest category.Most of us cannot say where our money went last month. The charges that hurt most are the quiet ones: the gym you stopped going to, the streaming service you forgot, the cloud storage you never use. Budget apps show them as rows in a table, and rows are easy to ignore.So I built the opposite: a place you remember.Ledger Mortis turns pasted transactions into a graveyard at midnig
Enabled but Invisible: Debugging a Model Access Toggle
AI assistance disclosure: This article was produced with AI assistance as an educational draft. The team preparing material on the MonkeyAI project commissioned it. It is a debugging write-up about editor state and access checks, not a product review or endorsement. Source claims are limited to the cited pinned files; proposed UI changes and verification steps were not executed.Consider a support scenario: an operator opens the admin model editor, flips a model to enabled, saves, and tells a tea
Building a 3D Virtual Pharmacology Lab in the Browser with React Three Fiber
Pharmacology practicals are hard to practise. Students usually watch one demonstration, copy the readings and move on. At CologyLabs we started by recording 55+ practicals as guided videos for B.Pharm and B.V.Sc students. That fixed visibility, but students were still watching, not doing.So for Phase 2 we're turning those experiments into an interactive 3D lab in the browser: the student walks around the lab, picks up the animal, weighs it, calculates a dose, injects it and runs a test like the