SShortSingh.

Programming

0
ProgrammingDEV Community ·

Claude Code on Windows Fails Silently in 15 Reproduced Cases

A developer running Claude Code unattended on Windows 11 with Windows PowerShell 5.1 found several failures that returned wrong results without raising any error. They reproduced each issue on a Japanese-locale machine, and re-ran code-page-dependent checks under English defaults, where only one trap stopped occurring. The problems include exit codes being altered by -Command, arguments being silently dropped or merged, and non-ASCII text arriving as question marks or as garbled characters. Other reported traps involve Python crashing when output is redirected, encoding-sensitive script parsing, and a PreToolUse hook whose write went through after timing out. The author published a free MIT-licensed script on GitHub so readers can check which of these issues occur on their own machines.

0
ProgrammingDEV Community ·

DeepSeek Open-Sources DeepInfer, an Offline Inference Engine for Enterprise Hardware

DeepSeek has released DeepInfer, an open-source offline inference engine, with its README stating plainly that it is neither a hosted API nor a model itself. The engine is licensed under Apache 2.0, with model weights under MIT, and targets Nvidia SM100 GPUs and Huawei Ascend 950 NPUs for DeepSeek V4.1 Flash. Its feature set includes wide expert parallelism, D-Spark speculative decoding reported to add 4-7% throughput, sliding window cache replay, and structured output support. Analysts note that it is aimed at enterprise-grade hardware rather than consumer GPUs, and that it omits key production components such as a KV cache system, prefill-decode disaggregation, and cluster-level load balancing.

0
ProgrammingDEV Community ·

Free browser game collection lets groups share one phone, tablet or laptop

A business analyst and a developer built Pass and Play Games, a free set of 24 browser games designed for two to twelve people passing a single device. The games include chess, ludo, checkers, backgammon, mancala, dominoes, and party titles such as Imposter and Charades, requiring no sign-up. Each game saves its state locally after every move, so play resumes after interruptions, and the games work offline after the first visit. The creators added an optional pass screen to hide information between turns, along with accessibility settings and computer opponents to fill empty seats. Four more games, including Hot Dice and Hot Potato, are planned.

0
ProgrammingDEV Community ·

How Open Graph Tags Control the Preview Cards Shown When Links Are Shared

When a link is pasted into X or Facebook, the platform builds a preview card with a title, description, and image, drawn from metadata the page itself publishes. That metadata is the Open Graph Protocol (OGP), proposed by Facebook in 2010 and now widely adopted across platforms such as X, LINE, and Slack. A basic card relies on four tags: og:title, og:description, og:image, and og:url, which the platform's crawler reads separately from normal browser rendering. The article also covers og:type, image dimensions, and X-specific twitter: tags, using the author's blog as an example. It further explains how an image is chosen, prioritizing a featured image, then a cached generated image, then a dynamic fallback, and finally a site-wide default.

0
ProgrammingDEV Community ·

Accuracy targets in mixed-precision arithmetic may be unreachable regardless of limb count

Mixed-precision kernels are typically tuned by choosing a format, limb count, and accumulator width, then checking the error after the fact, which leaves unclear which accuracy targets are achievable at all. A paper titled How Many Bits Does a Trusted Result Need? addresses this by measuring the accuracy budget against exact integer and rational arithmetic over a hash-pinned matrix corpus. Its results show that once the accumulator's rounding dominates, extra limbs stop improving accuracy, and the error floor depends on register width rather than the format's mantissa. The reachable error floor scales with the condition number, but the constant of proportionality varies by roughly a factor of three to six across matrices with equal condition numbers. The authors also find that changing only the summation order can shift the error by up to two orders of magnitude, a factor that standard precision budgets do not account for.

0
ProgrammingDEV Community ·

Developer shares standalone GitHub editions of open source tools he uses daily

A full-stack developer has published standalone editions of several well-known open source projects in his own GitHub account. The projects include public-apis, free-for-dev, markitdown, and ui-ux-pro-max-skill, each credited to its upstream source. He says he maintains these copies so his workflow keeps working if upstream repositories change, lets him pin specific versions, and applies consistent docs, dependency updates, CI, and linting. He encourages readers to star the original projects first and invites feedback on how others handle upstream updates.

0
ProgrammingDEV Community ·

Developer Uses Regex Whitelist Before LLM to Safely Run Voice Commands

A developer built a voice-controlled home automation server for their website that lets users trigger actions like turning lights on or off or starting backups. To prevent spoken input from being turned into arbitrary shell commands, the system first checks the transcribed text against a strict regular-expression whitelist, rejecting anything that doesn't match a known pattern with a 400 error. Browser speech recognition via the Web Speech API sends the transcript to a Node.js server, where validated inputs are mapped to hardware parameters. A language model then generates the final command using a static prompt that never includes the raw user text, which guards against prompt injection. The author argues the regex gate adds negligible overhead while providing deterministic protection.

