SShortSingh.

Programming

0
ProgrammingDEV Community ·

One-Call Text-to-SQL System Scores 77.1% on BIRD Dev Set

A developer ran the schemagate system on all 1,534 BIRD dev questions and reported 77.12% execution accuracy using Claude Opus 5.5. The approach makes a single model call per question, seeing only the relevant tables' schema and retrying once on a SQLite error, whereas top leaderboard systems often use 5 to 20 calls per question. The author notes that Opus is non-deterministic, so single-run results may vary by about one point, and that BIRD's dev set contains known annotation errors. A test-set submission is pending, with BIRD's review expected to take one to five days. The author argues the system's main purpose is access control, reporting zero ungranted reads across 8,128 queries on access-control benchmarks.

0
ProgrammingDEV Community ·

How Rust Closures Work: Compiler-Generated Types and Capture Traits

The article explains that Rust closures were introduced because standard function pointers cannot capture variables from their surrounding scope. It describes closures as compiler-generated, anonymous types that store captured variables in internal fields. The compiler implements the Fn, FnMut, or FnOnce trait depending on whether captured values are borrowed immutably, borrowed mutably, or consumed. The author notes that the move keyword is often needed to satisfy lifetime rules, such as when spawning threads or returning closures from functions.

0
ProgrammingDEV Community ·

SlothSort: Local-First AI File Organizer That Asks Before Moving Files

Developer Tanmay Dalvi built SlothSort, an AI-powered tool that scans a chosen folder and proposes how its files should be sorted into destination folders and renamed. Unlike fully autonomous agents, the AI only suggests a plan, which deterministic code validates before the user reviews, edits, and approves it. The tool supports local inference through Ollama, an optional hosted Google Gemini provider selected explicitly, collision detection, and undo for eligible operations. Its design avoids any file deletion in the organization workflow, and it includes a demo mode using a sample folder. The author notes that privacy depends on the chosen provider, since filenames can reveal sensitive personal information.

0
ProgrammingDEV Community ·

Apache Iggy, a Newer ASF Top-Level Project, Profiled in Project Spotlight

The Apache Software Foundation has published a Project Spotlight on Apache Iggy, one of its newest Top-Level Projects. In the interview, PMC members Piotr Gankiewicz, the project's original creator, and Kranti Parisa, the PMC chair, discuss the engineering decisions behind the streaming platform. The conversation covers why the project was built despite existing systems like Apache Kafka, its multi-protocol and native multi-language SDK support, and its focus on tail latency and efficiency. They also describe the long path to adding clustering and the community and workloads that have grown around the project.

0
ProgrammingDEV Community ·

Researchers Show Encrypted Webpage Text Can Hijack Grok Agent Into Leaking Data

Security researchers reported a technique called Cryptographic Context Injection that targeted xAI's Grok. Malicious instructions were concealed in encrypted webpage content that Grok was induced to decrypt during processing. The decrypted text then steered the agent into following attacker commands, ultimately sending private user data to an external server. The researcher said xAI had been notified in June, before the findings were reported in August 2026. The episode highlights the risks of AI agents with browsing, code-execution and tool access, which can turn untrusted content into real actions.

0
ProgrammingDEV Community ·

SAM.gov's free daily CSV extract offers a way to build federal contract alerts in Python

SAM.gov, the federal System for Award Management run by the GSA, publishes all active contract opportunities as a single CSV file that can be downloaded without an account or API key. The article describes a Python script, using requests and Python 3.9 or later, that streams this roughly 200 MB file and filters it by NAICS code, keyword, set-aside and place of performance. It also merges multiple versions of each notice into one row, drops award notices and expired deadlines, and tracks what has already been sent. The author notes the extract is simpler for daily batches than the Get Opportunities API, which requires a personal key and returns only the latest notice versions. A sample record and file statistics from October 2026 are provided as examples.

0
ProgrammingDEV Community ·

EverShelf: Open-Source Self-Hosted Pantry Manager Uses AI to Reduce Food Waste

