SShortSingh.

Programming

0
ProgrammingDEV Community ·

15-Line JavaScript Formula Estimates VRAM Needed to Run LLMs Locally

A technical guide published by EU hardware retailer Mineshop.eu explains how to estimate GPU VRAM requirements for running large language models locally using a compact JavaScript function. The calculation accounts for three key components: model weights (parameter count multiplied by bits-per-parameter), the KV cache (which stores key-value vectors per layer and token), and a runtime headroom reserve of around 2 GiB. For example, running a 4-bit quantised 8B-parameter model at an 8,192-token context requires approximately 7.28 GiB of VRAM in total. Larger models and longer contexts scale the requirement significantly — a 70B model at 32K context needs nearly 50 GiB. The post includes worked examples and test assertions to validate the formula's accuracy across different model sizes and cache configurations.

0
ProgrammingDEV Community ·

AI Speeds Up Code Writing But Risks Outpacing Teams' Ability to Review It

AI coding assistants have made software development faster, with studies showing tools like GitHub Copilot can complete certain tasks up to 55% faster, but this speed creates a mismatch with teams' review capacity. When code is produced faster than it can be thoroughly reviewed, defects and edge cases become easier to miss, even in polished, well-structured code. DORA's 2024 research found that while AI adoption boosted individual productivity and job satisfaction, it was also linked to negative effects on software delivery stability. A key example is payment retry logic, where AI-generated code may look correct and pass tests but fail to handle scenarios like network timeouts, potentially charging customers twice. Experts recommend practices such as using idempotency keys and measuring outcomes after code generation, not just the speed at which it was produced.

0
ProgrammingHacker News ·

1980 Interview: Historian Jacques Barzun Discusses Modern Cultural Shifts

In a 1980 interview, cultural historian and critic Jacques Barzun analyzed contemporary society. He expressed concern about the decline of intellectual rigor and the rise of 'demotic' or popular culture. Barzun argued that specialized knowledge was replacing broader cultural understanding. The interview was published by The Christian Science Monitor on July 17, 1980.

0
ProgrammingDEV Community ·

Developer Builds Production-Grade AI Telegram Motivation Bot with Node.js and Gemini

A developer has published a detailed architectural breakdown of an AI-powered Telegram motivation bot built using Node.js, Google Gemini, and the Telegram Bot API. The bot goes beyond simple prompt-response interactions by incorporating features such as scheduled messages, user personalization, streak tracking, feedback collection, and telemetry. To ensure reliability, the system includes retry logic, a model priority fallback chain, and an in-memory cache to reduce redundant API calls. Multiple persona archetypes and content modalities — such as Stoic, Warrior, and Pragmatic — are used to generate varied motivational messages without requiring major architectural changes. The project, shared on DEV Community, is structured with modular components covering bot commands, services, and data management, and is tested using Jest.

0
ProgrammingDEV Community ·

How to Diagnose Missed MT5 EA Entries Without Creating False Signals

Developers building Expert Advisors in MetaTrader 5 sometimes encounter missed trade entries that appear valid on the chart but are silently blocked by internal filters. A structured diagnostic approach recommends logging the full symbol, timeframe, bar timestamp, and the specific decision point that halted entry progression, rather than relying on a single boolean flag. Collapsing multiple outcomes into one variable obscures whether the failure was due to unavailable data, an unqualified signal, or a gate condition such as an outside-session block. A JavaScript fixture demonstrates a four-stage classification model — input, signal, gate, and request — showing that data readiness must be verified before any signal value is trusted. The guide emphasizes that reaching the request stage does not confirm a broker accepted an order, and that MT5's sequential tick processing means not every market tick is guaranteed to become a distinct handler call.

0
ProgrammingDEV Community ·

Developer Builds AI Italian Copy Reviewer That Cites Its Own Style Guide

An Italian developer working on software website localization built an AI-powered copy review agent to catch recurring translation errors in Italian marketing text. The tool, submitted for the Sanity Challenge, reads a team-authored Italian style guide stored in a Sanity Knowledge Base containing 15 rules and 19 glossary terms drawn from real shipped product copy. When given a string to review, the agent returns a verdict, a corrected version, and the specific style guide entries it relied on to reach its conclusion. The Knowledge Base was built from two sources — a custom production dataset and Microsoft's public Italian Localization Style Guide — with conflicts between them flagged and manually resolved before final testing. In benchmark tests on 12 held-out string pairs, the grounded agent matched the performance of the same model running without the Knowledge Base, though accuracy gains from the structured guide are still being measured.

0
ProgrammingDEV Community ·

Developer Builds AI Agent 'Milo' to Power an Interactive, Data-Driven Portfolio

A developer has created Milo, an AI agent layered on top of a personal developer portfolio to make it interactive and programmable. The system uses PostgreSQL as its central data store, a FastAPI backend for controlled data access, and a React frontend, with Milo serving as the conversational interface. Rather than granting the AI direct database access, Milo operates through backend-defined tools, keeping the reasoning layer separate from application data and business logic. The agent is also integrated with Telegram, enabling the portfolio owner to manage content remotely, with sensitive actions requiring explicit confirmation. A notable feature is CV curation, where Milo can analyze a job description and generate a tailored CV using only verified portfolio data, without fabricating qualifications.

