SShortSingh.
0
ProgrammingDEV Community ·

How MCP Servers Must Change When Moving From Local to Multi-Tenant Deployments

Model Context Protocol (MCP) servers that run locally on a single machine behave very differently once deployed behind a gateway accessible to multiple users or teams. A developer built a local lab environment to surface the key problems that emerge in this transition, including authentication, tenant data isolation, and write-tool approvals. The core findings suggest that bearer token validation must happen at the gateway level on every request, and tenant scoping should be enforced at the edge rather than inside individual tools to prevent data leakage. Write operations require time-bound, request-specific approvals, meaning a stale or mismatched approval cannot authorize unintended actions. The author distilled the lessons into a five-point checklist covering per-request auth, edge-level tenancy, expiring approvals, structured audit logs, and pre-tested failure modes.

0
ProgrammingDEV Community ·

How Duplicate Webhook Deliveries Silently Corrupt Payment Data

Payment providers like Stripe, Midtrans, and Xendit routinely retry webhook events, but most applications are not built to handle these retries safely. Common failure modes include duplicate event delivery, out-of-order processing, malformed payloads, mid-process timeouts, and partial commits followed by failed downstream calls. A developer built a local test lab with 18 deterministic tests to reproduce these failure scenarios and validate fixes without involving real transactions. Key recommended safeguards include verifying HMAC signatures against the raw request body, storing both event IDs and payload hashes to detect suspicious retries, enforcing strict state machine transitions, and capping automatic retries at a fixed number before routing events to a human-review queue. Together, these measures address the subtle, compounding bugs that typically cause payment integrations to fail in production.

0
ProgrammingDEV Community ·

xbrowser Adds MCP Server in One Day, Built Without Official SDK

Browser-automation CLI tool xbrowser shipped a stdio-based Model Context Protocol server in version 1.23.1, exposing 7 browser tools to AI agents such as Claude Desktop and Cursor. The team deliberately skipped the official MCP SDK, instead hand-writing a roughly 60-line JSON-RPC 2.0 protocol layer to avoid new dependencies and keep the code fully debuggable. All MCP tool calls route through the same internal functions used by the existing CLI, meaning the tool inherits xbrowser's full 4,000-test suite and any future engine improvements automatically. Two bugs were caught during initial smoke testing: the CLI mistakenly tried to execute protocol JSON as browser commands, and a shutdown race condition triggered early process exit while the browser was still launching. Both issues were fixed before release, and the team notes the experience highlights why thin, hand-written protocol layers are preferable for globally installed CLI tools.

0
ProgrammingDEV Community ·

CSS Units Explained: When to Use px, vw, and vh in Web Design

Web developers use three common CSS units to control the size and layout of elements on a page. Pixels (px) are fixed units that remain constant regardless of screen size or browser window changes. Viewport width (vw) is a relative unit tied to the browser window's width, so 10vw on a 1200px-wide screen equals 120px but shrinks to 60px if the window narrows to 600px. Viewport height (vh) works similarly but is based on screen height, making it useful for elements like hero images that need to fill the full vertical space of any device. Choosing between these units depends on whether a design element should stay fixed or scale dynamically with the user's screen.

0
IndiaTimes of India ·

Samantha Ruth Prabhu opens up about myositis struggle and pregnancy news

Actress Samantha Ruth Prabhu has spoken candidly about her experience battling myositis, an illness that severely impacted her self-esteem and sense of identity. She described feeling a complete loss of control during the difficult period of her diagnosis and treatment. Despite the challenges, Samantha said she found inner strength, hope, and faith while coping with the condition. The actress also revealed that she is expecting her first child, sharing the pregnancy news during the filming of a music video.

0
IndiaTimes of India ·

ED raids Ramnandi Hotels at 9 locations over alleged Rs 132-crore bank fraud

The Enforcement Directorate conducted searches across nine locations in three states targeting Ramnandi Hotels and Resorts Ltd. The company is accused of diverting Rs 58 crore obtained through bank loans using fraudulent reports and personal guarantees. Investigators allege that five properties pledged as collateral were recently sold at prices below their actual value. The ED suspects these transactions were carried out deliberately to obstruct asset attachment and recovery of proceeds from the alleged crime.

