SShortSingh.

Programming

0
ProgrammingDEV Community ·

Network migration exposes five independent failure layers in storage stack

A planned network migration of a Windows workload and two TrueNAS servers onto a new dual-TOR fabric revealed that storage health cannot be assessed from a single vantage point. The engineer discovered at least five distinct layers in the storage stack — network reachability, service reachability, filesystem state, ZFS kernel state, and physical storage paths — each capable of appearing healthy while masking failures in the next. During the cutover, each layer failed at least once in ways invisible from the layer above, including a missing NIC driver, an unconfigured LAGG VLAN, and ZFS pool import issues. The failures initially appeared unrelated, and only after full recovery did the pattern of layered, independent failure modes become clear. The key takeaway is that migration checklists must validate health at every individual stack layer rather than relying on a single top-level green signal.

0
ProgrammingDEV Community ·

How a Google Sheets Inventory Bug Lets Shared Kit Parts Oversell Stock

A common Google Sheets inventory setup assigns each SKU its own quantity row, but this breaks down when two product bundles share a component. If Desk Set A and Desk Set B both use the same body part, the sheet counts that body's stock twice, allowing more orders than physical inventory supports. The oversell only becomes visible days later as a cancelled order, since the spreadsheet rows and formulas appear internally consistent throughout. A developer proposes replacing static kit quantity columns with a calculation that derives availability from the lowest-coverage shared component. Custom Google Apps Script functions enforce this logic by tracking committed stock across orders and blocking any sale that cannot be fulfilled from remaining free inventory.

0
ProgrammingDEV Community ·

Hybrid Streaming Architecture Cuts AI Voice Agent Response Time Below 300ms

Achieving natural-sounding AI phone agents requires end-to-end audio response times under 300 milliseconds, a threshold that separates attentive-sounding assistants from noticeably mechanical ones. A hybrid approach addresses this by serving short conversational fillers like 'okay' or 'mhm' from pre-recorded audio clips, while streaming dynamic responses through lightweight synthesis models. This matters because autoregressive speech engines often struggle or produce errors on one- and two-word acknowledgements, creating awkward silences that damage caller perception within the first few seconds. These brief backchannel signals are linguistically distinct across languages, meaning bilingual agents serving markets like Dubai or Riyadh must maintain separate filler inventories for each language spoken. Used sparingly — roughly once every two to four pause points — such signals keep callers engaged and mirror the natural turn-taking rhythm found across human conversation worldwide.

0
ProgrammingDEV Community ·

Claude Opus 4.5 Built a Self-Documenting Video Entirely in Code Using AI Agents

Anthropic's Claude Opus 4.5, operating within Claude Code, produced a music video that documents its own creation process, starting from an open-source p5.js project called PDoomVideo. The core technical constraint requires every frame to be a pure function of elapsed time, eliminating randomness and state so frames can render out of order or be regenerated on demand. Narration timing was handled by syncing ElevenLabs audio timestamps to script cue words, while music beat grids were extracted from Suno exports using Whisper transcription and audio onset detection. Three subagents built separate video chapters in parallel, each working from a pre-written storyboard and animation guide, with a reviewer agent grading drafts and flagging specific errors. All intermediate artifacts — briefs, storyboard, reviewer notes, and draft frames — are preserved in the repository and appear within the video itself.

0
ProgrammingHacker News ·

Sourcehut Vulnerability Allowed Account Takeover via XSS in Build Logs

A security researcher discovered a vulnerability in Sourcehut, the open-source software forge, that could allow attackers to take over user accounts. The flaw stemmed from a cross-site scripting (XSS) bug in ansi2html, a tool used to render build log output in the browser. By crafting malicious ANSI escape sequences in build logs, an attacker could execute arbitrary JavaScript in a victim's browser session. This could potentially be exploited to hijack authenticated user accounts on the platform. The details were disclosed publicly via a blog post by the researcher who uncovered the issue.

0
ProgrammingDEV Community ·

How MongoDB Scales from a Single Machine to a Multi-Region Cluster

MongoDB can start as a single database process on one machine, but as applications grow, the architecture must evolve to handle higher traffic, larger data, and global users. A replica set groups multiple nodes that hold identical copies of the same data, ensuring high availability if one node or availability zone fails. When a single replica set can no longer handle the data volume or write load, MongoDB allows sharding, which splits a collection across multiple node groups using a designated shard key. MongoDB Atlas automates much of this scaling and cluster management, while self-managed MongoDB Community deployments require manual configuration. The article walks through each architectural layer — from standalone node to multi-region sharded cluster — to help developers understand where data lives and how capacity grows.

0
ProgrammingDEV Community ·

Four DNS Zone Checks That Prevent Rejected Record Writes for Tenant Domains

When managing DNS records for multi-tenant platforms, a common failure occurs when zone identifiers and domain owner names are accidentally swapped in API requests. DNS providers use two distinct namespaces: an opaque provider-scoped zone ID for selecting the zone, and a fully qualified domain name for specifying the record owner. Sending a domain name where a zone ID is expected violates the API contract and produces a deterministic validation error that retries cannot resolve. Engineers are advised to separate these fields structurally in code, validate both before any write attempt, and log the zone-to-record mapping used for each mutation. Misclassifying such rejections under a generic DNS failure alert delays resolution, since the fix requires correcting request construction rather than adjusting credentials, backoff, or retry logic.

