SShortSingh.
0
ProgrammingDEV Community ·

Three SQL Window Function Techniques to Solve the Gaps and Islands Problem

The 'gaps and islands' problem in SQL involves identifying consecutive streaks in data, such as uninterrupted user login days, and the breaks between them. Since SQL lacks a native streak-detection function, developers rely on combinations of window functions like ROW_NUMBER(), LAG(), and running SUM() to build solutions. The classic approach subtracts a sequential row number from each date, producing a shared computed value for rows within the same streak that shifts whenever a gap appears. A second, more readable method uses LAG() to flag rows that begin a new streak, then applies a cumulative SUM() to assign each streak a unique group ID. Both techniques, along with a third variation, ultimately produce the same output — the start date, end date, and length of each consecutive streak per user.

0
IndiaTimes of India ·

Meta Scraps Employee Data Collection Program After Backlash and Breach

Meta launched an internal program to collect employee computer data intended for training its artificial intelligence models. The initiative quickly drew resistance from staff who raised concerns about privacy violations and the risk of AI-driven job losses. A significant data breach then occurred shortly after, exposing private communications and sensitive personal information. Meta suspended the program within hours of the breach, though the company has not clarified what will happen to the data already collected.

0
IndiaTimes of India ·

Srikkanth Slams India Management Over Sooryavanshi, Samson Selection Calls

Former India cricketer Kris Srikkanth has publicly criticised the Indian team management for leaving Vaibhav Sooryavanshi out of the T20 opening match. Srikkanth highlighted Sooryavanshi's standout performances against Zimbabwe, where he won the Player of the Series award, arguing the youngster deserved a fair chance. The veteran also expressed sympathy for Sanju Samson over what he described as inconsistent selection decisions. Srikkanth called on team management to adopt clearer and more transparent selection policies for both players.

0
ProgrammingDEV Community ·

Developer Builds Token Forensics Tool After Claude API Costs Spike Unexpectedly

A developer repeatedly hit Claude Code quota limits and found that standard usage counters showed total consumption but not the underlying causes of waste. After analyzing 46 local session transcripts containing over 1,160 API calls and 276 million tokens, they identified around $10.47 in avoidable spending per roughly $187.80 total cost. Key waste patterns included cache misses re-sending large contexts, TTL downgrades mid-session, oversized tool outputs, and duplicate tokens from session splits. The findings led to the creation of an open-source CLI tool called quota-autopsy, which runs entirely locally with no external dependencies or telemetry. A free tier offers a cost overview, while a one-time $24 Pro upgrade unlocks detailed per-session breakdowns with suggested fixes.

0
ProgrammingDEV Community ·

How Combining AI Agent-Browser with Playwright Strengthens UI Testing

A development team integrated agent-browser into their UI evaluation workflow to test whether product goals are achievable, rather than verifying fixed click sequences. The setup uses AI coding agents like Codex or Claude to navigate the browser via agent-browser, which exposes an accessibility-based interface for inspecting and interacting with the UI. A key architectural decision was separating the agent's actions from result verification — the agent reports task completion, but Playwright independently checks the actual application state before a test is marked as passing. This dual-layer approach is described as exploratory QA, intended to complement rather than replace traditional end-to-end test suites. The team also outlined a parallel path using OpenAI's Computer Use for native desktop application evaluation, keeping the two workflows distinct.

0
ProgrammingDEV Community ·

Valve's Steam Frame VR Launches in Europe at €699: How It Compares to Rivals

Valve has officially priced its new Steam Frame VR headset at €699 in Europe, sparking debate over whether the cost is justified. The device features dual OLED displays at 2160×2160 pixels per eye, a Snapdragon XR2+ processor, 12 GB of RAM, and 256 GB of expandable storage, positioning it as a premium standalone headset. Compared to key rivals, it outperforms the Meta Quest 3 (€499) and Pico 4 (€449) on specs but costs less than the HTC Vive XR Elite (€799). When accessories are factored in, the total estimated cost rises to around €824, though summer 2026 discounts of up to 20% from major European retailers could bring that figure closer to €660. Analysts suggest the headset is best suited for users already invested in the Steam ecosystem, while budget-conscious buyers may find better value in the Quest 3 or Pico 4.

0
ProgrammingDEV Community ·

How to Test Whether a Free API Tier Can Handle Your AI Agent's Real Workload

Engineering teams often migrate agent jobs to free-tier endpoints without measuring whether those endpoints can sustain production-level loads over time. Free tiers typically degrade silently through increased latency, retry amplification, and queue buildup rather than outright failures. A structured load-testing approach using four key metrics — p50/p95 latency, error rate, cold-start penalty, and batch drain time — can reveal fitness problems before they affect operations. A sample Python probe script is provided as a template harness to measure tail latency and error rates against any JSON-based model endpoint. The article was produced as part of outreach for MonkeyCode, an open-source coding agent that offers free model access and a free server option.

