SShortSingh.

Programming

0
ProgrammingDEV Community ·

Independent Developer Builds Hardened Arch Linux OS, Drops Cryptographic Rootfs Protection

An independent Linux developer building a security app called RoamSwitch has begun creating a companion hardened operating system, RoamSwitch OS, to address security gaps that userland applications cannot reach. The project is based on Arch Linux and packaged as a bootable ISO, layering proven tools such as AppArmor, fapolicyd, auditd, Falco, and TPM2 rather than building components from scratch. The system is implemented as a Rust workspace with around 39 crates, each handling a specific defensive feature and running as systemd services or timer units, with modules sharing state through a unified incident timeline. The developer ruled out an immutable image-based approach similar to Fedora Silverblue or ChromeOS, citing the significantly greater engineering complexity involved. The project remains in a research and showcase phase, verified on real hardware and in QEMU but not yet recommended for production use due to the absence of third-party security audits or legal review.

0
ProgrammingDEV Community ·

TraceEagle Guide: How to Install Root Certificates for HTTPS Proxy Capture

TraceEagle is a proxy capture tool that requires devices and software to trust its root certificate before it can decrypt HTTPS traffic. Without this trust, users see only encrypted ciphertext instead of readable plaintext. The tool supports one-click local installation on desktop systems, QR code-based installation for mobile devices on the same LAN, and a Full Coverage mode for applications like Java, Python, and curl that maintain their own certificate stores. iOS users must complete an extra step to enable full trust after installing the profile, while Android users install it as a user or CA certificate. Users relying on proxy-free capture methods such as Specified Program Capture generally do not need to install any certificates.

0
ProgrammingDEV Community ·

Building a Pub/Sub Broker from Scratch in Elixir Using Raw Process Primitives

Part 8 of a DEV Community series on distributed systems in Elixir focuses on building a Publish/Subscribe broker without relying on GenServer, Registry, or external libraries like Phoenix.PubSub. The tutorial explains why point-to-point messaging becomes problematic at scale, citing tight spatial and temporal coupling as key architectural drawbacks. A central broker is introduced as an intermediary that maintains a topic-based routing table, allowing publishers to broadcast events without knowing which subscribers are listening. The approach uses only Elixir's raw process primitives — spawn/1, send/2, receive/1, and Process.monitor/1 — to handle fan-out broadcasting and subscriber lifecycle management. The goal is to give developers a ground-level understanding of 1-to-many communication before adopting higher-level abstractions.

0
ProgrammingDEV Community ·

Dynamic Programming Explained: Why Most Learners Start With the Wrong Approach

A tutorial series on Dev Community argues that most programmers are introduced to Dynamic Programming through memorized patterns rather than core concepts, leading to poor understanding. The author explains that DP's central idea is simple: if a smaller version of a problem has already been solved, store and reuse that answer instead of recomputing it. Before reaching for tables or arrays, learners are advised to identify three key signals — choices at each step, overlapping subproblems, and optimal substructure. The series proposes building DP knowledge from recursive thinking first, locating redundant work, and only then applying memoization or tabulation to eliminate it. This first chapter focuses entirely on the mindset and mental model, with subsequent chapters set to introduce the technical machinery progressively.

0
ProgrammingHacker News ·

Major AI firms push self-serving frameworks under guise of frontier regulation

Leading artificial intelligence companies are reportedly advancing regulatory proposals that critics argue are designed to entrench their own dominance rather than protect the public. The strategy, described as 'pacing the frontier,' frames industry-led guidelines as necessary for keeping up with rapid AI development. Analysts suggest the approach amounts to regulatory capture, where powerful incumbents shape rules to limit competition from smaller rivals. The report, published by The Register in September 2026, highlights growing concern that big tech is steering AI governance in its favor. The debate underscores tensions between innovation-friendly regulation and independent oversight of the AI industry.

0
ProgrammingDEV Community ·

How to Build a Practical Custom AI Agent Using M365 Agent Builder

A developer on DEV Community has outlined a straightforward approach to building a custom AI agent using Microsoft 365 Agent Builder, which requires an M365 Copilot license but incurs no per-use costs. The author emphasizes starting with a genuine use case rather than building an agent in search of a problem, warning that the latter approach consistently fails. For their own use case, they built an agent that generates single-page HTML technical reports, replacing earlier workflows involving PowerPoint and the Research agent. The agent's design covers key elements such as an instruction file, branching logic, and a context-based skill borrowed from Anthropic to enhance UI quality. The author also flags prompt injection as a security risk when reusing third-party skills, advising developers to review skill files in raw form rather than through a markdown viewer.

0
ProgrammingDEV Community ·

Preview Environment Simulator walks developers through full PR lifecycle in browser

