Latest Questions

How to create Update method inside the same page as the user profile?

So as you can see here's my profile page i just want to create an update method here. Is it possible to do inside this page for the update method? I'm still new

How is data transferred between two Python scripts

as an example I have two scripts, say script1.py f = open("output1.txt", "w") count = 1 for i in range(100): f.write(str(count) + "\n

Typescript, merge object types?

Is it possible to merge the props of two generic object types? I have a function similar to this: function foo<A extends object, B extends object>(a: A,

I'm trying to make a function that takes a 2d array as a parameter and outputs a normal array containing every unique number, in java

The function needs to have a 2d array as a parameter and then return a normal array with all the unique numbers. If the 2d array is [ [1,1], [4,2] ] then it sh

How to download multiple files using wget in linux and save them with custom name for each downloaded file

How to download multiple files using wget. Lets say i have a urls.txt containing several urls and i want to save them automatically with a custom filename for e

How to make a random sample of panel data (keeping all years for each randomly selected id)

I am using an unbalanced panel dataset, with multiple ids, each with 1 or more years of data. I would like to work with a smaller dataset as I build my code. I

Windows Container Access is denied. (0x5). using Powershell. But still accessible on Docker Desktop CLI tool

I am running a docker-compose up and spinning up my Windows containers. Then I want to attach to a container. I tried docker attach <container id>, but i

ManifestV3 new promise error: The message port closed before a response was received

I'm working on an extension that does a lot of message-passing between its content scripts and the background service worker (manifest V3), and I've noticed an

Run powershell scripts from a C program

I'm creating a C program to run several powershell scripts. But when I run the command with the system function it opens the script in a txt file instead of run

I could not connect to docker daemon from remote in ubuntu 20.04

I want to run docker daemon for remote connection without any TLS verification. So based on this I edit file /lib/systemd/system/docker.service and add two belo

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