SShortSingh.

Programming

0
ProgrammingDEV Community ·

RAG, MCP, Skills, and Memory: The Four Mechanisms That Give AI Agents Real-World Knowledge

Large language models are limited to their training data by default, leaving them unable to access live systems, recall past interactions, or follow team-specific procedures. Engineers have converged on four distinct mechanisms to close this gap: Retrieval-Augmented Generation (RAG), the Model Context Protocol (MCP), Agent Skills, and agent memory. RAG grounds model responses in static documents like manuals or policy handbooks by retrieving relevant passages before generation, a technique rooted in a 2020 paper from Facebook AI Research, UCL, and NYU. MCP, open-sourced by Anthropic in November 2024, is a standardized client-server protocol that lets agents connect to live systems such as databases and internal APIs to read or write real-time data. Agent Skills and memory address the remaining gaps — repeatable procedures and the ability to retain context across sessions — making all four mechanisms complementary rather than interchangeable.

0
ProgrammingDEV Community ·

Developer finds Google indexed zero of 270 articles due to JavaScript rendering gap

A developer discovered on August 13, 2026, that Google had crawled 270 of their articles but indexed none, with 157 flagged as Soft 404s. Using Googlebot's user-agent to fetch their own URLs, they found the HTML body contained zero characters because the site was a JavaScript single-page app that served only a shell on initial load. Google's JavaScript execution does not guarantee it waits for all dynamic content to render before evaluating a page for indexing. The fix was implemented via an existing Netlify edge function, which was extended to inject the article body as semantic HTML, JSON-LD structured data, and hreflang tags for bots without affecting the experience for human readers. The developer noted the core lesson was to verify what crawlers actually receive rather than assuming content quality or SEO factors were to blame.

0
ProgrammingDEV Community ·

How to Strip GPS Metadata From Uploaded Images Before Publishing via Express

Developers publishing user-uploaded images via Express.js risk exposing GPS location data embedded in EXIF metadata if images are not properly sanitized before reaching a public URL. A four-stage pipeline is recommended: validate the upload, decode pixels into a new image object, re-encode a fresh file without application metadata, and then inspect the actual output bytes for any remaining location fields. The key insight is that checking the original file's metadata is insufficient — only auditing the final encoded output confirms no GPS data survived the process. A Python utility using Pillow can perform this audit in test workers or CI pipelines even when the request handler runs in Node.js. This approach is especially critical in apps like edtech platforms, where uploads from private locations could inadvertently expose a user's home address through seemingly harmless image files.

0
ProgrammingDEV Community ·

DraftKey App Brings On-Device AI Writing Edits to Any Mac Text Field

A developer has launched DraftKey, a native Mac app designed to bring AI-powered text rewriting directly into existing macOS text fields via a keyboard shortcut. The tool aims to eliminate the repetitive copy-paste workflow of switching between writing apps and AI chatbots for small, everyday edits. Unlike cloud-based AI tools, DraftKey runs entirely on-device using local AI models, meaning drafts and private text do not need to leave the user's Mac. The app requires macOS 14 or later, Apple Silicon, and at least 8GB of memory, with a local model download of approximately 1.12GB. It also includes optional mechanical keyboard sounds and is available at getdraftkey.com.

0
ProgrammingDEV Community ·

Engineer shares battle-tested C++ rules for safer, faster embedded systems code

A software engineer has published a set of personal coding principles developed over a full career, shaped by colleagues across many projects and code reviews. The rules are designed to make C++ code both safer and faster, particularly for embedded systems running on ARM Cortex-M33 and M7-class microcontrollers. Four core disciplines guide the approach: strict memory and mutation control, a single consistent numeric type, mandatory error handling, and minimising hidden dependencies. The constraint of targeting low-resource microcontrollers — where a single stray heap allocation can break real-time audio deadlines — drove the elimination of dynamic memory allocation in signal paths. The author frames the rules not as fixed doctrine but as evolving lessons, crediting a broad group of collaborators for helping develop and refine them over time.

0
ProgrammingDEV Community ·

How to Build Checkout Metrics Dashboards Without Prometheus Infrastructure

A technical guide outlines how fintech teams can implement reliable checkout telemetry using a hosted metrics API instead of Prometheus-style infrastructure monitoring. The approach recommends keeping telemetry outside payment transactions to prevent rollbacks from erasing failure evidence, ensuring diagnostic data remains independently durable. Developers are advised to assign each checkout attempt a unique identifier, use low-cardinality dimensions for aggregate metrics, and record outcomes only after a commit or rollback completes. The guide also warns against embedding sensitive data such as card numbers, emails, or OTPs in metric labels, instead mapping failures to a reviewed taxonomy like validation, database, or payment provider errors. A sample Python implementation demonstrates retry logic with rate-limit handling, highlighting that a green health indicator alone cannot confirm a checkout transaction actually succeeded.

0
ProgrammingDEV Community ·

Gym Tops Loggd's 2026 Habit List, But Most Users Quit Within Days