A browser-based tool called the Preview Environment Simulator demonstrates how a pull request label can trigger an automated chain — from webhook and CI image build to namespace creation, DNS, certificates, and database branching. The simulator walks users through five scenes representing each stage of the process, pausing between systems so developers can observe what each component does. Three fixed PR scenarios illustrate different environment configurations, including cost estimates ranging from $0.15 to $0.69 per hour and isolation scores between 88% and 96% depending on data strategy and access controls. An optional failure-practice mode blocks the workflow at a realistic point and presents three repair choices, only one of which resolves the issue. The tool was built in partnership with Atomsized and uses a Neon database branch to mirror preview data through the PR lifecycle.

0
ProgrammingHacker News ·

Exploring the Link Between Data Compression and Prediction

A technical article published on lukefleed.xyz examines the conceptual relationship between data compression and prediction. The piece explores how compression algorithms and predictive models share fundamental principles. It was shared on Hacker News, where it received 4 points at the time of reporting. The article invites readers to consider compression not merely as a storage tool but as a form of statistical prediction. No comments had been posted on the Hacker News thread at the time of submission.

0
ProgrammingDEV Community ·

How Software and Optics Must Work Together in Industrial Laser Systems

Modern industrial laser systems rely equally on software and optics, with software controlling power, pulse timing, scan paths, and positioning while the optical path determines what the workpiece actually receives. Losses from contamination, thermal drift, misalignment, and coating degradation can all alter the beam before it reaches its target, meaning software commands alone do not guarantee the intended outcome. Developers are advised to treat optics as part of the physical layer when debugging, since a problem that appears software-related may have an optical root cause. Advanced closed-loop systems, such as one demonstrated by NIST researchers, can adjust laser power within roughly 118 microseconds of a melt-pool measurement, highlighting how tightly software and physical processes must be integrated. Components like dichroic mirrors, filters, and galvanometer scanners each play distinct roles in shaping and delivering the beam, adding layers of complexity that software cannot fully compensate for on its own.

0
ProgrammingDEV Community ·

Wenker Router lets developers self-host a unified AI gateway for 181+ LLM providers

Wenker Router is an open-source, MIT-licensed AI gateway that runs locally and consolidates access to over 181 large language model providers — including OpenAI, Anthropic, Gemini, and DeepSeek — through a single entry point. The tool is designed to help developers manage multiple LLM APIs without scattering credentials and requests across different tools and services. It ships with a web landing UI, an admin dashboard, and a VS Code extension, making it usable directly within a developer's coding environment. Setup requires cloning the GitHub repository and running a standard npm install, with a batch file available for Windows users seeking a quicker start. The project is actively seeking community contributions, including new provider adapters, UI improvements, and smarter token routing logic.

0
ProgrammingDEV Community ·

Docker Images vs Containers: Key Differences Every Beginner Should Know

Docker images and containers are related but distinct concepts that often confuse newcomers to the platform. An image is a read-only template stored once on disk, while a container is a live, running instance created from that image — similar to a class and an object in programming. Multiple containers can be launched from a single image simultaneously without duplicating files on disk, making Docker storage-efficient. Each container gets its own thin writable layer on top of the shared image, meaning changes in one container do not affect others. However, this writable layer is temporary and is deleted when the container is removed, so persistent data requires the use of Docker volumes.

0
ProgrammingDEV Community ·

How to Fix 'Permission Denied' Error on Docker Daemon Socket in Linux

Linux users running Docker commands may encounter a 'permission denied' error when trying to connect to the Docker daemon socket at /var/run/docker.sock, because the socket is accessible only to root and members of the docker group. The permanent fix is to add your user account to the docker group using 'sudo usermod -aG docker $USER', after which Docker commands work without sudo. A new login session must be started for the group membership change to take effect, since existing shell sessions retain the old group list. A quick but temporary workaround is to prefix commands with sudo, though this is not recommended for regular use. Users should avoid the commonly suggested 'chmod 666' fix, as it exposes the Docker socket to all users and processes on the machine, creating a serious security risk.

0
ProgrammingDEV Community ·

Developer Shares Step-by-Step Guide to Cleaning Messy HR Data Using PostgreSQL

A data practitioner published a detailed walkthrough on DEV Community demonstrating how to clean a corrupted HR dataset using PostgreSQL. The raw dataset contained spelling errors, missing values, and inconsistent data formats that made it unsuitable for business reporting. The process began by creating a staging table to preserve the original data before any modifications were made. Cleaning steps included standardizing column names to snake_case, removing prefixes from employee IDs, and deleting records with null or empty identifiers. The project aimed to transform unstructured HR records into an analysis-ready dataset accessible even to beginners in the data field.

0
ProgrammingDEV Community ·

Ollama vs llama.cpp in 2026: Key Differences and When to Use Each

Ollama and llama.cpp are two popular ways to run large language models locally, but they serve different use cases rather than being direct competitors. Ollama functions as a managed service that wraps a patched version of llama.cpp, handling model storage, scheduling, and automatic loading with a simpler interface. Direct llama.cpp, by contrast, gives users granular control over GPU placement, KV cache settings, and runtime flags, making it better suited for advanced or production configurations. Ollama is generally recommended for users who want a quick, low-friction setup for local chat, coding assistants, or scripting tasks. Those who need fine-grained performance tuning, immediate access to new llama.cpp features, or native Prometheus metrics are better served by running llama-server directly.