0
ProgrammingDEV Community ·

Why Remote Code Patches Need a Separate Apply Gate Beyond Admission Checks

A tutorial from MonkeyCode illustrates a critical distinction in coding agent workflows: admitting a remote patch and applying it to a codebase are two separate decisions that must be evaluated independently. During the time a remote server generates a patch, local edits can land in the same code region, making the returning patch outdated even if it passed all initial security checks. The admission gate evaluates factors like network latency, secret exposure, and offline status, while the apply gate must check whether the returned patch overlaps with any edits made after the original snapshot was taken. A patch that clears the admission scan can still corrupt a file if it overwrites lines written during the remote generation window. The article warns that treating admission and apply as a single step is how a fast, low-cost remote process silently damages code it never re-read.

0
ProgrammingDEV Community ·

Cisco Secure Email Gateway Flaw CVE-2026-76443 Rated Critical, Patch Available

A critical injection vulnerability, CVE-2026-76443, has been identified in Cisco Secure Email Gateway and Cisco Secure Email and Web Manager versions 15.5 and earlier, as part of a five-CVE hardening release published in September 2026. India's CERT-In rated the release CRITICAL, warning that the flaw allows unsanitized attacker-supplied input to reach sensitive processing contexts, including command, SQL, code execution, and cross-site scripting sinks. Successful exploitation could lead to unauthorized command or code execution, data access or modification, and broader compromise of mail flow, configuration, and stored credentials. ZoomEye identified approximately 1,781 internet-facing instances matching the Cisco Secure Email Gateway product fingerprint, indicating a potentially wide exposure. Administrators are advised to apply Cisco's official fix, restrict management interface access to trusted hosts, and treat the upgrade as a single operation covering all five addressed vulnerabilities.

0
ProgrammingDEV Community ·

Smaller Typed-Decision Model Outperforms 35B LLM on 12,000 Federal IT RFQ Classifications

A benchmarking study tested three AI models — Jev, Qwen3.5-35B-A3B, and Laya 421M — on 12,000 real U.S. federal IT procurement solicitations to assess how safely each could automate classification tasks for a federal IT reseller. Jev, a typed-decision API, achieved the highest primary-class accuracy at 91.9%, narrowly beating the much larger 35B LLM Qwen at 89.6%, while the 421M open-weight Laya model trailed at 78.0%. The decisive factor was not raw accuracy but calibration — Jev's low calibration error of 0.049 allowed it to reliably flag uncertain predictions, enabling 86.5% of cases to be auto-accepted at a 96.7% precision rate. Qwen failed to reach the confidence thresholds needed for bounded automation, and Laya's high calibration error of 0.322 made safe automation targets unreachable. The findings suggest that for operational automation, a model's ability to signal its own uncertainty can matter more than its headline accuracy score.

0
ProgrammingDEV Community ·

RelayPlane, LiteLLM, OpenRouter: Key Differences in AI Gateway Tools Explained

A developer who built RelayPlane has published a comparison of three AI proxy and routing tools: RelayPlane, LiteLLM, and OpenRouter. RelayPlane is a lightweight, locally installed npm package designed for single-machine use, offering a hard daily spend cap, per-request cost logging via SQLite, and a kill switch with no database server required. LiteLLM is a self-hosted, open-source gateway suited for teams, supporting over 100 providers, virtual keys, and per-tenant budget controls. OpenRouter is a fully hosted service requiring no infrastructure, providing access to over 500 models through a single API key, though cost enforcement happens on their cloud rather than locally. The author acknowledges personal bias toward RelayPlane and directs readers to official documentation for each tool to verify the claims independently.

0
ProgrammingDEV Community ·

Macula Mesh+Realm Offers Decentralized, Cryptographic Alternative to Traditional VPNs

Macula Mesh+Realm is a sovereign network substrate designed to provide secure, identity-based connectivity across untrusted or contested networks. Unlike conventional VPNs that rely on centralized gateways, Macula uses a distributed mesh architecture where IPv6 addresses are cryptographically derived from each node's identity, eliminating centralized IP management. The system uses QUIC as its core transport protocol, enabling persistent connections even when underlying IP addresses change — a key advantage in unstable or high-churn environments. A hierarchical certificate authority model allows precise revocation of compromised nodes without disrupting the broader network. By removing single points of failure and distributing traffic across peers, Macula aims to resist electronic warfare, DDoS attacks, and network mapping by adversaries.

0
ProgrammingDEV Community ·

DEV Community Announces Winners of Summer Bug Smash Challenge Powered by Sentry

