SShortSingh.
0
ProgrammingDEV Community ·

Hedera EVM uses tinybar internally, not weibar — a silent bug that always returns SUCCESS

A developer building a Hedera smart contract subscription service lost a full day to a unit denomination bug that never triggered a failure or revert. Hedera's EVM stores msg.value and address(this).balance in tinybar — not weibar as Ethereum developers might expect — meaning the 1e10 conversion factor many apply inside contracts is unnecessary and wrong. Because both the correct and incorrect implementations produce identical SUCCESS receipts on Hedera, the bug was undetectable through standard testing, including local Hardhat environments which simulate Ethereum rather than Hedera. The developer confirmed via a probe contract on Hedera testnet that 2 HBAR sent on the wire equals 200,000,000 in msg.value — pure tinybar — and that a call with value 1e8 moves exactly 1 HBAR. The key takeaway: on Hedera, unit conversion should happen once in JavaScript at the network boundary, with Solidity contracts working entirely in tinybar.

0
IndiaTimes of India ·

Brazil to face India in Kolkata as Ancelotti names 26-man squad for Asia tour

Newly appointed Brazil head coach Carlo Ancelotti has announced a 26-player squad for a series of upcoming international fixtures. The Brazilian national team is scheduled to play two matches against Australia in September before facing India. The squad selection signals a significant rebuilding phase following Brazil's disappointing World Cup exit. Ancelotti is focused on integrating younger players to strengthen the side for future tournaments. The matches represent Brazil's broader effort to restore its competitive standing on the global stage.

0
IndiaTimes of India ·

Hanuman Ansh Crosses Rs 153 Crore Net in India After 34 Days in Theatres

The biographical devotional drama Hanuman Ansh has accumulated a net domestic collection of Rs 153.13 crore by its 34th day in cinemas. The film, which depicts the life of revered saint Neem Karoli Baba, has achieved blockbuster status despite a slow start at the box office. Its steady growth over more than a month reflects strong and sustained audience interest. The film's performance underscores the commercial viability of devotional content in Indian cinema.

0
IndiaNDTV ·

Sheikh Hasina's Daughter Steps Down as WHO Southeast Asia Director

Saima Wazed, daughter of former Bangladeshi Prime Minister Sheikh Hasina, has resigned from her position as WHO Regional Director for Southeast Asia. She had assumed the role in early 2024 for a five-year term. The WHO had placed her on unpaid administrative leave late last year amid fraud charges. Her resignation marks a significant development following the legal scrutiny surrounding her appointment and conduct.

0
ProgrammingDEV Community ·

How Two Short-Lived Tables and a Warehouse Can Power Audit Logs

Engineers investigating unexpected system changes typically need to know what changed, who made the change, and what the previous state was. A proposed architecture addresses this by splitting audit data across two short-lived online tables — one compact timeline table for fast recent lookups and one payload table for full event details — alongside a long-term data warehouse for historical queries. The timeline table enables quick per-entity browsing, while the self-contained payload table allows archiving without cross-table joins. Recent audit events are served with low latency for urgent needs like rollbacks, whereas older compliance queries can tolerate higher latency and are handled via SQL in the warehouse. The design trades simplicity for performance, requiring careful handling of write ordering and retry logic to avoid dangling pointers or unlisted events.

0
ProgrammingDEV Community ·

40-Year-Old IEEE 754 Rounding Trick Causes Overflow Bugs in Tenstorrent AI Chips

A developer working on Tenstorrent's tt-metal ML framework discovered a critical floating-point overflow bug in the chip's SFPU math unit, which handles transcendental functions like exp and log via polynomial approximations. The bug surfaced in computation chains such as exp(x) * exp(-x), where intermediate results exceeded the representable floating-point range even though the final mathematical result should equal 1. A secondary issue involved a decades-old IEEE 754 rounding technique — adding 0.5 before truncation — which interacted unexpectedly with the SFPU's internal precision during fp16/bf16 to fp32 conversions, producing small but measurable deviations from PyTorch reference outputs. The overflow fix involved restructuring the computation graph using algebraic identities to avoid storing oversized intermediate values. The findings highlight how hardware-level numerical quirks in AI accelerators can silently produce incorrect results, underscoring the importance of thorough edge-case testing against reference implementations.

0
ProgrammingDEV Community ·

PyTorch Dev Ditches Custom SSRF Code for Battle-Tested requests-hardened Library

A developer contributing to pytorch/torchtitan initially built a custom SSRF protection system for the project's image decoder URL fetcher, handling DNS resolution, IP validation, and redirect tracking manually across up to 10 hops. A project maintainer recommended against the custom approach, advising the team to delegate such security-critical logic to a mature third-party library instead. The developer switched to requests-hardened, which intercepts connection attempts at the transport adapter level and validates IPs at connect time, eliminating a known TOCTOU vulnerability present in the original code. The change reduced the implementation from roughly 75 lines to around 15, while also improving protection against edge cases like DNS rebinding and cloud metadata endpoint exposure. The episode highlights a widely held open-source principle: for security-sensitive functionality, proven libraries are safer and more maintainable than custom solutions.

0
TechnologyBBC Tech ·

UK Watchdog Calls for New Laws to Govern AI Use in NHS Healthcare