0
ProgrammingDEV Community ·

Tenant-Aware Batch Processing for Document Summarization With Usage Accounting

The article argues that summarizing multiple documents should be treated as a small data pipeline rather than a simple loop over an API endpoint. It recommends tenant-aware batches with bounded inputs, idempotency keys, and usage recorded before results are shown, so each document maps to one accountable record. Usage should be a measured or deliberately estimated value tied to the amount of text processed rather than the document count. Manifests and usage events are kept longer than raw text, subject to privacy and contractual rules, and item-level failures should not halt the rest of a batch. Retries are permitted only when the previous attempt is known to have ended without a committed result or when an idempotency key protects the operation.

0
ProgrammingDEV Community ·

Previewing a Site on a New Server Without Editing the Hosts File

Migrating a website typically involves editing the local hosts file to test it on a new server before changing DNS records. This works because browsers still send the real domain name in the HTTP Host header and TLS SNI, so the server responds as it would after a live DNS change. Visiting the server's bare IP address instead fails because the server cannot tell which site is requested. The approach has practical drawbacks: entries are local and hard to share with colleagues, wildcard subdomains are unsupported, and stock mobile devices cannot be edited. Firefox's DNS over HTTPS can also bypass the hosts file entirely, while Chrome generally still respects it.

0
ProgrammingDEV Community ·

Hosting a Lovable App on Your Own Server with Coolify

A Lovable app can be deployed to a self-managed server using Coolify by building it as a static Vite site from the linked GitHub repo. Coolify's self-hosted version is free and the main cost is the server, such as a Hetzner CAX21 at about 10.49 euros a month. However, this only moves the front end: a Lovable Cloud backend, which runs on Supabase, stays with Lovable unless it is migrated. The author outlines two options for moving the data, either to a Supabase project the user owns or to self-hosted Supabase on the same server, the latter requiring more ongoing upkeep. Refreshing client-side routes returns a 404 unless the Nginx config includes a single-page fallback, and changes require a redeploy rather than a restart.

0
ProgrammingDEV Community ·

SparkLend Upgrade Review Flags Storage Collision and Governance Timelock Risks

A compatibility review of SparkLend, a money market with roughly $5.06 billion in total value locked across Ethereum and layer-2 networks, examined its proxy-based upgrade architecture. The assessment identified storage-slot collision as a high-severity risk, since upcoming upgrades add state variables without reserved storage gaps. It rated upgrade-authority compromise as critical, citing a 24-hour governance timelock that is shorter than the 48 hours common among comparable protocols. Additional medium and lower-severity concerns included delegatecall-based interest-rate modules, cross-chain state synchronization on bridge adapters, and a reentrancy-guard bypass in the liquidation path. The reviewer concluded the upgrade framework is generally sound but needs stricter storage-gap discipline and a longer timelock.

0
ProgrammingDEV Community ·

Sloth Roll turns iPhone screenshots into calendar events, places and expenses on-device

Sloth Roll is an iPhone app built for the Hacktoberfest Open-Source AI Challenge that reads screenshots with an open-weight vision model running locally on the phone. Each screenshot becomes a swipeable card that adds an event to Calendar, opens a place in Apple Maps, or saves a receipt to an in-app expense list. The app also flags blurry, duplicate or unhelpful screenshots for one-tap deletion through iOS's Recently Deleted flow. Processing happens entirely on-device after a one-time model download of about 1.8 GB, so it works offline. In a test scan of 50 new images, the app read 43 and found 19 actions in roughly 3.7 minutes.

0
ProgrammingDEV Community ·

Cómo planear el cronograma de un evento aplicando el método de un despliegue de software

El artículo propone organizar un evento, como una boda o una reunión de oficina, con la misma disciplina que un despliegue de software. Según la autora, los fallos suelen deberse al orden de las tareas, no a los detalles visibles, como ocurre con dependencias no anotadas o tiempos demasiado optimistas. El método comienza fijando la hora de llegada de los invitados y la hora de entrega del lugar, y ajustando el resto entre esos límites, dejando margen para el desmontaje. Recomienda asignar un responsable con nombre para cada bloque, sumar unos 15 minutos de colchón por cada hora de programa y definir de antemano un plan B para imprevistos como la lluvia. Finalmente, sugiere compartir cada versión actualizada del cronograma con fecha para que todos trabajen con la misma información.

0
ProgrammingDEV Community ·

Python script turns a spider web pattern into a 3D-printable bowl

