SShortSingh.

Programming

0
ProgrammingHacker News ·

CAPTCHAs May Be Culturally Biased Toward American Users, Study Argues

A blog post originally published in 2017 has resurfaced on Hacker News, arguing that CAPTCHA systems are culturally skewed toward American users. The piece contends that image-based CAPTCHAs often feature objects, signs, and infrastructure more familiar to people in the United States than to users elsewhere. This cultural bias can make it harder for non-American users to pass verification tests, effectively disadvantaging them online. The post sparked renewed discussion on Hacker News, accumulating 19 points and 12 comments. The argument raises broader questions about whether widely used security tools inadvertently exclude or frustrate global users.

0
ProgrammingDEV Community ·

Monorepo vs Polyrepo: The Real Factors That Determine the Right Choice at Scale

Choosing between a monorepo and a polyrepo is less a Git decision and more a question of team ownership, dependency management, and architectural boundaries. Engineers working with distributed systems often find that the repository structure itself is rarely the root problem — what matters more is how teams are coupled and how frequently services change together. A monorepo offers a key advantage: the ability to view and modify the entire codebase at once, making large-scale refactors, API contract changes, and dependency upgrades significantly easier to manage. Polyrepos, by contrast, can provide stronger team autonomy and isolation, but may introduce coordination overhead when shared libraries or cross-service changes are involved. Ultimately, the more productive question is not how many repositories to create, but where to draw boundaries between teams, code, and delivery pipelines.

0
ProgrammingDEV Community ·

Why Citation Links Alone Cannot Validate Healthcare RAG System Accuracy

Retrieval-augmented generation (RAG) systems used in healthcare can produce answers with working citation links that still fail factual accuracy checks, as a cited passage may only partially support a claim or describe a different population. Developers are urged to define a formal claim-to-source contract that specifies what evidence is retained for each assertion, what checks are performed, and how failures are surfaced to users. Individual sentences should be broken into separate, independently verifiable claims, since a single sentence can contain multiple assertions and one claim may require evidence from more than one passage. Source records should capture not just a URL but also a content fingerprint, extraction version, and specific passage used, because the same web address can serve updated documents over time. Teams commissioning such systems should clearly distinguish in their project scope between prototype demonstrations using handpicked sources and fully functional retrieval-backed implementations.

0
ProgrammingDEV Community ·

Dev boosts React portfolio Lighthouse score from 30 to 80 with Vite prerendering

A developer improved their Vite and React single-page application's mobile Lighthouse performance score from 30 to 80 by adding static prerendering at build time. The original site sent an empty HTML shell to browsers, causing slow paint times and leaving search engine crawlers with only 134 words of readable content. By rendering the React component tree to HTML during the build process and hydrating on the client side, crawlers now index over 1,000 words and content appears before JavaScript executes. Additional gains came from deferring non-critical interactive elements like terminal games and animations to idle browser time using requestIdleCallback. Lazy-loading a large charting library only when its section nears the viewport further reduced the initial bundle size and blocking time.

0
ProgrammingDEV Community ·

Developer Seeks Input on Best URL Format for Bug Report File Attachments

A developer building a tool called Media2URL is asking the tech community for feedback on how uploaded files should be shared in bug reports and support tickets. The tool currently generates both a direct file URL and a shareable preview page after each upload. The creator notes that direct URLs are generally more convenient for GitHub issues and Markdown embeds, while preview pages may suit PDFs or videos that need additional context. Open questions include whether factors like file expiry, Content-Type headers, or hotlink protection influence format preference. The feedback will be used to determine the default output order presented to users after an upload.

0
ProgrammingDEV Community ·

PostgreSQL Index Bloat: Why VACUUM Won't Shrink Indexes and How to Fix It

A PostgreSQL database was found to have indexes up to six times larger than the heap data they referenced, with one table's 4.6 GB heap carrying 30 GB of indexes. Standard VACUUM only marks dead index entries as reusable and reclaims fully empty pages, but sparse b-tree pages with even one surviving key remain allocated indefinitely since b-trees do not merge sparse neighbours. The recommended fix is REINDEX INDEX CONCURRENTLY run one index at a time, which avoids locking the table and limits peak extra disk usage to the size of one new index. Index bloat can be measured using pgstatindex's avg_leaf_density field, with values significantly below the 90% b-tree default fillfactor indicating bloat, and recovered space can be estimated as current_size multiplied by density divided by 90. VACUUM FULL is the wrong remedy for index bloat as it targets heap bloat, requires an ACCESS EXCLUSIVE lock, and needs free space equal to the entire table size.

0
ProgrammingDEV Community ·

MoonProxy Brings Visual GUI to FRP Tunneling for Self-Hosted Services

