SShortSingh.
0
ProgrammingDEV Community ·

Security audit flags critical reentrancy and access control flaws in Grove Finance

A senior DeFi security research team published an audit report on October 26, 2023, reviewing Grove Finance, a yield optimization protocol with approximately $2.33 billion in Total Value Locked across Ethereum Mainnet and Layer 2 deployments. The audit identified two critical and three high-severity findings centered on reentrancy vulnerabilities and weak access control mechanisms. Key critical flaws include an unguarded cross-chain message function in GroveBridgeAdapter.sol that could allow attackers to double-spend bridged assets, and an admin role in GroveAdmin.sol that combines upgrade and pause powers, enabling a compromised key to drain all user funds. A high-severity issue was also found in GroveYieldDistributor.sol, where yield distribution logic violates the Checks-Effects-Interactions pattern, exposing the protocol to repeated reentrancy attacks. Given the protocol's massive TVL, auditors rated the overall risk as high and warned that even low-probability exploits could result in catastrophic financial losses.

0
ProgrammingDEV Community ·

Elixir developers can now build lightweight desktop apps without Electron's overhead

A combination of Phoenix LiveView, native WebViews, and the Burrito packaging tool offers Elixir developers a leaner alternative to Electron for building cross-platform desktop applications. Unlike Electron, which bundles a full Chromium browser and Node.js runtime, this approach uses the operating system's built-in WebView — such as WKWebView on macOS or WebView2 on Windows — dramatically reducing memory and CPU usage. Burrito solves the distribution problem by compiling Elixir projects into self-contained executables that bundle the Erlang runtime, requiring no pre-installed dependencies from end users. Because the Phoenix backend runs locally and LiveView communicates over localhost WebSockets, network latency is effectively zero, enabling a fully offline-capable, local-first architecture. Developers also retain familiar web-based workflows, including hot code reloading, without needing to learn native desktop languages like Swift or C++.

0
ProgrammingDEV Community ·

Developer builds AI incident responder that requires human approval before any fix

A developer built Mayday, an AI-powered incident response tool, for the WeMakeDevs × TrueFoundry Agent Harness Hackathon. The system autonomously investigates production alerts by analyzing metrics, logs, and deployment history, then proposes a single fix with a detailed root cause explanation. However, all remediation actions such as service restarts or deployment rollbacks are structurally blocked until a human operator explicitly approves them. The approval gate is enforced at the tool layer by TrueFoundry's agent harness, meaning the agent is technically unable to bypass it rather than simply choosing not to. Direct API calls to the underlying MCP server are also blocked via bearer token authentication, closing a potential workaround.

0
ProgrammingDEV Community ·

Why Developers Need to Understand SEO and Digital Marketing Basics

A digital marketer working closely with developers argues that well-built websites often fail to attract traffic due to a lack of marketing knowledge, not poor coding. The piece highlights that SEO begins at the code level, with semantic HTML and proper site structure playing a key role before any post-launch optimization. It also distinguishes between Google Ads, which captures existing demand, and Meta Ads, which helps create new audiences. The author stresses that content marketing and analytics tracking should be treated as foundational elements, not afterthoughts. The overall message is that development and marketing are increasingly overlapping fields, and understanding both makes developers significantly more valuable.

0
ProgrammingDEV Community ·

How Tailwind Typography's prose Class Overrides Component Styles and How to Fix It

Developers using Tailwind CSS's @tailwindcss/typography plugin may find that the prose class unintentionally overrides styles in custom components like buttons and CTAs rendered inside article content. This happens because prose applies descendant selectors to all matching HTML elements within its subtree, making it unable to distinguish hand-built components from standard Markdown output. A developer writing on DEV Community outlined three tiered solutions to resolve these styling conflicts. The first approach is to design components that cooperate with prose's default styles; the second is to fine-tune prose behavior using element modifiers on the container; the third is to use the not-prose utility class to fully isolate custom components from prose's scope. The author notes this is not a bug but an expected feature collision that requires a deliberate decision about which styling authority should own each element.