0
ProgrammingDEV Community ·

How a 5-Minute Pre-Interview Research Habit Helped One Candidate Land 3 Offers

A job seeker credits receiving three job offers to a simple five-minute routine practiced right before each interview. Instead of rehearsing personal pitches, they spend the time identifying the company's most pressing current problem using sources like recent news, Glassdoor reviews, or the job posting itself. That insight is then shaped into a single, targeted question to ask the interviewer. The candidate says this approach consistently shifts the tone of interviews, prompting more engaged and candid responses from hiring managers. The core idea is to enter the conversation already focused on the employer's challenges rather than solely on self-promotion.

0
IndiaNDTV ·

How Al-Qaeda's 19 Hijackers Carried Out the Devastating 9/11 Attacks

On September 11, 2001, nineteen Al-Qaeda operatives executed a coordinated terrorist attack on the United States by hijacking four commercial aircraft. Two of the planes were deliberately flown into the Twin Towers of New York's World Trade Center, destroying both structures. A third hijacked aircraft struck the Pentagon in Virginia, the headquarters of the US Department of Defense. The fourth plane crashed into a field near Shanksville, Pennsylvania, after passengers bravely attempted to overpower the hijackers. The attacks remain among the deadliest acts of terrorism in modern history.

0
IndiaNDTV ·

Sensex Falls 650 Points as Oil Prices Surge Past $108 on US-Iran Tensions

Indian stock markets faced sharp losses with the Sensex declining around 650 points amid rising global tensions between the US and Iran. Oil prices surged significantly, with Brent crude crossing $108 per barrel and WTI topping $102 per barrel. The spike in crude prices rattled investor sentiment across global and domestic markets. Rising oil costs pose a significant risk to India's economy, which is heavily dependent on crude imports. The market volatility reflects broader concerns about the geopolitical situation and its potential impact on global energy supplies.

0
WorldBBC World ·

Brother of Muslim 9/11 victim defends faith against extremist misrepresentation

Zeshan Hamdani, whose older brother died in the North Tower during the September 11 attacks, has spoken out in defense of Islam amid controversy surrounding the upcoming 25th anniversary memorial. His brother was a Muslim first responder who perished in the attacks. The controversy was sparked by pushback against New York Mayor Zohran Mamdani, who is Muslim, attending the memorial event. Hamdani argues that Islam has been unfairly hijacked and misrepresented in the public discourse surrounding 9/11. His remarks highlight ongoing tensions around Muslim identity and remembrance at one of America's most significant national tragedies.

0
ProgrammingDEV Community ·

How One Developer Built a Daily AI Agent to Track and Filter Contest Postings

A developer has shared a detailed walkthrough of building an autonomous AI agent using Claude Code that automatically collects contest and grant postings every day. The system parses multiple posting sites, filters out risky contract clauses, and delivers a morning digest — all running on a single Windows PC. A key design principle in the project is defining clear completion criteria upfront, so the AI knows when its work is genuinely done rather than just when code has been written. The agent also flags failed data sources in its reports, ensuring transparency rather than silently skipping errors. The author emphasizes that moving domain-specific checklists — such as eligibility rules and contract red flags — into code structurally prevents human oversight mistakes.

0
SportsESPNcricinfo ·

Deepti Sharma unfazed by final opponent after India's fielding struggles

India secured a place in the Women's T20 Asia Cup final despite a poor fielding display in their semi-final against Bangladesh. All-rounder Deepti Sharma acknowledged the fielding lapses but remained philosophical, saying such off days are part of the game. When asked about their potential final opponents — Pakistan or Sri Lanka — Deepti stated it made no difference to the team's preparation. India will face whichever team emerges from the other semi-final, with the squad focused on their own performance rather than the opposition.

0
ProgrammingDEV Community ·

Safari 27 rewrites module loader in C++ to fix top-level await ordering bugs

