SShortSingh.

Programming

0
ProgrammingDEV Community ·

Four DNS TXT Record Pitfalls That Break Domain Verification in FastAPI Onboarding

Verifying domain ownership via DNS TXT records is a common step in SaaS onboarding, but four failure modes cause most real-world problems. First, platforms that control a customer's subdomain can inadvertently verify their own zone, proving nothing about the customer's authority. Second, using email-based confirmation instead of TXT records only confirms mailbox access, not actual control over the domain's DNS zone. Third, negative DNS caching means a resolver may hold an NXDOMAIN response for hours after a customer correctly adds the required record, making the system appear broken. Properly handling these issues requires using the Public Suffix List to distinguish platform-controlled zones from customer-owned ones, and accounting for SOA-defined negative TTLs in retry logic.

0
ProgrammingDEV Community ·

SSL Certificate Checks Cover Three Distinct Systems, Not Just Expiry Dates

The phrase 'check my SSL cert' can refer to three separate concerns: domain registration expiry via WHOIS, unauthorised certificate issuance via transparency logs, or the live TLS certificate a server is actively presenting. A developer has built an open-source tool focused on the third case, which is the one most likely to cause a production outage when overlooked. The tool opens a direct TLS handshake to each target host and retrieves certificate details including issuer, validity dates, days until expiry, and trust status. It deliberately sets rejectUnauthorized to false not to bypass security checks, but to capture certificate data even when the chain is broken or the cert is self-signed, reporting trust issues as structured output rather than silent failures. The checker is available on GitHub and as a hosted Apify actor, and is billed per host regardless of the result returned.

0
ProgrammingDEV Community ·

Node.js Domain Onboarding: Why DNS and Mail Verification Need Separate Gates

A single onboarding screen can simplify e-commerce sending domain setup, but it cannot guarantee that DNS propagation and mail authentication complete simultaneously. DNS records may take time to propagate across resolvers after an API creates them, as recursive resolvers continue serving cached answers until TTL expires. Authentication checks like DKIM, SPF, and DMARC each follow different validation rules and can pass at one resolver while failing at another. A real-world migration mistake — treating a single green TXT lookup as full proof — led to a premature hostname cutover and a 14-minute queue of unsent receipts. The recommended approach treats DNS publication, mail authentication, and hostname switching as distinct, observable checkpoints, with raw evidence logged alongside every deployment change.

0
ProgrammingHacker News ·

Linux from Scratch: Build Your Own Linux System from the Ground Up

Linux from Scratch (LFS) is a long-standing open project that guides users through building a complete Linux system entirely from source code. The project provides detailed, step-by-step instructions allowing learners to compile and configure every component of their operating system manually. It is widely regarded as an educational resource for those seeking a deep understanding of how Linux systems work internally. The project recently surfaced on Hacker News, attracting community attention with a small number of points and comments. LFS remains freely available online and continues to serve as a reference for advanced Linux enthusiasts and developers.

0
ProgrammingDEV Community ·

ShimForge Lets Rust Developers Mock Functions in Tests Without Changing Production Code

A new Rust development library called ShimForge allows developers to replace function calls during unit tests without modifying production code or introducing test-only traits. The tool addresses a common pain point where testing error paths — such as filesystem, clock, or FFI calls — forces developers to add generic parameters and abstractions solely for testing purposes. ShimForge is added as a development dependency and works by intercepting specific function calls within a test session, letting developers control return values and verify call counts or arguments. It supports mocking normal functions, methods, generic instantiations, unsafe functions, and foreign function interface calls. The library also provides a simpler replace! macro for cases where full expectation matching is not required.

0
ProgrammingDEV Community ·

Android App Modularization Cuts Incremental Build Time by 30%, Study Shows

A developer restructured a single-module Android app into a core/feature module architecture and benchmarked the impact on incremental build times. The monolithic version took 3.744 seconds to rebuild after a single file change, while the modularized version completed the same task in just 2.614 seconds. This represents roughly a 30% speed improvement, a gain that compounds across every code change made by a development team. The project was built using Kotlin, Jetpack Compose, Hilt, and Gradle version catalogs. Both the modularized and baseline monolith versions have been published on GitHub so other developers can independently reproduce the comparison.

0
ProgrammingDEV Community ·

Developer builds free WordPress plugin to automate pre-handoff site checks

