SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer Tests Whether AI Agent Authorization Actually Binds to Final Execution

A developer building AgentGuard, an AI agent security tool, investigated whether authorization decisions genuinely bind the specific action that gets executed, rather than merely being associated with it. The core concern is that an authorized action — such as a refund of $100 — could be replaced at execution time with a different one, such as a refund of $1,000, without triggering a rejection. Independent adversarial testing by OpenWorkProof uncovered two high-severity vulnerabilities: one where authorization could be linked to inputs other than the exact execution parameters, and another where an arbitrary callable could be injected into the execution path. In response, the developer redesigned the system around immutable execution snapshots and capability-bound execution to prevent any material change between authorization and actual execution. The findings highlight a broader gap in AI agent security, where permission systems may approve actions without guaranteeing that the approved action is precisely what runs.

0
ProgrammingDEV Community ·

AWS Security Groups vs NACLs: Key Differences Explained Simply

In AWS networking, both Security Groups and Network ACLs (NACLs) are used to control network traffic, but they operate at different levels. A Security Group acts as a firewall at the EC2 instance level, controlling which traffic is allowed to reach a specific virtual machine. A NACL, or Network Access Control List, works at the subnet level, filtering traffic for all resources within that subnet. For example, a Security Group on a web server might allow only HTTP (port 80), HTTPS (port 443), and SSH (port 22) traffic. Understanding this instance-versus-subnet distinction is considered the foundational concept for managing AWS VPC network security.

0
ProgrammingDEV Community ·

C# Tutorial: Convert Excel to Markdown and Back Using Spire.XLS Library

A new developer tutorial on DEV Community demonstrates how to perform bidirectional conversion between Excel spreadsheets and Markdown tables using C#. The guide relies on the Spire.XLS for .NET library, which works independently without requiring Microsoft Office to be installed. Developers can convert Excel files to standard Markdown tables with just a few lines of code, and reverse the process to generate print-ready Excel files from Markdown input. The solution is compatible with .NET Framework 4.0 and above, as well as .NET Core 3.1 and later versions. Output Markdown files are designed to work seamlessly with platforms such as GitHub, Gitee, and Yuque.

0
ProgrammingDEV Community ·

How to Build a Freemium WordPress Plugin That Passes WordPress.org Review

WordPress.org's Guideline 5 prohibits plugins that contain locked, disabled, or paywalled code within the free version submitted to its directory. The compliant approach requires the free plugin to be fully functional on its own, with no hidden pro features bundled inside it. Paid features must live in a completely separate plugin sold off-site, which hooks into extension points exposed by the free plugin when installed and licensed. Developers are also advised to run the official Plugin Check tool before submitting to catch common escaping, internationalisation, and header issues that typically trigger rejection. Additional pitfalls include advertising unbuilt features in readme files and using trademarked terms in plugin slugs, both of which can result in rejection during review.

0
ProgrammingDEV Community ·

AI Coding Logs Are Turning Private Thought Processes Into Corporate Data

As AI coding tools become standard in workplaces, the conversation logs they generate are increasingly stored on company servers and visible to employers through admin dashboards. Unlike code repositories or time logs, these records capture the entire thinking process — what questions an employee asked, where they hesitated, and how they approached problems. Legal frameworks around works-for-hire and trade secrets mean that once such logs reside on company accounts or devices, de facto control effectively transfers to the employer. This raises concerns about misuse, including reducing nuanced cognitive work to performance metrics or extracting an employee's accumulated questioning techniques as proprietary knowledge. The shift marks a new frontier in workplace data, where the internal act of thinking has, for the first time, become externally recordable and replayable.

0
ProgrammingDEV Community ·

Why AI Acts as a Mirror for Human Thinking, Not Just a Smarter Search Engine

A developer writing code with AI since June 2025 observed that AI conversations fundamentally differ from search engines in how they engage the user's thinking. While search engines retrieve existing information without altering the user's thought process, AI conversations involve co-creation — clarifying vague ideas, challenging assumptions, and reorganizing reasoning. The author argues that the process of formulating thoughts into language for an AI inherently forces users to structure and examine their own logic. Rather than simply providing answers, AI acts as cognitive scaffolding, making the user's thinking process externally visible for the first time. This perspective forms the first part of a planned four-part series exploring the nature of human-AI interaction.

0
ProgrammingDEV Community ·

Developer Launches COPstark, an AI-Powered AWS Cloud Cost Optimization Tool

A developer has built COPstark, a cloud budget optimization tool designed to help businesses reduce their AWS infrastructure spending. The tool analyzes AWS environments and generates actionable cost-saving recommendations, while a savings monitor tracks the financial impact of implemented changes. COPstark also identifies potential savings through AWS Savings Plans and includes an AI-powered chatbot that explains the reasoning behind each recommendation. Built on a technical stack including AWS CDK, ECS, Docker, Lambda, and S3, the tool uses secure cross-account access to analyze customer environments without requiring extra infrastructure. The project gave its creator hands-on experience in cloud architecture, distributed systems, and integrating AI into real-world engineering workflows.

0
ProgrammingDEV Community ·