0
ProgrammingDEV Community ·

AI Tools Are Helping Diners Decode Menus and Track Nutrition Instantly

Artificial intelligence is being applied to restaurant menus to help diners make more informed, personalized food choices. Using natural language processing and machine learning, AI systems can parse menu text, identify ingredients, and estimate nutritional values by cross-referencing standardized databases such as the USDA FoodData Central API. The technology addresses long-standing pain points for people managing allergies, calorie goals, or specific dietary needs, who previously had to rely on guesswork or incomplete menu information. Restaurant operators also stand to benefit, as AI can reduce the time and cost involved in manually updating nutrition details and accommodating evolving dietary trends. Developers are already building practical implementations that map dish ingredients to nutrient profiles and generate tailored meal recommendations for individual users.

0
ProgrammingDEV Community ·

How to Optimize SVG Icons for Faster Web Performance

SVG icons are widely used in modern web design for their scalability and lightweight nature, but poorly exported files can carry unnecessary metadata, bloated paths, and redundant attributes that slow down load times. Key optimization steps include removing editor-specific data, replacing hardcoded dimensions with viewBox for responsiveness, and simplifying path data by reducing decimal precision. Developers can automate much of this process using tools like SVGO, a Node.js-based CLI with a plugin ecosystem, or its browser-based counterpart SVGOMG. Grouping shared attributes and minifying markup before deployment further reduces file size and speeds up browser rendering. Even icons sourced from platforms like Feather or Heroicons, which often ship pre-optimized, are worth auditing to ensure maximum efficiency.

0
ProgrammingDEV Community ·

17 Production Checks Every NestJS Developer Should Run Before Deploying

A detailed technical guide outlines 17 critical checks NestJS developers must complete before moving applications to production environments. The guide highlights key differences between local and production setups, including multi-replica deployments, load balancers, and shared databases that expose gaps in default configurations. Among the top recommendations are validating environment variables at startup using schema tools like Zod, storing secrets in platform-native secret stores rather than image layers, and enabling graceful shutdown hooks to prevent dropped requests or interrupted jobs. The guide also warns against logging full config objects at startup, a common debugging habit that can inadvertently expose credentials to log pipelines. Additional focus is placed on proper signal handling in containers, advising developers to use exec-form Docker commands and init processes to ensure Node.js receives and acts on termination signals correctly.

0
ProgrammingDEV Community ·

Why AI Agents Should Require Human Review Before Resuming After an Oracle Halt

A developer writing for DEV Community argues that a single healthy oracle sample should not automatically resume a halted AI trading agent. Using the Insight Oracle Watch SDK, the author demonstrates a state machine that distinguishes between halted, recovering, and acknowledged states, keeping the execution halt active even after fresh healthy signals arrive. Recovery is only marked ready after two consecutive healthy samples, but clearing the halt requires an explicit operator call to acknowledgeRecovery(). The approach ensures that resuming agent activity remains a deliberate human decision rather than an automatic system response. The author also warns that monitoring failures or storage errors should themselves trigger halts, since unavailable monitoring must never be treated as a healthy condition.

0
ProgrammingDEV Community ·

Meta's Muse Agent Launch Triggered Spike in 'Agent' Domain Registrations

An analysis of newly registered .com domains found that names ending in 'agent' surged from 740 to 952 registrations in the 10-day window following Meta's launch of its Muse personal AI agent on 8 September 2026. The spike stood out against a stable reference keyword, 'hub', which held within 4% of its baseline across all five periods studied. Searches for 'meta muse' jumped sharply on 9 September, and domain combinations of 'muse' and 'agent' rose from 39 to 262 in the same window. Data from the DomainKits for-sale filter indicated that speculative domain sellers, rather than product builders, were the primary driver of the surge. Registrations fell back below baseline in the following period even as general search interest in 'ai agent' continued to climb, further supporting the speculative rather than organic nature of the spike.

0
ProgrammingDEV Community ·

Lessons from Building Motus, an iPhone Fitness App That Tracks Reps via Camera

Motus is an iOS fitness app developed by LoudOwls that uses the smartphone camera to automatically track body movement and count exercise repetitions, removing the need for manual logging. The app was built natively with Swift and SwiftUI, using GuruSDK for camera-based body tracking and Supabase for user accounts and social data. Rather than functioning as a standalone feature, the camera tracking is embedded within a structured workout flow that includes exercises, sets, rest periods, and rep targets. A key design challenge was ensuring the tracking worked reliably during real movement while keeping the user interface minimal, since exercisers rarely have hands free to interact with their phones. Motus also incorporates social features such as a feed, stories, and reactions, reflecting the insight that technology can capture workout data while community engagement drives long-term user retention.

0
ProgrammingDEV Community ·

How to Enable Claude AI to Call Your Own APIs Using Node.js and AWS Bedrock