0
IndiaTimes of India ·

Fridge explosion during Ganesh Chaturthi kills 4, injures 2 in Belagavi

A refrigerator explosion triggered a deadly fire at a residential home in Belagavi, Karnataka, claiming the lives of four family members. Two other relatives suffered critical injuries and are currently undergoing treatment at a hospital. The incident took place late Monday night while the family was gathered to celebrate the Ganesh Chaturthi festival. The fire spread rapidly through the house, trapping the occupants and cutting off their means of escape. Police have launched an investigation to determine the precise cause of both the explosion and the resulting blaze.

0
ProgrammingDEV Community ·

How to Safely Migrate E-Commerce DNS Zones Using Enumerate-Diff-Apply-Verify

A structured DNS migration approach for e-commerce platforms recommends four ordered steps: enumerate live records, diff them against the intended configuration, upsert only the differences, and verify outcomes before switching nameservers. Skipping the diff phase risks silently deleting records, turning a missed entry into a live incident rather than a reviewable change. The method distinguishes between customer-owned zones, which require an import-and-approval boundary, and platform-owned zones that can follow standardized templates. Raw DNS responses should be saved before any normalization, as this snapshot serves as rollback material if the migration needs to be reversed. The author recommends a lightweight Python control plane over inheriting a legacy Node.js registrar SDK, keeping the migration logic transparent and vendor-agnostic.

0
SportsESPNcricinfo ·

Sushma Verma replaces Yastika Bhatia at TKR in WCPL

Sushma Verma has joined Trinbago Knight Riders in the Women's Caribbean Premier League as a replacement for Yastika Bhatia. Bhatia departed the squad to fulfill her India A duties. Trinbago Knight Riders have already secured their place in the tournament final. They will face the winner of the playoff match between Barbados Tridents and Guyana Amazon Warriors.

0
IndiaTimes of India ·

Born Without Hands, Andhra Teacher Writes With His Feet and Inspires Students

Jami Simhachalam Naidu, a government school teacher born with a hand disability, has overcome his physical limitations by learning to write with his feet from an early age. His adaptability and determination enabled him to secure a formal teaching position, where he continues to earn praise for his creative teaching methods. Naidu's story has drawn widespread admiration as an example of perseverance in the face of adversity. Looking to the future, he has set his sights on clearing the UPSC civil services examination within the next five years.

0
IndiaTimes of India ·

Motilal Oswal Picks Emcure Pharma, Chola Finance as Top Buys for Sept 18 Week

Motilal Oswal Wealth Management Research Desk has released its stock recommendations for the holiday-shortened trading week beginning September 18, 2026. The firm has identified Emcure Pharmaceuticals and Cholamandalam Investment & Finance Company as its top stock picks for the period. Emcure Pharmaceuticals operates in the pharmaceutical sector, while Cholamandalam Investment & Finance is a prominent non-banking financial company. The recommendations come ahead of a truncated trading week due to a public holiday. Investors typically watch such curated picks from brokerages to guide their short-term market decisions.

0
ProgrammingDEV Community ·

Study Finds N-gram Count Tables Lack Memory Locality, Defying Earlier Assumption

A software developer re-examined a core assumption in a series of language model experiments: that count tables used for next-token prediction would behave like mixture-of-experts models, keeping only a small 'hot set' of data resident in memory. To test this, the researcher rebuilt the tables as memory-mappable, pageable arrays and verified they produced identical accuracy results to the original in-memory versions. Measurements across eight real code files showed that working set memory kept growing throughout roughly 2,700 completion positions per file, with seven of eight files still expanding at the end of the session. A bounded cache test confirmed the problem, with hit rates plateauing at only 74.4% even when 16 MB was held resident, and dropping to 47.3% at 1 MB. The findings show that while code tokens repeat frequently, the count table is indexed by context rather than raw tokens, meaning locality at the token level does not translate into locality at the lookup level.

0
IndiaTimes of India ·

Tamil Nadu CM Vijay Shares Video of Meeting Actor-Racer Ajith Kumar at Silverstone

Tamil Nadu Chief Minister Vijay has shared a behind-the-scenes video from a visit to the iconic Silverstone racing circuit in the UK. The footage captures his meeting with Tamil actor and professional racing driver Ajith Kumar at the venue. Ajith Kumar is seen enjoying a race car experience during the visit. The actor also posed with the Indian flag, a moment that resonated strongly with fans. The video has since gone viral, drawing widespread attention on social media.

← NewerPage 1273 of 5473Older →