<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AI Predictions Dev</title>
    <description>The latest articles on DEV Community by AI Predictions Dev (@aipredictions_dev).</description>
    <link>https://dev.to/aipredictions_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3848303%2F8503f0f9-4dcb-4185-aba1-b79b8d72714b.png</url>
      <title>DEV Community: AI Predictions Dev</title>
      <link>https://dev.to/aipredictions_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aipredictions_dev"/>
    <language>en</language>
    <item>
      <title>The view counter that turned our catalogue into a 502</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/the-view-counter-that-turned-our-catalogue-into-a-502-4l5h</link>
      <guid>https://dev.to/aipredictions_dev/the-view-counter-that-turned-our-catalogue-into-a-502-4l5h</guid>
      <description>&lt;p&gt;The page that lists every kit we sell answered every visitor with a 502 Bad Gateway for about 41 hours after launch. Each kit's own page worked, the home page worked, checkout worked. The broken part was a few lines that counted page views.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;Our store's server counts visits to kit pages. To find which kit a request is for, it took the second part of the path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;_count_view&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For &lt;code&gt;/kits/studio/&lt;/code&gt; that is &lt;code&gt;studio&lt;/code&gt;. For the catalogue itself, &lt;code&gt;/kits/&lt;/code&gt;, the path has two slashes, so the guard let it through, but after stripping the slashes there is only one part, and &lt;code&gt;[1]&lt;/code&gt; raised an &lt;code&gt;IndexError&lt;/code&gt;. The handler is Python's standard &lt;code&gt;http.server&lt;/code&gt;: an exception in &lt;code&gt;do_GET&lt;/code&gt; closes the connection without an answer, and Cloudflare showed the visitor a 502.&lt;/p&gt;

&lt;p&gt;The fix is one small function that returns an empty string when the part is missing. The view count only ever needed the kit's name; it never needed to be able to break the page it was counting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why none of our checks saw it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The uptime watch opened home pages only.&lt;/strong&gt; The home page was fine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The release step checked each kit it shipped:&lt;/strong&gt; its page, its checkout redirect, the paid path end to end. It never opened the list of all kits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The analytics could not show it.&lt;/strong&gt; The code that would have counted the catalogue's visitors was the code that crashed. The server log had the answer all along: 17 tracebacks in those 41 hours, each one a request, from a person or a crawler, that got an error instead of the page.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every page, from outside, every hour.&lt;/strong&gt; A small job reads the sitemap and opens every English page and, in turn, one of the other 42 languages, through Cloudflare like a visitor. Two failed runs in a row send an email; recovery sends another.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The release step opens every English page&lt;/strong&gt; after it rebuilds the site, and refuses to finish if one does not answer 200.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Index pages count as pages.&lt;/strong&gt; The pages that list other pages are the ones a visitor reaches first, and they were the ones nobody tested.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Side work in a request handler, such as counting, logging or tracking, must never be able to fail the request, and a page check that only covers the pages you just changed misses the ones that link to them. The watch in &lt;a href="https://lightsoutfactory.ai/kits/night-watch/" rel="noopener noreferrer"&gt;Night Watch&lt;/a&gt; takes any list of pages, each with text it must contain, not just home pages.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published in the &lt;a href="https://lightsoutfactory.ai/field-notes/view-counter-broke-the-catalogue/" rel="noopener noreferrer"&gt;LightsOut Factory field notes&lt;/a&gt;: what we learn running our own automation, written down as we go.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>webdev</category>
      <category>debugging</category>
      <category>devops</category>
    </item>
    <item>
      <title>I Built a Private On-Device AI Tool to Stop My E-commerce Store From Looking Generic</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Sun, 29 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/i-built-a-private-on-device-ai-tool-to-stop-my-e-commerce-store-from-looking-generic-4el4</link>
      <guid>https://dev.to/aipredictions_dev/i-built-a-private-on-device-ai-tool-to-stop-my-e-commerce-store-from-looking-generic-4el4</guid>
      <description>&lt;p&gt;Every e-commerce owner knows the dread of the blank description box. You have a great product, but your store looks flat because the copy is either too short, too generic, or written in that breathless "buy now!" style that ignores actual search intent. I tried the big-name AI writing assistants, but they often felt disconnected from my specific niche, and I hated sending my proprietary product data to external servers.&lt;/p&gt;

&lt;p&gt;So, I built &lt;strong&gt;ProductCopy&lt;/strong&gt;. It’s a lightweight SaaS tool that runs entirely locally in the browser, using private on-device AI to generate SEO-optimized product descriptions for Shopify, Etsy, and WooCommerce stores. No API keys to manage, no waiting for server responses, and no data leaving your machine. Here is how I built it and why I chose this architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Local Inference Matters for Small Stores
&lt;/h2&gt;

&lt;p&gt;The initial prototype was a standard cloud-based LLM wrapper. It worked, but it had two annoying flaws. First, latency. For a store owner managing hundreds of SKUs, waiting 3-5 seconds per description adds up. Second, privacy. Many niche products contain specific material compositions or sourcing details that owners prefer to keep within their own ecosystem.&lt;/p&gt;

&lt;p&gt;Moving to a &lt;strong&gt;private on-device AI&lt;/strong&gt; model solved both. By leveraging WebAssembly and optimized quantization techniques, I was able to run a capable language model directly in the browser. The result is instant feedback. You type your bullet points or basic specs, and the description appears in milliseconds. It feels less like "waiting for a cloud service" and more like a native desktop app.&lt;/p&gt;

&lt;p&gt;This approach also removes the need for constant API calls. Once the model weights are cached, the tool works offline. For e-commerce managers who often work in areas with spotty connectivity or just want a distraction-free writing environment, this is a significant quality-of-life improvement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tuning for SEO Without Losing Voice
&lt;/h2&gt;

&lt;p&gt;Generic AI output often suffers from being too verbose or too punchy without substance. Product descriptions need to balance readability with keyword density. I focused the fine-tuning process on a dataset of high-converting descriptions from successful Shopify and Etsy listings.&lt;/p&gt;

&lt;p&gt;The goal wasn't just to stuff keywords. It was to structure information logically: Benefit first, specifications second, and a clear call to action last. The model analyzes the input features (dimensions, materials, use-case) and expands them into natural sentences rather than just concatenating strings.&lt;/p&gt;

&lt;p&gt;For example, if you input: &lt;em&gt;"Handmade ceramic mug, 12oz, speckled glaze, dishwasher safe,"&lt;/em&gt; the tool doesn't just list these. It generates: &lt;em&gt;"Enjoy your morning coffee in this handmade ceramic mug. Featuring a unique speckled glaze and a comfortable 12oz capacity, it’s durable enough for daily use and dishwasher safe for easy cleanup."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The key was training the model to recognize that "handmade" implies uniqueness and artisanal value, while "dishwasher safe" implies convenience. It connects these dots automatically, saving the user from having to explain the &lt;em&gt;why&lt;/em&gt; behind every feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Integrating with Existing Workflows
&lt;/h2&gt;

