SShortSingh.

Programming

0
ProgrammingDEV Community ·

How to Set Up a WireGuard VPN for Private Access to Your Linux Server

A technical guide published on DEV Community explains how to install and configure WireGuard VPN natively on a Debian 13 Linux server to restrict access to internal services like admin dashboards and databases. WireGuard runs directly in the Linux kernel, requiring only a single UDP port and minimal configuration compared to alternatives like OpenVPN. The setup assigns devices a private IP within the 10.8.0.0/24 subnet and supports two modes: split tunnel for routing only server-bound traffic through the VPN, and full tunnel for encrypting all internet traffic. Authentication relies entirely on public-private key pairs, with no passwords or certificates involved. The guide was tested using wireguard-tools 1.0.20210914 on Debian 13 with kernel 6.12, and covers client setup for Windows, macOS, Linux, iOS, and Android.

0
ProgrammingDEV Community ·

Why RGB Math Fails at Color Perception and How Scientists Fixed It Over 50 Years

Simple RGB distance formulas treat all color differences equally, but human eyes are far more sensitive to changes in green than in blue, making raw math an unreliable measure of perceived color similarity. To address this, researchers developed Delta E (ΔE), a perceptual color-difference standard where a score of 1.0 represents the smallest gap a human eye can detect. All modern color spaces trace back to 1920s experiments in which participants mixed red, green, and blue light to match every visible color, eventually producing the XYZ system as a universal foundation. Over the following five decades, four successive formulas — ΔE76, CMC, ΔE94, and CIEDE2000 — were developed, each correcting the previous one's weaknesses, particularly around blue and blue-violet tones. Today, industries such as automotive paint and commercial printing rely on strict ΔE thresholds — as tight as 0.5 for car paint — to ensure color consistency.

0
ProgrammingDEV Community ·

Study tests LLMs' ability to spot UI rule violations from screenshots vs DOM data

A developer ran a controlled experiment to measure how accurately large language models can detect UI threshold violations — such as font sizes and tap target dimensions — using only screenshot crops, with ground truth labels derived from DOM measurements. Ten custom style rules were tested across 12 pages rendered at two viewport widths, producing 96 scorable judgment pairs after excluding pages where elements were absent. GPT (via ChatGPT UI) achieved 90% accuracy on the contrastive rules containing both pass and fail cases, while Gemini 2.5 Flash scored 68% on the same set. Both models performed well on visually apparent rules like wrapping headings, but struggled significantly on purely numeric rules such as font size and line length. The author notes the tap-target rules could not test true threshold discrimination, as each rule contained only violations or only passes across all tested pages.

0
ProgrammingDEV Community ·

Vercel AI SDK Alternatives Gain Ground as Hosting Costs Bite in 2026

As of September 2026, developers are increasingly seeking alternatives to the Vercel AI SDK due to cost and architectural constraints, according to a guide updated this month. Vercel's pricing model, which charges by function invocation, bandwidth, and GB-hours, can cause AI workload bills to spike dramatically — a $20 bill can balloon to $200 when agent loops run intensively. The SDK also assumes Next.js and Vercel hosting as defaults, creating friction for teams wanting to deploy backends elsewhere. Emerging alternatives like Mastra, built by the Gatsby founders, and LangGraph offer more flexible deployment options including Cloudflare Workers, AWS Lambda, and self-hosted VPS servers. Affordable VPS options from providers like netcup are highlighted as cost-effective hosting solutions for long-running AI agents.

0
ProgrammingDEV Community ·

LSP-ember brings autocompletion and LSP support for Ember's .gjs/.gts files in Sublime Text

A developer has released LSP-ember, a new Sublime Text package that enables Language Server Protocol features — such as autocompletion, go-to-definition, and hover — for Ember's template tag file formats (.gjs and .gts). The tool acts as a bridge between Sublime Text and Glint, the TypeScript tooling layer for Ember, bringing the editor closer to feature parity with VS Code. The release follows an earlier May 2025 package called Template Tag, which had added syntax highlighting for these file types but left writing-side tooling unsupported. As part of this update, the original single syntax definition has been split into two separate ones — Glimmer JS and Glimmer TS — each correctly extending JavaScript and TypeScript respectively. The developer is seeking community help with testing, bug reports, and contributing modern Ember code snippets to improve the package further.

0
ProgrammingDEV Community ·

Laravel 13 Upgrade: Key Breaking Changes Developers Must Know Before Switching

Laravel 12 will stop receiving security patches on February 24, 2027, making an upgrade to Laravel 13 increasingly urgent for production applications. Released on March 17, 2026, Laravel 13 requires a minimum of PHP 8.3 and is supported with bug fixes until Q3 2027 and security patches until March 17, 2028. While the official documentation describes the upgrade as minimal — estimating around 10 minutes for most apps — it still includes two high-impact, two medium-impact, and roughly fifteen low-impact breaking changes. Notable changes include the renaming of the VerifyCsrfToken middleware to PreventRequestForgery, which also adds origin verification via the Sec-Fetch-Site header, along with updated version requirements for packages such as laravel/tinker, PHPUnit, and Pest. Developers on Laravel 11 or older face a more pressing situation, as those versions are already beyond their security support windows and should upgrade one major version at a time.