0
IndiaNDTV ·

Two Arrested, Two Minors Detained in Arunachal Pradesh Gang-Rape Case

Police in Arunachal Pradesh have arrested two individuals and detained two minors in connection with a gang-rape case. Authorities launched an intensive search operation to track down all suspects involved. Investigators revealed that the accused had fled to Delhi and Dehradun before returning to Arunachal Pradesh. The suspects were eventually located hiding in the Deban area of the state.

0
IndiaTimes of India ·

Tom Brady saves congratulatory texts from all 7 Super Bowl wins in phone folders

NFL legend Tom Brady has revealed an unusual personal tradition tied to his record seven Super Bowl championships. The retired quarterback created dedicated folders on his phone to store congratulatory messages he received after each title win. The habit has built a private digital archive spanning his extraordinary career. Brady's NFL journey included 10 Super Bowl appearances and five Super Bowl MVP awards.

0
IndiaTimes of India ·

Climate Change and Urban Growth Fuel Nepal's Rising Himalayan Disaster Risk

A major ice and rock collapse in Langtang National Park triggered severe flooding, highlighting Nepal's vulnerability to climate-driven natural disasters. Rapid urbanization and human activity are increasing exposure to such dangerous events. While the Nepali government has made efforts to strengthen disaster management, significant gaps in early warning systems remain. Experts say improved monitoring and more resilient infrastructure are essential to reducing future risks.

0
SportsESPNcricinfo ·

Sri Lanka field first against UAE; Vimukthi earns T20I debut cap

Sri Lanka chose to bowl first after winning the toss against UAE in their latest T20I fixture. The team made several changes to the playing XI that had previously faced Pakistan earlier in the month. Pacer Vimukthi was handed his T20I debut as part of the reshuffled lineup. The match marks a continuation of Sri Lanka's T20I schedule following their recent series against Pakistan.

0
ProgrammingDEV Community ·

Scraping YouTube's first 'channelId' from HTML returns wrong channel 94% of the time

A developer discovered that extracting the first 'channelId' value from a YouTube channel page's HTML almost always returns the wrong channel, with 15 out of 16 tested handles yielding incorrect results. The misidentified IDs belong to featured channels displayed on the page — such as @mkbhd resolving to 'The Studio' and @kurzgesagt resolving to 'Nightshift – Kurzgesagt After Dark' — rather than the target channel itself. The first 'channelId' string in the HTML is embedded inside a featured-channels shelf element, not the page's canonical channel metadata. The bug is especially deceptive because channels without a featured-channels shelf return the correct ID, making quick tests appear to validate the flawed method. The author only caught the error after publishing research based on the corrupted data, which had to be withdrawn.

0
ProgrammingDEV Community ·

Why AI Pins Failed to Deliver on Their Promise — and What Could Replace Them

AI wearable pins generated significant excitement from investors and consumers upon announcement, but the devices largely failed to meet expectations in real-world use. Key issues included slow response times exceeding three seconds, overheating problems, and poor battery life — shortcomings that smartwatches have largely overcome. A developer is now conducting a comparative analysis between the Humane AI Pin and the Apple Watch to identify where AI pins went wrong, noting that the Humane founders are former Apple employees. The study will examine hardware, usability, and convenience across both products. The author argues that existing smartwatch technology already possesses the sensors, connectivity, and battery life needed to serve as a more capable AI pin alternative.

0
ProgrammingDEV Community ·

Lido DAO Faces High Liquidity and Oracle Risks With $23.4B TVL at Stake

