Latest Questions

Différence between only one state for variables or state for every one in react

If i'm having 3 variables to handle with useState in react is doing this: const [ user , setUser ] = useState({ name : '', phone : '', age : '' }) setUser({...

fancy pie chart in R using ggplot2

I have a pie chart below, and I would like to leave extra white space between each pie and paste the value of each letter in each pie (A=25). how to get around

make clearml agent do not install envs for every task

I want make my clearml agent do not install python envs for every task, it take too long. I tried setup config like: package_manager.system_size_packages=true,

Spring Batch - Resume already started job when master fails

I didn't find an answer to my question so far so I'm giving it a try here. Let's assume a Spring Batch application with remote partitioning. There's one master/

pass parameters to a javascript function without using an inline function inside jsx

So after reading a few articles on react native performance, I realized that you're supposed to avoid arrow functions inside JSX. https://blog.codemagic.io/impr

Xcode clean build folder command not working

Not sure what happened but suddenly, my xcode clean build folder option under Product -> Clean Build Folder no longer works. Instead it gives me an error: Co

SQL Server - Order by defined hierarchy

I have, for example, the following table: Client ID Function 1234 RE 1234 WE 1234 SP 1234 AG 6789 AG 6789 WE And I want to get only 1 client ID but that obeys

How to collect all Eulerian cycles/circuits in a directed graph?

According to this post, we have a pseudo-function which can check if a Eulerian circuit exists in a directed graph. // @flow const { Edge, Graph, Path, Node }

Deployment failed due config map is not valid

I'm trying to install nginx deployment and store all the nginx configuration via configmap. All the nginx conf file are in a separate folder(outside of the temp

Is there a way make tests Flask and Firebase?

I have a Flask app. Authentication is provided by Google Firebase. I want to make url tests with any Python/Flask libraries? Is there a way? For example: /api/g

Can not set the virtual interface for openstack with ansible installation procedure

I am a bit of a noob, and I am trying to install openstack (xena) on 3 debian machine, respectively named node1, node2 and node3. By default, all those machines

I want to Export the data/content of DataGrid to Pdf & csv file in UWP application

There is no any such specific answer for UWP implementation that will give me the correct solution. I have a datagrid which will have data from it's item source

(Terraform) Error 400: Invalid request: instance name (pg_instance)., invalid

On GCP, I'm trying to create a Cloud SQL instance with this Terraform code below: resource "google_sql_database_instance" "postgres" { name =

How to use ceres-solver to solve high dimensional non-linear problem?

     I need to solve the optimization problem: . A and b are known. I use Zero to represent A and b to facilate the expression in the follow

LINQ to SQL, 'Linq' does not exist in the namespace 'System.Data'

I tried to connect my project to a database, using LINQ to SQL, following a few online guides. I created a simple database Library, added new LINQ to SQL Classe

C++ Override a pure virtual method with reference to an abstract class as a parameter by method that takes non abstract sub-class as parameter

I have the following code: struct A{ f()=0; }; struct Aa : A{ f(){} }; struct B{ void foo(A&)=0; }; struct Bb : B{ void foo(Aa&); }; Right now I

Add new tag to the middle of element

I am trying to surround specific words in textContent with HTML tags, this could hypothetically be done by doing element.textContent = element.textContent.repla

Is there a way to guarantee a certain number of lines detected with cv2.HoughLines()?

This question is an extension to my previous question asking about how to detect a pool table's corners. I have found the outline of a pool table, and I have ma

how to write an ARM assembly program in Keil to check whether an N N matrix is a magic square? [closed]

how to write an ARM assembly program in Keil to check whether an N   N matrix is a magic square? Defining the matrix Generalizing Rows

Module not found error due to a file not being exported from @firebase/database-compat

I'm having an issue with the following error: Module not found: Error: Package path ./standalone is not exported from package C:\Users\brohj\WebstormProjects\Re

Can you add apps made from (js, nodejs, express and mongodb) in a wordpress website?

I already have a wordpress website. I studied web development using js, node.js, express and mongodb and build some projects. I would like to add it to my websi

There is any objective reason why Scala differentiate fold and reduce functions?

Reduce can be an override fold that doesn't take the first element. I guess there is an answer to that design decision but I can't find it.

Deployment failed due config map is not valid

I'm trying to install nginx deployment and store all the nginx configuration via configmap. All the nginx conf file are in a separate folder(outside of the temp

React MUI - Consistent Tab Content Height

I understand that ideally should be placed at the top of the page. However, Assume they are place in the middle of the page. When changing from a tab with a l

Duplicate rows based on common value in other column?

I have a data frame which includes: one column having individual ID's (unique), and a second column showing a common unique variable. That is, everyone in colum

let and const keyword giving error in typescript after compilation. Where as var works fine

I am very new to typescript i am trying to work out watcing a tutorial. I am face this issue when i use const and let. After compilation ts file shows some erro

I'm trying to get the output from my model,but got 4 tensor.I dont know anything about these tensors

I'm trying to get the output from my model,but got 4 tensor.I dont know anything about these tensors i use the model to detect face. Here is my model enter imag

python generator function not yielding output [closed]

import itertools def password_generator(): with open("D:\Password Hacker\Password Hacker\\task\passwords.txt", "r") as passfile: f

How can I create a menu with my json info with REACT

what I try to do is to have the same display as this picture : So in my menu the plant type (Type of plant1) is displayed above a gray bar and when you click o

SwiftUI toolbar text size changes on appear

Related to this I am trying to make an app based on Notes app. I set my iPhone text size to the smallest, and when the view changes, the texts on new view's to