SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer builds open-source browser extension to predict Claude AI usage limits

A developer created a free, open-source browser extension called Claude Usage Companion after being unexpectedly cut off mid-task by Claude's session limit with no prior warning. Claude's paid plans enforce both a 5-hour session window and a 7-day weekly cap, shared across claude.ai and Claude Code, with usage data visible in settings but no real-time depletion forecast. The extension intercepts internal API calls and server-sent events from Claude's chat stream to gather live utilization data without scraping page HTML, making it more resilient to frontend redesigns. Using two Chrome scripts — one in the page's main world to capture network data and one in an isolated world to relay it — the tool calculates a projected time when the session limit will be reached at the current usage pace. All data remains on the user's device, and the extension displays a single actionable estimate such as 'session runs out at 3:50 PM' so users can adjust their workflow before hitting the wall.

0
ProgrammingDEV Community ·

Human Atlas maps body-feeling idioms across 21 languages to sourced medical signals

A web tool called Human Atlas allows users to type colloquial body-feeling expressions in multiple languages — such as the Portuguese 'frio na barriga' or German 'Schmetterlinge im Bauch' — and receive the same ranked, sourced medical information as the equivalent English phrase 'butterflies in my stomach'. The platform currently covers 89 phrases across 21 languages, linking to 11 distinct body signals, with every phrase traced to a specific Wiktionary entry revision as its source. Each idiom functions only as a named alias for an existing signal and cannot create new causes or remove medical red flags, which remain visible regardless of the language used to search. Red-flag warnings have been translated into Portuguese, Polish, German, French, Spanish, Italian, and Dutch, though these have not yet been reviewed by native speakers. The developer reviewed major symptom checkers and medical databases and found no existing tool that treats everyday idioms as sourced aliases of body signals while also displaying cross-language equivalents with dictionary citations.

0
ProgrammingDEV Community ·

Engineer Uses Claude AI to Identify JNI Memory Leak via Core Dump Analysis

A Lead QA Engineer used Anthropic's Claude Code AI tool to diagnose a persistent native memory leak in a high-throughput Java-C system connected via a JNI bridge. Standard diagnostic approaches failed: Valgrind caused the server to stall under load, and intrusive runtime monitoring by Claude itself crashed the environment. The team pivoted to an interval-based differential core dump strategy, using GDB to capture non-destructive memory snapshots every 30 minutes without halting the application. Claude analyzed the memory deltas across snapshots and identified a specific native C cache structure whose object count grew indefinitely without being released. The analysis pointed to a race condition in the production codebase as the root cause of the linear RSS growth observed in Grafana telemetry.

0
ProgrammingDEV Community ·

One developer built a 38.5M-domain open search engine on a 2 GB server

A solo developer launched cl0q, a free, open-source search engine that does not log searches or require accounts, beginning its first crawl in April 2025. Running on a modest 2 GB VPS, the project grew to index 38.5 million domains and 24.8 million pages, with 8.5 million domains added in June alone. Key challenges included avoiding subdomain traps, managing chronic disk space shortages, and resolving database contention between the crawler and search functions. Certificate Transparency logs proved a valuable discovery tool, surfacing roughly 1,700 new domains per minute at peak. The developer's long-term target is 100 million domains, with storage now offloaded to a remote host connected via Tailscale.

0
ProgrammingDEV Community ·

Developer Builds Multiplayer Browser-Based Banking Simulation Game

A developer has created a multiplayer banking simulation game as their second web project, hosted on GitHub under the name Banksim. Players can earn income by purchasing and upgrading branches, with each branch costing 700,000 in-game currency and doubling in price with each new acquisition. The game features a tradable INR currency system where banks pay 1% on outflows and receive 1.5% on inflows for every transaction. A lending mechanic allows players to issue loans to or deposit funds in other player-run banks, making the economy fully player-driven. The project is still in active development, and the creator is seeking community feedback and reviews.

0
ProgrammingDEV Community ·

Power BI Data Modelling Explained: Star Schemas, Relationships, and Best Practices

Data modelling in Power BI involves organising data into fact tables and dimension tables to enable meaningful business analysis. A star schema places one central fact table surrounded by dimension tables, offering simplicity and easy DAX calculations, while a snowflake schema further breaks dimension tables into smaller ones to reduce redundancy. Relationships in Power BI link tables without physically combining them, allowing analysis across multiple tables using cardinality to define how rows in one table correspond to rows in another. Primary and foreign keys are essential to maintaining accurate relationships between tables. Choosing between star and snowflake schemas depends on factors such as data complexity, hierarchy levels, and the importance of minimising duplication.

0
ProgrammingHacker News ·

