SShortSingh.
0
ProgrammingDEV Community ·

Angular Cache Bug: URL-Only Keys Serve Stale Data After User Context Switch

A common Angular caching bug causes users to see data belonging to a different user, tenant, or permission context after switching accounts. The root cause is an incomplete cache key that relies solely on the API endpoint URL, failing to account for context-specific inputs like tenant ID, locale, or user permissions. When two different contexts request the same endpoint, the cache incorrectly treats them as identical and returns the previously stored response. The fix requires building composite cache keys that include every variable affecting the response, such as context ID and normalized query parameters. Additionally, a context-switch event should explicitly clear cached entries to prevent stale or sensitive data from persisting beyond its valid scope.

0
ProgrammingDEV Community ·

Google Recommends Noindex Tags for Content From New or Untrusted Users

Google has advised website owners to apply noindex meta tags to content submitted by new or unverified contributors until they establish a trusted reputation on the platform. The guidance, published via Google Search Central, is aimed at sites that accept user-generated content such as reviews, forum posts, comments, or guest submissions. Google also recommends using nofollow or ugc link attributes on links within untrusted content to curb spam and manipulation. The approach allows businesses to keep user submissions publicly visible on their site while controlling which content becomes eligible for search indexing. This is especially relevant for small and medium-sized businesses that lack the staff capacity to manually review every incoming submission in real time.

0
ProgrammingDEV Community ·

Dev builds screen-reader Unity plugin using Codex AI, shares accessibility lessons

A blind developer has spent the past week building Unity Access, a plugin that makes the Unity Editor compatible with the NVDA screen reader by bridging the two APIs. The project was coded almost entirely using OpenAI's Codex running GPT-4.5 Sol, prompting the developer to share practical lessons learned along the way. A key takeaway is that achieving accessibility with AI requires precise, testable behavioural instructions rather than vague prompts like 'make it accessible'. The developer also relied on VS Code for writing specification files due to its strong out-of-the-box NVDA compatibility, enabling independent navigation and code review. Setting detailed boundaries in a root AGENTS.md file — covering permitted file changes, required APIs, and completion criteria — was highlighted as critical to getting consistent, predictable results from the model.

0
IndiaTimes of India ·

PM Modi rebukes top bureaucrats over poor quality of public infrastructure projects

Prime Minister Narendra Modi on Tuesday chaired the monthly Pragati meeting and sharply criticised senior secretaries over the substandard quality of public projects. He reportedly told top bureaucrats that such lapses were 'unacceptable' and that the current approach was unsustainable. Modi reviewed six infrastructure projects spanning railway, road, and power sectors across nine states, with a combined cost exceeding Rs 30,000 crore. He stressed that infrastructure projects must be monitored as an integrated whole rather than as separate sections or packages.

0
ProgrammingDEV Community ·

How to fix Terraform 'resource already exists' errors without deleting anything

When Terraform throws an AlreadyExists or creation conflict error, the root cause is typically a mismatch between the provider's known objects and Terraform's state, not a broken infrastructure. Terraform operates on two sources of truth: the desired configuration and the state file that tracks which remote objects it manages. If a resource exists remotely but lacks an entry in the state, Terraform plans a create, which the provider then rejects. The recommended fix involves four steps: confirming the remote resource exists, understanding why Terraform lacks ownership, importing the resource to link it to the correct state address, and running a revised plan to verify reconciliation. Blindly deleting resources or running imports without investigation can duplicate ownership disputes or cause further drift.

0
TechnologyBBC Tech ·

Government Agency Backs High-Risk, High-Reward Scientific Research

A government agency has been established with a focus on funding ambitious and unconventional research projects. The initiative targets high-risk studies that traditional funding bodies might overlook due to their uncertain outcomes. The goal is to drive breakthrough discoveries by supporting bold scientific ideas that carry significant potential rewards. By taking calculated risks on innovative research, the agency aims to accelerate progress in key areas of science and technology.

0
ProgrammingDEV Community ·

How Developers Are Building 60FPS AI Image Editing Entirely in the Browser

Modern browsers can now run complex AI workloads like image masking, background removal, and neural inpainting directly on a user's device, without relying on backend servers. Technologies such as WebGL, WebGPU, WebAssembly, and client-side inference engines like Transformers.js and ONNX Runtime Web make this possible. Achieving smooth 60 frames per second requires each processing stage to complete within a strict 16.67-millisecond window per frame. Running these pipelines locally eliminates network latency, reduces bandwidth costs, and keeps sensitive visual data from ever leaving the user's device. This shift marks a significant departure from the traditional model of offloading heavy compute tasks to remote server clusters.

0
ProgrammingDEV Community ·

How to Achieve Flyway Rollbacks Without a Paid License Using Community Edition

