SShortSingh.
0
ProgrammingDEV Community ·

Silent encoding bug corrupted emails for months without a single error log

A developer in Assis, São Paulo discovered that her system had been sending emails with garbled Portuguese accented characters due to a character encoding mismatch. The root cause was a script reading a UTF-8 CSV file using Latin-1 encoding — a combination that never threw errors because UTF-8 bytes read as Latin-1 form a stable round-trip, leaving the source file intact. The bug remained invisible for months since the file appeared correct when opened and no exceptions were raised during processing. Corruption only became visible when the misread text reached an output that properly decoded UTF-8, such as an email body or an LLM prompt. The fix required nothing more than changing encoding='latin1' to encoding='utf-8' at each point the file was opened, with no data rewriting needed.

0
ProgrammingDEV Community ·

Open-source tool gives all your AI coding agents one shared local memory via MCP

A developer named sanprat has released agent-memory, an open-source project on GitHub licensed under Apache 2.0. The tool creates a universal memory layer for AI coding agents such as OpenCode, Claude Code, Cursor, and Kilo Code using the Model Context Protocol (MCP). It runs entirely locally using Mem0 and Qdrant, requiring no external API keys. Users can seed rules or context once, and all supported agents will share and retain that memory. Configuration files are auto-generated for five agents, simplifying the setup process.

0
ProgrammingDEV Community ·

Why HTML Email Rendering Remains Broken in 2026 and How Devs Are Fixing It

Despite modern web development advances, HTML emails still render inconsistently across major clients like Outlook, Gmail, and Apple Mail due to outdated rendering engines. A development team analyzed 2,529 user comments from the top 25 YouTube tutorials on email signatures, finding that over 64% were requests for bug fixes. Key issues include Outlook Desktop using Microsoft Word as its HTML engine, which ignores CSS properties like border-radius and max-width, causing images to render at full native resolution. Gmail and Apple Mail dark mode algorithms invert white or transparent borders into bright visible gridlines, while macOS Mail silently strips custom fonts by default. The team used these findings to build a zero-bloat email signature compiler that applies legacy HTML attributes and explicit inline CSS resets to ensure consistent rendering across clients.

0
ProgrammingDEV Community ·

AI Coding Benchmark Exposes How Compressed Summaries Outlive Their Own Corrections

A local AI coding benchmark originally conducted in June was re-tested on 4 July using qwen3-coder-30b via Ollama, which scored a perfect 8/8 in just 2.1 minutes compared to 7.5/8 in 44.1 minutes for the smaller qwen3.5-9b model. The re-test initially appeared to overturn the June verdict, but closer reading revealed the original findings had been misrepresented through compression — the phrase 'iterative coding not viable' had been stripped of its architectural scope and specific conditions. June's analysis had already identified five structural failure modes and noted that a proper harness could address at least two of them, which is precisely what the July setup provided. The core problem was not that the June verdict was wrong, but that a condensed version of it entered the project's working memory as a headline claim and went unchecked for two weeks. The episode illustrates how accurate technical findings can be undermined when nuanced conclusions are reduced to broad, unqualified statements during documentation handoffs.

0
ProgrammingDEV Community ·

Jio Gets SEBI Nod for India's Largest-Ever IPO; Navi Raises $100M from Prosus

Jio Platforms received SEBI approval on August 28 for its upcoming IPO, which is expected to be India's largest-ever public listing with a target raise of approximately ₹37,700 crore at a valuation of around $137 billion. The offering consists entirely of fresh equity shares, with pricing and listing dates yet to be announced. Meanwhile, Sachin Bansal's fintech firm Navi secured $100 million from Prosus — its first external funding round in eight years of operating solely on founder capital — pushing its valuation to approximately $1.3 billion. On the broader funding front, Indian startup fundraising trackers reported widely varying weekly totals ranging from $198 million to $469 million, highlighting how methodology and startup definitions affect reported figures. India's government continues to push AI infrastructure investment, with the IndiaAI Mission allocating $1.25 billion and subsidising over 38,000 GPUs for startups and researchers as part of an ambition to attract $200 billion in AI investment by 2028.

0
IndiaNDTV ·

Tea Break Saves 5 Chhattisgarh Tourists From Nepal Flash Floods

A group of five friends from Raipur, Chhattisgarh, had a narrow escape from deadly floods in Nepal. The group departed Raipur on August 21 and arrived in Nepal the next day. They had hired a local vehicle and were planning to visit religious sites including Pashupatinath Temple and Manokamana Temple. A timely tea break kept them away from a flood-hit route, inadvertently saving their lives. The incident highlights the dangers tourists can face during Nepal's monsoon season.

0
ProgrammingDEV Community ·

A buyer's AI agent audited a vendor's website before purchase, exposing key gaps

A small software vendor discovered that a customer had deployed an AI coding assistant to vet their website before completing a purchase, with the entire automated evaluation occurring the day before the eleven-second transaction. The agent systematically fetched legal pages, support information, and a security.txt file, but also attempted four URLs that returned 404 errors, including pages for a contact form and product bundle. Because the site lacked a dedicated contact page, the agent's report likely flagged the vendor as harder to reach — a finding the team considered misleading and entirely self-inflicted. In response, the vendor made four same-day changes to their site, including adding an llms.txt file for language models, structured schema.org product data with live pricing, a proper security.txt contact, and a clearer pricing page. The incident highlights how a website's machine-readable surface is becoming a critical trust signal as AI-assisted purchasing grows more common.

0
ProgrammingDEV Community ·

How to fix CJK font rendering and CSS gaps when using Satori for OG images

