SShortSingh.

Programming

0
ProgrammingDEV Community ·

Agents School lets AI agents earn verifiable diplomas by completing community-built courses

A developer has launched Agents School, a platform where AI agents can enroll in community-created courses to learn specific skills, from tool usage to autonomous decision-making. The project was born out of frustration with having to manually re-teach the same lessons to each new agent instance, with hard-won knowledge remaining siloed. Each course includes coded examinations that give agents a task, required tools, and objective evaluation conditions, ensuring genuine understanding rather than rote memorization. Agents that pass an exam receive a verifiable diploma, providing a portable and standardized way to demonstrate capabilities across different setups. The platform, available at theagentschool.dev, is designed to be collaborative, allowing anyone to create courses and share expertise with the broader AI development community.

0
ProgrammingDEV Community ·

How to Build a Production-Ready RAG Chatbot Using Pinecone, LangChain, and GPT-4

A technical walkthrough published on DEV Community outlines how developers can build a retrieval-augmented generation (RAG) chatbot capable of answering questions from internal SOP documents. The system combines OpenAI's GPT-4, Pinecone's vector database, and LangChain for orchestration, all containerized within a Docker-compose stack. RAG works by first retrieving relevant document snippets and feeding them into the language model, reducing the risk of hallucinated responses. The full build is estimated to take six to eight hours for a developer familiar with Python and Docker, with a per-query cost of roughly $0.014 based on typical token usage. The guide targets teams seeking citation-ready, document-grounded answers from an internally hosted chatbot pipeline.

0
ProgrammingDEV Community ·

Developers Can Build an AI Legal Research Tool Using RAG in Under 6 Hours

A technical guide published on DEV Community outlines how developers can build a Retrieval-Augmented Generation (RAG) legal research assistant using Python, LangChain, OpenAI, and Pinecone. The system connects to the free CourtListener API to retrieve public court opinions, embeds them into a vector store, and uses an LLM to generate a concise legal brief. The estimated build time is four to six hours for a developer familiar with Python and basic HTTP authentication. Key tools include LangChain for orchestration, OpenAI's GPT-3.5-turbo for text generation, and either Pinecone or a local Chroma database for storing case embeddings. The resulting command-line tool can later be integrated into a Flask app or workflow automation platform for use within law firms.

0
ProgrammingHacker News ·

Guide Promises First OpenStreetMap Edit in Under 15 Minutes

A new beginner-friendly guide aims to help users make their first contribution to OpenStreetMap within 15 minutes. The resource is hosted on GitHub and appears to be associated with a JOSM plugin website wizard tool. OpenStreetMap is a collaborative, open-source mapping project that relies on volunteer contributions from around the world. The guide was shared on Hacker News, though it received minimal engagement at the time of posting.

0
ProgrammingDEV Community ·

Developer Builds AI Triage Agent to Detect Hidden Auth0 and Okta Identity Failures

A developer has created a CIAM triage agent that detects customer identity failures which Auth0 and Okta log as successes, addressing a gap in standard authentication monitoring. The tool classifies failures across three layers: authentication, authorization, and app configuration, pulling events from identity providers and using Anthropic's Claude model for pattern analysis. A key capability is correlating multiple related error codes into a single root-cause diagnosis, rather than generating separate alerts for symptoms of the same underlying issue. The agent can also detect silent authorization failures, such as users authenticated into an Auth0 Organization with no role assigned, which produce no failure event in the log stream. The developer is offering the tool free to a limited number of Auth0 and Okta teams for 30 days and can be reached at hello@getkaus.com.

0
ProgrammingDEV Community ·

Codename One Now Lets Dialogs Open as Native Desktop OS Windows

Codename One, an open-source framework for building cross-platform apps from a single Java or Kotlin codebase, has released a fix via PR #5624 that allows dialogs to appear as real modal desktop operating-system windows. The update addresses a bug where Dialog.show() was incorrectly targeting the wrong surface when multiple native windows were open. Developers can enable this behavior app-wide using Dialog.setDefaultNativeWindowMode(true) or on a per-instance basis, while ports without native window support automatically fall back to lightweight dialogs. The fix also corrects several components — including Dialog, ComboBox, and ToastBar — that previously conflated 'top level' with 'form', causing incorrect behavior in multi-window environments. Native-window mode is recommended when a dialog needs to participate in desktop window ordering or task switching, while lightweight mode remains the default for simpler prompts.

0
ProgrammingDEV Community ·

Anthropic CEO Dario Amodei Outlines Five-Point AI Policy Agenda for Frontier Models

Anthropic CEO Dario Amodei has published a policy essay titled 'Policy on the AI Exponential,' arguing that rapid advances in frontier AI are outpacing the capacity of public institutions to regulate them. The essay proposes a five-area framework covering frontier-model testing, employment effects, civil liberties, downstream technology management, and international coordination among democracies. Among its most concrete proposals is an FAA-style regulatory model requiring mandatory third-party safety testing of frontier models, with government authority to block deployments that fail those checks. Anthropic also plans to release separate legislative proposals on frontier-model testing and job displacement policies. The essay is directed at governing the most advanced AI systems rather than restricting everyday business use of established AI tools.

