SShortSingh.

Programming

0
ProgrammingDEV Community ·

Long Context Windows Don't Make RAG Obsolete, Argues Developer

A DEV Community author contends that larger model context windows change how much material gets retrieved but do not eliminate the need for retrieval. Anthropic's guidance suggests that knowledge bases under roughly 200,000 tokens can be placed directly into a prompt, especially with caching, though it notes larger bases need scalable solutions. The author cites Google's documentation on per-query token costs and latency, and research such as "Lost in the Middle" and Chroma's "Context Rot" report showing that models struggle to use information buried in long inputs. The piece also argues that retrieval enables document-level updates and per-user access controls that a static stuffed prompt cannot easily provide.

0
ProgrammingDEV Community ·

Android Hardware VP9 Accepts Spatial SVC Mode but Drops the Layers

Android hardware VP9 encoders accept a three-spatial-layer SVC configuration such as L3T3 without error. The bitstream they return is a single flat stream, typically at top resolution with the lower spatial layers missing. Servers expecting multiple layers then treat the stream as broken, even when the network is fine. The behavior has been observed across Samsung, Pixel, Qualcomm, and Tensor devices, and hardware VP9 on Android supports temporal SVC only. Software VP9 (libvpx) produces real spatial layers but costs more CPU and battery, and MediaCodec offers no way to query spatial layering support in advance, so developers must inspect the bitstream to confirm.

0
ProgrammingDEV Community ·

Guide Explains IDOR/BOLA, the Top API Security Flaw, and How to Prove It Safely

Broken Object Level Authorization, commonly called IDOR, ranks first on the OWASP API Security Top 10 (2023) and is a frequent serious flaw in modern APIs. The vulnerability arises when an application verifies that a user is logged in but fails to confirm that the specific object requested belongs to that user. A tutorial walks through how the flaw works, using an example of changing an invoice ID in a request, and describes where object references can appear in requests. It also covers how to test for the bug using two accounts the tester controls, so that no real user data is exposed. The guide emphasizes writing clear reports so that findings are taken seriously rather than dismissed.

0
ProgrammingDEV Community ·

breakcheck: a zero-dependency CLI that flags deprecated dependencies, risky CI workflows and removed APIs

A new open-source tool called breakcheck scans projects locally for signs of future breakage before platforms and vendors remove the features they rely on. It checks package.json, requirements.txt, pyproject.toml, GitHub Actions workflows, Dockerfiles and source code for deprecated packages, unpinned or over-privileged automation, unpinned base images, and APIs being removed. The developers motivating the tool point to recent removals, such as Chrome and Edge dropping XSLT and Python 3.12 removing imp and distutils, along with a wave of GitHub account hijacks that mostly exploited over-privileged automation. Running on Node.js 18+ with no network access or telemetry, it reports findings with suggested fixes and can exit with an error code for use in CI, and it does not yet offer automatic fixes. The project is MIT-licensed and available on GitHub.

0
ProgrammingHacker News ·

Guide Explains Using Touch ID to Secure SSH Keys on macOS

A blog post published on nmattia.com walks readers through configuring SSH keys on macOS that are unlocked with Touch ID. The article is shared on Hacker News, where it has gathered 10 points and 3 comments. The setup aims to replace typing passphrases with biometric authentication when connecting to remote servers. The source material provided is limited to the link and discussion metadata, so the specific technical steps are not detailed here.

0
ProgrammingHacker News ·

Anthropic Explores Using Claude to Shrink the Attack Surface of Software Code

Anthropic has published research on applying its Claude AI model to reduce the attack surface of software code. The work examines how the model might help identify and remove code that could be exploited by attackers. The post is shared on Hacker News, where it has drawn modest early attention. The source material available does not provide details on specific methods, results, or benchmarks.

0
ProgrammingHacker News ·

C# Compiled to WebAssembly Now Produces Smaller Binaries Than Rust

A GitHub project called NetWasm reports that C# code compiled to WebAssembly now yields smaller output than comparable Rust builds. The claim was shared on Hacker News, where the post gathered 25 points and 3 comments. The available material includes only the project link and discussion metadata, so the specific benchmark methodology and size figures are not detailed here. The result suggests progress in .NET's WebAssembly tooling relative to Rust's typical output sizes. Readers should consult the repository for the underlying measurements.

0
ProgrammingDEV Community ·

Daily app budgets and a visible override counter outperformed blocking for one writer's phone habits

