SShortSingh.

Programming

0
ProgrammingHacker News ·

Xiaomi Launches Mimo 2.6 Live Training Dashboard

Xiaomi has released version 2.6 of its Mimo platform, which appears to feature a live training dashboard. The update was noted on Hacker News, garnering modest community attention with 13 points and one comment. The dashboard is accessible via Xiaomi's dedicated Mimo web portal. Further technical details about the update's features or target users were not provided in the available information.

0
ProgrammingDEV Community ·

What an llms.txt File Is, Why It Matters, and What to Put in It

An llms.txt file is a plain-text, prose summary of a website written for language models rather than traditional search crawlers, based on a proposal published by Jeremy Howard in September 2024. No major AI company has confirmed it reads the file, but the author argues it is still worth creating because the process forces businesses to articulate clearly what they do, who they serve, and what they refuse to claim. The file sits alongside robots.txt, sitemap.xml, and schema markup, but is unique in using natural language to convey context that structured data formats cannot capture. Effective entries should include a one-sentence summary that stands alone, a clear boundary of services, a description of the intended buyer, and correctly spelled name variants. The core argument is that the clarity required to write the file well tends to improve the broader website, making the exercise valuable regardless of whether AI systems ever act on it.

0
ProgrammingDEV Community ·

How to Write Scoped Cursor Rules for Next.js App Router Projects

A tutorial published on DEV Community outlines how to create three focused Cursor rules for Next.js App Router projects instead of relying on a single catch-all instruction file. The rules target distinct concerns: app and component conventions, server-side mutations and data access, and security boundaries covering authentication, authorization, and secret handling. Each rule uses glob patterns to activate only in relevant file paths, keeping guidance contextual and reducing noise during development. The security rule is intentionally broader since authorization or secret-handling mistakes can surface across routes, libraries, and components alike. The approach prioritizes placing the right reminder next to the code where an error would be most costly, rather than making an AI agent fully autonomous.

0
ProgrammingDEV Community ·

How to Diagnose and Fix Ollama Ignoring Your GPU on Linux and Windows

Ollama, a local AI model runner, may default to CPU inference even when a GPU is available, significantly slowing performance. Running 'ollama ps' while a model is loaded reveals the PROCESSOR column, which shows whether inference is running on the GPU, CPU, or split between both. The most common causes of GPU detection failure include outdated drivers, missing user group memberships on AMD Linux setups, a pinned OLLAMA_LLM_LIBRARY environment variable, or containers launched without GPU access flags. Partial GPU offloading typically occurs when model weights and context cache exceed available VRAM, and can be addressed by using smaller quantizations or reducing context window size. Checking the Ollama server log for the 'inference compute' line helps pinpoint exactly which hardware was detected at startup.

0
ProgrammingDEV Community ·

Developer Builds Apple Virtualization Framework Support Into Flutter Desktop App WSL Manager

WSL Manager, a Flutter desktop app originally launched in 2021 to simplify Windows Subsystem for Linux management, has released a version 2 that also runs on Apple silicon Macs. The new macOS build manages native Linux and macOS virtual machines using Apple's Virtualization framework, installable via Homebrew. Because Flutter cannot directly hold a VZVirtualMachine object, the developer created a separate Swift command-line helper called vmctl, which runs as a detached daemon and communicates with the Dart frontend by printing JSON to stdout. A shared backend interface in Dart allows both the WSL and Apple VM helpers to be driven by the same codebase, with a capabilities record used instead of platform checks. The macOS implementation required solving several low-level challenges, including IP detection via DHCP lease files, SSH session handling, cloud-init seed generation without third-party tools, and in-process qcow2-to-raw disk conversion.

0
ProgrammingDEV Community ·

Laptop GPU Outperforms 12-Core CPU by 4.3x Running Google Gemma 4 Model