0
ProgrammingDEV Community ·

How to verify if a 'free' data grid is truly free before you build on it

A developer at KanuniLabs has outlined a set of terminal-based checks anyone can run to verify whether a so-called free data grid component is genuinely free for their use case. The guide was prompted by the company discovering its own pricing page had incorrectly listed a paid feature under the free tier. Key checks include reading the LICENSE file shipped with the installed package, inspecting declared dependencies for any paid packages, and directly testing critical features in Node to see if they throw a paywall error. The article notes that KanuniLabs' own free tier permits commercial and SaaS use but prohibits modification and inclusion in competing component libraries or toolkits. Developers are advised to save a copy of the LICENSE file alongside release notes to track any future changes to the terms they originally agreed to.

0
ProgrammingDEV Community ·

Data Mesh: The Decentralized Architecture Reshaping How Enterprises Manage Data

Data Mesh, a concept popularized by Zhamak Dehghani, is a sociotechnical approach that shifts data management from centralized architectures like data lakes and warehouses to a decentralized, domain-driven model. Instead of a single central team handling all data, ownership is distributed to the business units — such as marketing, finance, or logistics — that best understand their own data. The framework rests on four core principles: domain-oriented ownership, treating data as a product, providing a self-serve data platform, and enforcing federated computational governance with shared global standards. For data analysts and scientists, this model promises higher data accuracy since domain teams maintain direct control, reducing distortion from lengthy central ETL pipelines. Proponents argue that for large organizations with complex data ecosystems, Data Mesh is essential for achieving true scalability, agility, and data-driven innovation.

0
ProgrammingDEV Community ·

Developer's webhook silently failed on his own app's first real payment due to a truncated secret

A solo developer launched ApiPulse, an API uptime monitoring tool he built over four months, and immediately tested it by paying €5 with his own card. Despite the payment going through and being confirmed by the payment provider, his app failed to upgrade his plan because the webhook endpoint was returning a 401 error. After investigating common causes, he traced the issue to a webhook secret that had been accidentally truncated during a copy-paste into his hosting environment variables. Once corrected, the provider's automatic retry succeeded and the plan activated normally. The incident prompted him to highlight two lessons: always test the full payment chain with real money before launch, and check configuration before assuming the code is at fault.

0
ProgrammingDEV Community ·

Benchmark Tests Jev-1.13.0 Decision Model Across 10 Datasets for AI Agent Use

A black-box engineering evaluation of TypeSafe AI's Jev-1.13.0 decision model was conducted in September 2026, spanning 10 public datasets, roughly 22,500 API calls, and 52.2 million input tokens at a total cost of $2.19. Unlike large language models, Jev accepts a state and typed questions, returning typed answers with probabilities and confidence scores without generating free-form text. The model performed strongly on tasks such as indirect prompt-injection detection, document reranking, intent classification, and tool routing, making it a viable fast-decision layer in agent systems. However, it showed no meaningful signal for predicting another model's failure modes, trajectory failure attribution, and performed notably worse on non-English tasks due to its English-primary training. Two key engineering findings emerged: decomposing fuzzy judgments into orthogonal sub-questions and using a two-stage choice-then-verify approach each dramatically improved accuracy in their respective tasks.

0
ProgrammingDEV Community ·

apowerb stores AI agents as database rows, skipping code commits entirely

A new open-source framework called apowerb redefines how AI agents are managed by storing their definitions — including instructions, models, tools, and guardrails — as rows in a Postgres database rather than as code files in a repository. Built on FastAPI and Google's Agent Development Kit, the self-hosted tool generates a minimal seven-line Python stub on disk whenever an agent record is created, with all meaningful configuration loaded from the database at runtime. This approach lets non-engineers update agent prompts or settings via a UI or API without triggering a code deployment, making it especially practical for teams running many agents across multiple groups. However, the design introduces a synchronization risk: the filesystem and database can fall out of sync due to backups, environment copies, or package renames, all of which produce the same opaque ModuleNotFoundError at runtime. Released under the Apache-2.0 license, apowerb can be run locally using Docker Compose.

0
ProgrammingDEV Community ·

OpenAI to retire GPT-3.5, GPT-4 and legacy APIs by October 2026

OpenAI has published a series of model deprecation deadlines, with the Assistants API already shut down on 26 August 2026. Key upcoming cutoffs include the Videos API and sora-2 on 24 September, legacy completion snapshots on 28 September, and gpt-3.5-turbo and gpt-4 on 23 October 2026. Businesses that built AI-powered tools such as chatbots or email classifiers in 2023–2024 are likely relying on these soon-to-be-retired models. Unlike a gradual slowdown, deprecated models will return errors immediately upon shutdown, causing automations to fail without warning. A common complication is that retirement notices are sent to the developer account that holds the API key, which often belongs to an external agency rather than the business itself.

0
ProgrammingDEV Community ·

Node.js 26 Released: Last Version Under Old Schedule Before Major Restructure

