SShortSingh.
0
ProgrammingDEV Community ·

Freezing design tokens so AI agents can't edit shared styling scales

An agent asked to adjust spacing in a checkout header also changed a shared spacing token, which unintentionally affected other pages like settings. The author now freezes token and theme files by default for agent-driven UI work, allowing edits only to named component paths. Token changes require an explicit unlock, such as a human prompt or a separate pull request. When a design needs a new token, the agent is instructed to stop and propose the change in writing rather than editing the shared scale. The approach is paired with PR template checks, CI warnings, and review guidelines to keep token changes separate from feature work.

0
ProgrammingDEV Community ·

Using Power Logger Data and pandas to Size an Industrial Diesel Generator

A DEV Community guide explains how a plant engineer with basic Python can size a diesel generator using data from a power logger clipped to the incoming supply. It recommends logging for at least a full production week, including shift changes, weekend slowdowns and restarts after load-shedding, and noting seasonal peaks such as June cooling demand. The author suggests logging individual feeders as well as the incomer, then modeling restart surges by grouping large loads into steps. Site derating for high ambient temperature and altitude, plus expected future load growth, should be checked against each generator's load acceptance. Harmonic distortion from VFDs and UPS systems should also be logged because it affects alternator sizing.

0
ProgrammingDEV Community ·

Local speaker diarization on a MacBook Air M3 runs 4.4x faster on the GPU

The author transcribes meetings and interviews on a MacBook Air M3 using whisper.cpp for speech recognition and pyannote.audio for speaker diarization, keeping audio off third-party services for privacy reasons. An initial run of a 42-minute meeting took about 2 hours 9 minutes and heavily loaded the laptop. Process monitoring showed pyannote.audio running on the CPU at around 343% usage, because it was never explicitly assigned to the GPU, even though whisper.cpp already used Metal. The author moved processing into a background job launched with nohup and changed the device setup, achieving a 4.4x speedup for diarization and a 2.5x speedup for the whole pipeline. The changes were not measured individually, and the initial baseline was not a controlled comparison.

0
ProgrammingDEV Community ·

Limites em dólares para hot wallets ganham destaque na segurança de corretoras

A CertiK argumenta que o percentual de fundos mantidos em cold storage não mostra, por si só, quanto capital permanece exposto online. A proposta da empresa sugere fixar limites absolutos em dólares para as hot wallets de cada ativo e rede. Esses limites considerariam a parcela das obrigações com clientes, a demanda estimada de saques e a perda máxima que a empresa consegue suportar, prevalecendo sempre o critério mais restritivo. Na prática, a implementação exigiria monitoramento por blockchain, alertas ao se aproximar dos limites e bloqueios automáticos para saídas incomuns. O desafio apontado é garantir saques fluidos sem acumular saldos excessivos em carteiras conectadas à internet.

0
ProgrammingDEV Community ·

Nemotron 3.5 Transcribe runs on one 32 GB Blackwell GPU, with output set by the prompt

NVIDIA released Nemotron 3.5 Transcribe on 28 October under the OpenMDW-1.1 license, with an open serving recipe built on vLLM and the NeMo Speech plugin. A tester ran the smallest 21.6 GB NVFP4 version on a single 32 GB RTX PRO 4500 Blackwell card and wrapped it in a custom backend that serves the standard OpenAI transcription route. The prompt controls the output style: verbatim, clean, or speaker-labelled with word-level timings, though the clean style still left speaker tags and a false start in the text. On short English clips the model's word error rate was 6.82%, roughly between two comparison systems, but it varied widely, performing best on audiobook speech and weakest on crosstalk-heavy office meetings. The tester urged users to test their own recordings, noting the sample was small and that throughput was not measured.

0
ProgrammingDEV Community ·

TokenCap 3 Adds Sandboxed Local Plugins With Strict Capability Limits

TokenCap 3 introduces a local plugin runtime with a deliberately small contract of two hooks, named tools, and one capability: reading and writing files within the plugin's own folder. Plugins are enabled per project through its package.json, and only workspace-relative file paths are accepted, while package names and remote modules are refused. Each plugin runs in its own V8 context with no access to require, process, or network, and its file I/O is confined to .tokencap/plugins/ with symlinks rejected. Hook and tool calls are capped at one second and plugin loading at 150 milliseconds, and a plugin that overruns is disabled until its file changes or the process restarts.

0
ProgrammingDEV Community ·