&lt;p&gt;One of the biggest hurdles was making sure the output fit seamlessly into existing CMS platforms. Shopify, Etsy, and WooCommerce all have slightly different character limits and formatting preferences. I built the interface to allow users to toggle between these formats.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Shopify Mode:&lt;/strong&gt; Focuses on scannable bullet points and concise paragraphs.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Etsy Mode:&lt;/strong&gt; Leans into storytelling and emotional connection, which tends to perform better in handmade marketplaces.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;WooCommerce Mode:&lt;/strong&gt; Balances technical specs with readable prose for broader audiences.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the processing happens locally, switching between these modes is instant. You can generate a draft, tweak it manually, and copy-paste it directly into your admin panel without refreshing the page or waiting for a new request cycle.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tech Stack
&lt;/h2&gt;

&lt;p&gt;Under the hood, it’s surprisingly simple. I used TensorFlow.js to handle the inference engine, paired with a quantized version of a compact language model to keep the bundle size manageable. The frontend is a lightweight React app that handles the UI state and text manipulation. There’s no backend database required for the core functionality, which keeps hosting costs negligible and startup time near-zero.&lt;/p&gt;

&lt;p&gt;This minimalism is intentional. E-commerce tools are often bloated with analytics, CRM features, and complex dashboards. ProductCopy does one thing: it turns raw specs into readable copy. Everything else is left to your existing store management tools.&lt;/p&gt;

&lt;p&gt;You can try it out at &lt;a href="https://productcopy.bestpaid.app" rel="noopener noreferrer"&gt;productcopy.bestpaid.app&lt;/a&gt;. It requires no signup to test the core functionality, which aligns with the philosophy of getting work done quickly without friction.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Do You Think?
&lt;/h2&gt;

&lt;p&gt;I’m curious to hear how others handle product copy for niche items. Do you prefer fully automated descriptions, or do you find that hand-editing is still necessary to capture the brand voice correctly? Does running the AI locally actually make a difference in your workflow, or is cloud latency negligible for this type of task?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>A vision model as a frame checker: what it caught and what it let through</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/a-vision-model-as-a-frame-checker-what-it-caught-and-what-it-let-through-99e</link>
      <guid>https://dev.to/aipredictions_dev/a-vision-model-as-a-frame-checker-what-it-caught-and-what-it-let-through-99e</guid>
      <description>&lt;p&gt;Image models write fake words on signs, add watermarks and give people too many fingers. A bad frame found after the render costs a re-render; found before, it costs one redraw. So every picture Studio draws is shown to a vision model first.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the check works
&lt;/h2&gt;

&lt;p&gt;Each frame is scaled down to a JPEG of at most 1,024 pixels on its long side and sent with one instruction: answer only with JSON, &lt;code&gt;ok&lt;/code&gt; true or false plus a list of problems, and say false for any written text, letters, numbers, watermark or logo, or for deformed hands, faces or bodies, or a broken image. A rejected frame is drawn again with a new seed, up to a limit you set. If no draw passes, the job stops with the reasons rather than publish a broken frame. A frame that is a flat colour, or the black square some safety filters return, is rejected before the model is even asked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test
&lt;/h2&gt;

&lt;p&gt;We used the same local model that writes our scripts, served by vLLM on our own machine, and gave it four pictures that our image model had made earlier: a cup of coffee on a wooden table, an apple on a white background, a person on the phone in front of a bookshelf, and the coffee picture with "SALE 50% OFF" written across it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The three clean pictures passed, including the bookshelf, whose book spines we had expected to trigger a false alarm.&lt;/li&gt;
&lt;li&gt;The picture with the slogan was rejected, with the reason "written text".&lt;/li&gt;
&lt;li&gt;In the full loop, the slogan frame came first, was rejected, and the redraw passed: two draws for that scene.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each check took 3 to 14 seconds, on a model that was busy with other work at the time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;A vision model is a second pair of eyes, not a guarantee. It can miss a small artefact, and a strict instruction will sometimes reject a picture you would have kept, which costs a redraw rather than a bad video. Four pictures are a check of the wiring, not a statistic. Watch your first videos yourself, and tighten or loosen the redraw limit with what you see.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://lightsoutfactory.ai/kits/studio/" rel="noopener noreferrer"&gt;Studio&lt;/a&gt; runs this check with any model your server exposes with image input; leave the vision setting empty and the check is off.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published in the &lt;a href="https://lightsoutfactory.ai/field-notes/vision-model-frame-check/" rel="noopener noreferrer"&gt;LightsOut Factory field notes&lt;/a&gt;: what we learn running our own automation, written down as we go.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>python</category>
      <category>video</category>
    </item>
    <item>
      <title>vLLM on DGX Spark kept crashing with Xid 31 and 43. It was MTP speculative decoding</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:00:34 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/vllm-on-dgx-spark-kept-crashing-with-xid-31-and-43-it-was-mtp-speculative-decoding-3p1f</link>
      <guid>https://dev.to/aipredictions_dev/vllm-on-dgx-spark-kept-crashing-with-xid-31-and-43-it-was-mtp-speculative-decoding-3p1f</guid>
      <description>&lt;p&gt;In July, the 27B model we serve on one of our NVIDIA GB10 machines (the DGX Spark class of box) kept dying. The GPU fault counter in our minute-by-minute record showed between 14 and 59 GPU errors in every 24 hours from 8 to 20 July. Every crash took vLLM down for a cold restart of about six minutes, so the endpoint was unavailable for 16 to 40% of the day.&lt;/p&gt;

&lt;p&gt;One flag fixed it. Since we removed it on 19 July, the same record has counted zero GPU errors for 121 days in a row.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Qwen3.6-27B build quantised to NVFP4, served by vLLM on one GB10 machine, with an fp8 KV cache and FlashInfer.&lt;/li&gt;
&lt;li&gt;The model is a hybrid: 48 linear-attention (Gated DeltaNet) layers and 16 full-attention layers.&lt;/li&gt;
&lt;li&gt;Speculative decoding with the model's own MTP head:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--speculative-config '{"method":"qwen3_5_mtp","num_speculative_tokens":3}'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the crashes looked like
&lt;/h2&gt;

&lt;p&gt;Every time, the kernel log showed &lt;strong&gt;Xid 31&lt;/strong&gt;, a GPU memory-management fault, followed by &lt;strong&gt;Xid 43&lt;/strong&gt;, the GPU channel being torn down, and the process was always vLLM's &lt;code&gt;EngineCore&lt;/code&gt;. The Xid 31 lines said &lt;code&gt;FAULT_PDE&lt;/code&gt; on a read: the GPU tried to read an address that was reserved but not mapped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four suspects we ruled out, each with a number
&lt;/h2&gt;

&lt;p&gt;It is easy to blame the obvious things on a machine that runs several models. We measured each one before dropping it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Memory pressure.&lt;/strong&gt; At the crashes there were still more than 5 GB free. Kernel memory settings improved the memory numbers; the Xid errors went on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The image model on the same GPU.&lt;/strong&gt; 18 of 23 crashes happened while the image model was unloaded, and the rate even went up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The other language model server on the same box.&lt;/strong&gt; A llama.cpp server under the same pressure had zero restarts in 17.5 hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overload.&lt;/strong&gt; vLLM's queue was empty 98.9% of the time, with 1.44 of 4 slots busy on average.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The tell: the faults were deterministic
&lt;/h2&gt;

