SShortSingh.

Programming

0
ProgrammingDEV Community ·

How One Engineer Wires New Services Into Two Binaries Using a Single Manifest

A software engineer working in PHP/Symfony and Go has detailed the architecture used to register new handlers and consumers across two binaries — a server and a worker — within a single codebase. The system is governed by a central manifest file that defines both daemons, drives the build pipeline, controls deployment parameters, and sets runtime environment variable conventions. Each binary serves a distinct purpose: the server handles incoming gRPC calls, while the worker manages scheduled jobs, consumers, and internal relay tasks. New units of work are wired in through a structured assembly layer, with the manifest acting as the sole source of truth for what gets built and shipped. The approach enforces strict boundaries by ensuring that any binary not declared in the manifest is never built or deployed.

0
ProgrammingDEV Community ·

Developer Releases MiniZinc MCP Tool to Help AI Agents Solve Optimization Problems

A developer has released an open-source tool called MiniZinc MCP, available on GitHub, that connects AI agents to MiniZinc, a free constraint modeling language. The tool enables AI agents to model, validate, and solve combinatorial and optimization problems — such as scheduling, resource allocation, and knapsack-type challenges. MiniZinc works by translating high-level problem models into formats compatible with various solvers, including Constraint Programming, Mixed Integer Linear Programming, and SAT solvers. By pairing large language models with MiniZinc through the Model Context Protocol, developers can describe problems in natural language and let the AI handle formal modeling. The tool exposes capabilities such as listing installed solvers, validating models, and executing them, streamlining the full optimization workflow.

0
ProgrammingDEV Community ·

Top 5 AI Model Routing Tools of 2026: Bifrost Leads with Minimal Latency

Production AI applications running across multiple LLM providers face challenges such as rate limits, outages, and unpredictable inference costs that static code cannot handle. Model routing tools address this by dynamically directing requests based on latency, cost, and provider availability, reducing API errors to near zero. Bifrost, an open-source gateway built in Go by Maxim AI, tops the 2026 rankings by adding only 11 microseconds of overhead per request at 5,000 requests per second. Other notable tools include LiteLLM, Kong AI Gateway, Cloudflare AI Gateway, and OpenRouter, each offering distinct trade-offs across integration, infrastructure, and deployment models. According to Gartner's Hype Cycle for Generative AI, AI routing layers have evolved from optional tooling into standard enterprise infrastructure.

0
ProgrammingDEV Community ·

NiubiGEO Open-Source Tool Lets Developers Audit How AI Models Describe Brands

NiubiGEO has released an Apache-2.0 workbench that tests how AI models describe a product, which competitors they surface, and what sources they cite. Users configure one or more OpenRouter models and optional web search per model, with each model running independently so a single failure does not invalidate other results. The tool distinguishes between prompted brand recognition and unprompted mentions, and separately classifies a mention, a positive description, and an explicit recommendation. Results include original model answers, provider citations, and URLs, though the project cautions that a citation does not explain why a model recommended a product and that publishing content does not guarantee an AI mention. Self-hosting requires Node.js 22 or later and an OpenRouter API key, while model and search API usage incurs charges; the project also offers paid human-led AI testing and GEO optimization services separately.

0
ProgrammingDEV Community ·

phpcpd-next 2.0 launches as fully rewritten MIT-licensed PHP duplicate code detector

Released on September 13, 2026, phpcpd-next 2.0 is now available on Packagist as a complete rewrite — not a refactor — of the PHP copy/paste detection tool that was archived in 2023. The new version switches to an MIT license and introduces three detection engines, including Rabin–Karp for exact matches and a SourcererCC-based engine for structural similarity. It adds support for 28 languages for all tool output, a dead-code detection mode, confidence ranking, and Laravel-specific presets that automatically apply sensible scan exclusions. The tool also outputs SARIF 2.1.0 reports for integration with GitHub Code Scanning and supports incremental caching to speed up repeated runs.

0
ProgrammingDEV Community ·

How to Design Fault-Tolerant AI Workflows That Survive Retries

AI workflows powered by large language models frequently fail at an unglamorous point: the retry, where lost connections or undelivered responses can cause duplicate records or repeated actions. A reliable solution involves designing workflows as state machines with clear boundaries rather than linear conversations. Each tool in the flow should declare an idempotency key derived from business logic, normalized inputs, possible side effects, and a durable receipt format to prevent duplicate execution. An orchestrator should consult an execution log before invoking any tool, proceeding only if a successful receipt exists, retrying on transient failure, or pausing for reconciliation when the state is ambiguous. Tracking metrics like retries per step, ambiguous operations, and receipt reuse rates gives a more meaningful picture of workflow reliability than raw token counts.

0
ProgrammingDEV Community ·

How a pub quiz app fixed WebSocket reconnects that left players stuck for ages

