SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer Builds NexisK: A Custom i386 Kernel with Bootloader and Memory Management

A developer has released NexisK v0.8.9, an experimental 32-bit x86 operating system kernel built entirely from scratch using C and NASM assembly. The project targets the i386 architecture and includes a custom two-stage BIOS bootloader, protected-mode execution, interrupt handling, and early physical memory management. NexisK uses BIOS E820 to discover available physical memory and includes foundational support for system calls and process context-switching. The developer built the kernel to directly understand the hardware-software boundary, covering how processors transition from firmware to protected mode and how interrupts and system calls function at a low level. Source code for the project, which currently has 33 commits, is publicly available on GitHub.

0
ProgrammingDEV Community ·

How to Open GPS Coordinates in Google, Apple, and OpenStreetMap Using JavaScript

Developers can open latitude and longitude coordinates directly in popular mapping platforms using simple URL patterns, without requiring a full mapping SDK. Google Maps, Apple Maps, and OpenStreetMap each support coordinate-based URLs that can be constructed and launched in JavaScript with window.open(). For Google Maps, two URL formats are available — a basic query string and a more explicit search API format. Apple Maps supports optional labels alongside coordinates, while OpenStreetMap allows developers to set a custom zoom level and place a marker at the target location. A multi-provider approach can also be implemented, letting users choose their preferred map application via simple HTML buttons and a JavaScript switch statement.

0
ProgrammingHacker News ·

Security Flaw Lets Unprivileged Android Apps Gain Root on Samsung, Xiaomi Devices

A newly disclosed vulnerability, dubbed 'OEMpocalypse', allows unprivileged Android applications to escalate privileges to root level on devices from manufacturers including Samsung and Xiaomi. The flaw appears to stem from OEM-specific customizations added to the Android operating system by these manufacturers. Researchers published their findings along with technical details on the exploit at calif.io. The vulnerability is significant because it bypasses standard Android security controls without requiring any special permissions. Affected users on devices from the named manufacturers may be at risk until patches are issued.

0
ProgrammingDEV Community ·

Monte Carlo Model Reveals Single 3.07x Market Shock Figure Masks a -32% Tail Risk

A financial modeling series found that a previously reported 3.07x amplification of a -5% market shock — turning it into a -15.4% drawdown — was accurate but incomplete, representing only the median of a wider distribution of outcomes. Running 2,000 Monte Carlo paths with variable inputs for net gamma and shock size showed drawdowns ranging up to -32.1%, with a 1-in-100 tail risk near -28%. The model also corrected a data error from an earlier installment, where a Labor Day market holiday had introduced a faulty VIX and SKEW reading labeled as September 7; the corrected date is September 4, with VIX at the 18th percentile and SKEW at the 83rd. The fix involved adding a weekend filter and aligning VIX and SKEW on their latest common trading date, though the underlying conclusion about calm volatility and expensive tail protection remained unchanged. The updated framework produces an exceedance-probability curve showing that half of all simulated paths breach -15% and one in five crosses -20%, giving a fuller picture of mechanism-driven market risk.

0
ProgrammingDEV Community ·

Developer Migrates 7 Services to Kubernetes, Then Reverses Course — Here's Why

A developer spent several weeks migrating seven self-hosted services to a K3s Kubernetes cluster, complete with ArgoCD, GitOps workflows, Kyverno policies, and SealedSecrets, all on a single shared machine. Within one afternoon, all seven services were moved back to Docker Compose, a decision the author describes as a deliberate reversal rather than a failure. The core insight driving the rollback was that every migrated service ran third-party, upstream open-source images — software the developer had not authored or iterated on. Kubernetes tooling such as network policies, CI pipelines, and admission rules offer little practical value when applied to sealed, externally maintained containers, generating integration complexity with no meaningful output. The cluster itself was not dismantled; the GitOps loop, supply-chain policy, and service mesh remain, but the decision to route existing compose services through Kubernetes was specifically undone.

0
ProgrammingDEV Community ·

How to Prevent Runaway AI API Costs in Next.js 15 Micro-SaaS Projects

Solo micro-SaaS developers face significant financial risk when AI inference calls multiply uncontrollably due to retries, flaky connections, and missing budget guardrails. A technical guide published on DEV Community outlines a four-tier architecture for Next.js 15 apps that separates user intent from model orchestration and billing logic. The approach uses Cordis, an open-source TypeScript orchestration framework, as an isolated internal boundary for deduplication, circuit breaking, and request coalescing. Developers are cautioned that Cordis APIs remain under active development and should not be treated as a production-grade financial ledger or mature queue system. The recommended pattern enforces upfront quota admission checks, hard payload limits, and audit logging at the API gateway layer to keep AI spending observable and constrained.

0
ProgrammingDEV Community ·

Dev team fixes low image rate in AI posts using commit gates and file hashing

A development team discovered that only 12% of their AI agent's scheduled Bluesky posts over a seven-day period included an image, far below the 50% target set by the owner. The agent was technically capable of attaching images but never did, as no enforcement mechanism required it to. To fix this, the team introduced a commit gate that blocks any post queue containing two consecutive text-only posts. They also restricted media file access to a single directory and required every rendered file to carry a SHA-256 hash sidecar, preventing unauthorized or mismatched files from being published. Both the commit gate and the posting system share one validation function, ensuring consistent checks before any content goes live.

