Programming

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

ProgrammingFix Identical Metrics in TensorFlow Keras CNN Backbones

Diagnose and fix identical accuracy, F1, AUC metrics across VGG16, ResNet50, DenseNet121 in TensorFlow Keras on medical imaging datasets. Check metric state, tf.data caching, preprocessing issues.

1 answer 10 views
ProgrammingManim CE OpenGL: Fix Text Rendering Issues

Resolve text and graph rendering problems in Manim CE OpenGL with interactive_embed(). Learn causes and solutions for accurate rendering.

1 answer 10 views
ProgrammingRemove Extra Faces on End Caps After Boolean in Blender

Fix extra faces on end caps after Boolean subtract modifier in Blender 5.0.1. Use Exact solver, delete inner caps, cleanup with Merge by Distance, Limited Dissolve, and Select Similar for clean topology.

1 answer 9 views
ProgrammingMplfinance Alternatives: Plotly, Bokeh & Lightweight-Charts

Find modern mplfinance alternatives - Plotly, Bokeh, Lightweight-Charts - for interactive OHLC/candlestick charts with volume, pandas support and live updates.

1 answer 7 views
ProgrammingBuild Arm64EC with Visual Studio 2022 Command Line

Install MSVC v143 ARM64 tools and Windows 11 SDK. Open the Arm64 Developer Command Prompt (vcvarsall arm64) then run cl /arm64EC and link /MACHINE:ARM64EC.

1 answer 6 views
Programmingjpackage MSI Uninstall: Fix File Deletion When App Running

Ensure complete file deletion during jpackage MSI uninstallation when Java app is running. Use Restart Manager, WiX custom actions, and post-uninstall cleanup for Microsoft Store compliance and clean removal of all files and folders.

1 answer 5 views
ProgrammingCustom ListBox in C# WinForms: Owner-Drawn Guide

Learn how to create a custom ListBox in C# WinForms using Visual Studio 2022 for music players. Enable owner-drawn mode, handle DrawItem event, add MP3 metadata, album art, and selections beyond basic BackColor changes.

1 answer 4 views
ProgrammingPython getattr: Dynamic Access to Class Attributes by String

Learn how to use Python getattr to dynamically access class instance attributes with a string variable. Ideal for text adventure games mapping names like 'forest' to objects. Covers dict mapping, getattr(self), setattr patterns, and safe alternatives to globals() or eval().

1 answer 4 views
ProgrammingPySide6 OpenCV: Full Camera Feed in QGraphicsView No Crop

Fix cropped OpenCV camera feed in PySide6 QGraphicsView. Set scene rect to pixmap bounds, call fitInView on resize, disable scrollbars, and use anchors for uncropped display with Qt.KeepAspectRatio.

1 answer 4 views
ProgrammingFix Electron-Prebuilt-Compile Error in TypeScript on Windows

Resolve electron-prebuilt-compile 404 installation error in Electron + TypeScript projects on Windows. Uninstall deprecated package, fix npmmirror issues, migrate to Electron Forge for modern TypeScript builds without runtime compilation problems.

1 answer 4 views
ProgrammingEnable Python Linting in VS Code: Interpreter & Setup

Step-by-step guide to enable and configure linting in VS Code Python extension. Select the right interpreter, install pylint or flake8 in venv, enable python.linting.enabled, and troubleshoot common issues for beginners following Mosh tutorials.

1 answer 4 views
ProgrammingCannot assign void to an implicitly-typed variable in C#

Fix 'Cannot assign void to an implicitly-typed variable' in C#: why Split(...).Reverse() may bind to Array.Reverse, missing System.Linq, and practical fixes.

1 answer 4 views
ProgrammingFix PySpark Pytest Py4JJavaError on Windows 11 SparkSession

Resolve Py4JJavaError in PySpark pytest fixtures on Windows 11 by adding spark.driver.bindAddress=127.0.0.1 to SparkSession. Includes working conftest.py, winutils setup, env vars checklist for local tests.

1 answer 4 views
ProgrammingEntity Framework Core: Fix 'Second Operation Started' Error

Learn why Entity Framework Core throws 'A second operation was started...' and how to fix it: scope DbContext, await queries, or use IDbContextFactory.

1 answer 4 views
ProgrammingUsing GTK4/libadwaita with Mojo: GUI Options

Can you use GTK (GTK4/libadwaita) for Mojo GUI development? No native support—use C FFI, embed Python PyGObject, or IPC. Guides, examples, pitfalls, and alternatives like mojo-qt.

1 answer 3 views
ProgrammingWhy Ollama Embeddings Slow on Linux VM ChromaDB Posthog

Fix slow Ollama embeddings in ChromaDB on Linux VM without CUDA: batch requests, disable Posthog telemetry, ignore benign warnings. Run fully local for privacy and speed up email embedding performance.

1 answer 3 views
ProgrammingTwo-Step Offline Unattended Rust Installer for Windows

Two-step offline Rust installer on Windows: one online bundle with rustup, toolchains and crates; one silent offline install to set up rustup, cargo and PATH.

1 answer 3 views
ProgrammingWhy member behaves differently in FiveAM tests (SBCL)

SBCL may intern string literals when compiling, so (member "foo" '("foo") :test #'eql) can match by identity. Use equal or string= for consistent results.

1 answer 3 views
ProgrammingUnity FPS Controller: Kinematic Rigidbody Grounding

Guide to implement a kinematic Rigidbody Unity FPS controller that stays grounded with robust ground checks, averaged normals, and snap-to-ground tuning.

1 answer 3 views
ProgrammingFix VS Code tasks.json PowerShell -Command Error

Resolve 'Cannot find parameter named Command' error in VS Code when running PowerShell scripts via tasks.json. Learn why cmd.exe inserts -Command before Set-Location and fix with 'powershell' task type or -File parameter for smooth execution.

1 answer 3 views