A live pub quiz platform serving around 100 simultaneous players over a single venue WiFi discovered that brief two-second connection drops were causing phones to show 'Reconnecting' for far longer than expected. The root cause was a stale closure bug: the WebSocket onclose handler was reading React state inside a setState updater, which delayed side effects like scheduling a reconnect until after reconciliation. The fix involved mirroring status into a React ref so the handler could read current state and act on it immediately, outside React's update cycle. Separately, the polling fallback interval was doubled from five to ten seconds after engineers calculated that 100 phones polling every five seconds generated roughly 1,200 requests per minute from one IP address, exceeding rate limits and knocking out the entire venue. The team accepted slightly stale data in degraded mode as a deliberate trade-off, reasoning that a lagging leaderboard is less harmful than a complete service outage.

0
ProgrammingDEV Community ·

Five silent failures when automating real Chrome via CDP and how to fix them

A developer running Chrome browser automation using raw Chrome DevTools Protocol (CDP) on a persistent user profile documented five failure modes that produce no exceptions or error messages. Key issues included Chrome silently blocking popups not tied to recognised user gestures, requiring the --disable-popup-blocking launch flag to resolve. OAuth flows caused further problems because some providers navigate the current tab rather than opening a popup, meaning code that only watches for new targets stalls indefinitely. On shared browsers with multiple tabs, automation risked attaching to the wrong OAuth target, requiring pre-click snapshots of target IDs and opener verification. Input events such as clicks and keystrokes were silently ignored when the target tab was in the background, fixed by explicitly calling Target.activateTarget and Page.bringToFront before each interaction.

0
ProgrammingDEV Community ·

Metasploit Framework: Capabilities, Setup, and Common Lab Misconceptions

Metasploit is a widely used penetration testing framework that can be installed on Linux systems via standard package managers and configured with a backend database for session tracking. Once set up, users can run network scans using tools like Nmap to identify potential targets within a controlled lab environment. The framework allows testers to search for and deploy specific exploits, such as those targeting vulnerable services like vsftpd, paired with payloads for remote access. A key practical consideration is that Metasploit's effectiveness is limited against fully patched systems, making regular software updates a critical defensive measure. The guide, attributed to Alex J. on DEV Community, emphasizes using the framework responsibly within authorized lab settings.

0
ProgrammingDEV Community ·

Developer builds free client-side image resizer tool for Etsy marketplace sellers

A developer has released a free, browser-based image resizing tool specifically designed for Etsy sellers, available at etsy-image-resizers.netlify.app. The tool automatically resizes and pads product photos to the required 2000×2000 pixel white-square format and compresses them under 1MB as JPG files. Unlike conventional online converters, the tool processes images entirely on the client side, meaning no photos are uploaded to any external server. The project is open source and hosted on GitHub, with the developer actively seeking user feedback on the crop editor interface. Support for additional platforms such as Poshmark and Vinted is being considered, pending verification of their conflicting published image specifications.

0
ProgrammingDEV Community ·

WCAG Color Contrast Rules Explained: Key Thresholds and Common Pitfalls for Developers

Web Content Accessibility Guidelines (WCAG) define color contrast requirements through a precise mathematical formula based on relative luminance of foreground and background colors, producing ratios between 1:1 and 21:1. The minimum contrast thresholds differ by element type: body text requires a 4.5:1 ratio at AA level, large text (18pt+ regular or 14pt+ bold) requires 3:1, and UI components require 3:1 for non-text elements. Engineers frequently misapply these rules by treating all text uniformly at 4.5:1 or miscalculating the 'large text' threshold, which corresponds to roughly 24px for regular and 18.6px for bold type at default browser settings. A common source of audit failures is context errors rather than calculation mistakes, particularly with translucent layers, where standard audit tools may miss effective contrast because they read declared CSS values rather than the composited pixel result. Developers are advised to verify contrast by sampling actual rendered pixel values and using the WCAG 2.2 specification's luminance formula as a reliable checklist reference.

0
ProgrammingDEV Community ·

How a URL Page Importer Handles Bot Walls, Fallbacks, and Asset Uploads

A developer built a URL import feature for a page editor that clones any public webpage into an editable canvas, with all assets re-hosted on the user's CDN. The tool uses a two-tier capture system: a plain HTTP fetch for simple pages and a headless browser API for JavaScript-rendered content. Rather than silently degrading on all errors, the implementation distinguishes between configuration gaps, transient network failures, and upstream HTTP errors, ensuring users receive meaningful feedback when something goes wrong. To avoid storing bot-challenge pages as content, the importer uses a heuristic detector combining title strings, CSS class markers, and document size thresholds to identify Cloudflare and similar interstitial screens. The tier that produced each result is surfaced in the UI, so any invisible degradation does not become a misfiled support ticket.

0
ProgrammingDEV Community ·

Five Must-Have Features Before Connecting an AI Agent to Your Knowledge Base

AI agents interact with knowledge bases fundamentally differently from humans — they cannot browse, skim, or apply judgment, so retrieval must be accurate on the first attempt. A developer checklist identifies five critical requirements: live document syncing, citations on every answer, a clear failure response when content is unavailable, user-level permissions, and a standard connection interface like the Model Context Protocol. Without live retrieval, agents confidently cite outdated policies with no awareness that the information is stale, a risk that worsens as agent use scales. Wrong answers stemming from poor retrieval are invisible in the output, making them harder to catch than the misclicks a human user would self-correct. The article advises evaluating AI knowledge tools by the accuracy of answers to real questions, not by how search results pages appear in demos.