A professional risk assessment dated October 26, 2023, evaluated Lido DAO, the leading liquid staking protocol on Ethereum, which currently holds over $23.4 billion in Total Value Locked. The report identifies oracle manipulation and price feed latency as high-severity risks, warning that Chainlink dependency could be exploited during network congestion or volatile market conditions. Medium-to-high risks include liquidity mismatches from the protocol's queue-based unstaking system, which could trigger a temporary stETH depeg during mass exit events. Governance centralization and potential multi-sig key compromise are flagged as medium-level threats given Lido's systemic importance to the broader DeFi ecosystem. The report also notes regulatory risk, smart contract integration vulnerabilities with protocols like Aave and Curve, and MEV extraction as additional concerns requiring mitigation.

0
ProgrammingDEV Community ·

C# CRUD API: 13 Real Anti-Patterns Explained and Fixed Side by Side

A developer tutorial on DEV Community walks through a realistic Product CRUD API built deliberately using thirteen anti-patterns commonly found in actual codebases. The guide covers five endpoints — GetAll, GetById, Create, Update, and Delete — showing the flawed implementation alongside a corrected version for direct comparison. Key issues highlighted include hardcoded database credentials committed to source code and incorrect service lifetimes, such as registering a controller as a Singleton rather than letting the framework handle per-request instantiation. The tutorial also explains the 'captive dependency' problem, where a Scoped service like DbContext gets unintentionally trapped inside a Singleton, causing thread-safety violations. Each anti-pattern is explained in context, aiming to help developers recognize subtle but consequential mistakes in real-world code.

0
IndiaTimes of India ·

Haiti gang releases 13 women and children after raid that killed 47 in Kenscoff

A Haitian gang has freed 13 hostages, including women and children, days after a deadly assault on a farming community in Kenscoff. UNICEF was instrumental in negotiating and securing the release of the captives. The attack, which killed at least 47 people, highlights the escalating gang violence devastating communities across Haiti. The region has seen widespread casualties and displacement as armed groups continue to operate with little restraint. While mass kidnappings are relatively uncommon in Haiti, their outcomes remain highly unpredictable for those taken captive.

0
ProgrammingDEV Community ·

Good Software Architecture Is Ultimately Built on Trust, Not Just Structure

A software engineering leader argues that the true purpose of architecture is not to organize code but to create confidence among teams and within systems. Practices like observability, failure planning, and designing for change are framed as deliberate investments in that confidence rather than independent technical goals. The author reflects that the best systems they worked on shared a common trait: engineers trusted the code, the deployments, and the recovery processes. Team dynamics are highlighted as equally critical, with high-trust teams outperforming more technically impressive groups by questioning assumptions openly and sharing ownership. The piece concludes a multi-part series by tying together earlier architectural principles under the single unifying theme of trust.

0
ProgrammingDEV Community ·

Why auto-scroll video capture fails when page, compositor, and encoder run on separate clocks

A developer building an auto-scroll screen capture tool discovered that the browser page, display compositor, and video encoder each operate on independent timing cycles, making synchronization difficult. Attempts to force a single shared clock worsened recordings, causing visible jumps when large catch-up scroll steps were captured in a single paint frame. The encoder produces variable frame rate WebM output tied to actual screen paints rather than a fixed metronome, which many players interpret as stutter. Fixes included capping catch-up scroll steps, preserving sub-pixel remainders to avoid staircase artifacts, and dropping resolution instead of demanding higher frame rates from an overloaded encoder. The key insight was that live capture must follow the compositor's natural cadence rather than imposing an artificial frame rate at the recording layer.

0
ProgrammingDEV Community ·

Three hidden costs of running 24/7 AI agents and how to reduce them

Running AI agents around the clock is often marketed as passive automation, but practitioners warn it quietly drains attention, compute resources, and review time. Keeping unused tools connected to an agent inflates costs, as each idle server adds charges on every request cycle. Constant notifications from agents can erode focus rather than improve productivity, and batching reports into a single daily digest is recommended as a structural fix. Honest review of agent output requires dedicated time, and skipping that step simply defers the work rather than eliminating it. The authors suggest using a second adversarial agent to sample and reject the first agent's output, making audits cheaper and more reliable than continuous oversight.

← NewerPage 603 of 3925Older →