A developer frustrated with repetitive manual checks before every WordPress project handoff created a free plugin called Noshi-Kanamer to automate the process. The plugin scans for common oversights such as noindex being left on, WP_DEBUG enabled, stray debug log files, test posts, default admin usernames, and open XML-RPC. It can automatically fix select issues and guides users to the correct settings for others it cannot handle directly. Once the checklist is complete, the plugin generates a plain-text report that developers can share with clients as proof of a clean handoff. Noshi-Kanamer is available for free on WordPress.org and is being actively updated based on real-world use.

0
ProgrammingDEV Community ·

Three Calculations Every Developer Should Run Before Submitting Their Resignation

Developers frequently switch jobs without verifying the accuracy of their final paycheck, potentially missing out on significant owed wages. A partial pay period is calculated using a daily rate derived from annual salary divided by 260 working days, and the resulting amount can sometimes exceed a standard full paycheck depending on how workdays fall. Unused PTO is converted to cash by dividing annual salary by 2,080 hours, then multiplying by remaining accrued hours — though whether that payout is legally required depends entirely on the state. States like California, Colorado, and Illinois treat accrued vacation as earned wages that must be paid, while others allow employers to forfeit unused balances under use-it-or-lose-it policies. Final paycheck deadlines also vary by state, ranging from the last day of employment in California to the next regular payday in states like Texas, making it critical to know local labor laws before resigning.

0
ProgrammingDEV Community ·

How a Python Temp File Leak Crashed CI Servers and the Fix Made It Worse

A nightly CI build failure led engineers to discover thousands of undeleted temporary directories in /tmp, each containing hundreds of megabytes of Doxygen XML output. The root cause was a missing cleanup call whenever the parsing pipeline aborted with an exception. An initial fix using Python's tempfile.TemporaryDirectory relied on the garbage collector to delete folders automatically, which appeared to work at first. However, circular references in the parser objects delayed GC collection, causing temp directories to accumulate and eventually triggering a massive synchronous disk deletion that blocked the main thread and caused service timeouts. The team concluded that delegating heavy resource cleanup to Python's garbage collector is an anti-pattern, and that explicit lifecycle management of temporary folders was necessary.

0
ProgrammingDEV Community ·

Why a Single Liquidity Score Can Mislead: A Better Data Modeling Approach

Data scientist Johan Wirakarsa, Ph.D., argues that collapsing liquidity into a single score obscures the distinct mechanisms it is meant to measure, such as market depth, funding access, and cash coverage. Writing for DEV Community, he demonstrates a Python data model using standard library dataclasses that keeps each liquidity dimension separate and explicitly typed. The approach prevents unrelated metrics from silently offsetting one another through normalization or averaging. Wirakarsa recommends that any composite indicator be calculated in a separate, versioned function while preserving the underlying inputs, units, and assumptions. He concludes that liquidity is best treated as context rather than a verdict, with interpretation deferred until the consuming application has a clearly defined question.

0
ProgrammingDEV Community ·

Cursor Launches Origin, a Git-Compatible Code Host Built for AI Agents

Cursor, the AI code editor now owned by SpaceX following a $60 billion acquisition that closed on August 14, 2026, launched a new code-hosting service called Origin on August 17, 2026. Origin is a Git-compatible platform built directly into the Cursor app, offering repositories, pull requests, code browsing, and two-way real-time sync with GitHub. Cursor's AI coding agents are embedded within every repository, allowing users to ask questions, make code changes, update pull requests, and push branches without leaving the app. The service integrates with Vercel, Depot, and Buildkite at launch, and is available exclusively to paid plan users across Pro, Teams, and Enterprise tiers. Origin's release notably coincided with an approximately eight-hour worldwide GitHub outage on the same day.

0
ProgrammingDEV Community ·

TCS, Persistent CEOs Confirm Shift to Outcome-Based Pricing Amid AI Productivity Gains

India's top IT firms are overhauling their decades-old billing model as AI reshapes how services are priced and delivered. In August 2026, TCS CEO K Krithivasan told Reuters that roughly 80% of the company's finance, HR, and business-services contracts are now priced on outcomes rather than hours worked. Persistent Systems CEO Sandeep Kalra separately confirmed that clients are demanding the same work for 25–30% less, while expecting faster delivery. TCS attributed the shift partly to AI-driven productivity gains of 10–15%, which it passes to clients in phases to protect its own margins. Cognizant also signalled the same direction, stating that clients now expect measurable business results rather than billable effort.

0
ProgrammingDEV Community ·

In 2026, AI Agent Infrastructure Is Solved — But Context Remains the Hard Problem

