Latest Questions

Why do “specific” component renders a more “generic” one?

This is straight from reactjs site. function Dialog(props) { return ( <FancyBorder color="blue"> <h1 className="Dialog-title"> {

How to plot nodes of different shapes and facecolor of bbox in the same graph using networkx and matplotlib in Python?

I want to plot a simple graph using networkx. There are two nodes with labels Python and Programming in each. The code and graph are as follows: import networkx

Localhost refused to connect in Visual Studio code

Im working on a node.js file and when I run the API I get a ERR_CONNECTION_REFUSED error on chrome.The Error Page

How do I determine the correct path for FXML files, CSS files, Images, and other resources needed by my JavaFX Application?

My JavaFX application needs to be able to find the FXML files to load them with the FXMLLoader, as well as stylesheets (CSS files) and images. When I try to loa

How to draw a HSV Triangle in ue4 Materials

This material will be applied to the image object in the widget. It is also important that there is an opportunity to change the color! Hue Ring & Triangle

How do I compare strings in Java?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals()

PDDL is not compiling. Log files gave me a bunch of errors

I am very new to PDDL and I got an assignment due soon. For some reason, it is not compiling and keeps giving me errors but the log file is so messy and I can n

how to fill missing in one column based on another in r

I have a subset of data frame as below. I want to fill the NAs in column "age at disease" so that the age of one individual with disease be same as the sibling

How to connect to Docker container with localhost instead of 127.0.0.1

I am running a mcr.microsoft.com/mssql/server docker container for local development that works perfectly on one machine. But on my laptop the container is some

Add string and integer from one line string generate by speech recognizer to 2 separate list

I have some string from speech recognizer and the value is random but in the same form (x,y...n) MyOrder = 'orange 2 grape 3 apple 4 mango 5 banana 1' How to a

CDK drag-drop is not working in Tablet device

I'm trying to use the Angular Material CDK Drag-Drop module from https://material.angular.io/cdk/drag-drop/overview It is working in desktop device but it is no

Joining three (3) in MySQL tables and matching login account from other table

Can someone help me with this code? I'm trying to match the login account to the activities that conducted and its participants. Thank you in advance for the he

Conditionally render a React component depending on a descendant's render

We use Reakit dialogs to prompt users to take an action in our React web app. On some pages, we have specific text related to the action and would like to rende

Firebase Authentication : change requirements and message on password reset through email [duplicate]

Currently, when resetting a password, the firebase requirements provide a very vague and poorly worded message "Strong passwords have at least

How to search JSON array in MySQL using sqlalchemy?

I have one JSON column in my table. I want to filter by this column using sqlalchemy with Python and MySQL. I've tried in this way, but unsuccessfully. My colum

Trying to loop through firebase and display each object as a card React

My data is structured like so [1]: https://i.stack.imgur.com/dWsr3.png I am trying to loop through the database and put the data from each card into props for m

Next.js Navbar gives a warning of Target Element not found when clicked

I am currently working on a next.js app, which contains a connect wallet button found to the right of the navbar, with the navigation links to the left of the n

Connect to AWS MQTT

Trying to connect to AWS IOT device from C# by using M2MQTT library : public void connect() { const string IotEndpoint = "a3cnel9bxxxxx-at

How to create object having read-only attributes dynamically

I want to create object which is having read-only attributes. And it need to be initialize dynamically. Here is situation I want. readOnlyObject = ReadOnlyClass

C code collecting info through a function and passing it back, of datatype struct

//Program is to collect input from user so that can pass the array of inputs from the user to another print function but that are quite some Errors in the code

Pytorch Dataloader for .nifti.img files

I am trying to load the OSASIS-2 dataset in order to try to predict the onset of dementia. However, there does not, to my knowledge, exist a dataloader for this

Spring Boot MockMvc Authentication Object Is Null

@DeleteMapping("/uri/{id}") public ResponseEntity<RestResponseBody> delete(@PathVariable Long id, Authentication auth) { return ResponseEntity.ok(new

How to set AWS credentials as Environmental variable in Jenkins

I have added my AWS Access Key and AWS Secret Key in Jenkins using the AWS Credentials plugin. After that I added a new AWS Credentials param called AWSCRED in

How to select a variable upon selection of another in arm templates?

I'm very new to ARM templates(like terraform than ARM but, I got no choice DevTest Labs doe snot support Terraform templates to read and deploy from a github re

How to have Azure Monitor alert trigger an Azure Automation runbook whose public access is disabled

I'm following https://docs.microsoft.com/en-us/azure/automation/automation-create-alert-triggered-runbook to set up an alert to trigger an Azure Automation runb

How to mock a quasar component

This is my code for a quasar component that I want to mock emits: [ "buyer-protection", ...useDialogPluginComponent.emits ] But I get the following error: Type

Firebase logs "undefined" on console when it should not

I am using firebase 10.9.2 (Latest version) I use the onValue function to go through the data in my live database. For some reason, it always logs (and is set t

Struggling to create a trajectory prediction in Unity with 2D physics simulation

I have a 2D brick breaker style game in Unity where you get to choose the angle of your shot before each turn with the mouse. I'd like to show an accurate traje

Javascript Custom Array.prototype.method logs 'not defined' [duplicate]

So, I've never done this before, trying to add a method to the Array.prototype. See console.log statement below for usage. It keeps telling

windows batch keep returning a sytax error: cant find the hitch

just want my batch to rotate screen, open a program, and rotate back when closed: REM starts by rotating the screen using a program called display64 START C:\