&lt;p&gt;Eight fault events hit only three distinct virtual addresses. Random memory pressure or a hardware problem would scatter. The same few addresses, read while reserved and unmapped, point at a software bug in one code path.&lt;/p&gt;

&lt;p&gt;That code path was speculative decoding. The symptoms match the open vLLM issue &lt;a href="https://github.com/vllm-project/vllm/issues/40756" rel="noopener noreferrer"&gt;#40756&lt;/a&gt;, &lt;em&gt;MTP speculative decoding crash with illegal memory access on long sequences (Qwen3.6-27B-FP8, v0.19.1)&lt;/em&gt;, with relatives in &lt;a href="https://github.com/vllm-project/vllm/issues/34948" rel="noopener noreferrer"&gt;#34948&lt;/a&gt; (illegal memory access in the GDN kernel) and &lt;a href="https://github.com/vllm-project/vllm/issues/36613" rel="noopener noreferrer"&gt;#36613&lt;/a&gt; (illegal memory access with MTP under high concurrency).&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, and what it cost
&lt;/h2&gt;

&lt;p&gt;We removed &lt;code&gt;--speculative-config&lt;/code&gt; and kept everything else.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Under load for 35 minutes right after the change: zero Xid errors and zero restarts, against the crash rate of the days before.&lt;/li&gt;
&lt;li&gt;Since then: 121 days without a single GPU error in the record.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The price is real. MTP was accepting 2.5 to 3.65 tokens per step with 3 draft tokens, so decoding was about two to three times faster with it. We gave that speed up for the 16 to 40% of the day the endpoint used to spend restarting. On a box that serves real work, uptime won.&lt;/p&gt;

&lt;p&gt;The compose file now carries a comment block that starts with &lt;code&gt;DO NOT RE-ADD --speculative-config&lt;/code&gt;, so the next person to tune it for speed knows why the flag is gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The lesson that made it findable: count per minute of serving
&lt;/h2&gt;

&lt;p&gt;We first counted crashes per hour of calendar time, and the numbers looked bad but not absurd. Counted per minute of actual serving, leaving out the six-minute restarts, the median run between crashes was 1.7 minutes. A restart that takes longer than the time between crashes hides how sick the server is.&lt;/p&gt;

&lt;p&gt;Two other things helped:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A health check that does not queue.&lt;/strong&gt; A check that sends a test request waits behind real work on a busy server, times out, and restarts a healthy model. Ours reads vLLM's own counters instead: &lt;a href="https://github.com/lightsoutfactory/vllm-health" rel="noopener noreferrer"&gt;vllm-health&lt;/a&gt;, free under the MIT licence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A record that survives the machine.&lt;/strong&gt; On the same box, hard power-offs from heat were a separate problem with a separate signature. The per-minute recorder that told the two apart is &lt;a href="https://github.com/lightsoutfactory/gb10-blackbox" rel="noopener noreferrer"&gt;gb10-blackbox&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If you see Xid 31 and 43 on a GB10 machine
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Look at the process name in the Xid lines. If it is vLLM's &lt;code&gt;EngineCore&lt;/code&gt;, suspect vLLM before the hardware.&lt;/li&gt;
&lt;li&gt;Count the distinct fault addresses. A handful of repeated addresses means a code path, not pressure.&lt;/li&gt;
&lt;li&gt;Turn off speculative decoding and measure per minute of serving. If the errors stop, keep it off until the upstream issue is fixed for your model and version.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We run this machine, and the rest of our local-AI boxes, with &lt;a href="https://lightsoutfactory.ai/kits/factory-floor/" rel="noopener noreferrer"&gt;Factory Floor&lt;/a&gt;: model serving behind a proxy, health checks that leave a busy server alone, heat and memory guards, and one email when a person is needed.&lt;/p&gt;

</description>
      <category>vllm</category>
      <category>nvidia</category>
      <category>llm</category>
      <category>ai</category>
    </item>
    <item>
      <title>I Built a Local-First Ad Copy Generator for KDP Authors Because I Was Tired of Generic AI Output</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/i-built-a-local-first-ad-copy-generator-for-kdp-authors-because-i-was-tired-of-generic-ai-output-37c2</link>
      <guid>https://dev.to/aipredictions_dev/i-built-a-local-first-ad-copy-generator-for-kdp-authors-because-i-was-tired-of-generic-ai-output-37c2</guid>
      <description>&lt;p&gt;Most AI writing tools feel like they were trained on a dictionary and a smiley face emoji. You type "Amazon KDP ad copy," and you get back a wall of text that sounds like it was written by a committee in 1998. For self-publishing authors, this isn't just annoying; it’s costly. Bad ad copy means low click-through rates, and low click-through rates mean your book stays buried in the Amazon algorithm.&lt;/p&gt;

&lt;p&gt;I wanted to solve this for myself first. As someone who publishes niche non-fiction titles, I found myself spending hours tweaking keywords and testing headlines, only to realize the tools I was using were either too generic or too expensive for the volume of tests I needed to run. So, I built &lt;strong&gt;BestPaid&lt;/strong&gt;, a lightweight, browser-based utility designed specifically for Kindle Direct Publishing (KDP) authors to generate targeted ad copy and optimize keywords without leaving the browser.&lt;/p&gt;

&lt;p&gt;The core philosophy behind this tool was simplicity and speed. It’s not trying to replace your editorial judgment; it’s trying to remove the friction of staring at a blank text box.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Local Processing Matters for Small Tools
&lt;/h3&gt;

&lt;p&gt;When I started building this, the temptation was to use a heavy cloud-based inference engine. But for a tool that mostly involves formatting text and selecting keywords based on character counts and character limits, heavy cloud processing felt like overkill. It introduced latency and unnecessary costs.&lt;/p&gt;

&lt;p&gt;Instead, I focused on making the logic run locally in the browser. This means the interface feels instantaneous. When you adjust a keyword density slider or toggle between a short punchy headline and a descriptive paragraph, the update happens in milliseconds. There is no spinning loader waiting for a server response. For authors who are iterating through dozens of variations quickly, this responsiveness is critical. It keeps the flow state intact.&lt;/p&gt;

&lt;p&gt;The interface is deliberately minimal. You input your book title, genre, and a few key selling points. The tool then generates structured ad copy variants tailored to Amazon’s character limits for Sponsored Products ads. It also suggests keyword clusters based on common search patterns for those genres. It’s not magic; it’s logic-based generation with a focus on the specific constraints of the Amazon advertising ecosystem.&lt;/p&gt;

&lt;h3&gt;
  
  
  The A/B Testing Workflow
&lt;/h3&gt;

&lt;p&gt;One of the biggest pain points for independent authors is the lack of structured testing. Most people set up one ad, check it once a week, and hope for the best. BestPaid encourages a more iterative approach. By generating multiple distinct variations of ad copy—from emotional hooks to feature-focused bullets—authors can quickly set up small-scale A/B tests.&lt;/p&gt;

