Newest Questions
24,188,389 questions
Best practices
0
votes
0
replies
4
views
Looking for workaround for library with missing interface
I have a Java library (FIHR) where there are conventions in a bean class hierarchy that were NOT formalized as an interface.
For example many subclasses have a getStatus() property but there is no ...
0
votes
0
answers
4
views
How can I run Flux2 inference on 2 GPUs?
I try to run Flux2 inference on 2 GPUs as follows:
import torch
from diffusers import Flux2Pipeline
from accelerate import PartialState
import argparse
from pathlib import Path
def main():
parser ...
0
votes
0
answers
5
views
How does Gboard on Android, when typing into a textfield on Chrome mobile does "select all"?
I have a
<input type="text"...
...on a page, and need to copy all the changes so that I can display them in a wasm app. I'm stuck with this "select all" operation on Gboard. ...
0
votes
0
answers
7
views
vllm failed to run because RM has detected an NVML/RM version mismatch
trying to run vllm on the current machine with Tesla T4, cuda 12.4, ubuntu 22.0.4
the host info and cuda info is as followed
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-...
0
votes
0
answers
15
views
JavaScript crossword input freezes and focus does not move to the next cell
Problem
When I type a letter into a cell, the focus does not move to the next cell in the word.
After typing a letter, the entire input system becomes unresponsive — I can’t type more letters, ...
0
votes
0
answers
9
views
What is responsible for the extranuous text in the terminal window?
I have this trivial test script:
print('test sentence')
When I press F5 to run and debug the script I expect to see the output "test sentence" but there is a lot of extra text mixed with ...
-1
votes
1
answer
31
views
Trying to create a method to verify time
I'm new to python and i've been taking some courses to try and get the hang of it, as a proyect to challenge myself i tried to recreate a library method to check for borrowed books and etc. However i ...
1
vote
1
answer
22
views
C# 12 - How do I make sense of this behavior? Passing an array of non-nullable reference type to a parameter expecting nullable reference type array
I am on a quest to understand the nullable reference type system in C# (well, I guess the non-nullable reference types are the unique part). The mechanics of this particular situation are totally lost ...
0
votes
0
answers
11
views
Android Material3 Outlined Button Looks Different from Guideline
XML:
<Button
android:id="@+id/send_button"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="wrap_content"
android:...
Advice
0
votes
0
replies
7
views
Bringing over legacy vb.net code into Blazor through class library?
I have a question regarding the best method of bringing over a legacy WCF service written in vb.net into a new Blazor server-side application.
When planning out how to do this, the obvious solution ...
Advice
0
votes
1
replies
12
views
clang-tidy, after a custom replacement I wrote, how to re-parse the text
I'm currently writing a clang-tidy check for a particular monadic replacement for c++. Think of it something like, for particular types and notations, f(x) becomes x(f) - this, of course, requires an ...
0
votes
0
answers
18
views
Firestore rule to allow users to pull only chats they are members of?
I have chat documents like the following:
{
members: ['abc','def'] // 2 element list of member UIDs
// some other chat metadata
}
In firestore, I have the following rules on my collection:
...
0
votes
0
answers
12
views
ForkJoinPool and RecursiveTask lead to deadlock when join is called in a different thread than fork
The program below never ends:
void main() {
try (Fibonacci fibonacci = new Fibonacci()) {
IO.println(fibonacci.calculate(9));
}
}
public static class Fibonacci implements ...
0
votes
0
answers
11
views
How to make AS3 recognize a movieclip loaded with content from external SWF?
I know how to load the movieclip with the external swf but after doing so animate throws an error saying the movieclip does not exist??
var loader:Loader = new Loader();
var contentSWF:URLRequest = ...
-2
votes
0
answers
14
views
Time spent in channel not showing
After the latest update (September 25, 2025), most users can now see the “Time spent in voice channels” statistic in Discord.
However, it still doesn’t appear for me - the section is completely ...
-1
votes
0
answers
15
views
AWS ECS + NLB deployment: LiveKit AI voice agent works locally but voice/websockets fail in production
I’ve built an AI voice agent that connects with a student in real-time. Here’s the setup:
The student asks questions via the frontend.
The agent follows predefined instructions and responds using ...
-1
votes
0
answers
28
views
How to upgrade cluster from Postgres 17 Windows to Postgres 18 Debian [migrated]
Postgres 17 cluster is in Windows server in Estonian locale. Databases are defined like
CREATE DATABASE mydb
WITH
OWNER = mydb_owner
ENCODING = 'UTF8'
LC_COLLATE = 'et-EE'
LC_CTYPE ...
1
vote
0
answers
19
views
Switching default channels using Core Audio
I wrote a Swift macOS app to control a PCI audio device. The code switches input and output channels by default. As soon as I launch the Audio-Midi Setup utility and switch channels, my code stops ...
-2
votes
0
answers
44
views
How to embed data equality information in Haskell's types?
I need help with some haskell syntax. I have a really long type signature and I need a quick way of making sure that the parts of it which are equal are represented in the signature itself.
Signature:
...
0
votes
1
answer
31
views
Cannot send data to Node Express after converting from CJS to ESM
After having carefully converted my JS code for NodeJS from CJS to ESM (with some unexpected difficulties), I am failing to send a body content to my Node Express web server, running for test purposes ...
0
votes
0
answers
14
views
Using a prop in an import statement in Vue, using Laravel and Inertia?
I'm trying to dynamically load only specific icons from the lucide-vue-next package in my vue page, however it's not wanting to work. I'm using Laravel 12 (Latest), Vue3 (Latest shipped with Laravel), ...
-2
votes
0
answers
22
views
Why is my neural network overfitting even after using dropout and L2 regularization?
I’m working on a binary classification problem using a neural network in TensorFlow/Keras.
The dataset has around 9,500 training samples and 2,500 testing samples.
My model architecture:
model = ...
0
votes
0
answers
23
views
Why does my Go HTTP server freeze when I call another API inside a goroutine?
Why does my Go HTTP server freeze when I call another API inside a goroutine?
func handler(w http.ResponseWriter, r *http.Request) {
go func() {
resp, err := http.Get("https://example....
0
votes
0
answers
13
views
Xlib background pixmap is reversed
I have a bitmap that I'm using for the background of a window in Xlib, but the pattern appears to be reversed (mirrored). The "shadow" should be in the upper-left of each square, but is ...
0
votes
1
answer
23
views
Why does Next.js app render CSS on port 3000, but not port 80?
I am trying to deploy a Next.js app on my local machine as a "dress
rehearsal" for deploying on a server.
My Next.js app renders properly (i.e. the human eye will see shapes and
colors in ...
0
votes
0
answers
16
views
Passing kernel lsm parameter through U-boot
I'm trying to set lsm=landlock,lockdown,yama,integrity,apparmor,bpf on a Archlinux ARM. Options seems to be set in /boot/boot.txt. In its original form, it looks like this
# After modifying, run ./...
0
votes
0
answers
31
views
Possible to Use Source Files Outside the Workspace Root?
I'm trying to use C source files that are located outside my Ceedling project root. My repository has shared code in a common/ folder at the repo root, but my Ceedling project is in boards/CANGateway/....
Advice
0
votes
1
replies
23
views
How to modify a function type with declare module without creating an overload in Typescript?
I have a library "foo" that implements a function "bar" like this
declare const bar = (baz: string) => void
I want to override that type to be something different, like
declare ...
-3
votes
2
answers
56
views
Input in if statements are hard [closed]
I have a question ovi, my question is about input() how do I make a input on a if statement block and make it about it for example a heads and tails game.
2
votes
2
answers
46
views
Trouble accessing a single element of an array in Powershell
I am attempting to use a single element of an array, when creating a string message, but it is using both elements, concatenated by a space, whether I use $myArray[0] or $myArray[1]...
# Multiple ...
-1
votes
0
answers
22
views
TypeError: Cannot read properties of null (reading 'getConfig')
how can i resolve this problem and this my jest.config.js
module.exports = {
preset: 'react-native',
"setupFilesAfterEnv": [
"@testing-library/jest-native/extend-expect"
]...
-4
votes
0
answers
28
views
JS Image editor with layers [closed]
I want to create an image editor in HTML where you can upload an image, drag stickers from a selection of images and drop them onto the uploaded image, being able to rotate, resize and remove the ...
Advice
2
votes
4
replies
88
views
Why do people use macros to declare namespaces in c++?
Off the top of my head, I only remember LLVM's standard library do this, but I remember seeing other libraries also do this. I'm not entirely sure what is the advantage here. I feel like namespace std ...
0
votes
0
answers
18
views
Send Observable result to child component as Signal
In my code I am trying to get the result from this observable
// Runs fine
obtenerOfertaPorId(id: number): Observable<Oferta> {
return this.http.get<Oferta>(`${this.apiUrl}${this....
0
votes
0
answers
18
views
How to remove the border or padding from CustomDropdown in Flutter using Dart?
enter image description here
I'm using the animated_custom_dropdown library version 3.1.1.
I've run into this problem:
By default, CustomDropdown comes with a transparent padding or border on the left ...
0
votes
1
answer
25
views
Docker TYPO3 project 404 page not found
I'm running a project with docker and traefik.
I try to access http://myproject.localhost/typo3
Suddenly i get this error: "404 page not found"
I don't know how to fix or to debug this error....
Advice
1
vote
2
replies
38
views
How to model a deep inheritance in F# and allow all items to be added to an inventory
Referring to the attached diagram for an example hierarchy of materials, how can I represent this in F#? Once represented I need to be able to add ANY/ALL of the materials in level 4 (L4) of the ...
0
votes
0
answers
16
views
problem in updating products while preloading them and cant
this is gonna be a long one so if you help me i would really appreciate it.
i have a page where both create and update product is.
my create page works find but i want this page to do update too so ...
0
votes
1
answer
16
views
Is there a way to automate user input with JLine's LineReader?
When handling user input through Scanner(System.in), you can use System.setIn() to automate user input.
Like this:
package edu.ntnu.idi.idat;
import java.io.ByteArrayInputStream;
import java.io....
Best practices
0
votes
2
replies
40
views
C memory initialization for a char** after a malloc
I've been researching this for a day and I've found a lot of conflicting information on multiple websites. I'm writing a simple test that will allocate and initialize a char** (array of strings, char*...
-1
votes
0
answers
24
views
Kubernetes: Long-lived TCP connections dropping through kube-proxy / Service LoadBalancer. Direct node connection better? [closed]
I’m building a service that needs to maintain a very large number of long-lived TCP connections (persistent sockets). Low latency and stability are essential.
We’re running on a managed Kubernetes ...
0
votes
0
answers
19
views
WooCommerce Hook is not firing and seem to be deprecated
I know it's 2025, and this problem seems to be all over the place, and I've been trying all the recommended solutions, but it seems it's mostly old code. But I don't really know; I'll try to sum it up ...
0
votes
0
answers
29
views
Creating a MsQuic/Nghttp3 WebTransport Server
The idea is for my Windows app to exchange QUIC data with a browser.
Upon creating a server with msquic and nghttp3, I'm not sure why chrome says
Failed to establish a connection to https://host.com:...
0
votes
1
answer
26
views
Having issues launching Visual Studio 2019 and creating standalone .EXE in Visual Studio 2022 like in Visual Studio 2019
My habits have been ruined lately since a windows update (it seems) corrupted a file in .Net Framework, named clr.dll, preventing Visual Studio 2019 from launching (and not only that software). It ...
0
votes
0
answers
9
views
dearpygui and Dialog Popup
I want to show a popup dialog (for example, to warn the user about a duplicate file) in response to any callback—in this case, after selecting a file (or canceling) in a file dialog opened from a ...
0
votes
0
answers
15
views
Nea 2d game on unity need help to present interactable sprites and make words appear when typing
In my previous post, I didn't add many details and wasn't able to get effective help, so here I go again.
I am currently creating a 2d game inspired by both papers please and not my neighbour at the ...
Advice
1
vote
1
replies
24
views
RAG with Pinecone + GPT-5 for generating new math problems: incoherent outputs, mixed chunks, and lack of originality
I’m building a tool that generates new mathematics exam problems using an internal database of past problems.
My current setup uses a RAG pipeline, Pinecone as the vector database, and GPT-5 as the ...
Advice
0
votes
0
replies
19
views
OCR in complex image
I need to extract player statistic in a image : enter image description here
I have try pytesseract with preprocessing image : convert to grey scale, resize img with a factor 2 and filter on edge :
...
Advice
0
votes
1
replies
19
views
How can I create platform specific version for a VSCode extension
I'm making a VSCode extension that requires a compiled program (let's call it program A) to be shipped with the extension, but the build file is getting too large.
That is: on each OS platform, I have ...
0
votes
1
answer
64
views
Monitoring changes to variables programmatically
This is a follow up to my previous question about creating a debugger for C source files in Python. The current issue I am facing is monitoring changes to variables. I want to monitor 8 variables say ...