A 2026 analysis of over 6,700 habits tracked by more than 3,600 users on the Loggd app reveals that fitness-related habits — including going to the gym, exercising, and walking 10,000 steps — are the most popular, followed by hydration, reading, and meditation. However, high tracking numbers are misleading, as most habits never reach even a two-day streak, with 'go to the gym' holding the top spot alongside one of the shortest average streaks on the platform. Eight of the top ten habits appear as one-tap suggestions in Loggd's onboarding flow, meaning app design heavily influences what users choose to track. The standout exception is GitHub activity, which ranks fifth and auto-logs from a developer's commit history — making it one of the few habits that effectively tracks itself. The data highlights a significant gap between the habits people intend to build and those they actually sustain over time.

0
ProgrammingDEV Community ·

Laravel Releases Official Passkeys Stack to Enable Password-Free Authentication

Laravel has launched first-party support for passkeys through two packages: the backend library laravel/passkeys and the frontend companion @laravel/passkeys for browsers. The stack implements the WebAuthn cryptographic standard, allowing users to authenticate via biometrics, PINs, or physical security keys instead of passwords. During registration, a key pair is generated on the user's device, with only the public key stored on the server, meaning passwords and biometric data never leave the device. Developers can integrate the packages via Composer and NPM, with native support available for projects using Laravel Fortify or Jetstream. The release aims to address common password-based attack vectors such as phishing and credential stuffing by eliminating server-side password storage entirely.

0
ProgrammingDEV Community ·

As AI Writes and Reviews Code, the Traditional Pull Request Model Faces Collapse

The rise of large language models and autonomous coding agents is fundamentally disrupting the pull request (PR) workflow that has long governed software development. Traditionally, PRs served three roles: quality control, knowledge transfer, and establishing team ownership of code. When AI both generates and reviews code, a verification paradox emerges — two models trained on similar data may reinforce each other's blind spots rather than catch meaningful errors. The loss of human narrative in code reviews also threatens institutional memory, as AI agents make probabilistic choices with no documented reasoning behind them. Industry analysts are now calling for a new paradigm based on semantic verification and property-based contract testing to address these gaps.

0
ProgrammingDEV Community ·

How QUIC and HTTP/3 Are Replacing TCP to Fix Web Performance Bottlenecks

TCP, the internet transport protocol in use for over 40 years, suffers from a flaw called Head-of-Line Blocking, where a single lost data packet stalls all subsequent data on a connection. Google began developing QUIC in 2013 as an internal project to address this limitation, and it later became the foundation of the HTTP/3 standard. Unlike TCP, QUIC runs over UDP and implements its own stream-level multiplexing, meaning a lost packet in one stream does not block others. QUIC also embeds TLS 1.3 encryption natively, eliminating a separate handshake step and reducing connection setup time compared to HTTP/2 over TCP. Today all major browsers and web servers support HTTP/3, though many developers and administrators remain unfamiliar with the technical changes and new considerations it introduces.

0
ProgrammingDEV Community ·

Missing Level 3 card data cost a B2B marketplace 180bps in extra fees

A B2B marketplace discovered its payment integration was submitting only basic Level 1 card data — cardholder number, amount, and date — instead of the richer Level 2/3 fields required for lower interchange rates on commercial cards. Without fields like tax amount, PO number, and line-item details such as SKU and commodity codes, every affected transaction was automatically downgraded to the standard commercial interchange rate. The gap proved costly: transactions with full Level 3 data settled at roughly 1.8% effective rate, while those without it settled near 3.6% — a difference of about 180 basis points on six-figure monthly volume. The issue was resolved by making tax amount and PO number mandatory before authorization and pulling existing line-item data from the order database. The effective rate on new transactions fell within a single billing cycle after the fix was applied.

0
ProgrammingDEV Community ·

Why Wildcard DNS Falls Short for Email Authentication in Multi-Tenant Onboarding

A technical analysis published on DEV Community warns that media publishers onboarding custom domains cannot rely on wildcard DNS entries to confirm mail authentication readiness. While wildcards efficiently handle web routing, they fail to verify that individual customer domains have properly configured SPF, DKIM, and DMARC records, which operate on distinct lifecycles. The article argues that each tenant domain requires its own discrete verification state, preventing a single passing DNS lookup from masking incomplete email policy setup. To manage propagation delays and partial configurations, the author recommends a five-stage state machine — requested, observed, verified, active, and drifted — that tracks evidence per record rather than per customer as a whole. This approach ensures each domain cutover is independently auditable and can be rolled back without affecting other tenants.

0
ProgrammingDEV Community ·

Developer Builds Python Bridge to Auto-Archive Manus AI Tasks Into Personal Knowledge Vault