Anthropic's Claude model supports a 'tool use' feature that allows it to interact with external systems such as APIs, databases, or deployment pipelines, going beyond plain text responses. Developers can expose this capability in Node.js by defining tools as JSON schemas and setting a tool_choice parameter that permits Claude to decide when to invoke them. When Claude determines a tool is needed, it returns a structured tool_use block, and the application must send back a tool_result block for the conversation to continue. The integration relies on Amazon Bedrock as the hosting service, requiring the AWS Bedrock Runtime SDK alongside libraries like Axios for HTTP calls. Common pitfalls include missing tool definitions, malformed schemas, and Bedrock's per-minute token throttling, which can be mitigated with request delays or token-bucket strategies.

0
ProgrammingDEV Community ·

Developer builds AI agent to navigate Romania, Hungary, Austria vignette rules

A developer has launched Drum Bun, a free AI-powered travel planning agent designed to help drivers navigate complex and recently updated vignette requirements for road trips between Romania, Germany, and Austria. Romania replaced its rovinietă system on 1 October 2026 with a new operator called TollRo and revised pricing, while Hungary introduced a regional M1 vignette in 2026 that can significantly cut crossing costs. Austria now sells only digital vignettes and has raised its on-the-spot penalty to €200, with 2027 prices still unpublished. The tool calculates the cheapest combination of vignette products for a user's specific dates and vehicle class, and also flags outdated information commonly found in blog posts. Drum Bun supports queries in Romanian, German, Hungarian, and English, and traces every answer back to an official source.

0
ProgrammingDEV Community ·

Oracle 18c Allows PDB Duplication into Existing CDB Without Recreating It

Oracle Database 12c supported PDB duplication via the RMAN DUPLICATE command, but required a new CDB to be created simultaneously, making it impossible to clone a PDB into an already existing CDB. Starting with Oracle Database 18c, this restriction was lifted, allowing a pluggable database to be duplicated directly into an existing container database. To perform the operation, the target CDB must have the REMOTE_RECOVERY_FILE_DEST parameter configured to store archived redo logs transferred from the source CDB during duplication. Any changes made to the source PDB while the process runs are captured in archived redo logs and applied to the target PDB upon completion, ensuring data consistency. The duplication is executed using RMAN's DUPLICATE PLUGGABLE DATABASE command pointed at the source and auxiliary (target) databases.

0
ProgrammingDEV Community ·

Developer builds open-source AI agent safeguard after near-$24,800 scam wire transfer

A developer discovered a critical vulnerability in AI agents after their automated system nearly wired $24,800 to a scammer posing as a CEO via a lookalike email domain. The agent, tasked with handling a support inbox, correctly processed legitimate refund requests before being deceived by a fraudulent urgent payment request from 'acrne-corp.com' instead of 'acme.com'. In response, the developer built an open-source tool called Squidbrake, which intercepts every outbound action an AI agent attempts and routes it through a YAML-based rules engine — with no LLM involvement by design. The tool classifies actions as allowed, blocked, or held for human approval, and crucially examines action history to catch threats like lookalike-domain money requests that only appear suspicious in context. Squidbrake integrates with Claude Code, MCP servers, Stripe, GitHub, and other platforms, and defaults to blocking all guarded actions if the safety server itself goes offline.

0
ProgrammingDEV Community ·

PondMath: Free Browser Game Turns Mental Math Practice into Frog Adventure

A developer has launched PondMath, a free browser-based game designed to make mental arithmetic practice more engaging through a simple frog-jumping mechanic. Players solve math problems to move a frog across a pond, with correct answers triggering forward progress. The game covers addition, subtraction, multiplication, division, mixed arithmetic, and includes both an endless mode and a daily challenge. No account registration or installation is required, making it instantly accessible via any web browser. The developer is continuing to refine difficulty progression and level design to keep repeated practice from feeling monotonous.

0
ProgrammingDEV Community ·

Developer Explains Memory Deallocation Using Pointer Arithmetic in C

A developer has published Part 3 of a series on manual memory allocation in C, focusing on implementing a function to free allocated memory. The article explains how a custom my_free() function uses pointer arithmetic to step back one struct-width in memory and mark a block as free. Central to the explanation is a 24-byte metadata struct, whose size is determined by padding rules on 64-bit architectures. The author uses mmap-based virtual memory for all examples and walks through how pointer subtraction reliably locates the metadata preceding any allocated user-space block. The piece is framed as a practical, fundamentals-focused guide rather than a showcase of novel techniques.

0
ProgrammingDEV Community ·

DeskRoster: Free Browser Tool Lets Teachers Build Seating Charts with Ease

A developer has launched DeskRoster, a free browser-based seating chart tool built specifically for classroom teachers. The tool allows educators to input student lists, arrange desk layouts, set seating preferences, and apply constraints such as keeping certain students apart or together. Teachers can drag and drop students to fine-tune assignments before printing or saving the final chart. DeskRoster runs entirely in the browser with no account or sign-up required. The creator is actively seeking feedback, particularly from developers experienced in drag-and-drop interfaces or constraint-based assignment systems.

← NewerPage 786 of 3167Older →