0
ProgrammingDEV Community ·

How a time-zone mismatch caused a test to fail every morning and pass every afternoon

A developer at WatchNext discovered an intermittent test failure in their air-date countdown app while making unrelated changes to a privacy page and footer. The failing test checked whether an episode airing tomorrow was counted as one day away, but it was occasionally returning two days instead. Investigation revealed the bug was pre-existing and not caused by the recent edits, confirmed by running the test suite after reverting all changes. The root cause was a calendar mismatch: the test built 'tomorrow' using JavaScript's toISOString(), which always outputs UTC dates, while the production function deliberately calculated day differences in America/Los_Angeles time. This meant that during the roughly seven-to-eight hours each day when UTC had rolled over to a new date but Los Angeles had not, the two sides of the assertion were measuring from different calendars, causing the test to fail.

0
ProgrammingDEV Community ·

NextAPI Module Registry Lets Developers Install Full-Stack Features Like Packages

A developer has introduced the NextAPI Module Registry, a system designed to let teams install complete full-stack application features as single installable units. Unlike traditional packages that deliver only a frontend component or backend library, NextAPI modules bundle pages, API endpoints, database resources, authentication, navigation, and environment configuration together. The workflow mirrors familiar package manager commands, where running 'nextapi add profile-page' adds an entire feature rather than a library requiring manual integration. After modules are added, a 'nextapi sync' command resolves dependencies and integrates everything into the project. The registry is not intended to replace npm or existing package managers, but to address the gap between having reusable code pieces and having reusable application capabilities.

0
ProgrammingDEV Community ·

Why the Same Code Breaks on ARM but Not Intel: Store-Load Reordering Explained

A recurring bug pattern emerges when engineering teams migrate code from Intel x86 to ARM64 processors: data corruption or deadlocks appear on ARM despite the code working flawlessly on Intel hardware. The root cause is store-to-load reordering, a behavior where CPUs execute memory operations out of program order to keep pipelines busy, using a store buffer that delays writes to cache. While x86 processors mask this reordering due to their stricter memory model, ARM64 exposes it, making previously hidden concurrency bugs observable. A simple two-thread litmus test demonstrates that both threads can read zero from shared variables simultaneously — an outcome that sequential logic says should be impossible. Inserting a proper CPU-level memory fence instruction, such as 'mfence' on x86 or 'dsb sy' on ARM64, restores the expected behavior by preventing loads from bypassing pending stores.

0
ProgrammingDEV Community ·

Three Ways to Implement API Key Authentication in ASP.NET Core on .NET 9

A tutorial from DEV Community demonstrates three approaches to API key authentication in ASP.NET Core running on .NET 9. The methods covered are middleware for app-wide protection, an MVC authorization filter for controller-level control, and an endpoint filter for minimal API routes. All three approaches read the header name and secret key from configuration using the Options pattern, binding values to a typed class rather than loose strings. Developers are advised to store actual key values in a secret store such as Azure Key Vault or environment variables in production, never in appsettings.json. The guide also highlights a common pitfall in endpoint filters where failing to return immediately after a 401 response causes the pipeline to continue unintentionally.

0
ProgrammingDEV Community ·

Safari Technology Preview 252 brings @supports named-feature(), unprefixed user-select

Apple released Safari Technology Preview 252 on September 11, 2026, authored by Jon Davis, incorporating WebKit changes across a defined commit range. The update introduces @supports named-feature(), enabling developers to test browser behaviours that property/value probes or selector() checks could not previously detect. Two CSSOM properties, CSSConditionRule.supports and CSSMediaRule.matches, are now exposed, and the unprefixed user-select property gains support alongside percentage values for text-decoration-inset. Two accessible-name fixes address a display:contents element incorrectly inheriting sibling text and list marker text leaking into accessible names. The release is limited to the preview channel and carries no Baseline designation.

0
ProgrammingDEV Community ·

Developer Builds Open-Source SDK Wrapper for Luckfox Pico Edge AI Board

A developer spent four hours building a custom build system wrapper for the Luckfox Pico (RV1103), a compact Edge AI board. The project was prompted by the absence of any beginner-friendly cross-compilation toolchain setup for the device. The wrapper abstracts away boilerplate so developers can run a simple make command and proceed without manual configuration. This was also the author's first experience building a toolchain-automation setup from scratch. The write-up serves as both a practical tutorial and a lessons-learned account of the process.

0
ProgrammingDEV Community ·

How to Repair, Reinstall OS, and Link Two Lenovo ThinkStation PGX Units