A developer created a Python script that automatically syncs Manus AI agent task conversations into a local knowledge vault every five minutes, solving the problem of those tasks being inaccessible outside the browser UI. The bridge uses the Manus public API to fetch task lists and messages, storing them alongside existing Claude Code conversation logs in a shared raw data layer. Five safety mechanisms keep the script secure and efficient, including reading the API key from macOS Keychain rather than storing it in code, and skipping tasks whose update timestamps have not changed since the last run. A separate worker handles summarisation and interpretation, keeping raw source data strictly isolated from processed content. The script runs via launchd on macOS and writes output to a dedicated folder within the user's personal knowledge base.

0
ProgrammingDEV Community ·

Fix Cursor AI Terminal Freezing Caused by Powerlevel10k Using CURSOR_AGENT Variable

Users running Powerlevel10k or Powerlevel9k shell themes in the Cursor AI editor encounter a known compatibility issue where the agent hangs indefinitely after executing terminal commands, requiring manual intervention each time. The root cause is that these themes interfere with Cursor's command-completion detection mechanism, causing truncated or misformatted output that the agent cannot parse correctly. Cursor's official documentation acknowledges the problem and recommends disabling heavy prompts during agent sessions using the CURSOR_AGENT environment variable in the shell configuration. However, users combining Oh-My-Zsh with Powerlevel10k found that the official fix alone caused themes to break in regular terminals as well. An improved configuration that conditionally skips theme initialization only when CURSOR_AGENT is set — while still sourcing oh-my-zsh normally otherwise — resolves both issues cleanly.

0
ProgrammingDEV Community ·

Developer Builds Production-Grade AWS Infrastructure Covering EC2, EBS, S3, and Route 53

A developer documented the end-to-end process of building a resilient AWS cloud environment designed to withstand human error, configuration drift, and data loss. The setup covered Amazon EC2 instances hardened with termination and stop protection, Elastic IPs, and automated bootstrapping via user data scripts. On the storage side, EBS volumes were decoupled from compute, with snapshot-based disaster recovery tested across multiple Availability Zones. Amazon S3 was configured for static website hosting with scoped bucket policies and automated lifecycle rules for cost governance. The project also incorporated custom AMIs and versioned Launch Templates to enable rapid, consistent instance deployment.

0
ProgrammingDEV Community ·

Developer Runs Indie Studio Remotely Using AI Agents and Voice Mode All Day

A solo developer at HoneyDrunk Studios spent a full workday managing studio tasks from his couch using AI agents and Codex in voice mode, directing work through conversation rather than hands-on coding. During that session, 61 public NuGet packages were updated, published, and verified, with agents handling the dependency chain sequentially while he remained available for decisions. He also integrated Claude Code into the workflow after completing authentication and configuration steps, then used it to generate a Blender scene — including objects, lettering, and a short animation — based on verbal descriptions. The process involved interruptions, repeated instructions, and setup friction, but allowed ordinary life to continue alongside studio progress. The developer framed the experience as a notable shift in how independent software work can be structured when agent-based tools handle the gaps between key decisions.

0
ProgrammingDEV Community ·

CISA Adds Actively Exploited Linux Kernel Flaws CVE-2026-53266 and CVE-2025-39964 to KEV List

CISA added two Linux kernel vulnerabilities — CVE-2026-53266, an out-of-bounds write, and CVE-2025-39964, a race condition — to its Known Exploited Vulnerabilities catalog on 18 September 2026, citing evidence of active exploitation. The KEV listing shifts CVE-2026-53266 from a routine patch task to an immediate operational priority, regardless of its assigned severity score. Security teams are advised to check their distribution's backport status rather than relying solely on upstream kernel version numbers to determine exposure. Where immediate patching is not possible, organizations should restrict network and local access to the affected subsystem as a temporary compensating control. These mitigations are intended as short-term measures with a defined expiry and do not replace applying the official kernel update.

0
ProgrammingDEV Community ·

Developer builds AI agent oversight tool requiring approval before any public action

A tool called Permission Slip was created for the Sanity Challenge, designed to enforce human or agent approval before an AI agent takes any public action such as posting, deploying, or pushing code. The project was built autonomously by Claude Code, an AI coding agent, acting on instructions from an orchestrator agent rather than direct human input. Each action requires an agent to file a structured slip describing exactly what it intends to do, which is then reviewed by a hall monitor and must be signed by a guardian before proceeding. Built on Sanity documents and Sanity Workflows, the system mirrors the same pipeline the building agent itself operates under, where no deployment or publication goes live without a separate reviewer agent's approval. A live demo is available at agent-permission-slip.vercel.app, where users can act as a guardian and approve or decline a haiku-posting demo agent in real time.

0
ProgrammingHacker News ·

Adult Viewers Find Hidden Depths in Classic Cartoon Ed, Edd N Eddy

A blog post on noxluneworld.com explores details and themes in the Cartoon Network series Ed, Edd N Eddy that adult viewers tend to notice upon rewatching. The article focuses on darker or more nuanced elements embedded in the show that may have gone unnoticed by its original young audience. The post was shared on Hacker News, where it received 3 points and no comments. Ed, Edd N Eddy was a long-running animated series that aired on Cartoon Network, popular primarily among children during its original run.

← NewerPage 884 of 3177Older →