Newest Questions
24,234,395 questions
0
votes
0
answers
5
views
Determining the parameter of the generate block in Verilog non-dynamically
I'm trying to implement Karatsuba's multiplication algorithm that will produce the output in a single cycle. The related part of the code and what I'm trying to do are below:
else begin
//Round ...
0
votes
0
answers
8
views
Why does my two-pointer algorithm give incorrect results on large input?
Here is the problem link
Here is my code using GO:
func max(a, b int64) (int64) {
if a > b {
return a
}
return b
}
func maxSum(nums1 []int, nums2 []int) int {
var cnt1 ...
0
votes
0
answers
3
views
Half second delay playing sound with SDL_mixer
I am using SDL_mixer to play simple sounds for a game. Problem: any time I request a sound to be played using SDL_QueueAudio there is roughly a half second of delay! This makes it completely ...
-1
votes
0
answers
16
views
send data from button to modal form
This script has been running normally so far, as time goes by I want to add more needs.
With the existing script, what other code needs to be added to display the data sent from the button.
data sent ...
0
votes
0
answers
4
views
WOPI editor goes into view-only mode
We have integrated WOPI word editor into our application, but from last Thursday it does not open document in edit mode , it opens then in view-only mode,
i have checked out FE and BE for any error ...
0
votes
0
answers
3
views
Spring Boot auto-configuration module disables app's own @Repository detection
I have a multi-module Maven project using Spring Boot 3.4.4 with the following structure:
my-project/
├── pom.xml
├── lib-model/
│ ├── pom.xml
│ ├── src/main/java/com/example/libmodel/
│ │ ├── ...
0
votes
0
answers
9
views
Use managed identity on a single endpoint in AzureAppService
I have an ASP.Net app that is handling users with a user name and password authentication. It's working fine and I want minimal disruption.
I have a new requirement to make a calculation it does ...
0
votes
0
answers
8
views
PySide6.QtWidgets.QWidget crashes on super().__init__()
The following code crashes and I don't understand why.
from PySide6 import QtWidgets
class MockParent(QtWidgets.QWidget):
def __init__(self, /):
try:
super().__init__()
...
0
votes
0
answers
9
views
Spark Executor OOM Error with Adaptive Query Execution enabled
We have Databricks Spark Job. After migration from Databricks Runtime 10.4 to 15.4 one of our Spark jobs which uses broadcast hint started to fail with error:
ERROR Executor: Exception in task 2.0 in ...
0
votes
0
answers
14
views
Where to store Api token and best way to use remote config for react app
currently I am programming my first React app with Expo for mobile. I use up to 4 Apis for LLMs inside the app. The App offers 4 chat options where i want to use 4 different apis for.
Because I want ...
0
votes
0
answers
12
views
I can't display any message on 16x2 LCD
I am currently working on a project where I need to display messages on 16x2 HD44780 LCD display using VHDL. I am using BASYS3 FPGA and VIVADO design suite. I first tried to use the I2C module ...
0
votes
0
answers
18
views
GCC can't find sstream header? [closed]
I tried coding graphics with opengl, and I wanted to read a shader file and put it in a String.
the command is here:
g++ -o main.o -c -Iglew/include -Iglfw/include main.cpp
and I got this error:
main....
0
votes
0
answers
5
views
Why do the stax and the dom api write xml attributes with newlines differently?
I'm writing an xml file using the stax and the dom api.
The stax api writes the newline unchanged.
The dom api escapes the newline in the attribute to .
Why is there a difference? How do I ...
-3
votes
0
answers
10
views
What is the synthax for VBoxManage in the Host-CMD? [closed]
I run Windows Server 2022 as a Guest OS on VirtaulBox. I want to ask e.g. whoami in Host-CLI. I runned the VBoxmanage.exe. What is the synthax now?
0
votes
0
answers
30
views
Ensuring an array of ints is actually null terminated
I have this pattern all over some project:
#define ENSURE_NULLTERMINATOR(a) assert(a[std::size(a) - 1] == 0)
...
static const int foo[] = {VALUE1, VALUE2, VALUE3, 0};
ENSURE_NULLTERMINATOR(foo);
Bar(...