European EV Sales Surge 52% as Gasoline Prices Hit Record Highs

Electric vehicle sales in Europe have jumped 52% as gasoline prices reach record levels of around $10 per gallon. High fuel costs appear to be a significant driver pushing consumers toward electric alternatives. The trend reflects a broader shift in European consumer behavior amid sustained pump price increases. The data, reported in late September 2026, suggests that fuel price pressure may be accelerating the region's transition away from combustion engine vehicles.

0
ProgrammingDEV Community ·

Vercel Labs Open-Sources ScriptC, an AOT Native Compiler for TypeScript

Vercel Labs has open-sourced ScriptC, an experimental compiler that converts TypeScript and JavaScript into native machine code, readable C, LLVM IR, and WebAssembly without requiring Node.js or a V8 runtime. The project addresses longstanding pain points of TypeScript deployments, including cold-start latency, large binary sizes, and high baseline memory usage. ScriptC uses the official TypeScript compiler for parsing and type checking, then progressively lowers the abstract syntax tree through multiple compiler tiers. Developers can inspect intermediate compilation stages using the --emit flag, which exposes outputs ranging from typed JSON IR to native assembly. Standard Node.js APIs such as node:http are compiled directly to native system calls, enabling binaries that start in microseconds with minimal memory overhead.

0
ProgrammingDEV Community ·

How to Remove Audio from Video Without Re-Encoding Using FFmpeg

Removing audio from a video file does not require re-encoding; it is a container-level operation where the audio stream is discarded while the video stream remains untouched. Modern video containers like MP4, MOV, and MKV store video and audio as independent streams, making it possible to drop the audio track without decoding or altering the video. Using FFmpeg, the command 'ffmpeg -i input.mp4 -c copy -an output.mp4' performs this operation at disk speed, completing a two-hour file in roughly ten seconds on an SSD. Omitting the '-c copy' flag causes FFmpeg to default to re-encoding, which is significantly slower and degrades video quality unnecessarily. The same operation can be performed in a browser using ffmpeg-wasm via WebAssembly, keeping the file entirely on the user's machine.

0
ProgrammingDEV Community ·

Developer Builds Two VS Code Extensions Using Open-Source Framework vsceasy

A developer has built two functional Visual Studio Code extensions using vsceasy, an open-source CLI framework that scaffolds extensions with React webviews, typed RPC bridges, and file-based routing. The framework eliminates manual editing of VS Code's contributes block by automatically registering commands, panels, menus, and tree views when files are added to designated folders. One of the extensions, Code Trainer, teaches algorithms by having users type solutions as ghost text, while tracking WPM, accuracy, and streaks using a built-in mini-ORM. The extension also integrates a local Ollama language model to generate session summaries and provide coaching through a shared chat panel. vsceasy is publicly available via npm and aims to reduce the boilerplate typically required when building VS Code extensions.

0
ProgrammingDEV Community ·

Black Rectangle Over PDF Text Is Not Redaction — Here Is What Actually Works

Placing a black rectangle over sensitive text in a PDF does not remove the underlying data, which remains extractable via copy-paste or Ctrl+F. A slightly better method replaces text bytes in the content stream with placeholder characters, but this approach can leak the original text through kerning tables and fails with ligatures or shared page objects. The only reliable redaction method is to render each page as a raster image, paint over the sensitive areas, and rebuild the PDF without any text layer. This eliminates all extractable text, though it sacrifices file size efficiency and screen-reader accessibility. A simple verification test — selecting all text, copying it, and searching for redacted terms in a plain-text editor — can confirm whether a redaction is genuine or merely decorative.

0
ProgrammingDEV Community ·

TypeScript's 'satisfies' Operator Catches Bugs That 'as' Silently Ignores

TypeScript's 'as' keyword performs a type assertion that overrides compiler inference without verifying whether an object actually meets all required type conditions, allowing silent runtime errors to slip through. Introduced in TypeScript 4.9, the 'satisfies' operator validates an object against a type at compile time rather than suppressing compiler checks. Unlike a standard type annotation, 'satisfies' also preserves narrow literal types, giving developers more precise autocompletion and stricter error detection in IDEs. A practical example shows that using 'satisfies' on a color palette config correctly flags non-existent property access, while 'as' would let such mistakes pass unnoticed. Developers are advised to reserve 'as' for cases where the compiler genuinely lacks context, such as DOM queries, and prefer 'satisfies' for object literals and configuration objects.

0
ProgrammingDEV Community ·

Researcher Publishes Algorithm for Parallel Tree Pattern Matching via Diophantine Equations