A developer benchmarked Google's Gemma 4 E2B language model on a single laptop equipped with a 13th-gen Intel Core i7-1360P and an Nvidia GTX 1650 Ti (4 GB) GPU. The test used the llama.cpp server with identical settings on both arms, differing only by whether GPU layers were offloaded via the -ngl flag. Across eight test cells varying prompt and output lengths, the GPU achieved a median decode speed of 4.27 times faster than the CPU, with individual ratios ranging from 4.04x to 4.34x. The GPU also delivered prefill times roughly 3.63x faster, though time-to-first-token remained linearly dependent on prompt length for both devices. The results highlight that even an older, entry-level laptop GPU can offer substantial inference gains over a modern multi-core CPU for small language models.

0
ProgrammingDEV Community ·

Developer uses MM/DD/YYYY dates to teach PostgreSQL extensions, indexes, and custom types

A developer at DEV Community has created an intentionally flawed PostgreSQL project that stores dates as plain MM/DD/YYYY text strings to demonstrate four advanced database features. The project covers building C extensions, expression indexes, custom operators, and specialized GiST index types. Using the awkward US-style date format as a teaching constraint, the tutorial walks through why a simple expression index often suffices and when a custom base type becomes necessary. The GiST index built in the project can efficiently answer queries filtered by month, day, or year independently, which suits seasonal or birthday-style lookups. The author explicitly warns against using this approach in production, framing the exercise purely as a hands-on learning tool.

0
ProgrammingDEV Community ·

Radio lets AI agents from different providers chat in one shared channel

A tool called Radio, built by Plasma, allows AI agents from different providers to communicate directly without human go-betweens. Currently, users working with multiple agents like Claude Code, Codex, Cursor, and Grok must manually copy and paste outputs between them, acting as a middleman. Radio solves this by giving agents a shared URL-based channel where they can exchange messages in real time, across machines and devices. Setup requires just four steps: creating a channel at radio.plasma.ai, copying the link, pasting it into one or more agents, and sending an initial message. The tool requires no custom integrations or provider lock-in, working with any agent capable of fetching a URL.

0
ProgrammingDEV Community ·

How Python Scripts Became a Low-Risk Toolkit for a Legacy Delphi ERP

A solo engineer maintaining a large Delphi-based ERP system for a footwear factory found a practical middle ground by adding Python tooling alongside the existing codebase rather than attempting a full rewrite. The Python scripts, stored in a separate tools directory and never deployed to users, handle tasks like schema dumping, SQL query analysis, and keyboard shortcut documentation that would be difficult or impractical to build in Delphi. A versioned JSON schema file proved especially valuable, giving the engineer a historical record of database changes and making AI coding assistants reliably accurate on a 342-table database. The approach treats the legacy source code as a queryable dataset, allowing new analytical and validation tooling to be built quickly without touching the core application. The engineer argues this strategy of augmenting rather than replacing a stable legacy system is a pragmatic solution for solo maintainers who cannot afford the risk of a parallel rewrite.

0
ProgrammingHacker News ·

Scientists Revisit the Fundamental Question of Why the Universe Is Expanding

Cosmologists continue to investigate one of physics' most profound questions: why the universe is expanding. The expansion, first observed by Edwin Hubble in the late 1920s, has been accelerating, a phenomenon attributed to a mysterious force known as dark energy. Various theoretical frameworks, including Einstein's cosmological constant, have been proposed to explain this behavior. Researchers are examining how quantum mechanics and general relativity may together offer deeper insight into the universe's expanding nature. The question remains one of the central unsolved problems in modern cosmology.

0
ProgrammingDEV Community ·

Zero-Heap RTOS Achieves 8.7µs CAN-FD Latency for ASIL-D EV Safety Systems

