SShortSingh.
0
ProgrammingDEV Community ·

Team Proposes External Long-Term Memory Layer to Give AI Coding Assistants Continuity

A development team has proposed an external long-term memory framework to address the stateless nature of large language models, which often lose track of project context between prompts. The concept is aimed at helping AI developer tools retain knowledge of code dependencies, system schemas, and past optimization goals to reduce hallucinated or incompatible code. The design stores project configurations in a persistent layer separate from the prompt window, operating in three phases: recall, context injection, and commit. A sample Python class illustrates how past workspace state could be retrieved, though it currently only emulates database behavior. Future plans include secure decentralized storage and chronological and semantic sorting to prioritize relevant files and deprioritize outdated ones.

0
ProgrammingDEV Community ·

Six LLM debugging scenarios for 2026 interviews and how to structure answers

Applied LLM interviews increasingly open with a production symptom, such as truncated answers, a sudden cost spike, or overnight behavior changes, rather than conceptual questions. The recommended answer structure is to list likely causes, explain how to distinguish between them, and then state what to change. Among the scenarios, the guide covers the "Lost in the Middle" effect, where information placed mid-context is recalled poorly, and advises checking stop reasons such as length or max_tokens before guessing. It also recommends bucketing malformed-output failures before applying fixes, and breaking cost down by requests, tokens, and price to find the driver. Finally, it notes that prompt caching requires an exact prefix match and a live cache within its lifetime, and that unpinned model aliases can change behavior silently.

0
ProgrammingDEV Community ·

Alice & Bob Estimates 23,000 Qubits Could Break RSA-2048, Pending Hardware Proof

French quantum firm Alice & Bob estimates that Shor's algorithm could factor RSA-2048 in about 3.14 days using roughly 22,593 physical qubits on its cat-qubit architecture. The figure appeared in an IACR ePrint preprint posted October 28 and was announced by the company the following day. It is a sharp drop from the company's own earlier estimates of about 350,000 in 2023 and under 100,000 in 2024, and about 40 times lower than a 2025 Google Quantum AI estimate. The lower count relies on hardware-level suppression of bit-flip errors and more efficient error-correcting codes. The estimate assumes essentially no bit flips during computation, and if flips occur about hourly the requirement roughly doubles, while the paper remains unreviewed and describes a machine that has not been built.

0
ProgrammingDEV Community ·

How FinControl Handles Bank Statement Imports: Encodings, OFX, and Duplicates

The developer behind FinControl, a Next.js and Supabase personal finance app, found that bank statement import was the most time-consuming feature to build. Banks export files inconsistently, with differing character encodings, OFX versions, number formats, and date conventions. The approach described includes falling back from UTF-8 to Windows-1252 for decoding, parsing OFX 1.x and 2.x without a full XML parser, and inferring day-first or month-first dates from the whole file. Duplicate detection keys on date, type, amount in cents, and normalized description, counting occurrences so identical same-day transactions are not wrongly skipped. All processing runs in the browser, and users review an editable preview before anything is saved.

0
ProgrammingDEV Community ·

Tutorial Builds Linked ASP.NET REST API and MVC Client for a Restaurant Dish Database

A DEV Community tutorial walks through building two cooperating ASP.NET applications around a restaurant food menu database. The first is FoodMenuApi, a REST API that supports listing, filtering, creating, updating and deleting dishes, and returns a 409 Conflict when a dish still appears on a restaurant menu. The second is FoodMenuClient, an ASP.NET Core MVC website that consumes the API through HttpClient so users can manage dishes via web forms. The guide also covers EF Core scaffolding, a repository pattern, DTOs, CORS, and a simple JavaScript page calling the API directly. The API runs on port 5050 and the website on port 5060, backed by a SQL Server database defined in an accompanying script.

0
SpaceNASA ·

NASA Tests Autonomous Landing Tech on Drone, Showing Promise for Planetary Missions

NASA has shown that its technology can help spacecraft navigate on their own to safe landing spots on the Moon and other planets. On August 27, an Alta-X drone fitted with the agency's SPLICE guidance, navigation, and control payload carried out simulated lunar descent and landing maneuvers. The test demonstrates a capability intended to let future landers avoid hazards without relying entirely on ground control. The results point to potential improvements in precision landings for upcoming planetary missions.

0
ProgrammingDEV Community ·

Probat: a single-file HTML tool for sharing and verifying math proofs in Pyodide

A developer has released Probat, a self-contained HTML file that runs Python through Pyodide in the browser. The tool is designed for sharing mathematical works and proofs. It supports cryptographic SHA-256 attestation, shareable URLs for frozen files, and the ability to correct and re-send received files. The author notes that it runs on the user's browser, so it is not suited to heavy computation, but it is intended for teaching and exchange. The project's source code is available on GitHub.

0
ProgrammingDEV Community ·

Four mistakes to avoid when building a Claude Code security hook

