Newest Questions
24,182,956 questions
2
votes
3
answers
99
views
C++ std::span overload resolution
I want to pass a C-style array to a function taking a std::span, but overload resolution chooses to convert the array to bool instead. Is this behavior required by the standard, or is it a compiler ...
0
votes
1
answer
40
views
STM32H747 SPI+DMA transfer stopping after 8 of 50 bytes
Below is code for an STM32H747 to implement a SPI5 driver that uses DMA. The flow is that initialize is called, then startconveyor, starts SPI and prepares for a series of "bursts" (...
0
votes
0
answers
47
views
How to import a C define into racket via ffi?
raylib.h has the following definition:
#define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 }
How can I import this definition so that I can use RAYWHITE?
-6
votes
0
answers
57
views
Kubernetes pod using 10GB more memory than memory usage of programs inside the pod [closed]
I have a kubernetes pod running a C++ program that writes to a 11GB file on NFS.
For some reason, occasionally the memory usage of the pod goes up to 10.6GB. I entered the pod and checked the program ...
Advice
0
votes
0
replies
32
views
How to interpolate attribute names into translations with i18next?
Laravel has localization for authorization, validation and other types of messages. validation.php returns an array which contains error messages for validation rules. It can also have custom ...
1
vote
1
answer
78
views
Do compatible types have the same representation?
Furthermore, is the sizeof guaranteed to be the same on compatible types?
I expect the answer to both of these questions is likely "yes" in practice, but I don't see anything in the standard ...
0
votes
0
answers
31
views
Alternate App Icons in Xcode 26 with Icon Composer
Has anyone been successful at getting alternate app icons to work in Xcode 26.2 with Icon Composer icons? I've tried every suggestion I've found online (there's not many), various Info.plist configs ...
0
votes
1
answer
47
views
Why doesn't ignore option for ls work in this instance? [duplicate]
I have a program like this (the indented lines can be run multiple times):
#!/bin/bash
options=""
options+=" --ignore={"
read pattern
options+='"'
options+="$...
0
votes
0
answers
69
views
How to simplify expressions into the form 1/3x from x/3 in Math.js?
I have an expression of kx^n where k can equal a fraction.
For example, if k = 1/3 and n = 1. Math.js will simplify it to x/3 rather than 1/3x.
How can the functionality of it outputting 1/3x be ...
Advice
0
votes
2
replies
52
views
How to healthcheck a docker container portainer-agent
How to setup a healthcheck for portainer edge agent in docker compose? Mine does not work.
---
services:
portainer_agent:
image: portainer/agent:alpine
container_name: portainer_agent
...
-8
votes
0
answers
62
views
Using libcurl multi interface in a C++ program, but it only works if there is only one transfer at a time [closed]
I'm writing an application in C++ using libcurl, designed to handle multiple http requests simultaneously, so I'm using the libcurl multi interface. I'm using libcurl 8.17.0 on a Rocky 8 Linux machine ...
-5
votes
1
answer
72
views
How do you use "this" keyword ProcessingJS
My goal is to make a skill tree that shows 1 section at a time and if you click one it goes to the next branch.
I do not know how to use it, though.
Here is my code:
//var[
var branchLocation = ...
-1
votes
0
answers
45
views
'init(frame:)' was deprecated in iOS 26.0: Use init(windowScene:) instead
I am using this file from swift-snapshot-testing library. After updating my project to iOS 26, I need to fix all the warnings. But I am not sure how to fix this one:
'init(frame:)' was deprecated in ...
2
votes
2
answers
60
views
How to do a http request for user details everytime the userID signal value changes?
I'm just getting used to performing http requests with signals in Angular 20.
I'd like a http get request to be executed everytime the profileUserID signal value (which I have defined in a user ...
-7
votes
0
answers
65
views
How to group dictionary of same hours by consecutive day that changes [closed]
I have a dictionary of type Dictionary<string, string>, each item of which has the day of week as the key, with the hours of operation as the value. The items might look like this:
[0] {[Sun,...