MoonProxy is an open-source desktop application that wraps the FRP (Fast Reverse Proxy) client into a graphical interface, eliminating the need to manually edit configuration files. The app allows users to expose local services to the public internet by filling out forms and toggling tunnels with a single click, supporting up to 50 proxy rules. Built with Vue 3, TypeScript, Rust, and the Tauri v2 framework, the installer weighs around 5MB and runs on macOS and Windows. Common use cases include remote NAS access, sharing localhost projects with clients, and self-hosting applications like Jellyfin or Gitea. MoonProxy is available under the MIT license and can be downloaded from its GitHub repository.

0
ProgrammingDEV Community ·

How to Build a Telegram Support Bot With Human Approval Using Flowra

Flowra has published a tutorial guiding developers to create a Telegram customer support bot powered by an AI agent that answers queries using a provided FAQ. The bot handles routine questions automatically but pauses and requests human approval when it encounters sensitive actions, such as processing refunds. Approvals are managed through a review card within the Flowra dashboard, not via Telegram itself, and every step of the interaction is logged. The setup requires a free Flowra account and a Telegram bot token obtained through the official BotFather account. Optional integrations with tools like Shopify or Stripe allow the agent to perform order and payment lookups.

0
ProgrammingDEV Community ·

Google's Antigravity AI Tool Built and Deployed a Full Agent in Three Hours

At Google's Build with Gemini event in Sunnyvale, a developer spent three hours using Antigravity, Google's agent-first coding tool, to build a hackathon tracker called Sprint Ledger. The tool autonomously built, deployed, published the project to a public repository, and even recorded its own demo video. The event was part of Google Cloud's Build with Gemini World Tour, featuring tracks for business, platform, and app builders. Google also unveiled Gemini 3.8 Flash, released September 2, 2026, touted as their best reasoning and coding model yet at competitive pricing. While the results impressed the developer, he noted the tool left behind consistent gaps — one of which appeared visibly in the demo video it produced.

0
ProgrammingDEV Community ·

Developer Tests 6 AI Agent Memory Strategies to Tackle Duplicate and Contradictory Data

A developer benchmarked six deduplication and update strategies used in AI agent memory systems to address the common problem of duplicate and contradictory stored memories. The test examined implementations from three platforms — mem0, MemOS, and signetai — using an open-source project called NeatMem to reproduce all experiments. A real-world example from mem0 version 2.0.7 showed that a single fact, the user living in Seattle, generated four differently worded memory entries across just four conversations. The analysis found that handling near-synonymous, subset-superset, and contradictory memory relationships remains a hard, unsolved problem with no perfect solution. Key design trade-offs involve how duplicates are detected and whether conflicting memories are overwritten or merged via an additional LLM call.

0
ProgrammingDEV Community ·

Critical Bifrost AI Gateway Flaw Allowed Unauthenticated Remote Code Execution

A critical vulnerability (CVE-2026-90898, CVSS 9.8) in the Bifrost open-source AI gateway allowed attackers to execute arbitrary commands with a single unauthenticated HTTP POST request to its MCP management API. Discovered by Yuval Moravchick at JFrog Security Research, the flaw stemmed from management authentication being disabled by default and the official Docker image binding the API to 0.0.0.0, making it publicly reachable. Exploiting the stdio transport type, an attacker could register a malicious MCP client that caused Bifrost to spawn any specified shell command as its own process user. This exposed environment variables containing API keys for all configured LLM providers, including OpenAI, Anthropic, and Google. The issue has been patched in transports/v2.1.0, and users running versions 2.0.x or 1.6.x are urged to update immediately.

0
ProgrammingDEV Community ·

Popular AI Agent Prompt Injection Defenses Fail Over Half of Real Attacks, Tests Show

A developer benchmarked ten open-source prompt injection detectors against 629 real-world attacks drawn from an academic dataset, finding that the best detector caught only 51% of attacks at a 2% false-positive rate. The tests revealed that attacks embedded in ordinary content like emails or documents — rather than obvious override phrases — routinely evade word-based detection methods. Meta's Prompt Guard 2 caught just 6 of 629 attacks at its default threshold setting, though recalibrating the threshold dramatically improved its catch rate to around 99%. The researcher notes that even well-tuned detectors function more like smoke alarms than locks, since attackers can retry indefinitely and a single missed injection could trigger harmful actions. The benchmark tool, called buried-injections, is open source and available on GitHub for teams to test their own setups.

0
ProgrammingDEV Community ·

Critical Magento Flaw CVE-2026-75650 Exploited; Over 132,000 Instances Exposed

