Latest Questions

Passing All type of enum to a UIPicker ViewController

i wanted to built an picker ViewController, this vc requires an enum data that's inherit the CaseIterable protocol. Tried looking for it here Swift - Passing di

C# Compiling my code only works for my PC and no one elses

My code is built in NET Framework 4.7.2, it uses two .dlls siticone.dll + windowsinput.dll. How do I let my code be used by others and include these .dlls. I am

REST API multiple endpoints design

I am currently in the process of building a .NET Web API which is gonna be consumed in another project for a dashboard. Currently, first endpoint return total n

Show a hidden text box based on two radio buttons

These are the two radio buttons and hidden text box and the script I tried with jQuery but I am stuck here. $(function () { $("input[name=size]"

How to read Panasonic .raw files?

I have several .raw file but I am not able to open them on my computer (Mac OS) or in a Jupyter Notebook with Python. I tried to download the module rawpy with

Problems converting a list comprehension

This list comprehension works, but I’d rather have it written like conventional loops: Here is the list comprehension: with open(sys.argv[1], 'r') as f:

How can I go about averaging different sized images?

I have a collection of images from tissue sections which contain a specific area of interest. Given this is biology, each image is slightly different (position

Missing class import via use statement

I'm trying to fix the pipeline and I get the following 2 warning $secretKeyString = new \java("java.lang.String", $secretKey); $pbbEncryptAES = new \java("my.c

Differentiate between "1" and "11"

I have 20 cases. For every row in my sheet, I have a cell that assigns related case numbers to it. A row could have multiple case numbers assigned to it in that

Classifier trained with different number of folds in GridSearchCV gives the same decision_fuction?

As stated in the title, I’m confused by the k-folding approach in GridSearchCV which allows you to specify its cv attribute as the number of folds. Howeve

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