TypeScript Guide Shows How to Calculate True Loan APR After Origination Fees

A technical tutorial published on DEV Community explains how to compute the real annual percentage rate (APR) of a loan when upfront or recurring fees alter the borrower's actual cash flows. The core insight is that a lender's advertised nominal rate can differ significantly from the effective rate once fees reduce the amount a borrower actually receives. The guide frames the problem as an internal rate of return (IRR) calculation, where the true APR is the discount rate that makes the net present value of all scheduled outflows equal to the funds actually disbursed. A TypeScript implementation is provided, covering annuity payment formulas, cash-flow schedule construction, and a bisection-based IRR solver. The author notes the code is intended for comparing disclosed loan cash flows and does not constitute financial or legal advice.

0
ProgrammingHacker News ·

New tool calculates how long a local LLM setup takes to pay for itself

A developer has built a web tool called 'Sunk Cost' to help users determine the break-even point of running large language models on local hardware versus paying for cloud-based API access. The tool takes inputs such as the machine type, the model being used, and daily token consumption to produce a payback timeline. It was created in response to common claims that buying personal hardware to run AI models locally is ultimately cheaper than renting compute by the token. The project focuses purely on cost savings and does not account for other reasons someone might prefer local inference, such as privacy or offline access. The developer has shared it on Hacker News and is actively seeking feedback to improve its usefulness.

0
ProgrammingDEV Community ·

Developer hits $1,310 Google Maps API bill in 48 hours after following Claude AI advice

A developer building a personal database of coffee shops in Mexico racked up a $1,310 bill in under 48 hours after using a script written by Anthropic's Claude AI to query the Google Maps Places API. Claude had advised that the project would comfortably stay within Google's free monthly credits, but the estimate proved incorrect. Unlike many other Google APIs, the Google Maps Platform has no default spending cap, meaning automated scripts can generate unlimited charges without real-time warnings. After weeks of escalation, Google approved a 75% refund of roughly $983, but declined to waive the remaining $327, calling it a final decision. The developer is now urging others to independently verify cloud API pricing and set hard budget limits before running any automated scripts.

0
ProgrammingDEV Community ·

PigData Turns 500 Enterprise Scraping Projects Into Self-Serve Developer API

Japanese data extraction firm PigData has launched Scraping AI, a self-serve developer API built on lessons from over 500 enterprise scraping projects for clients including Amazon, Honda, and MUFG. The company identified recurring inefficiencies in its managed service model, where engineers rebuilt identical parsing logic and anti-bot routines from scratch for each client. To address this, PigData engineered a scalable Python-based pipeline using Django REST Framework, Celery, RabbitMQ, and PostgreSQL, capable of handling thousands of concurrent crawling jobs on shared infrastructure. The system features a versioned state-machine architecture that integrates modular crawlers, LLM-based extractors powered by OpenAI and Gemini, and BM25 plus vector ranking. The API was developed and released within six months, offering developers immediate access without the lengthy sales cycles typical of managed enterprise contracts.

0
ProgrammingDEV Community ·

How Azure SQL Database, Managed Instance, and SQL VMs Fit into Azure Architecture

Azure SQL workloads can be deployed across three main options — Azure SQL Database, Azure SQL Managed Instance, and SQL Server on Azure Virtual Machines — each offering different levels of infrastructure control. Azure SQL Database operates as a fully managed PaaS service, where Microsoft handles patching, backups, upgrades, and failure recovery automatically. The Hyperscale tier takes this further by separating compute from storage using page servers, a log service, and replicas, enabling independent scaling and faster backup and restore. Security in Azure SQL is layered, spanning network controls, authentication, authorization, and data protection rather than being a single feature. These architectural concepts are central to Microsoft's DP-300 database administration certification, which covers all three Azure SQL deployment models alongside on-premises SQL Server.

0
ProgrammingDEV Community ·

Developer Tool Offers 30 Pre-Built Domain Templates to Speed Up LLM Knowledge Base Setup

A developer tool called Synthadoc has introduced 30 domain-specific templates designed to eliminate the structural setup phase when building LLM-powered knowledge bases. Each template provides a pre-configured skeleton covering query routing, agent guidelines, and stub pages tailored to domains such as clinical healthcare, compliance, and DevOps. The tool aims to address a common bottleneck where teams spend weeks debating knowledge architecture before any content is captured, often leading to poorly structured ingestion. A single install command deploys six structural components, including routing tables and AI assistant configuration files that make tools like Claude Code or Gemini CLI immediately domain-aware. The templates do not include actual content but instead define how knowledge should be organized, ingested, and queried within a specific field.

0
ProgrammingDEV Community ·

Google Adds Deep Research to Gemini Live, Enabling Voice-Driven Research

Google has integrated its Deep Research feature into Gemini Live, allowing users to request and discuss in-depth research reports through voice conversations. The update, announced as part of Google's Back to School 2026 event, is designed for users who need to conduct research while on the move, away from a keyboard. Unlike a static report output, Gemini Live lets users initiate a research query and then verbally explore the findings within the same conversation. Deep Research originally launched as a standalone Gemini Advanced feature in 2024 and later expanded into Deep Research Max in 2026 before arriving in the voice interface. Notably, some Gemini features such as Gems and Notebooks remain unavailable during active Live sessions.