&lt;p&gt;The tool doesn’t just dump text onto the screen. It organizes the output into clear blocks that can be easily copied and pasted into Amazon’s ad manager. It respects the character limits strictly, ensuring that what you see in the preview is exactly what will render on the mobile app. This attention to detail saves authors from having to manually count characters or worry about truncated text, which is a common frustration with general-purpose AI writers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keeping It Honest and Lightweight
&lt;/h3&gt;

&lt;p&gt;I’m not claiming this tool will write a bestseller for you. It won’t fix a poorly written book or a bad cover design. But it will help you present your book more effectively within the rigid constraints of Amazon’s advertising platform. It handles the tedious parts of formatting and keyword optimization so the author can focus on strategy.&lt;/p&gt;

&lt;p&gt;Since it runs entirely client-side, there are no complex login systems or heavy JavaScript frameworks slowing down the page. It loads fast, works offline once cached, and respects privacy by processing data directly on the device. For a niche utility like this, simplicity was the best feature.&lt;/p&gt;

&lt;p&gt;If you’re an indie author struggling to get traction with your ads, or if you’re just curious about how lightweight, browser-based tools can handle specific content generation tasks, you can try it out at &lt;a href="https://kdp-ad-copy.bestpaid.app" rel="noopener noreferrer"&gt;https://kdp-ad-copy.bestpaid.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What’s your biggest hurdle when writing ad copy for your books? Is it finding the right keywords, sticking to character limits, or knowing which hook will actually convert?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>When NVENC will not start: a GPU full of models, and a renderer that falls back</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/when-nvenc-will-not-start-a-gpu-full-of-models-and-a-renderer-that-falls-back-3can</link>
      <guid>https://dev.to/aipredictions_dev/when-nvenc-will-not-start-a-gpu-full-of-models-and-a-renderer-that-falls-back-3can</guid>
      <description>&lt;p&gt;Our video renderer runs on the same machine as the language model that writes its scripts. One evening the hardware encoder simply would not open: "CUDA_ERROR_OUT_OF_MEMORY: out of memory", then "No capable devices found".&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;The machine is an NVIDIA GB10 desktop, whose CPU and GPU share one pool of memory. It serves our local model through vLLM, and Studio renders on the same box with ffmpeg, using NVENC when it can. During a test run the encoder failed to create its CUDA context. The failure came and went within seconds: a short NVENC probe passed and the render right after it failed; on the next run the probe itself failed; on the run after that, probe and render both went through NVENC.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why
&lt;/h2&gt;

&lt;p&gt;vLLM reserves a fixed share of the GPU's memory when it starts, for the model and its cache. NVENC needs a little memory of its own for each session's CUDA context. When the model server and other jobs leave nothing over, the encoder cannot start, even though it is a separate engine on the chip and would barely touch the GPU's compute.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: decide at the encode, not at the probe
&lt;/h2&gt;

&lt;p&gt;A probe at start-up tells you that NVENC worked a moment ago, not that it will work for the next file. So Studio tries NVENC for each render and, if ffmpeg fails, runs the same filter graph again with libx264. The live channel runs a half-second test encode with its live settings before every start and uses libx264 if NVENC fails it; an NVENC or CUDA error during the stream switches the next start to libx264. Each finished video records which encoder made it, so a fallback shows up in the job file instead of passing unnoticed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the fallback costs
&lt;/h2&gt;

&lt;p&gt;Less than we expected. On the same machine's 20-core Arm CPU, libx264 rendered 12 seconds of 1080p video, with camera moves, burned-in captions and loudness normalisation, in 7.6 seconds. For short videos made once a day, the CPU is a perfectly good encoder. The GPU matters far more for the image model than for the encode.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;On a shared machine, treat the GPU encoder as optional: use it when it opens, fall back when it does not, and log which one you used. The same applies to any GPU feature that needs its own memory on a box where a model server has already taken most of it. &lt;a href="https://lightsoutfactory.ai/kits/studio/" rel="noopener noreferrer"&gt;Studio&lt;/a&gt; ships with this behaviour on by default.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published in the &lt;a href="https://lightsoutfactory.ai/field-notes/nvenc-gpu-full-of-models/" rel="noopener noreferrer"&gt;LightsOut Factory field notes&lt;/a&gt;: what we learn running our own automation, written down as we go.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ffmpeg</category>
      <category>nvidia</category>
      <category>gpu</category>
      <category>linux</category>
    </item>
    <item>
      <title>DGX Spark thermal shutdown: how to tell whether heat switched your GB10 off</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:00:01 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/dgx-spark-thermal-shutdown-how-to-tell-whether-heat-switched-your-gb10-off-gko</link>
      <guid>https://dev.to/aipredictions_dev/dgx-spark-thermal-shutdown-how-to-tell-whether-heat-switched-your-gb10-off-gko</guid>
      <description>&lt;p&gt;One of our three NVIDIA GB10 machines, the DGX Spark class of box, has switched itself off six times since July, and the system log never said why. This is how we found out what killed it each time, what the numbers looked like, and the small free tool that came out of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a GB10 power-off looks like
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;journalctl -b -1&lt;/code&gt; simply ends mid-activity. There is no shutdown in it: a hard power-off never gives journald the time to write its last minutes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;last -x&lt;/code&gt; still lists the previous boot as &lt;strong&gt;still running&lt;/strong&gt;, because nothing ever recorded its end.&lt;/li&gt;
&lt;li&gt;The hardware watchdog did nothing. A watchdog reboots a machine that hangs; this one had no power.&lt;/li&gt;
&lt;li&gt;After one of them, the clock came back with a date weeks in the past.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the one question you have after the machine comes back, &lt;em&gt;why did it switch off?&lt;/em&gt;, has no answer in the logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the temperature now
&lt;/h2&gt;

&lt;p&gt;Before any tooling, these two commands show what the machine is doing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# every thermal zone, in millidegrees; the hottest one is the number that matters&lt;/span&gt;
cat /sys/class/thermal/thermal_zone*/temp
&lt;span class="c"&gt;# GPU temperature, power, utilisation and SM clock&lt;/span&gt;
nvidia-smi --query-gpu=temperature.gpu,power.draw,utilization.gpu,clocks.sm --format=csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The trouble is that by the time you look, the machine is either fine or off.&lt;/p&gt;

&lt;h2&gt;
  
  
  A flight recorder: one line a minute, written through to disk
&lt;/h2&gt;

&lt;p&gt;The fix for an empty journal is a record that survives a power-off: one line a minute, flushed to disk with &lt;code&gt;fsync&lt;/code&gt; before the next one, so the minute before the power-off is already on the disk when the power goes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2026-11-19T08:43:21Z hot=95 zones=95,86,95,85,94,86,87 gpu=82C,49.5W,96%,2437MHz load=15.26,13.76,12.00 mem=113342/123970MB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the machine is back, the gaps in that record are the power-offs, and the minutes before each gap say what happened. A restart someone asked for leaves a clean shutdown in &lt;code&gt;wtmp&lt;/code&gt;, so it can be told apart from a power-off.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it showed on our machine
&lt;/h2&gt;

