Programming

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

ProgrammingDetect System Clock Tampering in C++20 with std::chrono

Learn to detect system clock tampering and time jumps in C++20 for cross-platform security agents. Use std::chrono::system_clock vs steady_clock polling, Windows Event ID 4616, Linux timerfd for reliable protection against clock manipulation.

1 answer 6 views
ProgrammingPyTorch Dataset/DataLoader for Multivariate Time Series

Fix PyTorch Dataset and DataLoader for multivariate time series preprocessing from CSV. Ensure (B, V, L) shapes, avoid data leakage with proper scaling, and validate sliding windows for MAMBA models.

1 answer 6 views
ProgrammingJxBrowser Chromium Huge VIRT on Linux: Causes & Limits

Why JxBrowser's Chromium subprocesses show massive VIRT (32GB-1TB+) on Linux in top, VIRT vs RSS explained, and fixes: Chromium flags via EngineOptions, ulimit, cgroups, /dev/shm for Docker to prevent JavaFX JVM crashes.

1 answer 5 views
ProgrammingFix C++ Undefined Reference Across Multiple Files

Resolve C++ 'undefined reference to' errors when one .cpp file can't access functions from another. Learn header declarations, proper linking with g++, makefiles, IDE setup, and common pitfalls for multi-file compilation.

1 answer 4 views
ProgrammingGraceful SIGINT Shutdown in Node.js CLI with Commander

Handle SIGINT gracefully in Node.js TypeScript CLI apps using Commander.js. Finish database updates, per-item calculations, flush stdout/stderr logs, and ensure shell prompt returns only after complete shutdown—no more lost logs or early prompts.

1 answer 4 views
ProgrammingPrint Name in C: Alternatives to printf (putchar, puts)

Discover alternative ways to print your name in C without printf: putchar loops, puts/fputs, write calls, ASCII codes, macros. Fix common issues, pros/cons, and beginner tips for print c and output in c basics.

1 answer 4 views
ProgrammingOracle APEX: Trigger Dynamic Action on Shuttle Close

Learn how to trigger a dynamic action in Oracle APEX when closing a shuttle dialog with selected values. Use apexafterclosedialog event, JavaScript condition for oracle apex item, and refresh interactive grids seamlessly.

1 answer 4 views
ProgrammingTensorFlow Backprop: Mixed Real & Complex Functions

Learn how TensorFlow handles backpropagation through mixed real and complex-valued functions using Wirtinger derivatives, GradientTape, and complex-aware ops. Covers chain rule, domain boundaries, and practical tips for CVNNs in comms systems.

1 answer 4 views
Programmingdotnet User Secrets vs appsettings.Development.json

Benefits of dotnet user secrets over a gitignored appsettings.Development.json: security, per-developer scope, tooling, env var comparison, and local secrets best practices.

1 answer 3 views
ProgrammingHow Linux build system links built-in.a into vmlinux

How the Linux kernel build system uses built-in.a and KBUILD_VMLINUX_LIBS to link object files into vmlinux, and how built-in drivers differ from modules.

1 answer 3 views
Programmingp5.js: Spawn Road Markings & Remove Off-Screen Objects

Spawn multiple road markings in p5.js using an array. Use frameCount to spawn, safely remove off-screen items, and cap the array at 20 for performance.

1 answer 3 views
ProgrammingPrettier XML Formatting: Inline/Block Elements & Whitespace

Learn how to format XML with Prettier XML plugin, handling inline vs block elements correctly. Preserve whitespace using xmlWhitespaceSensitivity, prettier-ignore, xml:space, and CI-ready alternatives like xml-formatter or xmllint.

1 answer 3 views
ProgrammingFix Inaccurate OpenCV Template Matching in C++ Quickly

Why OpenCV template matching fails for C++ object detection and how to fix it: multi-scale, edge preprocessing, robust thresholds, or feature-based methods.

1 answer 3 views
ProgrammingFind Duplicates in Python Lists: Set, Counter, Sort

Efficient methods to find duplicates in Python lists using sets, collections.Counter or sorting. Handles unhashable items and covers time and space complexity.

1 answer 3 views
ProgrammingAppleScript Object Specifier for Shared Cocoa Objects

Assign stable UUIDs, expose an app-level resolver, and return NSUniqueIDSpecifier so AppleScript recognizes shared Cocoa objects as identical. Fast and stable.

1 answer 3 views
ProgrammingMiniZinc cumulatives: model staff schedules & breaks

Model office hours, lunch breaks and weekends in MiniZinc using cumulatives. Time-compression, per-time capacities, and task-splitting to allow resumes.

1 answer 3 views
ProgrammingSink Mark Defect Detection for Chair Seats (Small Data)

Practical guide to sink marks defect detection on chair seats using classical CV and anomaly detection. Works with very small datasets (15 normal, 3 defects).

1 answer 3 views
ProgrammingFix ZIP Timestamps Error in Homebrew Python Hatchling

Resolve 'ZIP does not support timestamps before 1980' error in Homebrew Python formulas like kosmorro with termcolor 3.3.0 and hatchling. Set SOURCE_DATE_EPOCH to clamp timestamps and fix wheel builds during pip install.

1 answer 3 views
ProgrammingC Floating-Point == Comparison Accuracy with 0.1 Steps

Learn why C's == operator fails for floating-point numbers like 0.1 increments due to binary precision. Use epsilon comparison, rounding, fixed-point scaling, and GSL for reliable equality checks and numerical solving.

1 answer 3 views
ProgrammingModeling Stepwise Price Time Series: Change Points & HMM

Forecast stepwise price time series with change point detection, regime-switching (HMM), and survival models. Includes pipeline, libraries, and evaluation tips.

1 answer 3 views