DEV Community has revealed the winners of its Summer Bug Smash challenge, a coding competition run in partnership with Sentry that invited developers to find and fix significant bugs in real codebases. Participants submitted genuine pull requests, documented performance improvements, and shared detailed debugging stories throughout the event. Winners tackled a wide range of issues, including an 80-second browser freeze in Zulip, a silent connection leak in node-postgres, and a security flaw that made AI agent credentials predictable. The challenge drew entries spanning multiple languages and domains, including Python, Go, JavaScript, and C++. DEV praised the quality and depth of submissions, highlighting the community's strong engagement with open-source debugging.

0
ProgrammingDEV Community ·

Flutter Dev Explains When to Use PlatformView Over MethodChannel for Native UI

A mobile engineer with seven years of experience built a Flutter app embedding a native Android camera preview with live ML Kit face-detection to explore the practical limits of Flutter's native bridging options. The project, called LensBridge, revealed that MethodChannel and PlatformView are not competing alternatives but complementary tools designed for distinct jobs. MethodChannel functions as a request-response bridge suited for one-off native calls like biometric auth or NFC reading, but it cannot render a native View inside Flutter's widget tree. PlatformView is the only Flutter mechanism capable of hosting a live native surface, such as a camera preview, directly within a layout. The build also uncovered non-obvious failure modes, including a frozen last frame after calling unbindAll(), which requires explicitly toggling view visibility since the GPU buffer is not automatically cleared.

0
ProgrammingDEV Community ·

ShellCanvas: Open-Source GUI App for Managing SSH Servers Without Remote Agents

ShellCanvas is a free, open-source desktop application that provides a graphical workspace for managing remote servers over SSH. It integrates a file manager, terminal sessions, and a text editor into a single interface, with a dedicated workspace per host. The app runs locally and requires no agent installation on the remote server, using SFTP for file operations. Built with Rust, Tauri 2, and React, it is licensed under MPL-2.0 and supports Windows, Linux, and macOS. Currently in early preview, the developer is seeking real-world feedback, particularly on Linux and macOS builds and varied SSH host environments.

0
ProgrammingDEV Community ·

How to Safely Share CI Failure Logs With AI Models for OSS Debugging

Open-source contributors often share failing CI logs with AI models to get fix suggestions, but those logs can contain sensitive data such as tokens, passwords, and machine-specific file paths. A recommended workflow involves first reproducing the failure locally, saving output to a gitignored scratch directory, and running a redaction script to strip secrets before any model review. The proposed redaction script uses regex rules to remove credentials and personal path information, though it is not intended as a comprehensive security scanner. Contributors are advised to manually compare original and redacted files to catch anything the script may have missed. The core debugging order — reproduce, isolate, patch, and test — remains unchanged, with model assistance serving as an optional critique step on a clean, safe packet.

0
ProgrammingDEV Community ·

git-notes v0.1.8 Brings Decentralized Code Reviews Directly Into Git

A new open-source tool called git-notes aims to move code reviews out of centralized web platforms and into Git's native infrastructure using built-in refs/notes references. Comments, approvals, and todos are stored alongside commits in the Git object database, allowing them to sync via standard fetch and push commands. Version 0.1.8 introduces a rebase healing feature that re-anchors review comments to updated commits after interactive rebasing. The release also adds a multi-platform importer for GitLab, Bitbucket, and Jira, along with offline peer-to-peer sync over LAN or USB. A VS Code and Cursor extension providing inline review threads and gutter icons is included as well.

0
ProgrammingDEV Community ·

KryonOS Brings Open-Source GUI and JavaScript Runtime to ESP32 Microcontrollers

KryonOS is an open-source, lightweight graphical operating system built specifically for the ESP32 microcontroller, offering a desktop-like experience on embedded hardware. It integrates the Duktape JavaScript engine, allowing developers to run and update apps dynamically from an SD card or flash storage without reflashing firmware. The system features a native C++ kernel handling task scheduling and hardware management, alongside a built-in 3D rendering pipeline called Kryon3D capable of 30–60 FPS output on TFT displays. Additional capabilities include a Wi-Fi-enabled App Store, a file manager, and unified JavaScript APIs for graphics, networking, audio, and sensors. KryonOS currently has stable support for the ESP32 with an ILI9341 display, with experimental support for devices like the M5Stack Cardputer and LilyGO T-HMI.

0
ProgrammingDEV Community ·

Decision Model Jev Outpaces Claude on Task Sorting: 209ms vs 4,689ms at 1/100th the Cost

Open Walnut, a self-hosted app for managing Claude Code sessions, uses AI to automatically assign project, priority, and tier metadata to new tasks as users type them. Since September 2026, the platform supports Jev, a decision-only model from TypeSafe AI, as an alternative to Claude for these quick classification calls. In a test across 53 tasks with known projects, Jev misclassified 9 while Claude Opus 5 misclassified 12, though Opus answered more fields rather than leaving uncertain ones blank. Jev responded in a median 209 milliseconds at roughly $0.00019 per call, compared to 4,689 milliseconds and $0.025 for Claude Opus 5. Unlike traditional LLMs, Jev returns structured choice answers with confidence scores rather than generating free-form text, eliminating JSON parsing errors and reducing server load.

← NewerPage 951 of 3187Older →