&lt;p&gt;191,624 readings from 5 July to 18 November, ten gaps:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CLEAN 3, COOL 1, HEAT 6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three were restarts we had asked for. One was a stop at a cool 85 °C. Six were power-offs with the hottest sensor at 95 to 98 °C in the minutes before. The most recent one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2026-11-14 10:28 UTC  dark for 31 min
  HEAT: the hottest sensor read 98 C in the last 10 minutes. The GPU was nearly idle (0% at 500 MHz), so the heat came from the CPU cores, not from GPU work.
    10:26 UTC  hottest  96 C  gpu  78 C   9.0 W   0%  500 MHz  load  5.05  mem 78,140/124,545 MB
    10:27 UTC  hottest  98 C  gpu  78 C   8.9 W   0%  500 MHz  load  2.54  mem 77,387/124,545 MB
    10:28 UTC  hottest  95 C  gpu  78 C   9.1 W   0%  500 MHz  load  8.46  mem 78,090/124,545 MB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things surprised us.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It switched off well below the limit it reports.&lt;/strong&gt; The ACPI critical trip point on this machine reads 104.8 °C. The record never saw 100 °C; every power-off came at 95 to 98 °C. A reading a minute misses short peaks, so the chip may have touched more, but the reported trip point is not a safe target.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The GPU was not always the heater.&lt;/strong&gt; The September power-offs came with the GPU at 96% load. The last three came with the GPU idle at 500 MHz, because a heat guard had already paused the GPU work: the CPU cores alone kept the chip at 95 to 98 °C.&lt;/p&gt;

&lt;h2&gt;
  
  
  How hot does it run normally?
&lt;/h2&gt;

&lt;p&gt;Over the last 30 days, the hottest sensor's median was 89 °C:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   85 C or more:  73.5% of minutes
   90 C or more:  47.9% of minutes
   95 C or more:  18.0% of minutes
   97 C or more:   8.8% of minutes
  100 C or more:   0.0% of minutes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That table is the one to set alarms from. Our first heat alarm was at 88 °C, which turned out to be this machine's normal temperature, so it rang all day and was ignored.&lt;/p&gt;

&lt;h2&gt;
  
  
  What helped
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cap the GPU clock, because you cannot cap the power.&lt;/strong&gt; On GB10, &lt;code&gt;nvidia-smi -pl&lt;/code&gt; answers N/A. &lt;code&gt;nvidia-smi -lgc 0,2000&lt;/code&gt; works: in July it took our hottest zone from 91 °C to 77 to 83 °C within seconds. Apply it before Docker and your model server start (their cold start at full power is the moment that crashed us), and check it under load: with the cap on, the clock still reads about 2,400 MHz when the GPU is idle, and holds at 1,976 MHz under load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pause the heavy jobs before the limit&lt;/strong&gt;, and resume them only once the machine has cooled, not the moment it drops a degree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look at the airflow first.&lt;/strong&gt; This machine's cooling was two to three times worse than its siblings' at the same load. Software kept it useful; it did not fix it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The tool
&lt;/h2&gt;

&lt;p&gt;We published the recorder as &lt;a href="https://github.com/lightsoutfactory/gb10-blackbox" rel="noopener noreferrer"&gt;gb10-blackbox&lt;/a&gt;: one Python file with no dependencies, a systemd timer and an optional service for the clock cap. MIT licence.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/lightsoutfactory/gb10-blackbox
sudo gb10-blackbox/install.sh                  &lt;span class="c"&gt;# a reading every minute&lt;/span&gt;
sudo gb10-blackbox/install.sh --clock-cap 2000 &lt;span class="c"&gt;# and the GPU clock cap at every boot&lt;/span&gt;
gb10-blackbox why                              &lt;span class="c"&gt;# after a power-off: every gap and its verdict&lt;/span&gt;
gb10-blackbox bands                            &lt;span class="c"&gt;# how hot the machine runs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The whole story of this machine, including the log line that blamed memory for weeks, is in our field note: &lt;a href="https://lightsoutfactory.ai/field-notes/gb10-switching-off-heat/" rel="noopener noreferrer"&gt;Our GB10 machine kept switching itself off. The log blamed memory; it was heat&lt;/a&gt;. The heat guard that pauses jobs before the machine gets that hot is part of &lt;a href="https://lightsoutfactory.ai/kits/factory-floor/" rel="noopener noreferrer"&gt;Factory Floor&lt;/a&gt;, our kit for keeping a local-AI box running with nobody watching it.&lt;/p&gt;

&lt;p&gt;If your GB10 box has switched itself off, run the recorder for a week and post what &lt;code&gt;why&lt;/code&gt; says. We would like to know whether other machines stop at the same temperatures.&lt;/p&gt;

</description>
      <category>nvidia</category>
      <category>linux</category>
      <category>selfhosted</category>
      <category>ai</category>
    </item>
    <item>
      <title>Why I Built a Tiny, Fast Calculator for Capital Gains Tax</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Thu, 19 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/why-i-built-a-tiny-fast-calculator-for-capital-gains-tax-1l66</link>
      <guid>https://dev.to/aipredictions_dev/why-i-built-a-tiny-fast-calculator-for-capital-gains-tax-1l66</guid>
      <description>&lt;p&gt;Every time I sold a stock or a piece of property, I found myself stuck in the same frustrating loop. I’d look at my net proceeds, try to remember which bracket I fell into, calculate the short-term vs. long-term distinction, and then wonder if I needed to factor in the Net Investment Income Tax. It wasn’t complex math, but it was annoying enough to delay filing my taxes for weeks.&lt;/p&gt;

&lt;p&gt;I wanted a tool that did one thing well: tell me exactly what I owed in federal and state taxes on a specific gain, without requiring me to sign up, create an account, or wait for a dashboard to load. So, I built a lightweight calculator that runs entirely locally in your browser. Here is how it works and why keeping it simple mattered.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem with Heavy Tax Tools
&lt;/h3&gt;

&lt;p&gt;Most tax calculators are over-engineered. They ask for your entire financial history, demand an email address for a "better experience," and rely on server-side processing that adds latency. For a simple question like &lt;em&gt;"How much tax will I pay on a $10,000 long-term capital gain if I live in California?"&lt;/em&gt;, this overhead is unnecessary.&lt;/p&gt;

&lt;p&gt;I wanted to remove the friction. The goal was to create a static, responsive interface where the calculation happens instantly. No database queries, no API calls, no loading spinners. Just immediate feedback. This approach also ensures privacy by design. Since the logic runs locally in the browser, your financial data never leaves your device. There’s no server to store your numbers, and no tracking pixel watching you fill out forms. It’s just JavaScript doing math.&lt;/p&gt;

&lt;h3&gt;
  
  
  Handling the Complexity of Tax Brackets
&lt;/h3&gt;

&lt;p&gt;Tax law is rarely linear. In 2026, the landscape involves multiple overlapping rules that can confuse even experienced investors. The core challenge was encoding these rules accurately without bloating the codebase.&lt;/p&gt;