Engineer Talal Ali has developed and tested a zero-heap, fixed-memory RTOS architecture designed to ensure freedom from interference (FFI) between QM and ASIL-D safety bands in automotive systems compliant with ISO 26262 and ISO 21434. The architecture separates hardware into two domains — a Dual-Core Lockstep ASIL-D security domain and an isolated QM domain — with AUTOSAR E2E CRC protection and hardware security module (HSM) encryption on every CAN frame. Validation was conducted on an electric vehicle platform (HV-CTRL-01 v2.4) using Hardware-in-the-Loop (HIL) simulation on a simulated wet track at 42.6 km/h, where the system maintained stable torque vectoring with a deviation rate of -0.42 rad/s. Key measured results include a CAN-FD latency of 8.7 microseconds, zero memory fragmentation, and a stable vehicle trajectory throughout testing. The developer recommends that EV platform engineers abandon dynamic memory allocation in safety-critical systems in favor of fixed allocation with per-frame CRC and strict QM/ASIL-D domain separation.

0
ProgrammingDEV Community ·

Why CSS Overflow Clips Dropdowns and How Developers Can Fix It

A common front-end problem occurs when custom dropdown menus inside modals get visually cut off, with options appearing partially or not at all. The root cause is CSS overflow properties like auto and scroll, which clip painted content at the element's padding box boundary — not just hide it behind a scrollbar. Raising z-index offers no fix because the issue is clipping during paint, not stacking order. Native HTML select elements avoid this by rendering their dropdown lists on a separate browser layer, outside the normal CSS box model. Developers using headless UI components must account for this by repositioning dropdown panels outside overflow-clipped ancestors, often via portals or fixed positioning.

0
ProgrammingDEV Community ·

How to Fix SSH Key Permissions and Automate Auth Inside WSL

Running SSH inside Windows Subsystem for Linux (WSL) can cause authentication failures because Windows NTFS-mounted drives assign permissive 0777 permissions to all files, conflicting with OpenSSH's strict POSIX permission requirements. The root cause is that WSL mounts Windows drives under /mnt/c/ using a translation layer that ignores standard Linux file ownership and access controls. To avoid these errors, SSH keys should be generated and stored exclusively within WSL's native ext4 file system at ~/.ssh, using the Ed25519 algorithm for stronger security and compact key size. Strict permissions must then be enforced manually — 700 on the directory, 600 on the private key, and 644 on the public key — to satisfy OpenSSH's security checks. Passphrase re-entry friction can be eliminated by configuring ssh-agent to cache credentials in memory and auto-loading it via a conditional block in ~/.bashrc for every new shell session.

0
ProgrammingDEV Community ·

CetinLM Trains 2B-Token AI Model on a Single Consumer GPU at Home

Independent researcher Mert Cetin, working under Me Force Technology, has trained a language model called CetinLM past the 2.05 billion token milestone using only a single 16GB NVIDIA RTX consumer GPU in a home desktop setup. The project was built entirely from scratch, including custom data pipelines and a bespoke tokenizer, without relying on cloud infrastructure or enterprise hardware. Validation loss steadily improved from 2.7653 at 1.80 billion tokens to 2.7392 at 2.05 billion tokens, indicating stable and continuous learning. Even before any fine-tuning or chat alignment, the base model achieved a 75.1% top-token probability on factual recall tasks such as identifying Ankara as the capital of Türkiye. Cetin argues the project demonstrates that disciplined, efficiency-focused engineering can lower the barrier to AI research without requiring massive capital investment or large-scale compute infrastructure.

0
ProgrammingDEV Community ·

UPS Charge Display Shows Power Level, Not Battery Health — Here Is How to Test It

A UPS unit displaying full charge only confirms stored energy, not whether the battery can sustain a real load during an outage. Built-in self-tests, such as the ten-second checks used by Schneider's Smart-UPS and Back-UPS lines, verify that the transfer relay and inverter activate but do not reflect true runtime capacity under actual load. A battery that has lost most of its useful capacity can still pass a ten-second test, meaning the automatic alarm may not trigger until the battery is already dangerously degraded. The recommended method for a genuine test is to connect the actual protected load, disconnect the input power cord, and time how long the battery holds before the configured shutdown completes. For those who prefer not to pull a live cord, tools like NUT support deep battery test commands on compatible hardware, offering a less disruptive alternative.

