SShortSingh.

Programming

0
ProgrammingDEV Community ·

Shipment Exception Agent Blueprint Keeps Humans in the Approval Loop

A public reference blueprint describes an agent for handling logistics shipment exceptions, such as missed delivery windows. The design separates tasks: a model extracts facts from documents, while fixed code checks document fields, computes delay hours, and scores recovery options. Exception types are classified by ordered written rules, with a model's independent classification reconciled under a stated policy. Every run ends at a human approval gate, so no customer update or compensation is sent automatically. The authors argue that letting a language model write customer updates directly risks invented delivery times and unapproved offers.

0
ProgrammingDEV Community ·

How to Pick the First Process to Automate With AI, Using a Simple Scoring Method

Teams starting automation often struggle to choose which task to tackle first, and a wrong choice can waste weeks of effort. The article proposes a deliberately simple method that scores each candidate task from one to five on four factors: how often it occurs, how clearly its rules can be written down, the volume of items handled, and how recoverable an error would be. Tasks with unrecoverable errors should only be automated up to the point of a human decision. Totals above fifteen mark strong first candidates, while scores under ten suggest reconsidering. The author also advises checking data access and assigning an owner for the exceptions automation cannot handle. In a finance example, a customer-email task scored 19 and beat the team's original priorities.

0
ProgrammingDEV Community ·

Building an MCP server that handles LLM API errors without stalling agents

An MCP server that calls the Anthropic API can fail in ways that confuse the agent using it, since a raw traceback looks the same whether a retry would help or not. The author recounts a 2026 overload incident where a burst of 529 errors caused the agent to abandon the tool mid-job. The proposed fix classifies errors by status code and body type, retries transient failures like 429 and 5xx with jittered backoff that respects server-requested delays, and fails fast on quota and authentication problems. Errors returned to the client are kept to a single line that includes a request ID. The guide also flags setup pitfalls, such as environment variables not being passed to stdio servers and a missing anthropic-version header causing misleading 400 errors.

0
ProgrammingDEV Community ·

pgvector, Chroma, and Qdrant Compared for Python Vector Search in 2026

A developer guide weighs three vector databases for Python projects such as RAG pipelines and semantic search. It frames the choice around whether the goal is fast local development or production-scale deployment. pgvector is presented as a PostgreSQL extension suited to teams already running Postgres, offering SQL filtering and ACID guarantees. Chroma is positioned as the quickest route to prototyping, running in-process with simple disk persistence and metadata filtering. Qdrant is covered as the stronger option for self-hosted production workloads needing advanced payload filtering and scale.

0
ProgrammingDEV Community ·

Pink adds spending limits to n8n AI agents through a sandbox demo

PinkWallet has published an unedited screen recording showing its Pink Agentic AI Payments node working inside an n8n instance using sandbox test money. The node checks each payment an AI agent requests against spending rules such as budgets, caps, payee allow-lists, and human approval before funds move. In the demo, a $50 payment to an approved payee is allowed, while a $350 request is blocked under a daily API-credit rule. The walkthrough also shows an AI agent calling the tool itself and receiving the same allowed decision. The company notes this is a sandbox preview and that production use with real money is still in early access.

0
ProgrammingDEV Community ·

NVIDIA Open-Sources Run:ai GPU Scheduling Platform for Kubernetes Clusters

NVIDIA released its full Run:ai AI workload scheduling platform as open source on 13 October 2026, letting one pool of GPUs serve training, inference and interactive jobs inside Kubernetes. Run:ai 3.0 is split into four components that can be adopted separately: KAI Scheduler, GPU Fractioning Operator, KAI Resource Management and Workload Map. KAI Scheduler is licensed under Apache 2.0 and contributed to the CNCF as a Sandbox project, with development handled in the community repository. The community version is available through NVIDIA's NGC catalogue without a paid subscription, while enterprise support runs through commercial routes such as NVIDIA AI Enterprise and cloud marketplaces. Eight DSX ecosystem partners, including Crusoe, Mirantis and Nebius, are integrating the platform, and NVIDIA's utilisation claims of 10x GPU availability lack a published baseline.