The UK's medicines and healthcare regulator has called for new legislation to oversee the use of artificial intelligence in healthcare. MHRA chief Lawrence Tallon made the remarks in an interview with the BBC. He indicated that AI technology is expected to become a routine part of NHS operations in the near future. The watchdog's position highlights growing concern about the regulatory gaps surrounding AI-driven medical tools and decisions.

0
ProgrammingDEV Community ·

Mismatched plcmt and playbackmethod values silently corrupt CTV ad format reporting

A subtle but consequential signaling bug in CTV ad trafficking occurs when the plcmt field and playbackmethod field in OpenRTB and VAST tags describe two different ad formats instead of one. IAB's CTV Ad Portfolio, finalized in July 2026, introduced five new transactable video formats — Pause, Screensaver, Overlay, Squeezeback, and In-Scene — each mapped to specific plcmt values (5–9) and dedicated playbackmethod codes. Because both fields accept standard AdCOM integers, a mismatched pair like plcmt=5 with playbackmethod=1 passes all schema validation without throwing any errors. The failure is purely semantic: downstream systems including DSPs, SSAI paths, and measurement vendors read these signals as ground truth for format-mix reporting, meaning a mislabeled tag can distort dashboards, apply wrong viewability rules, and fail deal-line quality checks. Unlike bugs that break playback entirely, this class of error leaves video rendering intact while silently corrupting attribution and billing data.

0
ProgrammingDEV Community ·

Solo Developer Builds Crimean Tatar Speech Model From Scratch With No Dataset

A developer spent several months building speech technology for Crimean Tatar, a low-resource language, using only a consumer GPU and working in their spare time. The project began after an off-the-shelf text-to-speech model consistently mispronounced Crimean Tatar words, effectively producing Turkish output instead. With no existing speech dataset or usable automatic speech recognition tools available, the developer bypassed the chicken-and-egg problem by using forced alignment on audiobooks, where the text already exists in print. A key technical insight was to process audio in small chapter-sized units rather than large blocks, which reduced silent failures and increased usable aligned speech from under two hours to over five. The developer also found that character-level text matching outperformed word-level comparison for the agglutinative, multi-script language, successfully locating 38 of 40 chapters.

0
ProgrammingDEV Community ·

Practical Checklist Outlines How to Build APIs Safe for AI Agent Use

A technical guide published on DEV Community outlines a checklist developers should follow before exposing API endpoints to AI agents via MCP servers. The checklist recommends that every API tool clearly declare its effect type — such as read, draft, state change, or irreversible action — and that approval for consequential operations be enforced at the calling layer, not by the AI model itself. Developers are advised to implement durable idempotency keys to handle retries safely, and to set explicit limits on searches to prevent unbounded data and cost issues. Structured, machine-readable error responses should replace generic error messages so agents receive clear recovery instructions rather than having to infer them. The guide also stresses comprehensive logging of policy decisions alongside API calls, arguing that the goal is to make interfaces inherently harder to misuse rather than relying on the agent to behave carefully.

0
IndiaTimes of India ·

Gaur Gopal Das: Small Consistent Actions Are the Foundation of Lasting Success

Motivational speaker Gaur Gopal Das has emphasized the critical role of small, daily actions in building long-term success. He cautions that neglecting minor tasks can gradually give rise to harmful habits over time. According to Das, mastering seemingly insignificant details helps develop discipline and readiness for greater responsibilities. This philosophy holds relevance across diverse fields, including medicine and aviation. He concludes that a sustained focus on daily habits drives continuous personal growth and leads to significant achievements.

0
SportsESPNcricinfo ·

Shakeel Admits Pakistan Batting Struggles After Being Dismissed for 133

Pakistan were bowled out for a meager 133 runs, prompting batter Saud Shakeel to openly express concern over the team's batting performance. Shakeel described the situation as 'depressing,' reflecting frustration within the squad over their continued batting difficulties. He acknowledged that the team must find better ways to navigate challenging periods during innings. The collapse highlights a persistent problem for Pakistan's batting lineup as the touring side, raising questions about their ability to compete effectively.

0
ProgrammingDEV Community ·

Developer Launches Self-Hosted Session Replay Tool Aimed at Startups and Side Projects

A developer has built TraceUX, a lightweight, self-hosted session replay tool designed for early-stage startups and side projects. The tool addresses a common pain point where founders cannot tell where users drop off, but existing solutions charge based on traffic, seats, or recorded sessions. TraceUX records DOM events and stores them on the user's own server, requiring no data warehouse or complex multi-service setup. It can be deployed via a binary or Docker container on a small VPS, with a short code snippet added to the target website. The project is open source and available on GitHub, with a live demo accessible for evaluation.

0
ProgrammingDEV Community ·

Why Aggrete built AI governance using deterministic rules, not AI models

Aggrete, a platform governing AI assistant actions across HR, finance, Slack, and code, deliberately excluded AI models from its security decision layer. Instead of using a guard model to classify requests as safe or unsafe, the system relies entirely on deterministic, rule-based logic. The team found that LLM-based guards are non-deterministic, meaning identical inputs can yield different outputs across time, making audit trails and compliance defenses unreliable. Deterministic rules also resist prompt-injection attacks, since they evaluate structured state rather than natural language that can be manipulated. Critically, stateful rules allow the system to detect risk spread across multiple individually harmless requests — something a stateless model judge structurally cannot do.

← NewerPage 952 of 4881Older →