SShortSingh.
0
ProgrammingDEV Community ·

Developer Debugs AI Agent Loop, Adds Run History After Silent Script Failures

A software developer building an AI-powered ticket-execution agent encountered a silent failure on day three when a shell script could not locate user stories due to a filename prefix mismatch between 'US-04' and the actual 'NN_slug.md' file naming convention. A secondary bug caused an overly strict pipefail setting to kill the script before its own error message could display, and a content-matching fix later revealed a third issue where grep matched ticket IDs inside unrelated file bodies rather than headings. To address the lack of run visibility, the developer added timestamped JSON log files for each agent run using a tee pipeline, ensuring no output would be lost between sessions. Over the following day and night, 29 runs were logged across 20 user stories, accumulating nearly 500 turns and approximately USD 55 in API costs, with one ticket requiring four attempts before completing successfully. A final status-detection bug — where the script matched the word 'BLOCKED' anywhere in output rather than only in the status line — was caught and fixed manually after the new history system made it visible.

0
IndiaTimes of India ·

Connecticut town to redevelop contaminated mill site into park and civic campus

New Milford, Connecticut, is planning to transform a former brass mill site spanning 66 acres into a municipal campus and riverside park. The town gained ownership of the contaminated property following a prolonged legal dispute. Redevelopment plans include a fire-training tower built from repurposed shipping containers. Relocating public works facilities from the site will open up additional land for green space along the river. The project represents a broader effort to reclaim former industrial land for public and recreational use.

0
ProgrammingDEV Community ·

How to Run a Local AI Chatbot on an Old Laptop Without a GPU or Paid API

A developer has shared a hands-on guide demonstrating that building a functional AI chatbot does not require a powerful GPU or a paid cloud subscription. Using only a laptop with 8–16GB of RAM, the project runs entirely offline by combining Ollama, LangChain, and Streamlit with a lightweight open-source language model such as Llama 3.2 (3B). Ollama handles local model execution without needing an API key, while LangChain manages conversation memory and prompts, and Streamlit provides a browser-based chat interface. The setup uses Miniconda to create an isolated Python environment, keeping dependencies clean and the workflow reproducible. The guide emphasizes that starting with minimal hardware is a practical and cost-effective way for learners to experiment with large language models.

0
ProgrammingDEV Community ·

How Python Treats Functions as Values: A Java Developer's Perspective

A developer transitioning from Java has shared observations on how Python handles functions as first-class values, meaning they can be stored in variables and passed as arguments without needing to be wrapped in objects. In Python, a function referenced without parentheses acts as a value, while adding parentheses executes it immediately. This allows developers to write flexible, reusable functions — such as a single loop that applies any given function to a list — reducing repetitive code. Python also supports anonymous lambda functions for concise, one-line operations that do not require a named definition. The author notes that while this approach felt unfamiliar coming from Java, it ultimately makes code shorter and more expressive.

0
IndiaTimes of India ·

Jarange to enter Mumbai with handful of aides after police deny protest permit

Maratha quota activist Manoj Jarange has announced he will enter Mumbai accompanied by only four to five close aides for his ongoing reservation agitation. Mumbai Police have again refused to grant permission for a large-scale protest march in the city. Maharashtra Chief Minister has personally appealed to Jarange to reconsider his decision to proceed with the demonstration. The standoff comes amid the continuing demand for Maratha community reservation in government jobs and education. Authorities appear concerned about potential law-and-order challenges that a large gathering in Mumbai could trigger.

0
ProgrammingDEV Community ·

Silent spec bug: retired requirements kept inflating test coverage denominators

A developer maintaining an append-only specification file discovered that two tools parsing requirements had no concept of 'retired' rows, causing every corrected requirement to add a phantom entry to the total count. Because retiring a row only changed a text prefix rather than the structural shape of the heading, both readers continued treating old and new rows as live requirements, quietly lowering test coverage with each correction. The root cause was a writing convention — retirement — that existed only in human habit and had never been encoded as machine-readable data. The fix was not to patch each reader individually, but to define a shared configuration table listing which heading forms are live and which are retired, so all current and future tools derive their behavior from one authoritative source. The author concludes that any rule added to make an earlier rule survivable must be explicitly communicated to every system that consumes the original rule, or it will be silently ignored.

0
IndiaTimes of India ·

BJP wins most wards in Rajasthan municipal polls; Modi credits public trust