0
ProgrammingDEV Community ·

How Image Tinting Works: Blend Modes and Code Explained for Developers

A developer behind PXDMD's image tools has published a technical breakdown of how image tinting works, distinguishing it from simple filters by describing it as a three-part recipe of color, blend mode, and strength. The article explains eight commonly used blend modes — including multiply, screen, overlay, and color — and their typical visual effects on photographs. It provides a concise JavaScript function using the browser's Canvas API and globalCompositeOperation to apply a color tint without sending any data to a server. The author notes that a strength value between 35–70% typically yields the best results, and advises desaturating the base image first when aiming for effects like duotones or cyanotypes. The post also includes a reference table of mood-based tint presets and points readers to PXDMD's free browser-based Image Tinter tool for a no-code alternative.

0
ProgrammingDEV Community ·

Multi-repo AI code review is a context problem, not a volume problem

Most AI code review tools marketed to large engineering teams focus on scanning speed and PR volume, but experts argue the real challenge in multi-repository environments is cross-service context. A tool that only reads changed files cannot detect when a modification in one service breaks a dependent service elsewhere in the codebase. Augment Code's 2026 selection guide identifies multi-repo and repository-level context as the minimum viable capability for enterprise-grade review tools. Industry data cited by multiple vendors suggests roughly one in three AI-generated PRs are merged, meaning the remaining two-thirds still require human review and routing decisions. Before evaluating pricing or scan limits, teams are advised to test whether a tool can trace changes across dependent repositories and transparently explain why certain PRs do or do not warrant human attention.

0
ProgrammingDEV Community ·

Single Error Label Masked Three Distinct Failures in Test Harness Reducer

A developer discovered that a test harness reducer was returning the same error label, EXEC_ARGUMENTS_MISMATCH, for three fundamentally different failure conditions across separate test fixtures. The root cause was a single try-catch block that grouped argument parsing errors, value mismatches, and comparator exceptions under one name. The fix involved splitting the parse and compare stages into separate try-catch blocks, each emitting its own distinct failure code: EXEC_ARGUMENTS_INVALID, EXEC_ARGUMENTS_MISMATCH, and EXEC_COMPARATOR_ERROR respectively. After the change, the same three fixtures now return different, accurately descriptive labels depending on which stage actually failed. A contributor described the fix as a rename rather than a redesign, noting the change touched three source files plus associated tests.

0
ProgrammingDEV Community ·

Ollama silently drops conversation history when using previous_response_id parameter

A developer discovered that Ollama's Responses API accepts the previous_response_id parameter without error but completely ignores it, causing the model to treat every request as a fresh conversation. The flaw exists because Ollama's internal request struct has no field for previous_response_id, so the JSON decoder silently discards it, and the response struct explicitly marks it as unsupported. Requests sent with previous_response_id consume the same number of input tokens as requests with no history at all, confirming the model never receives prior context. This silent failure is especially problematic in tool-calling workflows, where the model receives a function result with no surrounding context and produces plausible but incorrect responses. The issue was identified on Ollama 0.34.0 running on Debian 13 with the qwen2.5:1.5b model, and also affects the proxy path used by Codex Desktop.

0
ProgrammingDEV Community ·

Sere: New LLVM-Based Language Blends Python Syntax with Systems-Level Control

A developer has publicly launched Sere, a compiled programming language that aims to combine Python-like readability with native performance and low-level memory control. Built on LLVM, Sere compiles to native binaries and supports features such as static typing, raw pointers, enums, and pattern matching. The language includes modern developer tooling from the start, including VS Code integration, syntax highlighting, diagnostics, and a library packaging system using .slib files. Sere is designed with C and C++ interoperability in mind, positioning itself as a complement to — rather than a replacement for — existing systems languages. The project is open source and in active development, with the creator inviting community feedback and contributions via GitHub.

0
ProgrammingDEV Community ·

Developer revisits first technical test at LuizaLabs, documents Quake 3 log parser project

A developer has revisited and documented their first technical assessment for LuizaLabs, completed early in their career. The challenge required parsing Quake 3 Arena game log files to extract match statistics — including player kills and world-caused deaths — and exposing the results via a REST API. The developer structured the solution into three distinct layers: a pure parser, a Flask API, and optional MongoDB persistence, which made isolated unit testing possible. A key rule required that kills caused by the game world not be credited to any player, and instead deduct one point from the victim's score. The write-up also covers debugging issues such as the world entity being mistakenly counted as a player and Python import path errors during testing.

0
ProgrammingDEV Community ·

How to Build Auditable Compliance Notifications Without Duplicate Email or SMS Sends

Developers building B2B SaaS compliance notification systems are advised to use a message queue combined with an append-only attempt ledger rather than sending alerts directly within request handlers. Each notice should be assigned a stable idempotency key per channel, with every delivery attempt recorded before any API call is made. A small state machine with distinct states — such as pending, accepted, delivered, and permanent failure — is recommended over a simple sent/failed boolean to accurately reflect real-world delivery complexity. This approach ensures that if a worker restarts mid-process, it can resume only incomplete channel deliveries without resending already-accepted messages. The result is a structured audit trail that answers compliance review questions without requiring manual log correlation.

