StackOverflow.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (13 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Radar Microdoppler extraction Range Query

15 January 2026 @ 5:19 am

i have a code to extract radar microdoppler spectrogram but even at 1m range, i'm getting a weak spectrogram back; at very close range i get a decent spectrogram. The radar i'm using is bgt60TR13C. I'm curious to know if this is a hardware/ algorithm or configuration issue. I have tried a lot of different configurations already. I'm attaching the code and the spectrogram of human motion at 1m. import numpy as np from scipy.signal import stft, medfilt2d from scipy.signal.windows import hamming import time from ifxAvian.Avian import Device, DeviceConfig import matplotlib.pyplot as plt def microdoppler_processing(data_cube, start_freq_Hz=58_000_000_000, end_freq_Hz=62_080_000_000, chirp_repetition_time_s=35e-5, nperseg=64, noverlap=32): c = 3e8 frames, rx, chirps, samples = data_cube.shape range_fft_mean = np.zero

Page is missing param in generateStaticParams() when using output: export

15 January 2026 @ 5:16 am

i'm using nextjs and next-intl with static export, it complains for single portfolio dynamic route : ## Error Type Runtime Error ## Error Message Page "/[locale]/(JLA)/portfolio/[id]/[name]/page" is missing param "/[locale]/portfolio/[id]/[name]" in "generateStaticParams()", which is required with "output: export" config. Next.js version: 16.1.1 (Turbopack)` i made sure all necessary data returns from the fetch function, i don't know what else can i do or debug to solve the issue : import { fetchGallery } from "@/app/lib/api"; import SinglePortfolioClient from "./SinglePortfolioClient"; export async function generateStaticParams() { try { const response = await fetchGallery({ page: 1, size: 1000 }); return response.data.map((item) => { const slug = `${item.id

How does the_excerpt() decide the length of text in a custom WordPress theme?

15 January 2026 @ 5:07 am

I am building a custom WordPress theme and using the_excerpt() inside index.php. I want to understand: How WordPress decides the excerpt length by default Whether it is affected by theme or core settings What is the correct way to change excerpt length inside a theme I am new to WordPress theme development and want to follow best practices.

inlined strcmp() on ppc64le (sometimes) returns a wrong value when the strings are same

15 January 2026 @ 4:56 am

gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) comparing 2 identical strings with strcmp() sometimes returns a negative value. The code is compiled with -O and strcmp() seems to be inlined. Unfortunately I am not able to provide a smaller code to show the problem as the code is part of a larger server code and the issue does not reproduce with a smaller code. Basically, the string is loaded into 2 different variables. One variable is a local character array and the other is a memory allocated variable. Then the strcmp() is called to compare. I have disassembled the code which I believe is the inlined strcmp(). And printed some of the registers that seem to be in play. I am hoping that someone might have an idea what is going on. 0x00000000103f04f8 <+1480>: lxvd2x vs32,r29,r9 0x00000000103f04fc <+1484>: lxvd2x vs33,r23,r9 0x00000000103f0500 <+1488>: vcmpequb v1,v0,v1 0x00000000103f0504 <+1492>: vcmpequ

No compatible code running on thread when debugging Blazor WASM Standalone

15 January 2026 @ 4:36 am

I created a brand new Blazor WASM Standlone project configured to use Microsoft Entra. Everything works fine but I can't even put a break point to inspect anything in my code. I get the following error when I place a break point: enter image description here I'm running the latest version of Visual Studio 2026 18.2.0 and also have the latest .NET SDK installed i.e. 10.0.102. I also made sure the .NET 10.0 WebAssembly Build Tools is installed in ASP.NET and web development workload. I did some research and see quite a few Blazor WASM debugging issues reported. Any idea what the issue may be here? P.S. I went through this article and made sure each potential cause mentioned in it is actually fine in my setup.

How to Upgrade PHP 7.4 to 8.2 in XAMPP without data loss? [duplicate]

15 January 2026 @ 4:11 am

I am using XAMPP on Windows with PHP 7.4.13, and I want to upgrade PHP to PHP 8.2. My main concern is upgrading PHP without losing any existing data, including: htdocs project files MySQL / MariaDB databases XAMPP configuration settings I do not want to reinstall XAMPP completely, as that may affect my existing projects and databases. Any step-by-step guidance or best practices would be greatly appreciated.

The `MatchCollection` type returned from `[regex]::Matches()` which implements `ICollection` and `IEnumerable` does not support the `[-1]` array index

15 January 2026 @ 3:50 am

I'm sure this is on here somewhere, but it did not appear in the top 100 search results. It's hard to search for. But basically The [regex]::Matches() function returns a MatchCollection type object which, let's say, is very "array-like". However it does not support the convenient [-1] array index, indeed, nor any negative array indices. That is surprising to me. This is true even tho the MatchCollection type implements the ICollection and IEnumerable interfaces. (I confess I don't know where [-1] comes from. Apparently not these.) Here's some code that demonstrates: 'MatchCollection type object returned from [regex]::Matches() does not support [-1] array index.' 'for comparison, a regular array:' (1,2,3)[-1] # returns 3 '' 'the [regex]::Matches() function:' $match_info_obj = [regex]::Matches('ab

How to protect Raspberry Pi SD card using OverlayFS

15 January 2026 @ 3:38 am

The problem: setting up a reliable, self-hosted Azure DevOps agent on a Raspberry Pi often involves repetitive tasks: updating the OS, installing container runtimes (Docker/Podman), configuring firewalls, and managing SD card wear-and-tear. Manual configuration is prone to errors, especially when trying to implement advanced features like read-only boot or NVMe cloning for better performance. The solution: I have developed an open-source framework, raspi-devops-bootstrap, which provides a modular, shell-based automation suite to transform a clean Raspberry Pi (or Linux environment) into a production-ready DevOps node. https://github.com/sksSourav/raspi-devops-bootstrap.git Now I need help with Linux overlay fs where I can do experiment and get rid of issues by simply reboot the raspberrypi. How can I create restore points in my

expo-camera and @react-native-firebase plugins compatible build error

14 January 2026 @ 6:17 pm

I have a project that requires the use of both react-native-firebase and expo-camera plugins. The issue is anytime I try to run or prebuild the project, it immediately errors out (see image below) powershell - npm run dev-android -> fails Error: PluginError: Package "@react-native-firebase/app" does not contain a valid config plugin. Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin Unexpected token 'typeof' SyntaxError: Unexpected token 'typeof' at compileSourceTextModule (node:internal/modules/esm/utils:318:16) at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:380:18) at loadESMFromCJS (node:internal/modules/cjs/loader:1578:24) at Module._compile (node:internal/modules/cjs/loader:1743:5) at Object..js (node:internal/modu

How to configure WolverineFx in a background worker project

14 January 2026 @ 5:25 pm

I have .NET 10 Background worker service that I'm looking into using Wolverine with now that MediatR has changed to a commercial license. Here's my Program.cs: var builder = Host.CreateApplicationBuilder(args) var services = builder.Services; services.AddHostedService<Worker>(); builder.UseWolverine(opts => {opts.CodeGeneration.TypeLoadMode = TypeLoadMode.Dynamic' }); var host = builder.Build(); host.Run(); Unfortunately when I try to use the wolverine message bus I get the following error Wolverine.WolverineHasNotStartedException: Wolverine cannot function until the underlying IHost has been started. This can happen if IHost.Build() is called but not IHost.Start()/StartAsync()?