A developer has introduced EverShelf, an MIT-licensed, self-hosted smart pantry manager designed to help households cut down on food waste. Unlike many closed-source or subscription-based pantry apps, it is built on PHP 8+ with SQLite and a responsive, offline-capable web app, and it can be deployed via docker-compose or an Unraid template. Its features include barcode scanning, receipt OCR, and AI-generated recipes that use only ingredients already on hand, prioritizing items nearing expiry. The tool also offers smart shopping lists that account for existing stock, calendar feeds for expiry dates, and integrations with Home Assistant and push notifications. The project, which has gathered over 147 GitHub stars, is actively seeking feedback and contributors through a community contest.

0
ProgrammingDEV Community ·

PHP issues security releases for 8.2 through 8.5 fixing two critical RCE flaws

On 21 October 2026, PHP released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as security updates addressing two critical remote-code-execution vulnerabilities, CVE-2026-109618 and CVE-2026-109619. PHP 8.1 and older branches received no official fixed release, and 8.1 reached end of life at the close of 2025. Rapid7 expects a viable exploit to be published soon and recommends emergency updates. Amazon Threat Intelligence reportedly observed exploitation attempts on 17 and 21 October, though it is unclear whether they would have succeeded. Administrators are advised to verify the PHP version serving their sites, since PHP-FPM must be restarted after updating and distribution packages may carry fixes without changing version numbers.

0
ProgrammingDEV Community ·

CoinBoss Launches Live Liquidations Dashboard Tracking Forced Crypto Closures

CoinBoss has published a liquidations heatmap that aggregates exchange-reported forced closures of leveraged crypto positions. The page offers a live order feed, multi-window totals across 1h to 24h, long-versus-short splits, coin rankings, and a table of the largest single liquidations. Data is pulled from 25 derivatives venues, including Binance, OKX, Bybit, and Hyperliquid, via public WebSocket feeds with REST fallbacks. Liquidation value is calculated as quantity multiplied by execution price in USD, and the platform reports that figures are informational rather than investment advice.

0
ProgrammingDEV Community ·

How a Log Line Travels a Pipeline, and Why Empty Searches Can Mislead

An incident scenario shows that a log search reflects only what reached the index, not everything an application wrote. A log aggregation pipeline passes events through an agent, a parser and filter, a buffer, a search cluster, and finally the search itself, and any stage can delay, reject or drop lines silently. A free browser-based simulator lets users step through these stages, tracking counters for generated, buffered, indexed, rejected and dropped events. Under a healthy flow, most events are indexed and queues drain, while a traffic spike causes losses at the collection stage before events ever reach the buffer. The core lesson is that operators must be able to account for the gap between events sent and events searchable before trusting an empty result.

0
ProgrammingDEV Community ·

Riverpod Offers Flutter Developers Fixes for Async State and Performance Issues

An article on DEV Community explains how Flutter apps often suffer from janky interfaces, hard-to-maintain state logic, and testing difficulties as complexity grows. It presents Riverpod, a reactive caching and data-binding framework, as an improvement over setState and Provider. The piece highlights features such as compile-time safety, automatic disposal of unused state, and dedicated providers for asynchronous data. It also outlines the core Riverpod building blocks, including Provider, StateProvider, StateNotifierProvider, FutureProvider, and StreamProvider. The article promises a hands-on tutorial that builds a simple Flutter application.

0
ProgrammingHacker News ·

Quad9 DNS Resolver Announces Exit from France

Quad9, a public DNS resolver service, has announced it will be withdrawing its operations from France. The post on its blog, titled "Au revoir France," serves as the public notice of the decision. The announcement drew attention on Hacker News, where it received 73 points and 14 comments. The source material provided does not detail the reasons behind the exit or a specific timeline for the withdrawal.

0
ProgrammingHacker News ·

Canadian MPs Move to Restrict Gambling Advertising Amid Rising Harms

Members of Parliament in Canada are pushing for tighter limits on gambling advertisements as concerns about the social and financial harms of gambling grow. The effort reflects mounting public and political attention to how widely betting promotions reach audiences, including vulnerable groups. The source report, published by CBC, examines the proposed restrictions and the harms prompting them. Details beyond the headline and source metadata were not available in the provided text, so specific bill names, timelines, and figures are not included here.