0
ProgrammingDEV Community ·

How to Run GPU-Accelerated VMAF on Windows Using WSL2, Docker, and NVIDIA

Running GPU-accelerated VMAF (Video Multimethod Assessment Fusion) on Windows has no official prebuilt binary support, making the setup process difficult for most users. A developer has published a step-by-step guide using WSL2, Docker Desktop, and the NVIDIA Container Toolkit to enable the libvmaf_cuda filter on Windows machines. The workflow relies on the open-source easyVmaf project, which includes a CUDA-specific Dockerfile designed for this purpose. On an NVIDIA RTX 3060 Mobile, the setup achieves roughly 15x real-time processing speed, analyzing a 46-minute video in about three minutes compared to nearly an hour on CPU. The guide is exclusive to NVIDIA GPUs, as libvmaf_cuda does not support AMD or Intel graphics hardware.

0
ProgrammingDEV Community ·

How Node.js SaaS Teams Should Handle Job Retries With Queues and Dead Letters

A technical guide for Node.js SaaS developers recommends replacing simple cron-based job retries with an at-least-once message queue, idempotent workers, and a dead-letter queue (DLQ) for failed jobs. The cron-only approach breaks down at scale — for example, when 40,000 inventory updates flood a system and an upstream API begins throttling requests, a single cron cursor cannot cleanly track which jobs finished, which were fetched, and which need retrying. The recommended pattern separates concerns: cron triggers the initial pulse, workers independently consume and acknowledge individual messages, and unrecoverable failures land in a DLQ for operator review and selective redriving. Because standard queues guarantee at-least-once delivery rather than exactly-once execution, workers must implement durable idempotency checks tied to the business operation — such as a unique order ID and notification type record — to prevent duplicate side effects. The article emphasizes that recovery semantics, not queue selection, are the core design challenge, and teams should define upfront what makes a job unique, when to acknowledge it, and how to handle rate-limit errors before choosing any broker.

0
ProgrammingHacker News ·

Study Evaluates Frontier AI Models on Physics Problem-Solving Ability

A research paper published on arXiv examines how well leading AI language models perform on physics tasks. The study benchmarks frontier models against a range of physics problems to assess their reasoning and accuracy. Researchers aimed to identify the strengths and limitations of current AI systems in a scientifically rigorous domain. The findings contribute to the broader conversation about the readiness of AI models for real-world scientific applications.

0
ProgrammingDEV Community ·

Why Mastering One Data Pipeline Beats Chasing a 571-Item Tech Roadmap

A 571-line Data Engineering Roadmap 2026 recently circulated online, sparking debate on Reddit about whether such exhaustive tool lists help or overwhelm aspiring data engineers. Critics argued that job descriptions stuffed with product names like Spark, Kafka, Airflow, and Snowflake obscure the deeper, durable skills that actually matter. One perspective gaining traction is that learners should master one complete data system end-to-end rather than collecting disconnected technologies from a checklist. Core competencies like idempotency, schema evolution, incremental loading, and pipeline recovery remain relevant regardless of which tools come and go. A simple project pipeline — from a PostgreSQL source through incremental extraction to a warehouse with quality checks — is proposed as a more effective learning foundation than finishing multiple tool-specific courses without ever owning a full system.

0
ProgrammingDEV Community ·

Top AI Security Tools Enterprises Should Know in 2026

A recent guide published on DEV Community highlights leading AI-powered security tools designed for enterprise use. The article, authored by Anthony Max, was posted on September 16 and covers tools relevant to AI, web development, and programming. The piece focuses on open-source solutions available to organizations looking to strengthen their security posture. It serves as a curated resource for developers and IT professionals navigating the growing landscape of AI-driven cybersecurity.

← NewerPage 1194 of 3225Older →