Programming

Questions about C#, Python, Java, algorithms, and code architecture.

ProgrammingC nan(tagp) string rationale and IEEE 754 payloads

Why C's nan(const char *tagp) accepts a string: WG14 rationale, how tagp maps to IEEE 754 QNaN payloads, common parsing strategies and portability implications.

1 answer 3 views
ProgrammingPower BI Maps Disabled: Bing Blocked Tenant Fix

Fix Power BI Desktop map and filled map visuals disabled despite settings enabled. Check tenant blocks on Bing Maps, verify access, use Azure Maps or ArcGIS alternatives for PL-300 labs.

1 answer 3 views
ProgrammingConvert Chrono DateTime to BSON in Rust MongoDB 3.4.1

Fix 'expected DateTime, found DateTime' error converting chrono::DateTime to BSON DateTime in Rust with mongodb 3.4.1. Add bson crate with chrono-0_4, use from_chrono() or Into for rust chrono, rust mongodb serialization.

1 answer 3 views
ProgrammingCreate Custom Hydra Launcher Plugin for Task-Spooler

Build a custom Hydra (hydra.cc) launcher plugin to submit multirun jobs to task-spooler, return results with exit codes. Includes APIs, minimal code example, registration via entry points for PyTorch Lightning workflows.

1 answer 3 views
ProgrammingFix Excel Add-in Crashes in Shared Runtime Multi-Workbook

Resolve intermittent Excel add-in crashes with custom functions using shared runtime during multi-workbook recalculation. Root causes, diagnostics, mitigations, and best practices for stable Excel add-ins.

1 answer 3 views
ProgrammingFilter Plotly scatter3d by pandas MultiIndex dropdowns

Create one dropdown per pandas MultiIndex level to filter Plotly scatter3d traces. Step-by-step code for updatemenus, JS visibility masks, transforms, and standalone HTML export without Dash.

1 answer 3 views
ProgrammingFix C Compiler Stray '\342' & Long Double Errors

Resolve C compiler errors like stray '\342' in program, exponent has no digits for long double literals (e−27), invalid ^ operator, and printf issues. Use ASCII hyphens, powl(), %Lf formatting for clean GCC compilation.

1 answer 3 views
ProgrammingNeorg Tangle Multiple Files: Fix Syntax & Concurrency

Solve Neorg tangle multiple files issues: restore syntax highlighting with Treesitter parsers like conf/sh and fix concurrency failures by setting core.tangle concurrency=1 for reliable literate programming exports without retries.

1 answer 2 views
ProgrammingRetry Logic in skel_read() usb-skeleton.c Linux USB Driver

Analyze retry logic inconsistency in skel_read() of Linux kernel usb-skeleton.c. Understand partial reads, USB bulk transfers, adding goto retry safety, O_NONBLOCK handling, and best practices for USB drivers.

1 answer 2 views
ProgrammingLLM Fine-Tuning Data Formats, RAG & AI Datasets Guide

Discover data formats for fine-tuning LLMs like CSV/JSONL prompts, RAG query-context triples, and top AI datasets from Hugging Face for training mini LLMs. Essential guide for instruction tuning and RAG systems.

1 answer 2 views
ProgrammingEfficient Letter Boxed Solver Algorithm Guide

Optimal algorithm for Letter Boxed word game: bitmask DP, BFS on (mask, last), admissible heuristics like set-cover bounds, pruning techniques for minimal words. Fast for L=12 puzzles with chaining and coverage.

1 answer 2 views
ProgrammingLearn Data Science: Hands-On Projects, AI & Googling

Yes, hands-on mini-projects, effective Googling, and AI for tasks/debugging outperform syntax memorization in data science learning. Get tips for long-term retention, faster problem-solving, and building a portfolio with real projects like Titanic.

1 answer 2 views
ProgrammingCalculate Used Blocks from Overflowing uint32 Counters

Fix counter overflow issues to accurately compute used memory blocks in a 20k pool using uint32_t alloc_num and free counters. Handle wrapping, sum overflow, edge cases, and concurrency for reliable counter memory tracking.

1 answer 2 views
ProgrammingTypeScript: Generic Indexed Access & Unknown Mismatch

Why does TypeScript allow assigning to generic B['Child'] (unknown) but fail unknown extends B['Child'] in conditionals? Explore compiler rules, GitHub issues like #46076, and workarounds like tuple wrapping for consistent generics.

1 answer 2 views
ProgrammingHow PyTorch backward() Propagates Gradients to Params

Technical explanation of how PyTorch autograd and backward() build the dynamic graph and accumulate gradients into linear layer weights and biases for SGD.

1 answer 2 views
ProgrammingFix Maven Compiler Plugin Java 25 syntax error (3.14.1)

Maven Compiler Plugin 3.14.1 fails on Java 25 module imports (JEP 511) with provides directives. Upgrade to 3.15.0 or fork javac/use compiler args to fix.

1 answer 2 views
ProgrammingRegenerate Embeddings on Model Updates?

Discover when to regenerate embeddings after embedding model updates. Trade-offs include accuracy vs. compute cost, downtime. Strategies: incremental re-embedding, dual-indexing, versioning for vector databases and RAG systems.

1 answer 2 views
ProgrammingJSONata: Filter an Array to Find a Specific IP Address

Use JSONata to filter an unordered array and return a specific IP address. Covers predicate queries, $filter, $contains, $indexOf and regex $match examples.

1 answer 2 views
ProgrammingCombine Order & Payment in Microservices: Modular Monolith

Learn microservices patterns to combine Order and Payment in a single service using modular monolith, bounded contexts, ports-and-adapters, and saga patterns for clean boundaries and easy future extraction into independent microservices.

1 answer 2 views
ProgrammingPolars Rust: Upsample Time-Series Gaps to 5m Intervals

Learn to upsample time-series gaps in Polars Rust to exact 5-minute intervals using date_range, vstack, and forward fill. Preserve non-aligned timestamps like 00:05:17 without replacement. Rust code examples for sensors data.

1 answer 9 views