0
ProgrammingDEV Community ·

Can a 12 GB GPU Run Local AI Video Dubbing? Testing Advice

A common question is whether a local AI dubbing workflow can run on a 12 GB graphics card. The article explains that dubbing involves several stages rather than a single text-to-speech call, so the whole pipeline must be considered. Keeping every model loaded at once can exhaust limited VRAM, so running stages sequentially and saving intermediate results can reduce memory pressure at the cost of some load time. The author recommends testing with a short, representative sample that reflects the expected number of speakers and target language. Key measures include total turnaround, voice identity, intelligibility, and timing quality, since more VRAM alone does not guarantee faster inference.

0
ProgrammingDEV Community ·

Developer Laments Losing the Hands-On Coding Work That Drew Him to the Field

The author describes missing the craft of writing code, the satisfaction of turning a vague idea into a working solution. He argues that AI agents now produce first drafts faster than people can, so writing code by hand can feel like an inefficient choice, and daily work shifts toward delegating and reviewing output. He notes that a similar shift has long happened to senior engineers who moved into design and management, but says the change now lands on people who never sought a different role and receive no promotion in return. He acknowledges that some developers find managing agents engaging, while others find the constant switching, correcting, and judgment calls draining.

0
ProgrammingDEV Community ·

Developer details the undocumented pitfalls of building a macOS screensaver in Swift

A developer who built Nap, a paid macOS screensaver collection, has published notes on the poorly documented parts of screensaver development. Apple's reference covers the API but not the runtime, and much of the existing guidance predates the sandboxed host. The author reports that a screensaver moving a small square still draws about 3 W of battery, a cost the developer's own code cannot reduce. The write-up explains how the bundle is built with swiftc and clang, and how the lifecycle methods work. It also describes a settings problem: the screensaver runs inside a sandboxed Apple host, so preferences written by an ordinary app are not visible to it, and the author worked around this by using a plain JSON file in Application Support.

0
ProgrammingDEV Community ·

Laravel 403 Tests Can Pass Despite Unauthorized Database Writes

A 403 Forbidden response only shows what the client received, not whether the application changed data before rejecting the request. A controller that updates a record before calling the authorization gate can return 403 while still committing the write, and a status-only assertion would miss it. The recommended fix is to authorize before writing, and tests should check both the denial and that the persisted state stays unchanged. The author maintains Laravel AccessProof, an MIT-licensed package for Laravel 12/13 and PHP 8.3+, which adds explicit database watches to feature-test requests. The article also covers paired owner/outsider checks for sensitive reads and bounded row watches for batch operations, using a disposable testing database.

0
ProgrammingHacker News ·

Rust compiler developer outlines an exciting outlook for 2026

A blog post by a developer working on the Rust compiler argues that 2026 will be an exciting year for the project and for the author personally. The piece was shared on Hacker News, where it gathered 7 points and one comment. The provided material offers only the post's title and link metadata, so specific technical plans or milestones cannot be confirmed from it. Readers interested in the details would need to consult the original article directly.

0
ProgrammingHacker News ·

Blogger Describes Effort That Led to Removal of Over 300 Tor Exit Nodes

A post on kaba.cx describes how the author got more than 300 Tor exit nodes removed. The article was shared on Hacker News, where it received 25 points and 5 comments. The source text provided is only metadata, so the specific methods, parties involved, and reasons for the removals cannot be confirmed from it. Readers would need to consult the original post for details on the process and its outcome.

0
ProgrammingHacker News ·

Tsrs: A Port of TypeScript to Rust Shared on Hacker News