0
ProgrammingDEV Community ·

Seven-day audit of WordPress news site reveals cache queue, hidden image as real CWV culprits

A developer spent seven days measuring Core Web Vitals on a shared-hosting WordPress news portal in Guarapari, Brazil, between September 6–14, 2026. The site was failing Google's mobile CWV threshold, with its Largest Contentful Paint clocking 2.8 seconds against a 2.5-second limit, blocking eligibility for Google Discover traffic. Three root causes were identified that did not appear in Google's standard diagnostics: a cache plugin's pre-load queue was consuming server resources around the clock, an archive of older articles — not the homepage — was determining field scores because each new publication flushed the entire site cache, and a CSS-hidden featured image was silently downloading 24 KB at high priority while competing with the visible photo. PageSpeed Insights flagged two images for missing size attributes, but controlled browser testing showed both cases were false positives, as layout space was already reserved via width and height attributes.

0
ProgrammingDEV Community ·

How MindMapAny Uses Markdown as a Middle Step to Build Structured Mind Maps

MindMapAny, a mind map editor, uses an indented Markdown outline as an intermediate format between AI-generated content and the final structured node data. The language model is responsible only for choosing topics and grouping facts, while application code handles converting the outline into a tree with node IDs, parent IDs, and sibling order. A stack-based parser processes the indentation hierarchy, with the root assigned level -1 to avoid special-casing top-level nodes. The parser applies tolerance rules for slight indentation inconsistencies and explicit policies for imperfect model output, such as skipping unrecognized lines and dropping duplicate sibling titles. Warnings are returned for these cases, and the article notes that applications may need to surface such warnings as visible incomplete-output states rather than silently accepting a potentially partial tree.

0
ProgrammingDEV Community ·

Harness Engineering for AI Agents: Context Over Custom Code

The Agent Factory podcast this week explored the concept of 'agentic harness engineering,' a term coined by engineer Ryan Lopopolo. Lopopolo explained how smaller feedback loops can be shaped into long-horizon agentic workflows without manually writing all the code. Engineer Billy Jacobson provided a walkthrough of a simple harness, covering both linear and closed-loop approaches. Smitha Kolan outlined a three-layer stack using Gemini 3.8 Flash, Antigravity Boost, and Google Skills to manage memory, tools, and guardrails. A key takeaway from the discussion was that many best practices used in scaling software engineering teams apply equally well to coding agents.

0
ProgrammingDEV Community ·

Interactive Site Puts 1 Million Token AI Context Windows in Human Terms

A website called One Million Tokens visualizes what a 1 million-token AI context window actually represents, translating it into roughly 750,000 words, 3,000 printed pages, or 75,000 lines of code. The site traces the rapid growth of context windows from GPT-3's 2,048 tokens in 2020 to Gemini 1.5 Pro's 1 million tokens in February 2024, representing a nearly 4,900-fold increase over six years. The visualization highlights how context capacity remained relatively flat for years before climbing steeply by orders of magnitude. However, the site also cautions that a larger context window is a capacity limit, not a performance guarantee, as models can still miss information or reason poorly across long documents. It also notes that long-context windows and retrieval-augmented generation are complementary tools rather than alternatives, since retrieval still helps reduce cost, latency, and irrelevant input.

0
ProgrammingDEV Community ·

Google Rewrites Search Links to Block Scraping, Pushing Users Toward Official APIs

Google began consistently rewriting organic search result links to opaque redirect URLs (google.com/goto?url=…) as of late August 2026, making traditional HTML scraping of search results significantly harder. The change means destination URLs are no longer visible in query strings and can only be resolved by intercepting the HTTP Location header before following the redirect. This follows earlier moves by Google, including the removal of the &num=100 parameter and tighter enforcement of BotGuard and SearchGuard systems. Small businesses and solo sellers who rely on SERP scraping for rank tracking, keyword research, and competitor monitoring are among the most affected. Experts recommend auditing data pipelines and shifting toward first-party analytics, official marketplace APIs, and licensed data sources to reduce dependence on fragile scraping methods.

0
ProgrammingDEV Community ·

PWA Development in 2025: What Actually Works in Production Across Browsers

Progressive Web Apps combine three core components — a web app manifest, a service worker, and HTTPS — to deliver installable, offline-capable web experiences without requiring React or single-page app architecture. Developers working with server-rendered frameworks like Laravel can build fully valid PWAs using standard browser APIs. A production-ready web manifest should include maskable icons, screenshots, and shortcut definitions to unlock richer install dialogs and better OS integration on Android and desktop. Service workers act as network request interceptors with a defined lifecycle, but the often-overlooked 'waiting' state — where a new worker installs but delays activation until all old tabs close — is a leading cause of stale-version bugs in live apps. Properly handling this lifecycle, alongside cache strategy and cross-browser quirks in Chrome, Safari, and Firefox, represents the real complexity in shipping reliable PWAs.

← NewerPage 1326 of 3309Older →