Rukon
Blog · Page 3 of 5

Notes from building real systems.

Notes on production and operations systems, full-stack development, AI applications and web development, written from real project work in Cyberjaya rather than from tutorials.

  1. Building Real Systems

    What Survives When an Excel Tracker Becomes a Web App

    Mapping an Excel stock tracker's sheets, formulas and macros onto the tables of the web system that replaced it: what carried over unchanged, and what had to become explicit.

    6 min read

  2. Malaysia & Cyberjaya

    Screens That Look Like Payments but Aren't: Parsing Malaysian Receipts Without Fake Expenses

    Balance, credit-limit and reward screens all show RM amounts. How SpenDrop rejects them, and the Malaysian receipt formats two of my parsers read.

    6 min read

  3. Full-Stack Development

    One Checked Value Instead of Two Booleans: Making a Bad Config Unrepresentable

    Two on/off flags allow a state with no correct behaviour: both off. Storing the enabled set as one CHECK-constrained value and validating the resulting state instead.

    3 min read

  4. Full-Stack Development

    Logout Still Worked for 30 Seconds: Token Caches on Serverless

    A token verification cache meant a signed-out session kept working for up to 30 seconds. Why evicting on sign-out does not fix it on serverless, and why the answer was a small measured bound.

    3 min read

  5. AI & Automation

    Logging Apple Pay Taps Automatically With an App Intent and a Wallet Automation

    An App Intent lets the Shortcuts Wallet automation hand each Apple Pay purchase to SpenDrop. The intent, its duplicate guard, and what iOS lets apps see.

    3 min read

  6. Building Real Systems

    A Written Conflict Policy for a Local-First Workstation App

    How an offline-first PWA writes locally first, syncs on its own timer with backoff, and resolves conflicts with a rule per data type: last writer wins, server wins, append-only, never synced.

    5 min read

  7. AI & Automation

    The Retries You Didn't Write: LLM Rate Limits and SDK Hidden Retries

    A client library's default retries turned one rate-limited analysis into twelve requests against a free tier of twenty. Removing requests, telling limits apart, and returning 429 with Retry-After.

    5 min read

  8. AI & Automation

    A Cross-Paper Literature Review Built From Stored Analyses, Not PDFs

    Building one LLM literature review across several saved papers by reading their stored analyses instead of re-sending every PDF. The trade-off, the size guards, and why partial results are refused.

    4 min read

  9. Full-Stack Development

    Keeping Your Email and Phone Off a Public Link Page Until Someone Asks

    A QR link page that never ships private contact details in its HTML or JavaScript. Server-only values, a short request form, only the asked-for methods returned, and a 24-hour signed re-reveal.

    3 min read

  10. Full-Stack Development

    Building an iOS Share Extension That Reads a Screenshot and Saves to the App's Database

    How SpenDrop's Share Extension loads an image from any app, stays inside the memory limit, runs Vision OCR and saves to the app's shared SwiftData store.

    5 min read

  11. Full-Stack Development

    Where Does a 4-Second Label Go? Instrumenting a Scan-to-Print Pipeline

    Stage-by-stage tracing of a Web Bluetooth label print, an audit of every sleep in the code, and the rule of not claiming a speed-up until the hardware has measured it.

    6 min read

  12. Developer Journey

    Testing an iOS App With an In-App Test Runner, Launch Flags and XCUITest

    274 logic checks run inside the app from a launch flag, a final check proves no test opened the real database, and six XCUITest flows drive the UI.

    5 min read

  13. Developer Journey

    Implemented, Available, Not Connected: Writing Honest Status Into Project Docs

    "It exists in the repository" and "it runs in production" are different claims. The three-state status model I use across my projects, with real rows from each.

    5 min read

  14. Building Real Systems

    Reference Data Nobody Can Edit: Postgres Triggers, Hash Pinning and Append-Only History

    Protecting the examples an AI system is measured against: a trigger that refuses UPDATE and DELETE, SHA-256 hashes checked by tests, append-only history, and what these do not stop.

    4 min read

  15. Full-Stack Development

    From a Constant Per-Role Cookie to HMAC-Signed, Expiring Sessions

    RPOMS's session cookie was the same bytes for every admin, forever. Replacing it with a signed payload carrying issue time and session id, plus a login throttle that needs no Redis.

    4 min read

  16. Full-Stack Development

    Hardening a Public Photo Upload: Magic Bytes, Header Dimensions and Stripping EXIF Twice

    An anonymous endpoint that decodes images is easy to abuse. How RPOMS AI re-encodes photos in the browser, trusts none of it on the server, and never stores the uploaded bytes.

    4 min read

  17. Full-Stack Development

    Google Sign-In for Shared Workstations: PKCE, Pending Users and Revocable Device Tokens

    Google OIDC with PKCE on a framework-free Node server, users keyed by sub, accounts that start pending, and workstations provisioned with hashed, revocable device tokens that keep working offline.

    6 min read

  18. Developer Journey

    Generating an Xcode Project File From a Script, With Stable IDs

    Both of my iOS apps write project.pbxproj from a script. How the object IDs are made, why hashing names beats a counter, and what it costs.

    3 min read

  19. Full-Stack Development

    Monthly Request Numbers That Never Skip: Counters, Voids and Retries in PostgreSQL

    How RPOMS issues monthly request numbers with no gaps: a locked counter row, number and row in one transaction, voids given back, retries made safe.

    5 min read

  20. Building Real Systems

    Freezing a Label Design in CI by Hashing Its Rendered Raster

    A Vitest test that hashes each label template's JSON and its exact 1-bit print raster, so any change that would move a single printed dot fails the build and the deploy.

    5 min read

  21. AI & Automation

    When a Per-Minute Token Limit Is Smaller Than One Request

    A free-tier limit of 7,000 input tokens per minute, and research papers needing 7,920 to 20,362 tokens per call. Why waiting cannot fix that, and how a working fallback hid it.

    3 min read

  22. AI & Automation

    "Unclear" Is Not One Answer: Five Decision States for an AI Inspection

    An AI check that cannot decide can fail for four very different reasons. How RPOMS AI records which one, maps it to what the public sees, and makes a missing mapping a type error.

    4 min read

  23. Full-Stack Development

    Getting Usable Text Out of Academic PDFs: Signatures, Encryption, Scans and Ligatures

    The PDF ingestion path behind ResearchForge: checking the real file signature, opening print-restricted files, rejecting scans with no text layer, and cleaning text without removing content.

    4 min read

  24. Full-Stack Development

    A Postgres-Backed Express 5 API With No Database Server: PGlite, JWT and Security Tests

    DriveKeep's backend runs PostgreSQL in-process with PGlite, signs HS256 tokens and has 17 security checks. What it does well and what must change first.

    5 min read

  25. AI & Automation

    Exposing a Local Ollama to a Vercel App: A 90-Line Token Gateway and a Cloudflare Quick Tunnel

    Ollama has no authentication, so its port must never face the internet. The small Node gateway RPOMS AI puts in front of it, the tunnel, and how each hop is diagnosed.

    4 min read

  26. AI & Automation

    Evaluating an LLM App When Your Own System Hides the Result

    Evaluating a deployed LLM app with no labelled data, and the three things that produced plausible but wrong measurements: a content-keyed cache, a CDN and a fallback that worked too well.

    5 min read

  27. AI & Automation

    Evaluating a Vision Model When You Only Have Thirteen Examples

    Thirteen labelled photos are not a test set, but they can still be an honest evaluation. Separating what is known from what is assumed, removing leaked annotations, and controls built on purpose.

    5 min read

  28. Full-Stack Development

    Enforcing Architecture Boundaries in a Next.js App With One Test File

    A Vitest file that reads the source tree and fails when a client component imports server code, an admin route skips its auth guard, or a minifier hazard creeps back in.

    4 min read

  29. UI/UX & Product

    Writing a User Guide Into the Spreadsheet Itself

    A stock tracker's in-workbook guide: a colour legend for formula, drop-down and free-text columns, a sheet-by-sheet purpose list, and how the guide drifted from the formulas it described.

    5 min read

  30. Building Real Systems

    Encoding Vague Acceptance Criteria Without Inventing Thresholds

    Criteria that said long, multiple and small with no numbers: how a pure rule engine applies vague words as categories, orders checks for safety and answers UNCLEAR.

    5 min read

  31. Building Real Systems

    Configuration Health You Compute, Not Store: One Model Record Across Three Modules

    How RPOMS merged three definitions of a router model into one record, and flags broken configuration with a pure function instead of an issue table.

    5 min read

  32. Building Real Systems

    Dependent Drop-Downs With INDIRECT and Named Ranges, and What They Cost to Maintain

    A Brand → Model drop-down built with INDIRECT and one named range per brand works well on day one. The two update procedures, orphaned #REF! names and fixed ranges are what it costs later.

    6 min read

  33. Building Real Systems

    Designing a Delivery Module: Scan Boxes, Never Type Serials, Freeze What Left

    How the RPOMS delivery module works: scanned boxes instead of typed serials, a load that must match its quantity, and a snapshot of what actually left.

    5 min read

  34. Building Real Systems

    Proving a Release Deleted Nothing: Row-Count Gates and a Whole-Database Preservation Test

    How RPOMS checks that a release or migration lost no business data: a row-count gate that fails on any decrease, read-only scripts, and a test that compares every row of every table.

    5 min read

  35. Full-Stack Development

    CSV Formula Injection in Exports: The One-Apostrophe Fix

    A name typed as =HYPERLINK(...) runs when someone opens a CSV export in a spreadsheet. The small cell guard RPOMS uses on both client and server exports, and what it leaves alone.

    2 min read

  36. Full-Stack Development

    Letting Another Web App Print Through an Open Tab: BroadcastChannel, Web Locks and COOP

    How a tiny relay page lets another web application print on a Bluetooth printer held by an already-open tab, with one tab answering via a Web Lock and the printer's real result reported back.

    6 min read

  37. Building Real Systems

    When Two Days Fill One Box: Counting Shared Consumables Without Double-Counting

    A packaging box filled across two days must be charged once. How RPOMS derives each day's big-box usage from a running total, and how the rule evolved.

    5 min read

  38. Full-Stack Development

    First-Party Analytics Without Cookies: A Daily-Rotating Salted IP Hash

    Page views and link clicks recorded by the site itself, with no third-party tracker and no cookies. A salted IP hash that changes daily, beacons that survive navigation, and what is still stored.

    4 min read

  39. Developer Journey

    Maintaining a Web System I Didn't Build: Small, Scoped Fixes

    Three small fixes to a Next.js inventory app another developer built: a lazily loaded Excel library, a duplicate fetch on first load, and a reset-password redirect, kept reviewable.

    5 min read

  40. Building Real Systems

    Continuous Label Printing Without Duplicates: Page Counters and "Uncertain" Jobs

    Why one printer job per label made the paper feed and rewind, how multi-page jobs fixed it, and how a print queue decides between a safe retry and a label that may already exist.

    6 min read

Also available as an RSS feed.