0
ProgrammingDEV Community ·

Developer Builds Proactive Discord AI Bot with Built-In Safety Monitoring System

A developer has built an autonomous Discord AI companion in Python that initiates conversations on its own, rather than waiting to be mentioned or commanded. The bot uses a probabilistic timing mechanism to decide when to speak, generating topics via the Gemini API to keep interactions feeling natural. A dual-channel safety system runs in the background, auditing messages for toxicity, prompt injection, and sentiment imbalance before they reach users. Server admins can monitor activity through a dedicated back-end logging channel, and a killswitch can immediately halt autonomous messaging if a safety issue is detected. Both the companion bot and the security monitor have been released as open-source projects on GitHub.

0
ProgrammingDEV Community ·

Google Now Treats AI Answer Manipulation as Spam, Risking Deindexation

Google updated its spam policies on 15 May 2026 to explicitly classify attempts to manipulate generative AI responses in Search as spam. The revised policy extends the existing spam framework — which can result in lower rankings or complete removal from search results — to cover AI Overviews and AI Mode. Tactics such as seeding fake mentions on forums, stuffing promotional phrases to influence AI recommendations, or paying services that promise guaranteed AI citations now fall under this definition. The policy change does not introduce a new penalty but broadens the scope of existing spam enforcement to include AI-generated answer surfaces. Legitimate optimization, such as creating high-quality content that AI models may naturally cite, remains acceptable under the updated guidelines.

0
ProgrammingDEV Community ·

Why AI Agent Loop Detectors Fail and How to Fix Them in Hours

A production AI agent was found repeating actions for 40 steps without triggering any errors or exceptions. The commonly recommended repetition detector failed because it only checked whether an action was repeated, not whether any real-world change had occurred. This subtle but critical flaw means agents can appear to be functioning normally while actually making no progress. The proposed fix involves implementing a progress signal that monitors changes in the environment rather than tracking the agent's own actions. Developers running unattended agents are advised that addressing this gap typically requires only a few hours of work, not a full system rebuild.

0
ProgrammingDEV Community ·

Open-Source Background Agents Brings Four-Layer Fault Tolerance to Long-Running AI Tasks

Background Agents, an open-source project built on the Open-Inspect framework, is designed to handle multi-hour autonomous coding sessions that typical agent demos cannot sustain. It implements a four-layer fault-tolerance system that escalates failures through limited retries, fallback model hand-off, parallel evaluator shadow monitoring, and feedback-injected reruns. The project runs tasks inside isolated Docker sandboxes, allowing parallel sub-tasks with independent file systems and git directories, while a control plane manages sandbox provisioning and graceful shutdown on failure. The architecture is based on an approach Ramp described publicly, but this open-source release exposes the orchestration logic that most agent frameworks leave undocumented. The project has reached 3,057 GitHub stars and is currently trending fourth among TypeScript repositories.

0
ProgrammingDEV Community ·

How 3 SMEs Cut Email Overload by Over 50% Using Client Portals

A service agency documented outcomes from deploying custom client portals across three small businesses over 18 months, including a marketing consultancy, an accounting firm, and a web agency. The marketing consultancy saw email volume fall by around 58% within six weeks, while file-retrieval time for the four-person team dropped to near zero. The accounting firm reduced routine client status emails by roughly 65% and cut client onboarding time in half, though an overly complex initial dashboard limited early adoption to just 40%. Simplifying the portal interface to three core elements pushed adoption to 71% within 30 days. The deployments highlighted that portals work best by eliminating low-value communication rather than replacing all client interaction.

0
ProgrammingDEV Community ·

Critical Sogou Input Method Flaw Lets Hackers Deploy GrayRabbit Backdoor via Single Link

A critical vulnerability (CVE-2026-51990) in Tencent's Sogou Input Method for Windows is being actively exploited by threat actor UNC3569 to deploy the GRAYRABBIT backdoor. Attackers send victims a crafted sgbiz: URI link that chains an unvalidated parameter, an outdated sandboxless Chromium 80 instance, and a separate V8 exploit (CVE-2021-38003) to achieve remote code execution with a single click. Once executed, a downloader drops legitimate 7z.exe alongside a malicious DLL and encrypted payload into C:\Users\Public\Documents\, ultimately loading GRAYRABBIT into memory via DLL sideloading. The backdoor communicates with a command-and-control server over raw RC4-encrypted TCP on port 443, supporting shell access, file transfer, and in-memory plugin loading. Tencent has released a patch in version 16.3.0.3498, and users are urged to update immediately and audit process chains and network traffic for signs of compromise.

← NewerPage 1287 of 3251Older →