Node.js 26 launched on May 5, 2025, and is scheduled to enter Long-Term Support on October 28, 2025, marking a significant shift in the project's release model. Starting with Node 27, the project will move from two major releases per year to one, with every release designated as LTS, eliminating the old odd/even production distinction. The upgrade introduces relatively few breaking changes, including the removal of long-deprecated internal _stream_* modules and stricter header validation via an updated Undici fetch implementation. Teams migrating from Node 24 will find the transition straightforward, while those on Node 22 face a broader set of changes and a real deadline as Node 22 exits maintenance in April 2027. Library maintainers should note a new six-month alpha channel beginning with Node 27, giving developers advance notice of breaking changes before each annual release.

0
ProgrammingDEV Community ·

Most AI crawlers appear in server logs, but Google-Extended and Applebot-Extended never do

Despite being widely referenced in robots.txt files, Google-Extended and Applebot-Extended never actually send HTTP requests to websites, making them invisible in server logs. In contrast, nine real AI crawlers from OpenAI, Anthropic, and Perplexity do send identifiable user-agent strings and can be tracked in WordPress access logs. Vendors confirm that index-building bots generally honour robots.txt directives, but user-triggered fetchers — such as ChatGPT-User and Perplexity-User — may ignore those rules because a human initiated the request. This means a page blocked from AI training can still be fetched moments later to answer a live user query. WordPress site owners can monitor all nine documented crawlers without a plugin by adding a small script to the mu-plugins directory that logs matches to a capped database option.

0
ProgrammingDEV Community ·

GIF file size is largely fixed cost, not an encoder problem, analysis finds

A developer spent a week trying to shrink a 1.51 MB GIF of a 4.5-second screen recording before discovering that a significant portion of the file size is structural and cannot be reduced by encoder settings alone. Parsing the GIF container byte by byte revealed that 74 of 75 frames each carried a full 256-color local palette, consuming roughly 57 KB regardless of on-screen content. GIF's interframe differencing, which only redraws changed regions, offered limited savings because a single rectangle must enclose all changed pixels per frame, often dragging in untouched areas. Reducing frame count proved the most effective lever, cutting file size by 28–42%, though it also shortens total playback duration unless per-frame delays are manually adjusted. The findings suggest that hitting a compression wall with GIFs is often a format constraint rather than a failure of the export tool.

0
ProgrammingDEV Community ·

How One Parent Used AI Agents and Spotify to Build a 6-Hour Baptism Party Playlist

A developer used an AI agent called Hermes and Claude Code to build a curated 101-track, 6.2-hour playlist for their child's baptism party at a pub. Rather than specifying individual songs, the parent wrote a structural brief covering genre blocks — from warm R&B and afrobeats to UK garage and slow jams — with DJ Chuckie Online's mixes as a reference point. The first automated attempt failed badly, producing 60 tracks of rap with duplicates and explicit songs because the Spotify tool lacked a mode for brief- or reference-based playlist building. The project was rebuilt using Claude Code, sourcing accurate tracklists from YouTube chapter listings and BBC programme pages, while filtering out explicit tracks unsuitable for a christening. The author also documented several Spotify API changes in early 2026, including renamed endpoints that return 403 errors instead of 404, a 10-result search cap in developer mode, and rate limits triggered after roughly 250 searches in a single session.

0
ProgrammingHacker News ·

AI-Generated Code Reportedly Accounted for 17.25% of Linux Kernel Patches in September

According to a claim shared by the Lunduke Journal on social media, AI-generated code made up approximately 17.25% of all patches submitted to the Linux Kernel in September. The figure suggests a notable and growing role of AI-assisted development in one of the world's most prominent open-source projects. The Linux Kernel is maintained by a global community of contributors and serves as the foundation for countless operating systems. The original claim was posted on Twitter and has attracted attention within developer communities. The methodology or data source behind the 17.25% figure has not been detailed in the available information.

0
ProgrammingHacker News ·

Disney+ Updates Terms to Allow Pre-Roll Ads Across All Subscription Tiers

Disney+ has revised its user agreement to permit advertisements to be shown before movies, affecting all subscription plans. The policy change means even subscribers on premium or ad-free tiers may now be subject to pre-roll ads. The update was noted by consumer rights observers and sparked discussion among users online. The move reflects a broader industry trend of streaming platforms expanding ad inventory to boost revenue. Disney has not publicly detailed the full scope of the change or whether compensation or opt-out options will be offered.

0
ProgrammingDEV Community ·

New AI Runtimes Expose Decision Logic and Confidence Scores to Developers

Two AI runtimes, Jev (TypeSafe System One) and Laya, are designed to surface not just model outputs but the underlying decision structure, including options considered, selection rules, and confidence scores. Unlike conventional model outputs, this typed decision format makes results testable and auditable, allowing developers to identify flawed rules or route low-confidence cases to human reviewers. Both runtimes can be run locally, shortening the development feedback loop by eliminating the need to send prompts to external services. Laya supports CoreML and MLX builds for Apple silicon, and documentation including API notes and setup guides is available at jev001.org. The tools are positioned as replacements for complex if-statement logic in tasks like routing, tagging, and ranking, rather than as full application substitutes.

← NewerPage 1054 of 3197Older →