SShortSingh.

Programming

0
ProgrammingDEV Community ·

Turtle Trading Rules Explained: N, Units, Breakouts and Stops

The Turtle trading rules form a mechanical trend-following system built on Donchian channel breakouts for entries and volatility-based position sizing. The author walks through each rule as stated in the 2003 'Original Turtle Trading Rules' PDF, using worked examples. N, the 20-day Wilder average of true range, underpins most other rules, and position units are sized so that a 1N move equals 1% of the account. Entries occur on breakouts of 20- or 55-day highs and lows, with unit additions every half N and stops set 2N away. The post also notes six points where the original PDF leaves decisions to the trader, and reports that the author's backtest of these rules on 26 Exness markets from 2020 to 2026 lost 57.7%.

0
ProgrammingDEV Community ·

Measuring How Long a Silent Failure Lasted Requires Bounded Start and End Points

A blog post examines what it takes to turn a 'time broken before detection' figure into a valid duration. The author argues that a duration needs a bounded start, a bounded end, and persistent evidence to read both from. Using a machine whose push attempts failed for forty days, the post shows how timestamps in logs and repository history can date the window. It also warns that counts of retry events are not the same as spans of time, a common source of inflated durations. The author stresses that durable version-control history is the strongest evidence for silent failures.

0
ProgrammingDEV Community ·

mnemoa Tool Flags Stale and Redundant Lines in AI Coding Agent Instruction Files

The developer built mnemoa, a Rust-based tool that scans AI coding agent instruction files such as AGENTS.md and CLAUDE.md to find outdated, duplicated, or contradictory guidance. It checks for overly long instructions, broken paths and commands, plans that have drifted from the code, and rules that linters or formatters could enforce instead. The tool produces a dry-run prune plan with estimated token costs and can convert rules into enforceable checks, logging each change in a ledger. Deterministic checks run locally, while an optional LLM feature is disabled by default, and it supports seven coding agents along with a CLI, HTTP API, Python SDK, and GitHub Action. The developer is seeking feedback on which findings prove useful and which are noisy.

0
ProgrammingHacker News ·

Dijkstra's 1978 essay argues against natural language programming

A 1978 note by computer scientist Edsger W. Dijkstra, resurfaced on Hacker News, criticizes the idea of programming in natural language. The piece argues that everyday language is ill-suited to precise instructions because of its ambiguity and vagueness. Dijkstra contends that formal notations are essential for reasoning reliably about programs. The source text provided here is limited to a link and discussion metadata, so the full argument is not reproduced in this summary.

0
ProgrammingDEV Community ·

Managers Build Trust Through Follow-Through, Fairness and Honest Communication

Trust at work is shaped less by how much people like a manager than by how that manager responds when things go wrong. Missed commitments, especially when left unexplained, can quickly turn small problems into credibility issues. The article recommends being transparent about changing decisions, applying expectations consistently and explaining the reasoning behind them, and following through on promises or flagging delays early. It also argues that addressing problems directly is better than avoiding hard conversations, and that owning mistakes with a clear plan for change helps repair trust when consistent action follows.

0
ProgrammingDEV Community ·

Keycloak Step-Up Authentication: ACR and LoA Flows, and the Cookie Bypass Gap

Step-up authentication lets users sign in with a lightweight method, such as a password or managed-device passkey, and requires a stronger factor only for sensitive actions like changing payout details or approving transfers. Keycloak implements this through Authentication Context Class Reference (ACR) values mapped to numeric Levels of Authentication (LoA), configured in the login flow instead of application code. The setup involves a realm-level ACR-to-LoA mapping, a browser flow with conditional subflows guarded by level conditions, and client requests that specify the required level. Keycloak's levels are hierarchical, which fits poorly when several unrelated authentication methods are considered equivalent. The guide also flags two places where step-up can quietly fail to protect an application.

0
ProgrammingDEV Community ·

Developer builds sub-500 KB multi-agent token usage widget with time-pace tracking

A developer describes a desktop widget for monitoring AI quota usage across multiple coding agents, including Google Antigravity, Claude Code, OpenAI Codex, and GitHub Copilot. The key metric is a pace marker that compares how much quota has been consumed against how much of the reset window has elapsed, projecting when a quota pool will run out. Rather than using a Tauri v2 WebView approach, the developer built a native Swift binary for macOS, about 483 KB as a Universal Binary, and a lightweight Tkinter bar for Ubuntu. The native design was chosen to keep idle CPU use near zero, since the widget runs continuously in the background. The article is the second part of a series on multi-model collaboration and quota management.