A DEV Community post describes a method for converting a flat spider web drawing into a 3D-printable bowl using Python and the manifold3d library. The approach draws the web as a 2D cross-section, extrudes it downward, and subtracts it from a spherical-cap bowl shell. The same technique can be applied to other patterns, such as a leaf design placed at golden-angle positions. The author notes the models have not been test-printed yet, though the renders appear correct and the meshes form single manifold solids. Finished versions of the spider web and leaf bowls are available on Cults3D.

0
ProgrammingDEV Community ·

Probabilistic graph neural inference aims to improve satellite anomaly response with built-in auditability

A developer working on satellite anomaly triage found that a temporal autoencoder and threshold rules missed a reaction wheel fault that appeared as correlated, sub-threshold drift across several subsystems. Seeking a fix, they explored graph neural networks, where subsystems are nodes and their physical and functional dependencies are edges, so each subsystem's score can reflect its neighbors' states. They argue that operators need calibrated probability distributions over failure modes, not binary verdicts, and that the reasoning behind each output must be traceable for later review. The write-up walks through the graph construction, probabilistic inference method, audit trail design, and lessons from a prototype tested on simulated data.

0
ProgrammingDEV Community ·

Plex Media Server SSRF flaw CVE-2026-96655 added to CISA's exploited vulnerabilities list

CISA added CVE-2026-96655, a server-side request forgery flaw in Plex Media Server, to its Known Exploited Vulnerabilities catalog on 20 October 2026. The issue affects Media Server version 1.43.2 and earlier, and is fixed in version 1.43.3.10861. An authenticated user can abuse the transcoding endpoint to make the server fetch arbitrary addresses, including internal services and cloud metadata endpoints. Because the attack requires only an authenticated account, shared or household users could be enough to exploit it. Administrators are urged to upgrade promptly and confirm the running version after updating.

0
ProgrammingDEV Community ·

Power, Grounding and Enclosure Rules for a 60 GHz Radar Module

Failed radar product tests are usually traced to the power supply, ground routing, or an enclosure placed too close to the antenna rather than the sensor itself. The 3.3 V figure on the pinout refers only to I/O logic levels, so modules must be powered from 4.5–5.5 V, with ripple held to 100 mV or less using an LDO after the switcher. Power budgets should account for current peaks, since the fall module can draw 300 mA and the sleep module needs 200 mA available. Load switching should sit in a separate power domain, joined to the module ground at a single point, and GPIO pins should drive transistor gates rather than relays or lamps directly. The housing over the antenna should be flat, non-metallic, and positioned 3–5 mm from the antenna face, with nothing metallic nearby.

0
ProgrammingHacker News ·

http2shell: Newly Disclosed Vulnerability Enables Remote Code Execution in Node, Python and Other Frameworks

Aikido Security has reportedly disclosed a vulnerability dubbed http2shell that enables remote code execution. The flaw is said to affect applications built with Node, Python and other technologies. The information was shared through a social media post linked from a Hacker News discussion, which drew modest attention. Specific technical details, affected versions and mitigation steps were not available in the material provided.

0
ProgrammingDEV Community ·

Free FMCSA census query surfaces newly registered trucking companies

A developer shared a method for pulling newly registered trucking companies from the FMCSA carrier census, which is published as open data on data.transportation.gov. The approach uses a SoQL query over plain HTTP, filtering active records by registration date and state, and requires no API key for light use. The author notes that the raw dataset lacks built-in deduplication, operating authority status, and normalized fields, which must be handled separately. To address these gaps, the author built a paid Apify actor that joins authority data, applies filters, avoids repeat deliveries, and exports results in JSON, CSV, or Excel. The article notes the author's bias, since they built the tool they promote.

0
ProgrammingDEV Community ·

Expo Router navigation slows past 40 nested routes, with fixes for layout re-renders and focus

A team migrating a multi-tenant dashboard from React Navigation to Expo Router found a performance drop at around 42 nested routes, with animations falling from 60fps to 38fps and memory rising 140MB on Android mid-range devices. Benchmarks on a Pixel 5 and iPhone 12 using Expo SDK 52 and React Native 0.76 showed navigation time and frame drops rising sharply as route depth increased. The team attributed the problem to re-renders of the layout tree on navigation events, compounded by runtime TailwindCSS class recalculation in nested layouts. Replacing dynamic class props with static StyleSheet references cut navigation time at 50 routes from 187ms to 94ms and reduced frame drops per transition from 9 to 3. The team also found that modal routes overlaying tab navigators broke screen reader focus, which they addressed by wrapping the modal in a container with accessibilityViewIsModal.

← NewerPage 57 of 2894Older →