A developer who struggled with full blocks, accountability partners, and cold-turkey attempts over 2024 found each method removed access without addressing the underlying reasons for phone use. Their approach instead assigns per-app daily time budgets, with messaging and maps left unlimited, and prompts once at the limit to either continue or do an intended task first. Each override is recorded in a visible counter without punishment or streaks. Logging from 1 to 21 October reportedly cut late-night phone use from 90 to 12 minutes per night, daily opens from 41 to 19, and weekly overrides from 23 to 6. The writer has released the tool, ChoiceField, as a free iOS app and suggests a week of manual logging as a starting point.

0
ProgrammingDEV Community ·

LLM API 장애에도 서비스가 멈추지 않도록 하는 6가지 설계 원칙

LLM API를 제품에 연결하는 일은 개발 단계보다 운영 단계에서 훨씬 까다로운데, 응답 지연, 네트워크 오류, Rate Limit, 서버 오류 등 다양한 실패가 언제든 발생할 수 있다. 이 글은 이런 실패를 전제로 한 호출 구조를 위해 여섯 가지 원칙을 제시한다. 핵심은 요청 목적에 맞는 타임아웃 설정, 오류 유형에 따른 선별적 재시도, 지수 백오프를 통한 부하 분산이다. 또한 주 모델이 실패할 때 보조 모델이나 규칙 기반 로직으로 전환하는 폴백, 반복 요청에 대한 캐시, 장애 중인 API에 대한 반복 호출을 막는 서킷 브레이커도 함께 다룬다. 마지막으로 응답 시간, 모델별 오류, 재시도 횟수 등을 기록하고 모니터링해야 안정적으로 운영할 수 있다고 강조한다.

0
ProgrammingDEV Community ·

Guía paso a paso para instalar Tailscale en un homelab Linux

Este procedimiento explica cómo instalar el cliente de Tailscale en un equipo Linux de un homelab, autenticarlo en la tailnet y verificar su funcionamiento. Como referencia se usa la release v1.104.1, aunque las fuentes no detallan cómo instalar esa versión concreta, por lo que los pasos deben tomarse como el procedimiento general de la documentación. Se requiere un gestor de paquetes compatible, acceso con sudo y el módulo de kernel tun, que puede cargarse manualmente o al arrancar. La instalación se realiza con el script oficial de una línea, copiado de la web de Tailscale, y se autentica con tailscale up, comprobando luego el dispositivo en la consola de administración. Finalmente, la guía recoge opciones como SSH, la gestión de caducidad de claves y las herramientas tailscale ip y tailscale status para revisar el estado.

0
ProgrammingDEV Community ·

d3-turbo: 26B-parameter model answers many questions from one read, outpacing larger rivals on throughput

The vLLM Semantic Router team released d3-turbo on Hugging Face on 19 October 2026, a 26-billion-parameter model with a 460-million-parameter image encoder under an Apache 2.0 license. Rather than generating free-form text, it returns probability distributions over options the user predefines, such as routing a customer ticket or flagging urgency. Its sibling d3-flash re-reads the input for every question, while d3-turbo reads once and answers many, which the author's benchmarks on a single AMD MI325X show becomes faster beyond about four questions. At 255 questions, the reported median latency was 2.12 seconds for d3-turbo versus 32.94 seconds for d3-flash, though d3-flash was quicker for a single question. The model supports choice, yes/no, score, box, and tracking tasks, and accepts up to 131,072 tokens of context when long-context mode is enabled.

0
ProgrammingDEV Community ·

OpenAI Acquires Orchestra Bio to Help Trace Drug Development Delays

OpenAI announced its October 20 acquisition of Orchestra Bio, describing a use case for coordinating drug development. In its example, a failed manufacturing batch could delay a clinical trial, and Orchestra's agents would help identify affected activities and timelines while scientists and program leaders make the decisions. OpenAI also said it plans to combine Orchestra with its Rosalind product to link scientific findings with studies, decisions and next steps. The company has not published a controlled evaluation or quantified time savings for this workflow. The article also offers a proposed developer design for recording impact claims as inspectable, correctable and withdrawable records, though it is not Orchestra's actual architecture.

0
ProgrammingDEV Community ·

Phishing and BEC Attacks Bypass Code Defenses by Targeting Employees

Attackers can defeat strong technical security by manipulating staff rather than systems, using impersonation and urgency to trick people into acting. Business Email Compromise is a targeted form of this, where criminals study a company's payment workflows and pose as executives or suppliers to request wire transfers or bank detail changes. The FBI's Internet Crime Complaint Center reported more than $50 billion in exposed losses from BEC between late 2013 and the end of 2022. The article argues that the main defenses are procedural rather than technical, including verifying requests through independently known contact numbers, enabling multi-factor authentication, requiring dual approval for payments, and configuring SPF, DKIM, and DMARC email authentication.