&lt;p&gt;The calculator handles three main components:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Federal Long-Term Rates:&lt;/strong&gt; Depending on your taxable income, you might fall into the 0%, 15%, or 20% bracket. The tool automatically determines which tier applies based on the input income and filing status.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Short-Term Gains:&lt;/strong&gt; These are taxed as ordinary income. The calculator mirrors standard income tax brackets to estimate this portion, ensuring that assets held for less than a year are treated correctly.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;State Tax Overlay:&lt;/strong&gt; Federal tax is only half the story. State rates vary wildly. A zero-rate state like Florida behaves differently than a high-tax state like New York. The tool includes a curated list of current state tax implications to provide a realistic total liability estimate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I also included the 3.8% Net Investment Income Tax (NIIT). Many simple calculators ignore this surcharge, leading to underestimates. By baking it into the logic, the final number is much closer to what you’ll actually see on your return.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Local Processing Wins
&lt;/h3&gt;

&lt;p&gt;Using private on-device AI or simple local scripts offers distinct advantages for utility tools. First, speed. Because there is no network round-trip, the interface feels instantaneous. You type a number, and the result updates in milliseconds. This snappiness makes the tool feel more responsive than heavy SPA (Single Page Application) frameworks.&lt;/p&gt;

&lt;p&gt;Second, reliability. If your internet drops, the tool still works. It’s cached and lightweight. For a utility that people might use on mobile while commuting or at a coffee shop, offline capability is a huge plus.&lt;/p&gt;

&lt;p&gt;Finally, transparency. Users can inspect the DOM and understand exactly how the number was derived. There are no hidden "optimization algorithms" or opaque black boxes. The logic is straightforward: determine bracket, apply rate, add state tax, add NIIT if applicable. This clarity builds trust, especially when dealing with money.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lessons from Building a Minimalist Tool
&lt;/h3&gt;

&lt;p&gt;Building this site taught me that most web apps are too heavy for their own good. You don’t need a React framework with Redux state management to do basic arithmetic. Vanilla JavaScript and CSS are often sufficient, faster, and easier to maintain.&lt;/p&gt;

&lt;p&gt;I focused on semantic HTML for accessibility and used CSS variables to handle theme switching (light/dark mode) without JavaScript overhead. The result is a page that loads in under a second on a 3G connection and works flawlessly on older devices.&lt;/p&gt;

&lt;p&gt;It’s not about reinventing the wheel; it’s about choosing the right wheel for the job. For capital gains estimation, a fast, local, no-nonsense calculator is the best fit. It respects the user’s time and privacy, delivering exactly what they need without the bloat.&lt;/p&gt;

&lt;p&gt;How do you handle quick financial estimations? Do you prefer heavy, feature-rich dashboards, or do you lean toward lightweight, single-purpose tools like this one?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>363 of our published translations had a letter from the wrong alphabet hiding in a word</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:00:01 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/--3j4p</link>
      <guid>https://dev.to/aipredictions_dev/--3j4p</guid>
      <description>&lt;p&gt;Look at this word: &lt;strong&gt;Pусский&lt;/strong&gt;. It reads as Russian for "Russian", and it is not quite: the first letter is the Latin P, not the Cyrillic Р. The two look the same in every font and are different characters, so search engines, the search box of the site, Ctrl+F and spell checkers all treat it as a different word.&lt;/p&gt;

&lt;p&gt;We went looking for words like this in our own sites, and found more than we expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we found
&lt;/h2&gt;

&lt;p&gt;Our sites are translated into 42 languages by a local model, and every line passes mechanical checks before it is published: placeholders, numbers, tags, the right script for the language. Those checks let Latin letters through anywhere, because brand names and code are written in Latin letters in every language.&lt;/p&gt;

&lt;p&gt;So we ran one more check over everything published: a word whose letters come from two of the Latin, Cyrillic and Greek alphabets. Out of 613,570 published page translations across our 11 sites, &lt;strong&gt;363 had such a word&lt;/strong&gt;. Every one we looked at was a real slip:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Language&lt;/th&gt;
&lt;th&gt;Word&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Russian&lt;/td&gt;
&lt;td&gt;Tребования&lt;/td&gt;
&lt;td&gt;Latin T&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bulgarian, Serbian&lt;/td&gt;
&lt;td&gt;Оdds&lt;/td&gt;
&lt;td&gt;Cyrillic О in an English word&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ukrainian&lt;/td&gt;
&lt;td&gt;Wиграли&lt;/td&gt;
&lt;td&gt;Latin W&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Greek&lt;/td&gt;
&lt;td&gt;Fόρος&lt;/td&gt;
&lt;td&gt;Latin F&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bulgarian&lt;/td&gt;
&lt;td&gt;медийниplacements&lt;/td&gt;
&lt;td&gt;an English word glued on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Macedonian&lt;/td&gt;
&lt;td&gt;сè&lt;/td&gt;
&lt;td&gt;Latin è; Macedonian has its own ѐ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;By language: Macedonian 242 (190 of them the word for "everything" with a Latin è), Bulgarian 46, Serbian 44, Greek 13, Russian 9, Ukrainian 9. No reader would report them: on the screen they look right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding them takes a dozen lines
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;unicodedata&lt;/span&gt;

&lt;span class="no"&gt;ALPHABETS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"LATIN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"CYRILLIC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"GREEK"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;alphabet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;unicodedata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;name&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;ALPHABETS&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;mixed_words&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;words&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[^\W\d_]+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unicodedata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;normalize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"NFC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;words&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;alphabet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A word here is a run of letters, so &lt;code&gt;USB-кабель&lt;/code&gt; is two words and neither is mixed. Two exceptions keep it free of false alarms on our data: a word the English source already has (a brand written that way on purpose), and units such as kΩ and μm, where a Greek letter belongs next to Latin ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixing them without breaking pages
&lt;/h2&gt;

&lt;p&gt;About three in four can be fixed without the model: when most letters of the word are in the language's own alphabet and each odd letter has a twin there, we spell the word in that alphabet (Tребования becomes Требования, сè becomes сѐ). The rest, mostly English words glued to a translated one, go back to the model with the reason: "the word ... mixes letters of two alphabets".&lt;/p&gt;

&lt;p&gt;Serbian needed its own rule. It is written in both Latin and Cyrillic letters, and its two alphabets map one to one, so a mixed Serbian word is transliterated into the alphabet most of its letters are in. We learned that the hard way: on a line that quoted Russian words, the model wrote &lt;strong&gt;pročitан&lt;/strong&gt; three times in a row, the line never passed, and the page dropped out of the Serbian build until the transliteration rule went in. Since then, a line refused only for a mixed word keeps its old translation if the new one fails too, so the rule cannot take a published page down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on your own strings
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In the browser: &lt;a href="https://lightsoutfactory.ai/tools/mixed-alphabets/" rel="noopener noreferrer"&gt;lookalike letter checker&lt;/a&gt;. Paste text or a &lt;code&gt;.po&lt;/code&gt;, JSON or XLIFF file; it marks every mixed word, gives it back in one alphabet, and lists invisible characters such as zero-width spaces. Nothing leaves the page.&lt;/li&gt;
&lt;li&gt;In CI: &lt;a href="https://github.com/lightsoutfactory/translation-checks" rel="noopener noreferrer"&gt;translation-checks&lt;/a&gt; 1.5.0, free under the MIT licence, now fails a translation with such a word:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;translation_checks&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;
&lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Wagering requirements"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Tребования по обороту"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ru"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# ['letters of two alphabets in one word: Tребования']&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://github.com/lightsoutfactory/translation-checks&lt;/span&gt;
    &lt;span class="na"&gt;rev&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1.5.0&lt;/span&gt;
    &lt;span class="na"&gt;hooks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;translation-checks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you ship translations in Cyrillic or Greek, it is worth one run: these slips are invisible until someone searches for the word.&lt;/p&gt;