FinMan Adds Android App, Bank Statement Import and Income PDF Reports

FinMan, a personal finance app for tracking expenses, utility bills and car costs, has released an Android version on Google Play. iPhone users can add it to their home screen as a web app. The update lets users import statements from any bank in CSV, Excel or PDF format, with AI used only once per new bank format to create a parsing template. Users can also generate a one-page income statement PDF from imported data, useful as proof of income for landlords, visa applications or loans. Additional features include trip tracking, multi-currency display, family spending views, fuel and meter photo tracking, and support for 50+ languages.

0
ProgrammingDEV Community ·

Identical Pine Script Yields Opposite Backtest Results Across Two Engines

A developer ran the same RSI mean-reversion Pine Script strategy on 4,089 daily bars of CSI 300 data using two different backtesting approaches. The PyneCore bar-by-bar emulator reported a net loss of about 13.5%, while a hand-written pandas port showed a profit over the same period. The author attributes the divergence to differences in how each engine handles tick definitions, indicator warm-up, and order fill timing. The core disagreement starts with RSI calculation, as PyneCore seeds Wilder's smoothing differently than the pandas version, producing early values that differ by up to 16.47 points. These small discrepancies are enough to generate trades in one engine that never occur in the other.

0
ProgrammingDEV Community ·

Developer Adds Print-Ready 300 DPI PDF Export With Watermarks After User Request

A team behind an online fuse bead pattern generator spent five months building AI features that generated no revenue. A seller of bead kits and patterns then asked for a high-resolution PDF export with her logo and a tiled watermark, as she was doing this manually in Photoshop. The developers built an offscreen rendering pipeline that produces 300 DPI printable PDFs with a custom header, watermark, and legend. The user said she would buy the feature immediately, shifting the team's view that users pay for technical complexity. The article presents this as a lesson that practical features solving real workflow problems can drive monetization.

0
ProgrammingDEV Community ·

Building Shopify grocery product cards with unit pricing and Ajax Cart

A grocery product card must both show comparable prices and send the correct variant and quantity to the cart. The article offers a Shopify Liquid template that selects the current or first available variant and displays its unit price with measurement. It advises setting total and base measurements on the product or variant and keeping one comparison unit within each category. For adding items, it describes an asynchronous function that posts selections to the Cart API, reads back the latest cart, and reports partial-stock or network failures to the shopper. Developers are told to disable the submit button during the request and to test cases such as variants already in the cart, partial stock, and network interruptions.

0
Crypto & Web3CoinDesk ·

Bitcoin Lags Stock Rebound Ahead of U.S. October Inflation Report

Bitcoin fell even as U.S. stocks recovered on Monday, showing a divergence between crypto and equity markets. Spot Bitcoin ETFs recorded outflows totaling $201 million during the session. Traders are positioning cautiously ahead of the October inflation data scheduled for release later in the day. The report is closely watched because it can shape expectations for Federal Reserve interest rate decisions. Crypto markets have been reacting to macroeconomic signals as well as flows into and out of investment products.

0
WorldBBC World ·

Israeli forces kill Palestinian boy in West Bank, health ministry says

Palestinian health authorities report that a boy was killed by Israeli forces in the West Bank. The Israeli military says its soldiers fired on individuals who it claims intended to throw stones at a road used by Israelis. The article provided is brief, so the boy's exact age, the precise location, and the time of the incident are not specified. Further details on the circumstances and any investigation are not included in the source text.

0
BusinessEconomic Times ·

Nvidia and its CEO face lawsuit over alleged Chinese spy affair

Nvidia and its chief executive have been named in a lawsuit connected to an alleged affair involving a suspected Chinese spy. The complaint centers on claims tied to the individual's links with China. The filing raises questions about the company's oversight and its handling of the matter. The article provided is incomplete, so further specifics such as the plaintiffs, court, and exact allegations could not be confirmed.

0
IndiaNDTV ·

TVK MLA Accused of Sending Obscene Texts to Kallakurichi Collector; Party Promises Probe

DMK MP Kanimozhi has alleged in a social media post that the Kallakurichi district collector received obscene text messages from a TVK MLA. She also cited reports that the legislator, allegedly intoxicated, went to the collector's residence and harassed her. The claims, which have not been independently verified in the report, have drawn attention to the conduct of the MLA. The TVK has responded by assuring that an inquiry will be conducted into the allegations.

← NewerPage 201 of 7184Older →