0
ProgrammingDEV Community ·

Testing API Failure Scenarios: Why Success Paths Aren't Enough

Developers often verify only the successful 200 OK response, but production systems regularly face server errors, missing data, and network problems. The article illustrates how a simple frontend fetch can crash or leave users stranded when responses are unexpected. It recommends deliberately testing cases such as 500 errors, absent JSON fields, expired sessions, interrupted connections, and requests sent to the wrong environment. Mocking API responses lets teams simulate these conditions without relying on a live backend. Network interception tools such as Proxyceptor are presented as another option for modifying requests and responses without changing application code.

0
ProgrammingDEV Community ·

Fan Wiki for Ride A Pet Shows Evidence Labels and Marks Unknown Values

A fan-made guide for the Roblox game Ride A Pet treats every displayed fact as something that must be traceable to a source and date. Each entry is tagged as recorded from gameplay footage, reported by a dated third party, drawn from official artwork, or unknown. Missing measurements appear as "Unknown" rather than zero, so unmeasured stats cannot distort comparisons. Shop and pricing snapshots carry creator, timestamp, and separate "checked" and "last edited" dates to show how current they are. The approach is presented as a data-modeling problem aimed at keeping readers from mistaking guesses for confirmed information.

0
ProgrammingDEV Community ·

Study Tests Whether Task Rules Hold When the AI Model Is Swapped

A new paper in the Artificial Deterministic Intelligence series examines whether a bounded operational contract survives when the underlying inference model changes. Task state is kept outside the model weights, and the researchers do not assume smaller models match larger ones in capability. In synthetic first-party tests, a frozen governed package was moved between 8B and 35B models in both directions, with same-model restart controls, and all 120 confirmatory handoff trials kept the measured policy contract and task correctness. The study also compared governed scoped context, authorized metadata-filtered lexical retrieval, and an oracle ceiling, with every configuration completing 90 of 90 trials and conventional lexical retrieval showing lower retrieval-component time. The author states these results do not establish general model equivalence, production readiness, universal safety, or retrieval superiority, and the companion report includes non-acceptances, timeouts, and a non-confirming replication attempt.

0
ProgrammingDEV Community ·

Developer Explores Using macOS Touch ID and Secure Enclave for SSH Authentication

A developer has described a method for using Touch ID on macOS to authenticate SSH sessions, with private keys held in the Secure Enclave. The approach aims to avoid the trade-off between security and convenience that comes with passphrases and unprotected keys. The article notes that the Secure Enclave isolates keys from the main operating system, though integration relies on tools such as ssh-agent and custom scripts that could introduce failure points. The author is seeking expert feedback on the method's technical viability and its edge cases. The piece argues that robust yet user-friendly authentication is increasingly important as remote work and cybersecurity threats grow.

0
ProgrammingDEV Community ·

Agentic terminals in 2026: seven questions for judging AI coding tools

AI in the terminal has moved beyond command autocomplete to agents that can build an app from a plain description. The article proposes seven questions for telling apart tools that merely suggest code from those that complete the work. Key criteria include whether an agent plans, runs, tests and prepares a project for shipping, and whether a lead agent can coordinate parallel workers. It also highlights multi-model support with your own API keys, the ability to diagnose and fix bugs with configurable approvals, and continuity of work across terminal, IDE, SSH and mobile. The piece is written by the founder of Mel, an agentic terminal tool, who promotes it as meeting these criteria.

0
ProgrammingDEV Community ·

Building a Safe Linux Sysadmin Assistant for AI Agents Using a Python MCP Server

AI coding assistants like Claude and Cursor can diagnose errors and suggest system configurations, but giving them raw shell access causes problems such as hung terminals from interactive pagers, excessive token use from oversized log output, and runaway background processes. The article proposes using Model Context Protocol (MCP), an open standard for connecting AI models to local tools, to mediate these interactions. The author's SysFlow MCP server, written in Python, forces non-interactive environment settings on every subprocess to prevent pager freezes. It also enforces hard timeouts that terminate process trees, reads only the tail of large log files with optional regex filtering, and limits service inspection to user-level systemd units rather than root-level daemons.

0
ProgrammingHacker News ·

Quanta Magazine Explores How Hilbert Space Frames Quantum Possibilities

Quanta Magazine has published an article titled 'In Hilbert Space, All Things Are Quantumly Possible' on its website. The piece centers on Hilbert space, the mathematical framework that quantum physics uses to describe the states a system can occupy. The only details available in the source material are the article's URL, a Hacker News discussion thread, and its current point and comment counts. The full article text was not included, so the specific arguments and findings it makes cannot be summarized here.

← NewerPage 203 of 2989Older →