</description>
      <category>i18n</category>
      <category>localization</category>
      <category>python</category>
      <category>unicode</category>
    </item>
    <item>
      <title>Why I Built a Clean Interface for H-1B Salary Data (And Why You Should Care)</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:00:01 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/why-i-built-a-clean-interface-for-h-1b-salary-data-and-why-you-should-care-2ig2</link>
      <guid>https://dev.to/aipredictions_dev/why-i-built-a-clean-interface-for-h-1b-salary-data-and-why-you-should-care-2ig2</guid>
      <description>&lt;p&gt;Most government data portals are painful to use. They are slow, cluttered, and often require you to download a massive CSV file just to answer a simple question like, "What is the median salary for a Software Engineer in Austin?"&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://h1bsalarydata.org" rel="noopener noreferrer"&gt;h1bsalarydata.org&lt;/a&gt; to solve exactly that friction. It is a lightweight, fast interface on top of the U.S. Department of Labor’s LCA data. No accounts required, no complex dashboards, just immediate answers about visa sponsor salaries and employer trends.&lt;/p&gt;

&lt;p&gt;Here is the story behind why I built this and how it works under the hood.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem with Raw Government Data
&lt;/h3&gt;

&lt;p&gt;The underlying data source for this project is public domain: the Labor Condition Application (LCA) records filed by employers sponsoring H-1B workers. This data is incredibly useful for developers, hiring managers, and HR professionals trying to benchmark compensation or understand market rates.&lt;/p&gt;

&lt;p&gt;However, the native interfaces provided by government agencies are often designed for bulk processing rather than quick human lookup. If you want to know the median wage for a "Data Scientist" in "Chicago" sponsored by "Company X," you typically have to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Download a CSV with hundreds of thousands of rows.&lt;/li&gt;
&lt;li&gt; Open it in Excel or Python.&lt;/li&gt;
&lt;li&gt; Filter by location, title, and employer.&lt;/li&gt;
&lt;li&gt; Calculate the median manually.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This workflow is robust but slow for quick checks. I wanted a tool that felt like a modern web app but served a strictly utilitarian purpose: answering salary questions in seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  How It Works: Simplicity Over Complexity
&lt;/h3&gt;

&lt;p&gt;From an engineering perspective, this project is intentionally boring. That is a compliment. It relies on a straightforward architecture that prioritizes speed and reliability over flashy features.&lt;/p&gt;

&lt;p&gt;The backend aggregates the raw LCA data and pre-calculates medians and counts for common combinations of job titles, cities, and employers. By pre-computing these aggregates, the site avoids heavy query loads during peak usage times. The frontend is a lightweight single-page application that fetches these pre-calculated stats and renders them instantly.&lt;/p&gt;

&lt;p&gt;There are no complex caching layers or microservices here. The goal was to keep the time-to-first-byte low and the dependency tree minimal. When you search for a role, the site matches the input against the pre-indexed dataset and returns the median wage level, the number of applications, and the top sponsoring employers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Median Matters More Than Average
&lt;/h3&gt;

&lt;p&gt;One design choice I made was to focus heavily on medians rather than averages. In salary data, averages can be skewed heavily by outliers—such as a single executive earning $500k in a pool of junior developers. The median gives a much more honest representation of what a typical worker in that role actually earns.&lt;/p&gt;

&lt;p&gt;The site breaks down salaries by Wage Levels (Level 1 through Level 4), which corresponds to the complexity of the job and the experience required. This allows users to see not just what people earn, but how compensation scales with seniority within specific companies and locations.&lt;/p&gt;

&lt;p&gt;For example, if you are hiring a "Senior Backend Engineer" in Seattle, you can instantly see the median wage for Level 3 positions sponsored by major tech firms versus smaller agencies. This context is often missing from generic salary aggregators that blend all experience levels together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Open Data, Closed Loop
&lt;/h3&gt;

&lt;p&gt;The project is open-source and relies entirely on public data. There is no proprietary scraping or hidden data sources. Every number you see traces back to an actual LCA filing. This transparency is crucial for trust. When a candidate sees a salary range, they need to know it comes from real filings, not just self-reported surveys which can be biased toward higher earners.&lt;/p&gt;

&lt;p&gt;By keeping the interface simple, I aimed to make the data accessible to everyone, not just data analysts. Whether you are negotiating an offer, planning a hiring budget, or researching market trends, the goal is to provide clarity with minimal friction.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Would Help You Most?
&lt;/h3&gt;

&lt;p&gt;I am constantly iterating on the filters and display options based on early feedback. Currently, the focus is on job titles and location. But I am curious about what additional dimensions would be most useful for your workflow.&lt;/p&gt;

&lt;p&gt;Do you find it more helpful to filter by specific tech stacks (e.g., React vs. Vue) within the job titles, or is the broader occupational category sufficient for your needs?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>gettext Plural-Forms for 209 languages, checked against CLDR 47, and a checker for yours</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:00:02 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/gettext-plural-forms-for-209-languages-checked-against-cldr-47-and-a-checker-for-yours-ehj</link>
      <guid>https://dev.to/aipredictions_dev/gettext-plural-forms-for-209-languages-checked-against-cldr-47-and-a-checker-for-yours-ehj</guid>
      <description>&lt;p&gt;A gettext catalogue picks the form of a plural message with one line in its header:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="s2"&gt;"Plural-Forms: nplurals=3; plural=(n % 10 == 1 &amp;amp;&amp;amp; n % 100 != 11) ? 0 : (n % 10 &amp;gt;= 2 &amp;amp;&amp;amp; n % 10 &amp;lt;= 4 &amp;amp;&amp;amp; (n % 100 &amp;lt; 12 || n % 100 &amp;gt; 14)) ? 1 : 2;\n"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ngettext()&lt;/code&gt; puts the count into that C expression as &lt;code&gt;n&lt;/code&gt; and shows &lt;code&gt;msgstr[0]&lt;/code&gt;, &lt;code&gt;msgstr[1]&lt;/code&gt; or &lt;code&gt;msgstr[2]&lt;/code&gt;, whichever it returns. When the expression is wrong, nothing fails loudly: some counts just get the wrong word.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the headers go wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An English header in another language.&lt;/strong&gt; &lt;code&gt;nplurals=2; plural=(n != 1);&lt;/code&gt; in a Russian catalogue puts 2, 5 and 21 in the same slot. Russian says &lt;em&gt;2 файла&lt;/em&gt;, &lt;em&gt;5 файлов&lt;/em&gt;, &lt;em&gt;21 файл&lt;/em&gt;: no single translation of that slot is right for all three.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A header generated from CLDR as it is.&lt;/strong&gt; Babel's &lt;code&gt;to_gettext()&lt;/code&gt; gives Russian, Ukrainian, Polish, Czech and Slovak four forms, because CLDR has a form for fractions such as 1.5. gettext counts are whole numbers, so the fourth &lt;code&gt;msgstr&lt;/code&gt; is never shown. For French and Portuguese it also writes CLDR's &lt;code&gt;e&lt;/code&gt; operand into the expression, which gettext does not know.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Round millions.&lt;/strong&gt; Recent CLDR gives exact millions a form of their own in French, Spanish, Italian, Portuguese, Catalan and a few others (&lt;em&gt;un million de fichiers&lt;/em&gt;). Most catalogues keep the usual header; either works if you know which one you have.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Older headers.&lt;/strong&gt; Some long-standing headers, the Welsh and Latvian ones for instance, split the numbers differently from CLDR.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A table and a checker