0
ProgrammingDEV Community ·

Compound V3 Faces Moderate Liquidity Risk Amid $1.39B TVL, Audit Report Finds

A security researcher's report assesses the liquidity risk of Compound V3, the lending protocol now deployed on Ethereum and several Layer 2 networks. The platform holds roughly $1.39 billion in total value locked, with about $950 million on Ethereum mainnet and the rest on L2s such as Optimism, Arbitrum, and Base. The analysis flags concentration risk, with about 62% of TVL tied to ETH, USDC, and WBTC, and dependence on third-party cross-chain bridges as the most significant vulnerabilities. Existing safeguards include per-asset collateral caps, rate-capping mechanisms, multi-feed oracles, and timelocked governance, which the report says keep the overall risk rating at moderate. The report also identifies governance misuse and flash-loan manipulation as areas requiring continued attention.

0
ProgrammingDEV Community ·

Free In-Browser Tool Removes Photo Backgrounds Locally Without Uploads or Watermarks

A developer has introduced NexTools AI Background Remover, a browser-based tool for isolating subjects in photos. The article argues that many existing services limit free downloads to low-resolution previews and charge per high-resolution export. The tool instead runs machine learning models on the user's device via WebAssembly, so images are not sent to remote servers. According to the post, it offers full-resolution transparent PNG exports, background presets such as studio white and passport blue, and free use without signup. The article is promotional in nature and its claims about performance and privacy have not been independently verified.

0
ProgrammingDEV Community ·

Arista Warns of Critical SQL Injection in VeloCloud Orchestrator On-Premises Deployments

Arista has disclosed CVE-2026-114625, a critical SQL injection flaw in VeloCloud Orchestrator, with CVSS 3.1 at 9.9 and CVSS 4.0 at 9.4. Fixes are available only in builds 5.2.3.18, 6.1.3.10 and 6.4.2.12 for the respective release trains, and the vendor has already patched hosted and dedicated orchestrators. Because on-premises deployments must be updated manually, organizations running these versions need to act, and earlier fixes from July and September 2026 do not cover this flaw. The vulnerability requires low-privilege authenticated access, so credential management is also relevant, and releases past end of support were not assessed. Interim steps include restricting access to the web interface and reviewing administrator activity until a patch can be applied.

0
ProgrammingDEV Community ·

AsyncLocalStorage Does Not Enforce Tenant Access; Membership Checks Are Still Required

A technical article argues that AsyncLocalStorage, which propagates request context in Node.js, cannot serve as a security boundary for multi-tenant applications. Using a hypothetical scenario with synthetic users, it shows how a caller could select another tenant's identifier, and context propagation would still work while exposing the wrong data. The author stresses that authentication, membership-based authorization, context propagation and enforcement at data access are distinct steps that must each be handled. The experiment ran on Node.js 22.18.0, NestJS 11.1.6 and TypeScript 5.9.2, with reported passing tests and type checks. The article also notes that its demo authentication is only an instructional shortcut and that real permissions may require role or resource-level checks beyond tenant membership.

0
ProgrammingDEV Community ·

WordPress 7.2 Set for December 8 Release With New Ipsum Theme and Notes Updates

WordPress 7.2 is scheduled to ship on December 8, 2026, following Beta 1 on October 20 and a first release candidate on November 17. Its headline features include Ipsum, a minimal blank-canvas default theme, suggestion mode for Notes, a Secrets API for storing credentials, and form styling in Global Styles. The core team will include only roadmap items deemed reasonably ready, so features remain subject to change until RC 1. Dates follow the official release page, and the earlier volunteer window allowed for a possible one-day slip. Several items, including sudo mode and suggestion mode, may be deferred to 7.3 if they are not ready in time.

0
ProgrammingDEV Community ·

Hexal: A Modal Text Editor With Helix Feature Parity and Lua Plugin Support

Hexal is a new modal text editor that aims to match Helix feature-for-feature while adding support for Lua plugins. Its developer created it partly because Helix has not adopted a plugin system, which limits its extensibility, and because Helix lacks several features the developer considers useful. The project went through early prototypes in C++ and in C# with Terminal.Gui before settling on C# with Native AOT and a dependency-light architecture, aside from the NLua library. The distributed builds are currently self-contained with the .NET 9.0 runtime bundled rather than Native AOT compiled, and AOT compatibility is still being worked on. The source code is available in the project's public repository.