A post titled "Tsrs: A Port of TypeScript to Rust" has been shared on Hacker News, linking to an article on the Cloudflare blog. The item has earned 51 points and 14 comments from the community. The source material provided describes the project only by its title, so the specific technical details of the port are not available here. Readers interested in the implementation and its goals are directed to the original Cloudflare blog article.

0
ProgrammingHacker News ·

Jepsen Publishes Analysis of Orkes Conductor 5.3.2 Distributed Systems Testing

Jepsen, the firm known for rigorous distributed systems safety testing, has released an analysis of Orkes Conductor version 5.3.2. The write-up was shared on Hacker News, where it gathered 30 points and no comments at the time of reporting. The available material provides only the article link and discussion metadata, so the specific findings of the analysis cannot be confirmed from this item alone. Readers interested in the results should consult the full Jepsen report directly.

0
ProgrammingHacker News ·

Blog post claims fabricated statistics can get cited by LLMs, prompting discussion

A blog post from peec.ai describes a tactic in which publishing statistics online led to that data appearing across the web and being cited by large language models. The author presents the approach as a personal experiment rather than a formal study. The article was shared on Hacker News, where it received 6 points and one comment. The available material does not include the full methodology or verified results, so the claims remain the author's own account.

0
ProgrammingDEV Community ·

How to Inventory Every Third-Party Origin a Page Contacts, and Four Pitfalls to Avoid

Safari 27 now blocks a category of third-party domains by default at the network level, leaving many teams unsure whether their pages depend on such domains. Those domains often arrive through tag managers or marketing vendors, so repository inspection and one-off network panel checks give an incomplete picture. The article recommends using the browser's Resource Timing API to list fetched origins, with a PerformanceObserver to avoid the default 250-entry buffer limit. For production-wide coverage, it suggests a Content-Security-Policy-Report-Only header with a deliberately restrictive connect-src and a report-to destination, which reports outbound connections without blocking them. The author warns of four traps: the small buffer, a missing report-to directive that silently does nothing, incomplete browser support for report-to, and the header being unavailable from within an HTML meta tag.

0
ProgrammingDEV Community ·

Planet Zoo 2 Lists 130 Animal Species Across 12 Regions, With Three Regions Holding One Animal Each

Planet Zoo 2 launched on 13 October 2026 with 130 species, but the game offers no index view showing which animals come from which regions. A community creator exported the underlying data and published a public, CC BY 4.0 list grouped by region. The regional counts overlap because many species belong to several regions, so the totals exceed 130. The Hawksbill Turtle appears in nine regions, while the Arctic has only one land animal, the Mountain Hare. The author stresses that region is only a planning guide, since housing compatibility depends on biome and enclosure type.

0
ProgrammingDEV Community ·

N-CODE LazyFlow AI: Open-Source Daily Planner Built on Local Gemma 3

Developer Deshan built LazyFlow AI, an open-source productivity assistant that turns messy to-do lists into prioritized daily plans. Users enter their tasks, choose an energy level, and set the time available, and the tool suggests time allocations, a small first step, and tasks that can wait. The app runs locally using Ollama and Google's open-weight Gemma 3 1B model, so task data stays on the user's machine instead of a cloud API. The project was submitted to the Hacktoberfest Open-Source AI Challenge, and GitHub Actions logs reportedly show the real model producing a nonempty plan through the app's API. The code is released under the MIT License, though the time-saving benefit has not yet been measured in formal user testing.

0
ProgrammingDEV Community ·

Why Developers Should Investigate Ideas Before Building Them

The article argues that developers often rush into implementation because building feels more productive than researching a problem. It notes that ideas can stem from frustrations, trends, or existing products, but none of these guarantees a real opportunity. The author stresses that different audiences have different needs, using appointment scheduling for large companies versus independent mechanics as an example. It also cautions that a working product can still fail economically or depend on resources that are hard to access. Finally, the piece suggests that improving an existing solution with better usability or affordability can be valuable without reinventing an industry.

← NewerPage 278 of 3053Older →