&lt;/h2&gt;

&lt;p&gt;We needed correct headers for our own translations, so we built them from CLDR 47 (Babel 2.18.0) for every language with plural rules of its own: 209 of them, European Portuguese included, because 0 takes a different form there. Each header was evaluated on 22,017 counts (every number to 20,000, every thousand to 2,000,000 and round numbers to a billion) and had to put each one in the slot of its CLDR form.&lt;/p&gt;

&lt;p&gt;The page has the whole table with copy buttons, and a checker: pick the language, paste your header (the value, the &lt;code&gt;.po&lt;/code&gt; line or the whole header block) and it shows which numbers each &lt;code&gt;msgstr&lt;/code&gt; gets, whether a slot mixes CLDR forms or is never used, and which "one" slots also serve other numbers (Russian 21, French 0), so their translation must show the number. It parses the expression itself instead of calling &lt;code&gt;eval&lt;/code&gt;, and nothing leaves the browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://lightsoutfactory.ai/tools/plural-forms/" rel="noopener noreferrer"&gt;Plural-Forms for every language →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For whole catalogues, &lt;a href="https://github.com/lightsoutfactory/translation-checks" rel="noopener noreferrer"&gt;translation-checks&lt;/a&gt; (MIT, one Python file, also a pre-commit hook) runs the same rules over every plural entry of a &lt;code&gt;.po&lt;/code&gt; file, together with its placeholder, number and tag checks.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published as a free tool on &lt;a href="https://lightsoutfactory.ai/tools/plural-forms/" rel="noopener noreferrer"&gt;LightsOut Factory&lt;/a&gt;: what we learn running our own automation, written down as we go.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>i18n</category>
      <category>localization</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I Built a Tiny Tool to Fix My Own RMD Confusion</title>
      <dc:creator>AI Predictions Dev</dc:creator>
      <pubDate>Sat, 14 Nov 2026 14:00:01 +0000</pubDate>
      <link>https://dev.to/aipredictions_dev/i-built-a-tiny-tool-to-fix-my-own-rmd-confusion-3499</link>
      <guid>https://dev.to/aipredictions_dev/i-built-a-tiny-tool-to-fix-my-own-rmd-confusion-3499</guid>
      <description>&lt;p&gt;Every year, around December, I find myself staring at a spreadsheet trying to figure out how much money I need to pull out of my retirement accounts to avoid an IRS penalty. It’s a ritual that feels unnecessarily complex for something that should be straightforward: look up your age, find the divisor, divide your balance. That’s it.&lt;/p&gt;

&lt;p&gt;But finding the right table for the current year is surprisingly annoying. Search results are cluttered with outdated PDFs, confusing UI from major financial institutions, and ads for investment services I don’t need. I just wanted a clean, fast way to calculate my Required Minimum Distribution (RMD) using the official IRS Uniform Lifetime Table.&lt;/p&gt;

&lt;p&gt;So, I built a small tool called RMD Table. It’s not a platform. It’s not an app with a login system. It’s a single-page utility that does one thing well: calculates your RMD based on the latest regulation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with Existing Tools
&lt;/h2&gt;

&lt;p&gt;Most financial calculators are bloated. They ask for your entire financial history, your risk tolerance, and your email address before showing you a number. For a simple division problem, this feels like overkill.&lt;/p&gt;

&lt;p&gt;I wanted something that loads instantly. No JavaScript frameworks if possible, no heavy CSS frameworks, and no tracking scripts. Just HTML, CSS, and a tiny bit of vanilla JS. The goal was to make the tool feel invisible. You come in, you see your number, you leave.&lt;/p&gt;

&lt;p&gt;When I started building, I looked at a few existing options. Some were great but required an account. Others were simple but used outdated tables from previous years. The IRS updates the Uniform Lifetime Table occasionally, and ensuring the tool always reflects the current regulation is key. I wanted to avoid the common pitfall of hardcoding values that might become stale.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;The logic is surprisingly simple. The tool takes two inputs: your age and your December 31 account balance. It then looks up the corresponding divisor from the IRS Uniform Lifetime Table for the current year.&lt;/p&gt;

&lt;p&gt;For example, if you are 72 years old, the divisor might be 25.6. If your balance is $100,000, your RMD is $100,000 / 25.6 = $3,906.25.&lt;/p&gt;

&lt;p&gt;The challenge wasn’t the math; it was the UX. I wanted the interface to be responsive and accessible without sacrificing speed. I used CSS Grid for layout because it’s lightweight and handles different screen sizes gracefully. The font stack uses system fonts to avoid loading external resources. This keeps the First Contentful Paint under 1 second on most devices.&lt;/p&gt;

&lt;p&gt;I also added a small feature that many tools miss: context. Many calculators just spit out a number. But the IRS rules can be tricky. Did you know your first RMD has a different deadline than subsequent ones? Did you know if you miss the deadline, the penalty is 25% of the shortfall? I included brief, clear notes below the result to explain these nuances without overwhelming the user.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Build Something So Small?
&lt;/h2&gt;

&lt;p&gt;In an era of mega-apps and complex SPAs, building a single-purpose tool feels refreshing. It forces you to prioritize clarity. Every element on the screen has to earn its place. There’s no room for decoration.&lt;/p&gt;

&lt;p&gt;I used a minimal CSS reset and kept the JavaScript under 5KB. No libraries. No build steps. Just a plain HTML file served statically. This makes it incredibly fast to deploy and easy to maintain. If the IRS updates the table next year, I just edit a JSON object in the script. Done.&lt;/p&gt;

&lt;p&gt;The tool is now live at &lt;a href="https://rmdtable.com" rel="noopener noreferrer"&gt;rmdtable.com&lt;/a&gt;. It’s simple, fast, and does exactly what it says on the tin. I’m using it myself every December, and it saves me about five minutes of searching and comparing different websites.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s Next?
&lt;/h2&gt;

&lt;p&gt;Right now, the tool only supports the Uniform Lifetime Table. There are other tables for beneficiaries and married couples with younger spouses, but those are edge cases. I’ll add them if enough people ask.&lt;/p&gt;

&lt;p&gt;For now, I’m focused on keeping it lean. No analytics beyond basic page views. No pop-ups. Just a clean calculation.&lt;/p&gt;

&lt;p&gt;If you’ve ever struggled with RMD calculations, I’d love to hear your feedback. What’s the most confusing part of the process for you? Is it finding the right table, understanding the penalties, or something else entirely?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