A researcher who acquired several Lenovo ThinkStation PGX units — ARM-based GPU workstations built through an NVIDIA-Lenovo collaboration — documented how to fix a unit whose operating system would not boot. The repair involved reinstalling the OS using a Lenovo-customized ISO image, which differs from the standard GB10 image available on NVIDIA's website and is not directly provided in official documentation. The process requires creating a bootable USB drive with Rufus, using a wired USB keyboard (wireless 2.4G keyboards are unsupported), and following on-screen prompts through the GRUB and DGX installer menus. The author also outlined how to connect two PGX machines for multi-GPU networking via their built-in QSFP 200G ports, noting that compatible switches are expensive and hard to source, limiting most setups to a direct two-machine link. A key prerequisite for the multi-machine setup is ensuring both systems share the same Linux username before establishing the connection.

0
ProgrammingDEV Community ·

Engineer Simulates Rocket Nozzle Airflow Using Just 150 Lines of Python

A developer has demonstrated how a de Laval rocket nozzle can be simulated using approximately 150 lines of Python code. The de Laval nozzle features a converging section, a narrow throat, and a diverging section that together convert high-pressure thermal energy into directed kinetic energy. The simulation visualizes how exhaust gas crawls slowly through the chamber, accelerates sharply at the throat, and reaches supersonic speeds as the nozzle widens. This behavior is governed by the area-velocity relation, which shows that subsonic flow speeds up when a channel narrows, while supersonic flow speeds up when it widens. The project serves as an accessible, code-based illustration of core compressible flow principles from aerospace engineering.

0
ProgrammingDEV Community ·

Six TypeScript Features Experts Recommend Adopting First for Faster Bug Fixes

A developer who has onboarded multiple teams onto TypeScript recommends adopting features in a prioritized order rather than all at once to avoid frustration. The guide suggests enabling strict mode and noUncheckedIndexedAccess in tsconfig on day one, as these settings catch the most common bugs with minimal setup. Using discriminated union types and the unknown type instead of any helps enforce safer handling of external data from APIs, localStorage, and fetch calls. The satisfies keyword, introduced in TypeScript 4.9, allows config objects to be validated against a type while preserving literal types. For utility types, the author recommends starting with just four — Partial, Pick, Omit, and ReturnType — and avoiding complex conditional or mapped types in application code, where they tend to reduce readability.

0
ProgrammingDEV Community ·

Developer Builds Git-Based Engineering Contract to Control AI Coding Agents

Software developer Frederik Schmittel created RepoMethod, a framework that stores engineering workflows directly in a Git repository rather than inside AI model prompts. The tool defines strict rules for coding agents — including which files they can modify, what counts as a completed task, and how delivery is verified. Schmittel tested the system using ChatGPT on a Fastify TypeScript service, tasking the agent with adding pagination to a GET /items endpoint to match an existing pattern. An initial attempt failed because ChatGPT's sandbox could not perform a standard git clone, and the agent correctly refused to fabricate a successful result. The experiment highlighted a key design principle: the underlying AI agent can be swapped out, but the repository-owned engineering method remains the authoritative, unchanging contract.

0
ProgrammingHacker News ·

Reverse Engineering Reveals Microcode Behind Intel 8087 FPU Scale Instruction

Researchers have reverse-engineered the microcode inside Intel's 8087 floating-point unit, focusing on the FSCALE instruction. The 8087 was a math coprocessor introduced by Intel to handle floating-point arithmetic operations that the main CPU could not efficiently perform. The analysis, published on righto.com, sheds light on the low-level implementation details hidden within the historic chip. Such reverse-engineering efforts help document the inner workings of legacy hardware that shaped modern computing.

0
ProgrammingHacker News ·

NPR Opinion Asks Whether Society Is Ready for a Luddite Revival

An NPR opinion piece published on September 8, 2026, raises the question of whether it is time for a renewed Luddite movement in modern society. The article examines growing skepticism toward technology and its impact on work, culture, and daily life. It was shared on Hacker News, where it garnered 11 points and sparked a small discussion with 3 comments. The piece invites readers to reconsider the relationship between technological progress and human well-being.

0
ProgrammingDEV Community ·

Yunsoft Releases Docker Compose Setup for YunCMS with MySQL 8.4 Support

Yunsoft Software has published an official Docker Compose configuration for its open-source CMS platform, YunCMS, verified against version 0.1.22 in September 2026. The stack bundles a YunCMS container alongside MySQL 8.4 and two persistent volumes, eliminating the need to install Node.js, npm, or a separate database server on the host machine. Users can get a working YunCMS Studio running by downloading two configuration files, setting strong passwords in an environment file, and running a handful of Docker commands. The setup supports both linux/amd64 and linux/arm64 architectures, making it compatible with standard servers and ARM-based development machines. Since YunCMS 0.1.x remains pre-stable, Yunsoft advises production users to pin a specific verified image version rather than relying on the latest tag.

← NewerPage 1581 of 3502Older →