0
ProgrammingDEV Community ·

Developer Builds AI-Queryable Portfolio Using Angular 22 and WebMCP Standard

A developer known as 'techiewithbeard' has rebuilt their personal portfolio site to be directly queryable by AI agents using the emerging WebMCP (Web Model Context Protocol) standard. Rather than forcing AI tools to scrape HTML or interpret screenshots, the portfolio exposes structured tools that allow agents to retrieve skills, projects, and experience data in real time. The project is built on Angular 22 with zoneless change detection, enabling smooth tool queries without unnecessary UI overhead. Visitors can also test the agent interface manually via browser DevTools using exposed console commands. The developer argues that as AI agents increasingly research candidates on behalf of users, machine-readable portfolios built on open standards like MCP will offer a significant advantage over static HTML or PDF resumes.

0
ProgrammingDEV Community ·

Developer Builds Hybrid AI-Human Workflow to Translate Church Messages Weekly

A developer created a hybrid AI workflow to translate six Chinese daily spiritual messages into English for church publication each week. The system uses Claude to handle translation and contextual reasoning, producing structured JSON output that follows strict formatting rules — including using NASB 2020 Bible verses and leaving hymns untranslated. Python then takes over to deterministically insert the translated content into a PowerPoint template, handling tasks that require no language judgment. A human reviewer remains part of the process, since visual formatting in PowerPoint still needs manual verification. The project's key insight is that effective AI agents may work best as hybrid systems, combining LLM reasoning with conventional code and human oversight rather than pursuing full automation.

0
ProgrammingHacker News ·

Developer builds Chrome extension to highlight posts by creative friend Greg

A developer has created a Chrome extension dedicated to flagging content posted by their friend Greg on Hacker News. The tool detects posts either made by Greg or linking to his personal website and its subdomains. The motivation came from the developer repeatedly discovering Greg's projects by chance, only after noticing the URL. Greg is known for building fun, inventive projects such as an IKEA complexity index and an interactive bouncing simulation called Boing. The extension was shared publicly in hopes that others would also install it and follow Greg's work.

0
ProgrammingDEV Community ·

Nvidia Eyes $10B Stake in Anthropic's $100B IPO Amid AI Funding Surge

Nvidia is reportedly considering an investment of up to $10 billion in Anthropic's upcoming IPO, which aims to raise as much as $100 billion at a target valuation of around $2 trillion, according to a Reuters report cited by Bloomberg on September 11, 2026. If completed at that scale, the listing would rank as the largest IPO in history, potentially surpassing SpaceX's record. Industry observers note that Nvidia has used similar anchor-investment strategies before — notably with OpenAI — with the expectation that a significant portion of invested funds flows back to Nvidia through chip purchases. Neither Nvidia nor Anthropic has officially confirmed the deal, and Reuters emphasized that discussions remain ongoing and subject to change. The planned IPO is expected to begin marketing as early as mid-October 2026, with Anthropic aiming to complete the listing before the U.S. midterm elections in November.

0
ProgrammingDEV Community ·

25 Fields Medalists Warn AI Is Harming Mathematics by Skipping Scientific Process

On September 11, 2026, twenty-five Fields Medal recipients — holders of mathematics' highest honor — released a joint statement titled 'A Severe Misalignment of AI in Mathematics.' The statement does not dispute AI's growing capability to solve complex problems, but criticizes the rush to announce results without proper documentation, attribution, or community discussion. The signatories argue that landmark math problems serve as scientific milestones only when solutions come with transferable methods and ideas, not just correct answers. The statement followed OpenAI's September 8 announcement that roughly 10,000 AI agents solved the 90-year-old Navier-Stokes problem in 88 hours, which itself triggered a credit dispute involving mathematicians Tristan Buckmaster and Levent Alpöge. Fields Medalist Terence Tao noted the statement grew from internal discussions that week, acknowledging there was insufficient time for broader consultation before publication.

0
ProgrammingDEV Community ·

TensorCircuit-NG Offers Multiple Methods to Simulate Quantum State Evolution

Simulating how quantum states evolve over time is a core challenge in quantum computing, requiring trade-offs between memory, accuracy, and computational cost. TensorCircuit-NG supports several distinct approaches, including exact diagonalization, Trotter decomposition, TEBD, and ODE-based integration. Exact diagonalization stores the full Hamiltonian and is efficient for many time points but becomes memory-prohibitive at scale, with a 16-qubit dense Hamiltonian alone requiring around 64 GB. Trotter decomposition avoids building the full Hamiltonian matrix by breaking evolution into small time steps, while TEBD represents quantum states as matrix product states to enable linear memory scaling for low-entanglement one-dimensional systems. ODE-based methods directly integrate the Schrödinger equation and are especially suited for time-dependent Hamiltonians, with step sizes often determined adaptively by the numerical integrator.

← NewerPage 1356 of 3312Older →