The author describes building a PreToolUse hook for Claude Code that blocks secrets from being written by the agent. A hook receives each tool call as JSON and can allow or deny it, and the matcher must include Bash so the agent cannot bypass file checks. Common pitfalls include printing an explicit allow for clean calls, mistaking exit code 1 for a blocking error when it is only non-blocking, and letting the agent self-exempt via inline allow comments. The author also warns against failing open on oversized input, capping input at 16 MiB, and avoids echoing the real secret in block messages by showing only a masked form. These lessons were packaged into StagedSec, an early-stage free, local, open-source tool, with known limits such as undetected split or encoded secrets.

0
ProgrammingDEV Community ·

Rails 8.0.5.2 and 8.1.4.1 patch 21 security issues, including a critical ImageMagick flaw

Rails released versions 8.0.5.2 and 8.1.4.1 today, fixing 21 security issues ranging from one critical to three low severity. The most severe flaw, rated 9.8 out of 10, lets an unauthenticated attacker write arbitrary files on the server through a crafted file upload handled by ImageMagick. A second high-severity issue can expose the app's secrets when Active Storage uses local disk storage. Apps that accept untrusted uploads and use ImageMagick or certain video and audio tools are most at risk, and the advisory lists configuration checks to see if they are affected. Security support for Rails 8.0 ends November 7, and the maintainers recommend moving to 8.1, which is supported until October 10, 2027.

0
ProgrammingDEV Community ·

Developers Propose Vector Memory Layer to Give AI Coding Agents Persistent Context

Generative AI coding tools are stateless, so they lose a project's context, database choices, and past deployment issues whenever a new session starts. A development team has outlined a persistent agent memory architecture to address this gap. The design inserts a contextual lookup layer that fetches relevant historical decisions, feeds them into the language model's prompt, and writes new changes back to a persistent cache. The authors also note that scaling such a system will require high-throughput caching or embedded databases, along with temporal relevance sorting to discard outdated parameters. The concept is presented as a conceptual model with a simplified code interface rather than a finished product.

0
ProgrammingDEV Community ·

Path-specific Copilot custom instructions: how to scope rules to files in a repo

Teams often put every Copilot rule into one repository file, so unrelated guidance applies everywhere and the output gets noisy. The article proposes splitting rules into small files under .github/instructions/, each scoped to matching files via glob patterns like applyTo. It explains the three kinds of repository instructions: repository-wide, path-specific, and agent files such as AGENTS.md. Support differs by environment, since path-specific files are not read by every Copilot surface, such as VS Code code review or the JetBrains chat. The author demonstrates a setup for a fictional TypeScript bike-rental repo and includes a script that detects broken glob patterns.

0
ProgrammingDEV Community ·

Where the Download Button Goes: Small UX Decisions on a Tool Homepage

When I rebuilt my video downloader as plain PHP pages, I spent more time on where the Download button sits than on almost anything else. That sounds wrong until you remember what a single-purpose tool site is: one input, one button, one result. If any of those three is in the wrong place, the whole site feels broken. Here are the small decisions I ended up with, and the mistakes that forced each one. My first layout put the URL field and the button side by side, like a search box.

0
ScienceWIRED ·

Colossal CEO Ben Lamm Defends Working With Trump Administration on Biodiversity DNA Effort

Colossal Biosciences cofounder and CEO Ben Lamm has discussed his company's engagement with the Trump administration, as reported by WIRED. According to the article, Lamm played a role in persuading the administration to back an initiative to collect DNA samples from endangered species. Lamm argues that engaging with the government during the current term is preferable to disengaging. The piece frames the collaboration as part of the company's broader conservation and de-extinction work. The article's details are drawn from an interview with Lamm himself.

0
IndiaNDTV ·

Vance Blames Iran War for Republican Midterm Losses

Vice President JD Vance has argued that the conflict with Iran was a key reason Republicans lost the US midterm elections. He pointed to data and polling suggesting that some voters who supported Donald Trump in 2024 turned away from the party at the ballot box. According to Vance, their frustration over the war drove that shift. The article presents his claims as his own assessment of the election results rather than as independently verified conclusions.

0
TechnologyThe Verge ·

Anker launches Eufy Window Camera E10 that watches outdoors through a window

Anker has announced an indoor security camera designed to monitor a yard, driveway, or front porch by looking through a window rather than watching the inside of a home. The Eufy Window Camera E10 mounts flat against the glass using an included sticker that reduces glare and reflections. Because it sits indoors, it needs no weatherproofing. It is available now for $79.99 via Anker's online store and Amazon, which is more than double the price of Wyze's comparable Window Cam at $34.98.

0
IndiaTimes of India ·

Michigan neighbours awarded $55,750 for dock built on land they did not own

Jeremy and Ivanna Leffring found themselves in a legal dispute after neighbours posted a 'No Trespassing' sign on property they regarded as shared. The couple had jointly built a boardwalk and dock with the earlier owners, but the new owners later challenged that arrangement. The Michigan Court of Appeals sided with the Leffrings and ordered $55,750 in compensation for their improvements. However, the court ruled that no formal easement could be enforced in their favour.

← NewerPage 632 of 7360Older →