SShortSingh.
0
ProgrammingDEV Community ·

How a Caffeine Tracker Uses Decay Math to Show What's Still in Your System

A developer built a manual caffeine tracker that estimates residual caffeine in the body using an exponential decay formula based on a default five-hour half-life. Unlike a simple daily total, the tool sums the decayed residuals of every logged drink, meaning a late-night coffee from the previous day can still show up in the current estimate. Records are kept for 48 hours rather than reset at midnight, preventing the misleading scenario where a low daily total masks significant leftover caffeine. The tracker includes a Chart.js projection of residual levels over the next 24 hours, sampled at 30-minute intervals, with a configurable 50 mg sleep threshold line and a separate 400 mg daily reference. The project's key design principle is keeping dose, time, half-life, and display thresholds as distinct variables rather than collapsing them into a single opaque figure.

0
ProgrammingDEV Community ·

Developer releases open-source CeX UK price tool after bug inflated £30 case value to £136

A developer building an eBay pricing tool discovered a bug that incorrectly attributed a £136 CeX cash offer — meant for a Raspberry Pi 500+ — to a £30 Argon ONE Pi case. The error stemmed from CeX's Algolia-powered search returning fuzzy, mismatched results rather than exact product matches. To address this, the developer built and published a standalone Python library called cex-uk-prices on GitHub under an MIT licence, which scores search results for relevance and discards weak matches below a 0.6 threshold. The tool queries CeX's Algolia index directly, since the main website returns 403 errors to server-side requests, and retrieves sell prices, cash and voucher trade-in values, and stock availability. The developer cautions that the library relies on an unofficial endpoint that may break if CeX updates its front end.

0
TechnologyThe Verge ·

Microsoft releases 37-page AI code of conduct amid growing safety concerns

Microsoft has published a 37-page 'humanist AI code of conduct' asserting that people matter more than AI. The document states that AI models are not conscious and should not be designed to imitate consciousness. The release comes amid broader industry concerns that AI development may be outpacing humanity's ability to safely deploy and control increasingly complex systems. Anthropic CEO Dario Amodei recently called for a coordinated slowdown in AI development over the weekend. Microsoft's code also rejects the notion of granting AI legal personhood.

0
IndiaTimes of India ·

Rahul Gandhi to Hold Student Outreach Event 'Chhatron Ki Goonj' in Indore on Sept 19

Congress leader Rahul Gandhi has invited students to participate in 'Chhatron Ki Goonj', a dialogue event scheduled for September 19 in Indore. The initiative is designed to give students a platform to raise concerns about the education system. Gandhi has previously conducted similar sessions in cities including Kota, Dehradun, Prayagraj, and Pune. The announced visit has triggered a political exchange between Congress and BJP leaders. Gandhi stated that the event aims to collectively push for meaningful reforms in the education sector.

0
Crypto & Web3CoinDesk ·

Bitmine Nears 5% ETH Goal After $68M Purchase as Tom Lee Flags More Upside

Bitmine, an Ethereum-focused treasury firm, has added $68 million worth of ether to its holdings, bringing it closer to its 5% accumulation target. The purchase reflects growing institutional interest in Ethereum as a treasury asset. Prominent investor Tom Lee has pointed to a rising ETH-BTC ratio and increasing institutional demand as key catalysts for further upside. Lee's outlook suggests he expects Ethereum to continue outperforming Bitcoin in the near term. The move signals broader confidence among institutional players in Ethereum's long-term value proposition.

0
ProgrammingHacker News ·

Otis: Open-Source AI Agent Runs Local Models With Automatic Hardware Detection

A developer has released Otis, an open-source AI agent designed to run large language models locally with a focus on user privacy. On first setup, Otis automatically detects the host machine's hardware and recommends, downloads, and runs a suitable local model via llama.cpp. The tool offers a unified interface for both local and hosted open-weight models, keeping the experience minimal and consistent. It also supports popular local model platforms including Ollama, LM Studio, and Nvidia PAIR. The project is currently seeking community feedback and is openly available for anyone to try.

0
IndiaTimes of India ·

Teen inventor's hybrid kerosene-steam stove wins prize, cuts fuel use by 20%

Vyasji Mishra, a 16-year-old inventor, developed a hybrid stove that runs on a combination of kerosene and steam to reduce fuel consumption and harmful emissions. His prototype won first prize at a science fair in 2003, impressing judges with its innovative design. Testing of the device demonstrated a 20% reduction in kerosene usage compared to conventional stoves. The National Innovation Foundation recognized the potential of his invention and stepped in to support its further development and commercialization.

0
IndiaTimes of India ·