The Bharatiya Janata Party emerged as the largest party in Rajasthan's municipal elections, winning more wards than the Congress. The party secured outright majorities in four of the ten municipal corporations contested. Prime Minister Narendra Modi publicly thanked voters for their support following the results. Modi attributed the win to public endorsement of the BJP's governance and development agenda.

0
IndiaTimes of India ·

Manhattan Billionaires' Row Penthouse Sells at 83% Discount for $6.765 Million

A three-story penthouse on Manhattan's Billionaires' Row has sold for $6.765 million, a steep 83% reduction from its original $40 million asking price. The unfinished unit is located within the historic Hampshire House building. The sale was finalized after a competitive online bidding process. The buyer will now face the significant cost and effort of completing the half-finished luxury residence.

0
TechnologyThe Verge ·

TIFF 2026: Musk Documentary, Stop-Motion Fantasy Among Festival Highlights

The Toronto International Film Festival (TIFF) 2026 is underway, showcasing a wide range of international films and series. Notable titles this year include a four-hour Elon Musk documentary, the stop-motion fantasy Wildwood from Laika, and Your Mother Your Mother Your Mother. The festival also features streaming series such as Crystal Lake and Carrie. TIFF is widely regarded as a bellwether for awards season, with past editions launching films like Hamnet and Obsession into the spotlight. Daily bite-sized reviews are being published to help audiences keep track of the sprawling lineup.

0
ProgrammingDEV Community ·

Markov-Switching Model Used to Track Bitcoin Volatility Regimes

A data analyst applied a Markov-switching regression model to study how the volatility of Bitcoin's daily returns shifted over time. The analysis used Binance BTCUSDT daily price data, with a training period spanning January 2, 2022 to June 30, 2026, covering 1,641 daily returns, and a 75-day holdout period through September 13, 2026. Both two-state and three-state model specifications were tested, identifying distinct low- and high-volatility regimes with fitted daily return standard deviations of roughly 1.53% and 4.30% in the two-state version. The two-state model performed slightly better on the holdout period by mean predictive log score, while the three-state model achieved a marginally lower training BIC, suggesting neither is a clear universal winner. The full visual report, built in OWL Compose, includes state probabilities, transition matrices, fitted distributions, and reproducibility notes.

0
IndiaNDTV ·

Trump Calls AI Development Slowdown Demands a 'Sick Conspiracy'

US President Donald Trump took to Truth Social on Monday to strongly oppose calls for slowing down superintelligent AI development. He labelled such demands a 'sick conspiracy' targeting artificial intelligence and data centres. Trump's stance aligns with China's position, as both nations appear to reject efforts to curb rapid AI advancement. The remarks signal that the world's two largest economies are unlikely to support any international push for a pause on cutting-edge AI development.

0
ProgrammingDEV Community ·

How Booking-Integrated Systems Can Automate Court Video Recording at Sports Clubs

Sports clubs that install court cameras often face a hidden problem: footage is captured continuously but retrieving, sharing, and managing specific clips requires significant manual effort. The core issue is that cameras operate independently of booking systems, forcing staff to manually identify relevant recordings and players to remember to trigger recording themselves. A more efficient approach ties recording directly to court reservations, so that when a player books a court, the system automatically starts and stops the camera for that slot and delivers the footage to the player's account. Platforms like SportyPlus implement this by accepting a standard RTMP stream from any compatible IP camera, requiring no proprietary hardware. This integration also addresses data protection concerns by automating footage deletion and restricting access to the relevant player, removing the need for manual oversight.

0
IndiaNDTV ·

AI Expert Nick Bostrom Claims AI Has Achieved Human-Like Consciousness

Prominent AI risk researcher Nick Bostrom has asserted that artificial intelligence agents have effectively attained human-like consciousness. Bostrom, widely recognized for his work on existential risks posed by AI, suggests that for all practical purposes, current AI systems can be considered sentient and self-aware. This marks a striking claim from one of the field's most influential thinkers, who has long studied the long-term implications of advanced AI development. The statement is likely to intensify ongoing global debates around AI rights, safety, and the ethical treatment of AI systems.

0
IndiaNDTV ·

BJP Leads Congress in Rajasthan Urban Local Body Election Results

Rajasthan's urban local body poll results saw BJP emerge ahead of Congress in overall ward counts. Independents proved to be a significant force, winning 2,273 wards across the state. In Bharatpur, the hometown of Chief Minister Bhajanlal Sharma, independents dominated the Municipal Corporation elections. They secured 36 of the 65 wards in Bharatpur, overshadowing both major parties in that city.

← NewerPage 1237 of 5418Older →