Latest Questions

How to wait and READ char from stdin without waiting?

Hello There is a file where I draw picture using a loop. I want to exit loop when 'q' button is pressed. But I want the program is running during it is waiting

How do I fix pyqt web browser not loading pages

I am trying to make a web browser using pyqt, but every time I click a url it just does not do anything, that or it crashes. For example if I try to open wikipe

My reverse a string code includes a space at the end of the string

I am a beginner of Java, and would like to reverse the character order of a sentence when I input some words as command line arguments. Here is my code. When I

Randomly Populate table rows in Pug files

Until this morning, I did not know what Pug is. However, now, it's being used in a theme that I am using for work. Ran into this situation. The current pug file

Implement alphanumeric sparse arrays in interpreter

VS2022 C++ wxWidgets I'm writing an interpreter, and I want to implement sparse arrays with alphanumeric subscripts and data. I've been researching AVL, B-Tree

Trace32 command get struct members/elements name

I found that WinPrint or Var.WRITE can only write up to 4095 bytes to the file at a time. For larger size structures, the data out of limits will be lost. To av

How can I update values in MySQL database table to conform to a different pattern?

I intend to clean some data in a MySQL database table for some data that was not properly captured. The table in question contains numerous columns but the colu

How to disable vsync right way in QML

I've found only one way to disable vsync in QML that works, but animations were too fast QSurfaceFormat format; format.setSwapInterval(0); QSurfaceFormat::setDe

Error in fine-tuning a pre-trained FasterRCNN instance segmentation model (Detectron2) on my custom dataset

from detectron2.engine import DefaultTrainer from detectron2.config import get_cfg import os cfg = get_cfg() cfg.merge_from_file(model_zoo.get_config_file("COC

MUI Radio button disabled change value when Select drop down changes

My problem is that when I change a value in a dropdown I want to disable two radio buttons and change to the correct radio button. I am able to disable the radi

Gitlab pipeline failing on "Cleaning up project directory and file based variables"

I have a Gitlab pipeline that is failing when it attempts docker build (using Kaniko) I am yet to do a successful docker build BUT this particular error has sta

How to avoid repeating the same 'else' statement in multiple nested if/else?

In the code below, 'else' is same for all 'if' statements? Is there a way to have just one 'else' statement, rather than repeating the same code in all 'if' sta

Usage of Multiple JMS Connection Factory

I have written a JMS Listener class which will listen almost 100+ queues, once after processing, it sends back message to Response Queue again. Register this li

Podman Non-Root "Error setting up pivot dir"

First time posting on StackOverflow so please be gentle! I'm setting up a new RHEL8 server to run Podman. Previously, I've done this on a pretty vanilla server

Assertion `argc >= 2' failed. Abandon (core dumped)

I'm traying to calculat the multiplication of tow matrix using OPENCL with C: ` #include <CL/cl.h> # include <stdio.h> # include <math.h> # in

Storing and retrieving access token when using Client Credential Flow in .Net

I m using a client credential flow to access the API. I am getting the access token each time client make a call to Web API which seem to me may not be good but

Match variable value to array's index to get month

example of getDepart date format getDepart = 2022-04-29 desired result 29 APR, 2022 const getStringDepart = () => { const months = ["JAN", "FEB", "MA

How to read a C struct (or Numpy record array) into a Polars Dataframe?

I have a binary file containing records from a C struct. I would like to read that file into a Polars Dataframe. I can accomplish that as below, but I'm wonderi

Request a full access keys from the user on near protocol

I am writing an application on near, and I need the user to be able to deploy a smart contract from my application, but for this I need to request the user for

R: Labels not displaying at a ggplot2 graph

Given this R script: library(glue) library(ggplot2) ir.data <- read.csv(file="~/apps/mine/cajueiro_weather_station/sensor_data/temperature_data.csv", header

Getting an error while sending the "sendkeys" in appium server

In appium server , am trying to send the keys inside the text box , where am facing this trouble Call to 'sendKeys' failed [element.sendKeys("hello")] Error res

Reorganize files in Salesforce DX project

We have an existing salesforce 2GP package that follow the default directory layout with components in main/default. I would like to break that up into feature

How to call enterprise SAP Conversational AI(Chatbot) API with OAuth (Postman)

we are trying to call SAP Conversational AI(Chatbot) API with OAuth using postman but we are getting an error as Unauthorized Pre-requisites Client ID. Client S

When I try to open MAMP in windows it throws error "install .Net core"

After installing MAMP in windows, when I open it, it throws the below error. "To run this application, you must install .Net core. Would you like to download it

Java regex repetition not allowed inside lookbehind

I am looking for a way to split a string after every 3rd comma. I have found an old answer from 2013 Split a String at every 3rd comma in Java which I think is

How to test webflow website without publishing

My client built the website using webflow but there is a bug in there. I tried to find a way to test the code (console.log etc) but seems like the only way of d

return value cannot be used in this context at begin

Create function getallWeekDayorWeekends ( @givenDate as date, @choice as int ) RETURNS Table as BEGIN if(@choice = 1) return (SELECT cast(DATEADD(DA

Azure AD restrict users to login if not assigned to aplication without user assignement

We want to use Azure AD as the authentication mechanism for our project. To do that, in our organization Azure AD, i have registered an application for our proj

AWS Lambda Function Direct Post Payload Always Null

I'm trying to use Lambda Functions (C#) with the Function URL for direct access. In postman I'm sending a basic json body that matches the class properties in m

Someone could help me with this exercise for beginners in neo4j,why it returns me anything?

The schematic is: The question is:Who are the friends of the friends of Claudia My code: MATCH (a:Student)-[:friend]->()-[:friend]->(b:Student) MATCH (a