A developer building a Korean saju reading service encountered three key failures while generating share cards and Open Graph images using Satori via Next.js's ImageResponse. The first issue was missing hanja glyphs, solved by passing an ordered font fallback array — a Korean handwriting face for Hangul and Latin, followed by a hanja-specific font — mirroring CSS unicode-range logic. The second problem was Satori's lack of support for mask-image, filter, and backdrop-filter, requiring all styling to be written inline in JSX rather than pulled from an external stylesheet. To work around this, the developer created a small inline token mirror of the site's light-theme CSS variables and committed to light-only card output. A third practical constraint noted was that Satori requires TTF or OTF font files, not woff2, and font paths must be hardcoded literals so Vercel's file tracing can correctly bundle assets at build time.

0
ProgrammingDEV Community ·

Why Developers Are Shifting to On-Device AI Models for Production Systems in 2026

A major architectural shift is underway in software development, with engineers moving away from cloud-based AI APIs toward running large language models locally on their own hardware. The primary drivers are compounding latency issues in multi-step AI agent loops, where each cloud round-trip adds hundreds of milliseconds, making user-facing applications feel sluggish. Rising API costs, which scale with usage and token complexity, have also made cloud inference financially unsustainable for high-frequency production tools. Advances in quantization techniques — particularly 4-bit formats like Q4_K_M — now allow large models to run efficiently on mid-range consumer GPUs with minimal accuracy loss. Local inference engines have also introduced grammar-constrained decoding, which forces models to produce valid structured outputs, improving the reliability of automated agent pipelines.

0
ProgrammingDEV Community ·

Qt Remains a Top Choice for Cross-Platform Desktop Apps in 2026

Qt continues to be a leading framework in 2026 for building desktop applications that run natively on Windows, macOS, and Linux from a single C++ codebase. The framework offers two UI approaches: Qt Widgets for traditional, form-heavy desktop interfaces and Qt Quick/QML for modern, animated, and touch-friendly designs. Unlike web-based wrappers such as Electron, Qt compiles to native executables, resulting in better performance and a smaller memory footprint, though it requires C++ expertise. Beyond UI, Qt also covers networking, databases, concurrency, and file handling, reducing the need to integrate third-party libraries. Its maturity and long-term support make it particularly suitable for industrial, scientific, and enterprise software that demands years of maintenance.

0
IndiaTimes of India ·

Gavaskar Opposes Free Hits in Tests, Backs Financial Penalties for No-Balls

Cricket legend Sunil Gavaskar has firmly rejected the idea of introducing free hits for no-balls in Test cricket. He argues that free hits give batters an unearned advantage and do not belong in the longest format of the game. As an alternative, Gavaskar proposes escalating financial penalties for bowlers who repeatedly overstep, potentially holding their coaches accountable as well. He also suggests that teams should be empowered to vote on additional punishments for on-field errors to foster greater accountability.

0
IndiaTimes of India ·

UP Man Throws Acid on Ex-Fiancee and Her Sister After Engagement Called Off

A man named Harsh Bhati allegedly threw acid at his former fiancée and her sister in Uttar Pradesh after their engagement was broken off. The family of the victims overpowered and held him until police arrived. The engagement had been dissolved after the family reportedly discovered Bhati's alleged substance abuse. Both sisters sustained serious injuries and have been admitted to a hospital. Authorities are currently investigating the case.

0
ProgrammingDEV Community ·

Developer Builds Code-Focused Typing Trainer to Fix Slow Speeds on Symbols

A developer frustrated by slow typing on programming symbols like `=>`, `{}`, and `!==` built Typre, a free, open-source typing practice tool that uses only real code snippets. Unlike conventional typing trainers that rely on prose, Typre offers language-specific pools of actual Go, SQL, React, and Rust code across short, medium, and long run lengths. The tool also includes a punctuation-only drill mode, a shortcut trainer covering 61 VS Code and Vim commands, and standard metrics like WPM, accuracy, and daily streaks. Real-time races, per-language leaderboards, and challenge links are also available, though the developer acknowledges that WPM scores are verified only client-side and the leaderboard should not be treated as authoritative. Built with React 19, TypeScript, and Supabase, the project is live at typre.dev under an MIT licence.

0
IndiaTimes of India ·

Missing Picasso Etching Worth Up to $50,000 Found in Vacant Apartment After 8 Years

A Picasso etching that had been missing since 2018 was unexpectedly discovered by a landlord inside a vacant apartment. The artwork is estimated to be worth between $35,000 and $50,000. The landlord grew suspicious upon noticing the artist's signature and had an antique dealer verify its authenticity. Police commended the landlord for his honesty in returning the piece rather than keeping it. The gallery owner, who had long sought the etching, welcomed its recovery as an emotional moment.

0
ProgrammingDEV Community ·

How to Detect and Fix Catastrophic Backtracking in JavaScript Regexes

A developer maintaining CodeSwap, a browser-based developer-tools site, documented a repeatable audit process for identifying JavaScript regular expressions vulnerable to ReDoS, or Regular Expression Denial of Service attacks. The core risk arises when nested or overlapping quantifiers allow the regex engine to explore an exponentially growing number of match paths before rejecting a crafted input. Testing the pattern /^(a+)+$/ with incrementally longer hostile strings revealed that every two additional characters roughly quadrupled processing time, reaching over six seconds for just 30 characters. OWASP identifies nested quantifiers and overlapping alternatives inside repetition as key warning signs of this vulnerability. The recommended fix is to eliminate ambiguous repetition — for example, replacing /^(a+)+$/ with /^a+$/ — and to always test suspicious patterns in an isolated environment using short, controlled inputs rather than on a live request thread.

← NewerPage 627 of 3974Older →