Latest Questions

terraform combine 2 objects with 2 attributes for aws instance_ids

Following hashicorp doc to leverage for_each to provision multiple instance using local var map. I am unable to get the instance_ids into a single lists for out

Pydantic validation error for BaseSettings model with local ENV file

I'm developing a simple FastAPI app and I'm using Pydantic for storing app settings. Some settings are populated from the environment variables set by Ansible d

"Expected BEGIN_OBJECT but was STRING at line 1 column 1"

I have this method: public static Object parseStringToObject(String json) { String Object = json; Gson gson = new Gson(); Object objects = gson.fro

Serve multiple local dev servers (vue or react) with nginx

I have a folder called my-repo which contains two apps: my-repo/packages/foo my-repo/packages/bar Let's say I run them locally (vue dev server): localhost:3000

Nexcloud + Reverse proxy ERR_TOO_MANY_REDIRECTS when trying to access my subdomain

In order to host multiple websites I'am trying to reproduce the following schema diagram The redirection works correctly with the following sites and without ha

R Studio keeps crashing when I'm trying to merge multiple csv files into a data frame. How do I fix this?

I have 12 csv files that I need to merge for analysis project and their size ranges from 20mb to 120mb per file. I attempted cutting down to only using the nece

trouble with linked list bubble sort

I am a beginner learning to make bubble sort work with linked lists. I saw a geeksforgeeks page talking about this (https://www.geeksforgeeks.org/bubble-sort-fo

Spring Boot - nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type '' available

I'm trying to add the following statement to a Spring Boot service: @Autowired private ApELDatabasePublisherService eventPublisher; The dependency for eventPu

How to make the if condition contain more than one condition? i.e.: if (number % 3 == 0) & (number % 5 == 0): [duplicate]

Starting_Num = int(input('Please enter intial number: ')) Ending_Num = int(input('Please enter ending number: ')) for number in range(Starti

Why am I getting gibberish result in Windows terminal?

I am trying to compare version in windows terminal. It works great in Git Bash but in Windows terminal it shows gibberish and wrong result? verlte() { [ "$

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