By mid-2026, building a functional AI agent has become straightforward, with platforms like Cloudflare Agents SDK and Vercel AI SDK absorbing what once required months of engineering work. However, agents continue to fail in production not due to model limitations, but because they lack organizational context — the decisions, discussions, and institutional knowledge that exist outside code and tickets. A July 2026 arXiv paper (arXiv:2607.14275) confirmed that context quality metrics such as grounding sufficiency and instruction consistency reliably predict agent reliability before deployment. Tools like MCP can grant agents access to data, but raw connector output often floods the context window without providing genuine understanding. The recommended fix is a dedicated context layer that retrieves, reconciles, ranks, and permission-scopes relevant knowledge before the agent begins reasoning.

0
ProgrammingDEV Community ·

AI-Heavy Firms Cut Jobs but Also Grew Headcount 10%, Study Finds

Major tech companies including Block, Oracle, and Meta collectively cut tens of thousands of jobs in 2026 while simultaneously increasing AI spending, contributing to over 121,000 tech layoffs tracked so far this year. However, a working paper analysing data from more than 21,000 US businesses found that heavy AI spenders actually grew their overall headcount by roughly 10% over two years, with entry-level hiring also rising. OpenAI's GDPval benchmark, released in September 2025, revealed that frontier AI models now compete directly with experienced professionals across 1,320 specialised tasks in 44 occupations. Researchers and analysts suggest the layoffs are concentrated in roles focused on routine task execution, while demand grows for workers who bring judgment and decision-making ownership. The emerging pattern indicates that AI is reshaping labour markets rather than simply shrinking them, with job security increasingly tied to the level at which a worker's value sits above what AI can automate.

0
ProgrammingDEV Community ·

Helios AI Model Delivers Real-Time Video at 19.5 FPS with 100x Cost Reduction

Helios is a 14-billion-parameter video generation model developed by researchers from Peking University, ByteDance, and Canva. The model runs on a single H100 GPU at 19.5 frames per second, cutting inference costs by approximately 100 times compared to previous approaches. It achieves this efficiency through architectural innovations including adversarial hierarchical distillation, which reduces sampling steps from 50 to just 3. Helios supports text-to-video, image-to-video, and video-to-video tasks through a unified input representation. The cost and latency improvements make interactive video applications — such as virtual try-ons, accessibility tools, and real-time content creation pipelines — economically viable for the first time.

0
ProgrammingDEV Community ·

TickDB MCP Lets Claude Access Live Market Data With Verified Timestamps

Developers can now connect Claude to real-time market data by configuring the TickDB Model Context Protocol (MCP) server, eliminating reliance on the AI's outdated training data. Without a live data connection, Claude reconstructs prices from memory with no timestamps, making it unreliable for financial research or trading workflows. MCP is an open standard that allows AI tools like Claude to call external APIs mid-conversation, similar to how they invoke a calculator or code interpreter. Once set up via Claude Desktop's config file using a TickDB API key, Claude can fetch live price snapshots, order book depth, historical candlestick data, and other market metrics with millisecond-precision timestamps. Users can independently verify the timestamps using a simple Python script, confirming exactly when the market data was recorded.

0
ProgrammingDEV Community ·

Node.js Guide Advocates Token-Scoped Event Trust for Healthtech IoT Dashboards

A technical guide published on DEV Community outlines a framework for building safer IoT control panels in healthtech environments using Node.js and real-time event discovery. The approach emphasizes that device presence should be treated as an observation rather than a permission, with each event type bound to a narrow token scope to prevent unauthorized actions. The author proposes classifying events into four families — presence, capability, intent, and outcome — to ensure dashboards do not conflate connectivity with authority. A Go-based event envelope structure is recommended, embedding authorization, sequencing, and trust fields directly alongside event names to make unsafe assumptions structurally difficult. The guide stresses that only server-signed observations should drive status displays, while browser-side callbacks must never be permitted to authorize device commands.

0
ProgrammingDEV Community ·

Rust MCP Tool Cuts Next.js Error Tokens by 99.7% While Blocking Credential Leaks

A developer has released an open-source Rust-based tool called Tokenectomy that compresses verbose Next.js and other framework error logs before they are sent to AI coding assistants. The tool reduces a typical 45,820-token error dump to just 118 tokens in under 0.2 milliseconds by stripping irrelevant node_modules stack frames and retaining only the actionable crash location. It also locally redacts secrets such as database passwords and API keys using a deterministic regex pipeline, preventing credentials from reaching cloud-based AI models. Built on the Model Context Protocol (MCP), it integrates with tools like Cursor and Claude Desktop via a pre-built binary distributed through npm, requiring no Rust installation. The tool runs entirely locally over stdio with a memory footprint of 3.45 MB and received a Grade A score from an independent audit by Glama.ai.

← NewerPage 1243 of 3229Older →