0
ProgrammingHacker News ·

Developer Builds Custom TV Software After Unwanted webOS Update

After an unwanted webOS update was installed on his smart TV, a developer began writing replacement TV software of his own. Over a couple of weekends, with help from four different AI models, he got a first version working. The result lets his daughter control the TV by voice while he browses on the large screen. The developer made key decisions himself, including using WebRTC to reduce latency, adapting vendor logic for buffering voice samples, and designing the user experience. He described the project as a way to strip out bloatware and personalize the device.

0
ProgrammingHacker News ·

Mapping the Northern Sky: A Star Chart of Northern Hemisphere Constellations

A Hacker News post links to a web article presenting a star map of the stars and constellations visible in the Northern Hemisphere. The item was shared on the aggregator and received 5 points with no comments at the time of capture. The article itself is hosted on maps.com, and the post offers little detail beyond its title and link. Readers would need to visit the source page to see the chart and its specifics.

0
ProgrammingHacker News ·

Jank: A Native Clojure Dialect Offering Seamless C++ Interoperability

Jank is a programming language described as a native dialect of Clojure, the Lisp-family language that runs on the JVM. Its distinguishing feature is seamless interoperability with C++, allowing code to work directly with C++ libraries and facilities. The project was shared on Hacker News, where it received 7 points and no comments at the time of this report. The available source material provides only the project link and basic engagement metrics, so further details about its design, maturity, or adoption are not confirmed here.

0
ProgrammingDEV Community ·

Study finds gold-label conflicts in NLI training data, while evaluation splits stay clean

An AI-agent research effort examined ten reproducible audits of popular NLI and multiple-choice QA benchmarks for duplicate examples with contradictory correct answers. The conflicting duplicates found in SNLI, MultiNLI and ANLI were confined to their training splits, while held-out evaluation splits were clean. Checks on BoolQ, PIQA, CommonsenseQA and GSM8K turned up few or no conflicts. Notably, SNLI and MultiNLI share no identical premise-hypothesis pairs, so merging them into a combined training set adds no cross-corpus duplicates. The authors say the findings matter most for those training on these corpora without de-duplication.

0
ProgrammingDEV Community ·

Privacy-preserving active learning helps keep soft robot grippers maintained

A robotics researcher struggled to keep a silicone pneumatic gripper working after it failed from micro-tears around 4,000 actuation cycles. The lab owning the robot refused to send raw sensor data off-device because it contained proprietary designs, customer-specific force profiles, and details of a disputed manufacturing defect. To address this, the author combined active learning, differential privacy with federated training, and embodied agent feedback loops. The approach lets the robot itself estimate its uncertainty and decide which experiences are worth learning from, sharing only those decisions rather than raw data. The author argues that the robot's embodiment makes this privacy-preserving approach practical for soft robotics maintenance.

0
ProgrammingHacker News ·

Show HN: Impossible Machines explores declarative programming for physical systems

A developer shared a thought experiment called Impossible Machines, asking what declarative programming might look like for the physical world. The approach mirrors software paradigms like SQL, where users state a desired outcome and the engine determines execution. Lacking a physical actuator, the creator built a software mock-up in which users demonstrate an effect and the system works out how to produce it. In one example, a user wants to ring a bell connected to a crank, and the system finds a mechanism linking the two, using a constraint solver to route around added obstacles. The project was posted to Hacker News seeking feedback and ideas for extension.

0
ProgrammingDEV Community ·

Malicious LiteLLM 1.107.0 uploaded to PyPI, stealing developer and AI tool credentials

A malicious version of the LiteLLM Python package, 1.107.0, was published to PyPI on October 21, 2026, and has since been removed by the registry. The package is widely used by AI developers to route requests to models such as Claude and GPT through a single interface. The malicious payload runs automatically whenever Python starts in an affected environment, without requiring the package to be imported. It searches for credentials including AI coding tool keys, environment variables, SSH keys and cloud logins, and it also runs a daemon that fetches and executes remote code hourly. Version 1.106.2 is confirmed safe, and developers are advised to check their environments for the 1.107.0 dist-info folder and review lockfiles.

← NewerPage 111 of 2931Older →