A template injection vulnerability dubbed StyleSmuggler (CVE-2026-75650) was found to affect Adobe Commerce and Magento Open Source versions 2.4.4 through 2.4.9, including installs that had applied earlier patches. Active exploitation was confirmed on 4 September 2026, prompting Adobe to release hotfix VULN-39341 on 7 September, with CISA adding it to its Known Exploited Vulnerabilities catalogue the following day. Fingerprint-based scanning identified approximately 132,707 potentially affected Magento instances, far outpacing title-based queries which returned only 5,314 results, as most merchants replace default platform branding. The flaw is triggered through a payment failure email template rendering path, and successful attacks have been observed installing a Rust-based backdoor and, in some cases, a PHP web shell. Stores compromised during the three-day window before the hotfix remain at risk even after patching, requiring manual checks for rogue files, anomalous processes, and suspicious outbound traffic.

0
ProgrammingHacker News ·

Engineer Simulates Fluid Dynamics on a Flip-Dot Display

A maker project called 'Flip Fluid on Flip Dots' demonstrates a fluid simulation running on a physical flip-dot display. Flip-dot displays use electromagnetically actuated discs that physically flip between two states, producing a distinctive clicking sound. The project applies FLIP (Fluid-Implicit Particle) simulation techniques to drive the mechanical pixels in real time. The result creates a visually striking effect where simulated liquid appears to flow across the retro display hardware. The project was shared on the personal portfolio site mitxela.com and gained attention on Hacker News.

0
ProgrammingHacker News ·

Moon's Far Side Rocks Offer Evidence of Ancient Magnetic Field

New research from ETH Zurich suggests the far side of the Moon holds geological clues pointing to the existence of a past magnetic field. Scientists analyzed rock samples or surface data from the lunar far side to reconstruct the Moon's early magnetic history. The findings contribute to ongoing efforts to understand how and why the Moon once generated a magnetic field, which it no longer possesses today. Uncovering this history could shed light on the Moon's internal evolution and broader planetary science.

0
ProgrammingDEV Community ·

No Single Tool Can Reliably Detect AI Hallucinations, Studies Find

Recent research confirms that no single method is universally effective at detecting hallucinations in AI-generated content. Hallucination detection refers to the automated identification of AI outputs that are factually incorrect or unsupported by provided context. Experts now recommend treating detection as a layered workflow rather than relying on any one tool. This combined approach should integrate source checking, knowledge graphs, model behaviour analysis, and internal signals alongside human review. The findings highlight the growing complexity of ensuring factual accuracy in long-form AI responses.

0
ProgrammingDEV Community ·

ZoomEye Data Reveals Scale of Exposed Juniper, Sophos, WatchGuard and Barracuda Devices

A cybersecurity analysis published on DEV Community used the ZoomEye search engine to measure internet-facing appliances from four major edge security vendors on 26 September 2026. Juniper led with 342,558 exposed devices, followed by Barracuda at 164,282, WatchGuard at 31,364, and Sophos at 19,609, though the Juniper figure is not directly comparable as it spans a broader product portfolio beyond firewalls. All three remaining vendors primarily serve small and mid-sized businesses and have each experienced notable remote access vulnerabilities in recent years. The analysis cautions that these figures likely undercount total deployments, since many administrators deliberately obscure device banners, meaning the data reflects organizations that have not actively hidden their presence. Security experts recommend that appliance owners verify firmware versions directly on devices, confirm whether management interfaces are publicly accessible, and subscribe to each vendor's advisory channel to stay current on patches.

0
ProgrammingDEV Community ·

How to Build a Bill of Materials Module for Your Android Library

A Bill of Materials (BOM) allows Android developers to declare a single version in their build file and receive a set of libraries guaranteed to work together, eliminating version-compatibility guesswork. While developers routinely consume BOMs like Firebase or Jetpack Compose, creating one for a multi-module library is far less common but surprisingly simple. The foundation of any BOM is Maven coordinates — a Group ID, Artifact ID, and Version (GAV) — which uniquely identify every library published to a Maven repository. A BOM itself is defined using a POM (Project Object Model) XML file, which describes library metadata and dependencies without requiring any source code or compiled binaries. Understanding how POM files map to GAV coordinates is the key first step toward publishing a custom BOM for library consumers.

0
ProgrammingDEV Community ·

TypeSafe Launches Jev, an AI Model Built for Fast Structured Decisions

TypeSafe has released Jev, which it calls a 'System One Model' — an AI designed to return fast, structured decisions rather than generate open-ended text responses. The concept borrows from psychologist Daniel Kahneman's framework of fast versus deliberate thinking, positioning Jev as a decision engine rather than a general-purpose language model. Developers feed Jev an application state and a set of typed questions, and the model returns structured outputs such as yes/no probabilities, ranked choices, or scores — all evaluable in parallel. TypeSafe claims end-to-end response times of 70–500 milliseconds and an input-token price of $0.042 per million tokens, though these figures are vendor-reported and not independently verified. The launch has sparked developer interest in hybrid AI architectures where models like Claude handle reasoning and generation while Jev handles discrete, time-sensitive decision points within application logic.

← NewerPage 904 of 3180Older →