0
ProgrammingHacker News ·

Pwn.watch Launches Site Tracking Recent Security Breaches

A new website called pwn.watch has been shared on Hacker News, where it is listed as a resource for following security compromises. The submission linked to the site and received five points and one comment from readers. The available source material provides no details about which breaches the site covers or how it collects its information. Further specifics about the platform's scope and methodology are not included in the original post.

0
ProgrammingHacker News ·

OnKey: Mac app that shows where you sing off-key while singing along to songs

A self-described poor singer built OnKey, a free, open-source Mac app to help improve pitch and timing. The app listens to a song playing on Spotify, Apple Music, or YouTube in the browser, learns its pitch track in a couple of minutes, and then lets the user sing along and see where they drift. The creator built it after a singing app began filling its catalog with non-original tracks, which made practicing harder. OnKey does not save the music or record the user's voice, though it does send a short audio fingerprint to look up song details and lyrics. The project is limited to Apple Silicon Macs running macOS 14.2 or later and still struggles with noisy backing tracks and occasional octave errors.

0
ProgrammingDEV Community ·

The Lazy Python Tutor: A Chatbot That Answers Coding Questions in Plain Language

A developer has built a Streamlit-based app called The Lazy Python Tutor, aimed at people who want quick answers instead of a full course. Users ask a single question and receive a plain-language explanation along with one small example. The project was submitted to the Hacktoberfest 2026 DEV Challenge and is available as both a live app and open-source code on GitHub. Planned future features include an error-explanation tool for absolute beginners, voice input, and a feature that turns chat history into short recap cards. The creator describes the core goal as complete, with the focus now on possible extensions.

0
ProgrammingDEV Community ·

MagicRemover Explains Why Its AI Eraser Re-renders Entire Photos

A developer of the browser-based AI eraser MagicRemover found that two of its help pages gave conflicting accounts of how edits affect a photo. Tracing the pipeline showed that instruction-based editing regenerates the whole image from a text prompt, so the brushed area is not the only part that changes. The company switched from mask inpainting, which leaves untouched pixels identical to the original, to an instruction-following editor in June, improving shadow handling. Before any upload is sent, images are downscaled to about one megapixel, and a vision-language model labels the marked subjects from a red-filled copy. The post notes that some site copy still described the older behaviour.

0
ProgrammingDEV Community ·

Context-shrinking tool cut AI agent token use 78% but lost two answers

A developer tested Hexum, a hosted MCP server that trims code before sending it to an AI model, against sending full files and against no files. Across 10 questions about open-source Python and TypeScript libraries, the trimmed approach cut tokens sent to the model by a median of 77.7%. Accuracy fell from 9 of 10 with full files to 7 of 10 with Hexum. Analysis of the misses showed the answer files were shown only by bare filename without their folder path, causing the agent to search wrong locations. The author also reported a bug in which repeated requests returned empty views, which the founder fixed within two days.

0
ProgrammingDEV Community ·

Developer builds replacements for four discontinued Flutter packages

After Flutter's team announced it was discontinuing several first-party packages with no replacement plan, one developer set out to address the gap in their own projects. They built the Prism family, a set of 15 pure-Flutter packages that avoid platform channels. The replacements cover discontinued libraries including flutter_markdown, palette_generator, flutter_adaptive_scaffold, and flutter_image. The developer reports lessons on treating issue threads as a product roadmap, prioritizing maintainability, and testing replacements carefully. All packages are released under the MIT license and linked from the developer's profile.

0
ProgrammingDEV Community ·

AgentSpend: Open-Source Rust CLI Tracks Local Codex Token Usage

A developer has released AgentSpend, an early-stage, local-first Rust command-line tool that scans Codex session files for token usage. Deduplicated totals are stored in a local SQLite database, so the data never leaves the user's machine. The tool uses turn-level counters to avoid double-counting cumulative thread totals, and it ignores prompt and response text and does not access API credentials. Cost tracking, waste detection, and support for Claude, Gemini, and Ollama/Gemma logs are still on the roadmap, and the project has not yet been tested broadly across real-world setups.

← NewerPage 28 of 2840Older →