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.

.NET 10 benchmark oddities (comparing to .NET 9)

28 November 2025 @ 7:46 am

I run the following benchmark just to evaluate new .net10. [SimpleJob(RuntimeMoniker.Net90)] [SimpleJob(RuntimeMoniker.Net10_0)] [MemoryDiagnoser] [HardwareCounters(BenchmarkDotNet.Diagnosers.HardwareCounter.CacheMisses)] public class BenchmarkArray { private const int Size = 10000; [Benchmark(Baseline = true)] public void ByRow() { var a = new int[Size, Size]; for (int i = 0; i < Size; i++) { for (int j = 0; j < Size; j++) { a[i, j] = 1; } } } [Benchmark] public void ByColumn() { var a = new int[Size, Size]; for (int i = 0; i < Size; i++) { for (int j = 0; j < Size; j++) { a[j, i] = 1; } } } } and got the following results I cannot explain

Have some issue in tattoo numbing cream website

28 November 2025 @ 7:43 am

I am optimizing a tattoo numbing cream website and facing an issue with indexing and impression growth. My setup: • Ecommerce store • Several product pages and blogs • Healthy internal linking • Clean on-page SEO Still, Google Search Console impressions are not increasing beyond a certain point. What additional technical steps can I try to improve crawl rate, index frequency, and impressions? Note: My website is https://upsellmart.com (for context only).

Force sumif() with wildcard and fixed pattern

28 November 2025 @ 7:40 am

I have a Google spreadsheet with the following values: +------------+-----------------------------+ | G | F | +------------+-----------------------------+ | Hours (G) | Comment | +------------+-----------------------------+ | 4 | PP-1 caching optimalisation | | 2 | Working on PP-1 | | 1 | Short sync with people | | 3 | PP-10: as discussed | | 5 | PP-2 stuff | +------------+-----------------------------+ I want to create a summary table where I sum up all hours linked to a specific ticket (starting with the prefix PP-*). So I used following formula +------------+-----------------------------+ | F | F | +------------+-----------------------------+ | PP-1 | =SUMIF('G:G;"*"&F122&"*";F:F) +-

App Store Connect API(Nest Js): Subscription created but status shows "Missing Metadata"

28 November 2025 @ 7:39 am

I'm automating iOS subscription setup using the App Store Connect API(Nest Js). All steps (group, subscription, localization, screenshot upload, pricing) complete successfully. However, in App Store Connect UI the subscription status remains: "Missing Metadata". What I have completed via API: Generate JWT to call App Store Connect API. Create subscription group → /v1/subscriptionGroups Add subscription group localization → /v1/subscriptionGroupLocalizations Create subscription (product) → /v1/subscriptions Add subscription localization → /v1/subscriptionLocalizations Create review screenshot request → /v1/subscriptionAppStoreReviewScreenshots Upload screenshot using the uploadUrl returned from above API (PUT request) Commit uploaded screenshot → /v1/subscriptionAppStoreReviewScreensho

getting spacings and alignments in jsonforms correctly

28 November 2025 @ 7:32 am

Currently, I'm trying to use jsonforms to create different forms for my website, and I'm using custom buttons and input fields (using custom renderers) to render the form, currently I'm interested in making the UI right, this is how my schemas are defined: import { Button } from '@/src/components/Button'; import { Input } from '@/src/components/Input'; export const schema = { type: 'object', properties: { name: { type: 'string', minLength: 3, description: 'Please enter your name', }, }, }; export const uiSchema = { type: 'VerticalLayout', elements: [ { type: 'HorizontalLayout', elements: [ { type: 'Control', label: 'Primary button', scope: `#/properties/${Button.displayName!}` }, { type: 'Control', label: 'Input text', options: { placeholder: 'Please input your text' }, scope: `#/properties/${Input.displayName}`, }, { ty

How to avoid stopping all processes that started by one systemd service when OOM happens?

28 November 2025 @ 7:24 am

In my evn, some child processes are started by one systemd service, if there is something wrong with one child process and OOM is triggered by it, all the processes (all the child processes and the systemd service itself) will be killed by OS. What can I do to ensure only the wrong child process will be killed? My configuration of .slice is like this: OOMPolicy=kill MemoryMax=8G I had tried to update the child process's OOM score, it doesn't work. One possible solution is to build a seprate cgroup for all child processes, then OOM kill will be limited to the child process, but it is ugly. Thanks.

Why does deferred probe succeed on one device but fails intermittently on identical hardware in the same board

28 November 2025 @ 7:07 am

I am working on a Qualcomm-based embedded Linux platform using a platform driver for a peripheral (UART/I2C/WiFi). The driver uses a device tree match table and implements a probe() and remove(). The device has dependencies on: Clocks (devm_clk_get) GPIOs (devm_gpiod_get) Regulators (devm_regulator_get) I noticed intermittent deferred probe behavior: On first boot, the driver probe succeeds immediately. On subsequent boots without rebooting the SoC, dmesg shows: msm-periph: probe deferred - waiting for clock I have verified that: The clock driver is loaded (lsmod) The device tree node compatible string matches IRQs and GPIOs are correctly mapped Why would the deferred

What tools does Angular team use to design svg?

28 November 2025 @ 6:09 am

I am reviewing [Angular](https://github.com/angular/angular) source code. what tools does Angular team use to design these svg? I take some for example: //adev/src/assets/images/overview.svg //adev/src/assets/images/roadmap.svg //adev/src/assets/images/templates.svg I have searched google, but can not find solutions. I can use Adobe Illustrators, if Angular team also use Adobe Illustrators, can you give me your svg's .ai files?

Name in e-mails differs from the user ID passed in the request to create a new project

28 November 2025 @ 5:40 am

After creating the project using the endpoint https://developer.api.autodesk.com/construction/admin/v1/accounts/:accountId/projects with the following request body: { "name": "Sample", "type": "Test", "template": { "projectId": "abcdeeeeeeeeeeeeeeee" } } I am successfully receiving the project created response when using 2-legged authentication with the header User-Id set to my ID. However, after the project is created, the email notifications sent to other users show that the project was invited by a different person — not me. The name appearing in the email belongs to the first member alphabetically in the account, not the user ID that I passed in the request. It looks like the system is ignoring the User-Id value and instead selecting an arbitrary account member (alphabetically first) as the inviter. Why is my nam

Moving struct to external package causes concurrency-unsafe warning

28 November 2025 @ 1:32 am

I'm working on a SwiftUI project and I am currently migrating some code to what will be a shared package throughout the monorepo. I'm super new to Swift, so the answer to this may be obvious, but after moving the following struct to the external package, I encounter a concurrency-unsafe warning. The struct: public enum AppSchemaV1: VersionedSchema { public static var models: [any PersistentModel.Type] { [NoteModel.self, BibEntryModel.self] // Leaving off other models as they should be able to be inferred and this will simplify migration scripts I hope. } nonisolated(unsafe) public static let versionIdentifier: Schema.Version = .init(1, 0, 0) } The error: /Users/bigsexy/Desktop/swift/Fluster/packages/swift/FlusterSwift/Sources/FlusterSwift/core/db/schemas/schema_v1.swift:17:23 Stat