Clippers Owner Ballmer Accepts $30M Fine, Draft Pick Loss Over NBA Violations

Los Angeles Clippers owner Steve Ballmer has publicly apologized and accepted disciplinary action handed down by the NBA. The franchise faces a $30 million fine along with the forfeiture of five draft picks following a league investigation. Ballmer acknowledged the disruption caused by the situation and expressed remorse to fans and employees. He reaffirmed the organization's commitment to complying with league rules while pledging to focus on building a stronger team and community going forward.

0
IndiaNDTV ·

US Immigration Arrests Hit Record High but Deportation Numbers Stay Flat

US immigration arrests surged to nearly 51,000 in August, marking a record for the third consecutive month. Despite the sharp rise in arrests, deportation figures remained largely unchanged, averaging around 1,200 per day. The data, which is preliminary, highlights a growing gap between the pace of arrests and actual removals. The disconnect suggests that while enforcement operations have intensified, the process of carrying out deportations has not kept pace with the increased detentions.

0
IndiaTimes of India ·

Maple Leafs GM in no rush to extend Auston Matthews beyond current deal

Toronto Maple Leafs star Auston Matthews has signed a two-year contract extension, but GM John Chayka appears in no hurry to negotiate a longer-term deal. Chayka's measured approach suggests the organization is not under immediate pressure to lock up its captain further. Matthews, known for his team-first mentality, remains focused on winning rather than contract talks. The Maple Leafs are now turning their attention to preparing for an upcoming season after failing to qualify for the playoffs.

0
ProgrammingDEV Community ·

How to Build a Thread-Safe HTTP Server in Python Using Threading

A new developer tutorial on DEV Community walks through the concept of thread safety and its importance in concurrent programming. Thread safety ensures multiple threads can run simultaneously without corrupting shared data, similar to how a bank must coordinate ATM transactions to prevent errors. The guide uses Python's built-in http.server module to first build a basic single-threaded HTTP server, then extends it with the ThreadingMixIn class from the socketserver module to handle multiple client requests at once. The tutorial is aimed at beginners and explains core concepts like threads, processes, and shared resource management before introducing code. The goal is to help developers understand how to build efficient, concurrent servers suitable for real-world use cases.

0
ProgrammingDEV Community ·

Amazon S3 at 18: Why AWS's First Storage Service Still Powers the Cloud

Amazon S3 (Simple Storage Service), launched in 2006 as one of AWS's earliest offerings, remains a foundational component of modern cloud infrastructure. The object storage service stores data as objects inside buckets, supports individual files up to 5 TB, and guarantees 99.999999999% durability by replicating data across at least three availability zones. Unlike traditional file systems such as EBS or EFS, S3 offers unlimited capacity with no provisioning required and natively integrates with over 200 AWS services. It supports multiple storage classes — from S3 Standard for frequently accessed data to Glacier Deep Archive for long-term retention — allowing teams to balance cost against access needs. S3 is widely used as the backbone of data lakes, static website hosting, backup storage, and machine learning pipelines on AWS.

0
ProgrammingDEV Community ·

Amazon S3 Security, Performance and Infrastructure-as-Code Best Practices Explained

A technical guide covering Amazon S3 security, cost optimisation, and infrastructure-as-code using Terraform has been published as the second part of a two-part series. Since April 2023, all new S3 buckets have Block Public Access enabled by default, and since January 2023, all new objects are encrypted by default using SSE-S3 with AES-256. The guide recommends using SSE-KMS with a dedicated customer-managed key per sensitive bucket to enable auditing via AWS CloudTrail and enforce separation of responsibilities. For cost management, lifecycle policies can automatically transition objects across storage classes, while S3 Intelligent-Tiering handles unpredictable access patterns with no retrieval fees. The article also covers data protection features such as versioning, Object Lock in Compliance mode, and MFA Delete to guard against accidental or malicious deletion.

0
ProgrammingDEV Community ·

Anthropic's Model Context Protocol Aims to Standardize AI Tool Integration

Anthropic released the Model Context Protocol (MCP), an open standard, in late 2024 to address the fragmentation in how AI tools are built and shared across different language models. Currently, developers must write separate integration code for each AI platform — such as OpenAI, Anthropic, or Ollama — because each expects a different format. MCP acts as a universal interface, allowing a tool built once as an MCP server to work with any compatible client without modification. The protocol defines how clients discover available tools, how servers expose them in a standard format, and how tool calls and results are exchanged via JSON-RPC. Hundreds of pre-built MCP servers already exist for common use cases, including file system access, GitHub, PostgreSQL, and web search.

← NewerPage 1214 of 5380Older →