A researcher has published a paper on a new tree pattern matching algorithm, available on Zenodo. The method decomposes a pattern tree by treating unresolved variables as connections between different tree sections, identifying independent parts. Each independent part maps to its own system of Diophantine equations, allowing parallel matching across sections without interdependence. This design also simplifies backtracking, enabling the entire algorithm to be written as a straightforward recursive function.

0
ProgrammingDEV Community ·

Dev Tool Gets Folder Selection, Undo Support, and Command System in Latest Update

A developer has shared a monthly progress report detailing several new features added to their project. Updates include the ability to select a folder or project before starting work, improved mathematical element support, and a cursor-aligned element selector. Productivity features such as Ctrl+Z/Y undo-redo, a quick-input command system, a project structure window, and a scroll bar were also introduced. The developer is currently building out a formula system, with core components already in place. The next planned milestone is a project compiler that will integrate formulas, algebraic rules, and parsing rules.

0
ProgrammingDEV Community ·

AI Writes Entire Article Using Its Own Clichés to Mock AI Writing Tropes

Developer Keith published an unedited, single-prompt article generated by Claude, the AI assistant, as a satirical demonstration of common AI writing habits. The piece was inspired by a group chat where consultants mocked consulting jargon, prompting Keith to revisit a backlogged experiment from September. Claude was instructed to write a collaborative reflection using as many AI writing tropes as possible, drawing from existing lists of overused phrases. Keith stressed that he normally edits AI output heavily, guided by colleagues who emphasize keeping humans in the lead rather than outsourcing the thinking. The experiment was shared to illustrate why human oversight in AI-assisted writing remains essential.

0
ProgrammingDEV Community ·

Why EU Businesses Should Keep AI Inference Compute Inside Europe

Most AI inference workloads — the compute that runs every time a chatbot responds or an image is generated — are processed on servers in the United States, even for European clients. The US CLOUD Act of 2018 compels American companies to hand over data to US authorities on request, regardless of where servers are physically located. The EU-US data transfer legal framework has already been struck down once and its current replacement faces fresh legal challenges, making reliance on it risky for GDPR-compliant businesses. Sovereign AI addresses this by keeping compute, models, and contracts entirely within European jurisdiction, eliminating CLOUD Act exposure and ensuring GDPR-native data handling. Providers offering European-routed inference APIs are emerging as a practical alternative for businesses handling sensitive customer data such as medical queries, property images, or voice recordings.

0
ProgrammingDEV Community ·

Study finds LLM accuracy drops more from missing punctuation than heavy typos

A developer ran roughly 4,900 prompt sessions across 12 AI models — including Claude, Gemma, Llama, and Mistral variants — to test how spelling errors and punctuation breaks affect response accuracy. Models like Claude Opus 5 and Fable 5.1 scored 100% even when 70% of words were misspelled, and handled non-native grammar without any accuracy loss. However, a single missing or misplaced punctuation mark with perfect spelling caused the same top models to drop by 8 to 23 percentage points. The most damaging error was a missing closing quotation mark, which caused models to miscount word occurrences by conflating quoted and unquoted text. The findings suggest users should prioritize structural punctuation accuracy over spelling correctness when writing AI prompts.

0
ProgrammingDEV Community ·

Engineer Builds Jenkins Pipeline That Gives Each Pull Request Its Own Postgres Database

A software engineer has built an open-source Jenkins CI/CD pipeline that automatically provisions a dedicated Postgres database branch for every pull request, using Databricks Lakebase's copy-on-write cloning technology. Each branch is an instant, full-data clone of production, allowing migrations and tests to run against real rows rather than empty schemas. When a pull request is merged to main, the pipeline pauses at a mandatory DBA approval gate before any changes are applied to production. The entire workflow is driven by portable shell scripts, making it compatible with other CI platforms such as GitHub Actions, GitLab CI, and Azure DevOps. The project code and a walkthrough video are publicly available for teams looking to eliminate shared staging database bottlenecks.

0
ProgrammingDEV Community ·

Dev Releases Open-Source Library to Auto-Map API Validation Errors in Blazor WASM Forms

A developer has released an open-source .NET library designed to eliminate repetitive code for handling server-side API validation errors in Blazor WebAssembly applications. The library maps RFC 9457 Problem Details errors directly to native Blazor FieldIdentifier instances through a custom HttpClient, supporting nested model paths, arrays, and custom indexers. It integrates with Blazor's EditContext and ValidationMessageStore, and includes an opt-in Disambiguate attribute to resolve parameter conflicts across binding sources. The library is extensible via dependency injection, allowing developers to customize error binding and object access behavior. It is publicly available on NuGet with full documentation, and the author is seeking community feedback and bug reports.

← NewerPage 859 of 3174Older →