A developer has published a method to perform database migration rollbacks using Flyway Community Edition, bypassing the need for the paid Teams license that gates the official 'undo' command. The approach exploits two core Flyway rules — that version numbers must always increase and the schema history table is authoritative — to express rollbacks as forward migrations. For each migration file, a corresponding 'down' script is maintained in a parallel directory, and when a rollback is triggered, the down script is applied as a new higher-versioned migration. The solution also tracks migration batches by diffing applied versions before and after each migrate run, storing the result in a JSON state file so the correct set of changes can be reversed. The schema history table is then cleaned up to keep the recorded state consistent with both the database and files on disk.

0
ProgrammingDEV Community ·

Infra Lang v0.5.1 Lets Developers Define Infrastructure Once, Deploy Across Multiple Platforms

A developer has released Infra Lang v0.5.1, an open-source Infrastructure-as-Code compiler designed to eliminate repetitive configuration across tools like Kubernetes, Docker Compose, Helm, and Terraform. The tool allows users to write infrastructure definitions once in a typed domain-specific language and compile them to multiple target formats. Version 0.5.1 introduces features including service dependency management, cloud secret store integration, a network policy security DSL, and FinOps cost estimation with CI/CD guardrails. The cost estimation feature can generate Markdown reports for pull requests and automatically fail pipelines if projected monthly costs exceed a set budget. The project is open source and available on GitHub at github.com/TuviDev/infra-lang, with installation possible via pip.

0
IndiaTimes of India ·

Kentucky county converts 225-acre golf course into public park, preserving 70% as green space

A Kentucky county has shut down its Fox Run Golf Course, which drew only 9,000 to 10,000 rounds of golf per year, deeming it unsustainable. The 225-acre property is now being redeveloped into a large public park for the local community. The new facility will include trails, climbing areas, biking infrastructure, water features, and family-friendly spaces. Approximately 70% of the land will be retained as natural greenspace to benefit future generations.

0
IndiaTimes of India ·

Pasaquan: Georgia Artist's 29-Year Visionary Masterpiece Restored by Kohler Foundation

Eddie Owens Martin, an unconventional American artist, spent nearly 29 years transforming his Georgia property into an elaborate visionary art environment called Pasaquan. The sprawling 900-foot site features painted totems and intricate masonry that blend diverse cultural influences. Over time, the outdoor installation suffered significant weathering and structural deterioration. The Kohler Foundation stepped in to undertake a major restoration effort, preserving the site for future generations.

0
ProgrammingDEV Community ·

ByteChef Launches Managed RAG Knowledge Base with Vector Search and OCR Support

ByteChef has introduced a built-in Knowledge Base feature that lets teams store and semantically search documents using retrieval-augmented generation (RAG). Users can upload files in formats including PDF, Markdown, Word, JSON, and plain text, with scanned documents handled via an OCR pipeline. The platform automatically parses, chunks, embeds, and indexes content into a pgvector-backed PostgreSQL database, with configurable chunk sizes and overlap settings per knowledge base. Retrieval is accessible through AI Agent tools, workflow actions, and a built-in search interface for testing queries before deployment. ByteChef manages the vector schema and indexing automatically, though users remain responsible for scheduling re-ingestion and manually handling upstream document deletions that the system cannot detect on its own.

0
ProgrammingDEV Community ·

Bitaxe Naja Duo Becomes First Open-Source Bitcoin Miner to Break 10 J/TH Barrier

The Bitaxe Naja Duo, set to ship next week, is the first open-source home Bitcoin miner to achieve sub-10 joules per terahash efficiency, running at 9.5 J/TH at stock settings. It is built around two BM1373 chips — Bitmain's 3nm SHA-256 ASICs from the Antminer S23 generation — which carry no public datasheet and required community reverse-engineering to operate. An ESP32-S3 microcontroller runs the open-source esp-miner firmware, handling chip initialisation, work distribution, nonce collection, and a self-hosted web interface called AxeOS. The dual-chip design introduced per-chip temperature monitoring and a 2-phase voltage regulator to manage heat and power delivery more precisely than earlier single-sensor boards. All performance metrics are accessible via a REST API, and the firmware is released under GPL-3.0, requiring any shipped derivatives to publish their source code.

0
SpaceNASA ·

NASA Roman Space Telescope Set to Launch August 30 to Probe Dark Universe

NASA's Nancy Grace Roman Space Telescope is scheduled to launch on Sunday, August 30, marking a major milestone in space exploration. The observatory will give astronomers the ability to survey large swaths of the universe in unprecedented detail. Among its primary scientific goals are investigating the nature of dark energy and dark matter, two of the most elusive phenomena in modern astrophysics. The mission will also study exoplanets and examine how galaxies have formed and evolved over billions of years. NASA's Ames Research Center has made key contributions to the telescope's overall mission capabilities.

← NewerPage 346 of 3470Older →