Apple's WebKit team has completely rewritten Safari's JavaScript module loader in Safari 27, replacing a legacy self-hosted JavaScript implementation with C++ code that directly mirrors the ECMAScript specification. The original loader dated back to the abandoned WHATWG Loader proposal from around 2016, predating async/await, which made correctly supporting the ECMAScript 2022 top-level await feature structurally difficult. As a result, modules using top-level await could resolve out of order in Safari, causing intermittent errors such as bindings being accessed before initialization. Engineer Kai Tamkun documented the rewrite in a September 2, 2026 WebKit blog post, noting the team validated the new loader using fuzzing, cross-engine output comparisons, and the test262 and Web Platform Tests suites. The fix is focused on correctness rather than performance, and primarily benefits developers who have encountered top-level await ordering issues specific to Safari.

0
ProgrammingDEV Community ·

How to Build a Trustworthy Human-in-the-Loop Receipt Review System

A reliable receipt review console requires every extracted text value to be traceable back to its exact source image pixels, according to a software engineering guide published on DEV Community. The system should store immutable source-image identity, page dimensions, and normalized bounding geometry alongside each text field, while human corrections must be recorded as versioned decisions rather than direct edits to OCR output. Three separate references — a content identity, an extraction revision, and a stable field ID — should each serve a single purpose to prevent evidence from being overwritten or duplicated. Bounding box coordinates must be stored in source-image space and transformed into display coordinates at render time, ensuring accuracy across different screen sizes and orientations. The guide warns that fields outside a defined review policy should remain unapproved even if extraction produced plausible text, and that a content digest is a stronger integrity check than relying on object keys alone.

0
ProgrammingDEV Community ·

How to Build Disaster Recovery for AKS Apps Relying on On-Premises ML Services

Organizations running web applications on Azure Kubernetes Service (AKS) while depending on on-premises machine learning inference services face a unique disaster recovery challenge, as failures can occur independently across cloud, data center, and network layers. A four-tier DR framework — Backup and Restore, Pilot Light, Warm Standby, and Multi-Site — can be adapted to address this hybrid architecture. Each tier differs in cost and recovery speed, ranging from slow but cheap backup restoration to expensive always-on multi-site deployments. Engineers are advised to define Recovery Time Objectives and Recovery Point Objectives separately for each stack layer, since the web tier and on-prem ML pipeline often have vastly different tolerance for downtime. Graceful degradation is recommended to bridge the gap when cloud and on-premises components cannot fail over at the same speed.

0
SpaceNASA ·

NASA Astronomy Picture of the Day Highlights Galaxy M83, the Southern Pinwheel

NASA's Astronomy Picture of the Day (APOD) for September 11, 2026, features M83, a spiral galaxy commonly known as the Southern Pinwheel. APOD is a long-running NASA initiative that publishes a daily image or photograph of the universe, accompanied by an explanation from a professional astronomer. M83 is a prominent barred spiral galaxy located in the southern constellation Hydra. The feature is part of APOD's ongoing mission to make astronomical discoveries accessible and engaging to the general public.

0
ProgrammingDEV Community ·

What Is a Large Language Model? A Plain-Language Explainer for AI Beginners

A Large Language Model (LLM) is a program that generates text by predicting the most probable next token — a small chunk of text — at each step, based on patterns learned from vast amounts of training data. Multiple LLMs exist, and while they share this core principle, each differs in capacity, modality, reasoning ability, context window size, cost, and access method. Well-known AI products such as ChatGPT, Claude, and Gemini are distinct from the underlying models that power them, such as GPT-4o or Gemini Flash, and a single product may use models from more than one company. So-called open-weight models make their learned numerical parameters — called weights — publicly available, allowing developers to download, run, and fine-tune them on their own infrastructure. These weights encode everything the model learned during training, functioning similarly to the weighted factors a person unconsciously considers when making a repeated decision, like choosing a commute route.

0
IndiaTimes of India ·

CINTAA Dispute: Documents Allegedly Removed From Office Amid Leadership Crisis

A fresh controversy has erupted within the Cine & TV Artists' Association (CINTAA) after actress Kunickaa Sadanand alleged that Poonam Dhillon and Padmini Kolhapure removed documents from the association's office. Sadanand publicly expressed her disappointment over the deteriorating situation within the body. Police were unable to intervene as no Charity Commissioner's order was in place to prevent the removal. Members of the Federation of Western India Cine Employees (FWICE) stepped in and intercepted the vehicle carrying the documents. The crisis has deepened following the resignation of a significant number of committee members, necessitating fresh elections.

← NewerPage 1100 of 5094Older →