0
ProgrammingDEV Community ·

How Excel Was Used to Build an Interactive Dashboard for Jumia Product Data

A data analyst built an interactive Microsoft Excel dashboard to extract business insights from a dataset of 112 Jumia e-commerce products. The project covered the full data pipeline, including cleaning price and rating fields, removing inconsistencies, and engineering new calculated columns such as discount percentage and price category. PivotTables were used to summarize product performance across pricing tiers, discount levels, customer ratings, and review counts. Pearson correlation analysis was applied to examine relationships between discounts, ratings, and customer engagement. The resulting dashboard was designed to help businesses answer key questions around pricing strategy, product performance, and the impact of discounting on customer behaviour.

0
ProgrammingDEV Community ·

UAJY Builds RAG Chatbot for 2025/26 Academic Handbook Using FAISS and Gemini

A public repository has released a Streamlit-based RAG chatbot designed to answer queries about the 2025/2026 academic handbook of Universitas Atma Jaya Yogyakarta's Faculty of Industrial Technology. The system uses pdfplumber to extract text and tables, chunks them into 350 segments from 112 pages, and stores 3,072-dimensional embeddings in a local FAISS index for similarity search. At query time, retrieved context and conversation history are sent to Google Gemini 2.5 Flash, which returns answers cited with page numbers and section titles. A similarity threshold and a system-level refusal instruction serve as anti-hallucination controls, limiting responses strictly to retrieved PDF content. An included 20-question evaluation suite reports 100% retrieval recall and refusal accuracy, though the project's own disclaimer notes the chatbot is an educational tool and does not carry official academic authority.

0
ProgrammingDEV Community ·

Reef Open-Source Tool Unifies AI Agent Learning and Versioned Deployment

Human-Agent-Society has released Reef, an open-source infrastructure platform that integrates AI agent inference, feedback collection, learning, and versioned delivery into a single system. The tool organizes its workflow into four stages — Serve, Observe, Grow, and Commit — allowing developers to manage both model weight updates and agent harness changes, such as prompts and skills, within one pipeline. Reef supports two update paths: weight-oriented training using GPU stacks via Slime and SGLang, and harness-oriented updates that rely on a model API endpoint without requiring local GPUs. A key design feature is that completed training or edits do not automatically go live; candidate updates must pass a configured evaluation and selection policy at the Commit stage before being published. The project notes that updates can be applied without restarting Reef, though the effectiveness of its release controls depends on the quality of tasks and evaluators that operators configure.

0
ProgrammingDEV Community ·

Developer builds Empryo to give AI coding agents a live map of code repositories

A solo developer created Empryo, a tool designed to provide AI coding agents with a continuously updated map of a codebase, eliminating the need to re-explain repository structure at the start of every new session. The tool's core feature, called the Genome dock, tracks files, symbols, and import relationships, and uses Git co-change history to help agents identify which files are likely to need editing together. Empryo also includes a terminal UI that surfaces dependency and co-change hints directly to the developer, keeping both the agent and the user working from the same context. The platform supports routing different tasks to different AI models, though the developer notes that switching models can reduce prompt cache reuse and raise actual token costs despite lower per-token pricing. To fairly evaluate coding agents, the developer recommends testing each on identical tasks with the same model settings and measuring correctness, file exploration patterns, retries, token usage, and human review time.

0
ProgrammingDEV Community ·

Developer Adds Role-Based Access Control to Spring Boot App Using Spring Security

A backend developer implemented role-based access control (RBAC) in a Spring Boot application using Spring Security, assigning users either a ROLE_USER or ROLE_ADMIN authority at registration. Regular users can only access their own profile data, while admins can retrieve the full list of registered users. Spring Security's configuration layer enforces these restrictions, returning a 403 error if an unauthorized user attempts to reach a protected endpoint, without any request reaching the controller. Authentication currently runs over HTTP Basic on a stateless setup, with JWT planned as the next step. The developer noted that a key debugging hurdle was ensuring authority strings matched Spring Security's expected ROLE_ prefix convention, which fails silently when mismatched.

0
ProgrammingDEV Community ·

WebForms Core Brings Server-Driven UI Control to Perl via Mojolicious

WebForms Core (WFC), a server-side UI manipulation technology developed by Elanat, can now be used with Perl and the Mojolicious framework to build interactive web interfaces without relying on JavaScript frameworks. The system works by having the server generate structured UI commands — called Action Controls — using the WebForms class, which are then sent to the browser via HTTP responses. A lightweight browser runtime called WebFormsJS receives and executes these commands directly against the HTML DOM, acting as the client-side executor. Perl developers can use methods like set_font_size, set_background_color, and add_tag to describe UI changes, with InputPlace helpers targeting specific HTML elements. This architecture keeps all UI logic on the server side, separating command generation from browser-level DOM execution.

← NewerPage 1222 of 3227Older →