Latest Questions

In react class based component this.setsate is used but state is not defined in constructor if I have to convert this in functional based then how

class Dashboard extends Component { constructor(props) { super(props) this.state = { assetList: [], assetList1: []; } } componentD

Mysql: can't start mysqld "mysqld.service: control process exited, code=exited status=1"

I have installed a third party framework fate, and mysql has been installed inside this framework, at the following path: /data/projects/fate/common/mysql/mysql

Dynamic heap implementation with insert O(log n)

I'm trying to implement a Min Heap in Java, but between studying the complexity and the actual implementation, I realized that it is not clear to me how O (log

How can I generate a 2D matrix of natural numbers wth zero in ascending order in shell script or another programming language?

I need to generate matrices of natural numbers in ascending order with zero (0), but they are very large ones and it will be hard to write them by hand. What I

LateInitializationError: Field '_instance@141084504' has not been initialized

When using getX and Flutter I get following error: LateInitializationError: Field '_instance@141084504' has not been initialized This is the code: import 'dart:

Scikit-learn pipeline: Non-finite test scores error / Inconsistent number of samples

I have a dataframe with two columns of texts and only the POS tags (of the same texts), which I want to use for language classification. I am trying to use both

Argument type 'String?' cannot be assigned to parameter type 'String', Triggering Dart's Null Safety either way

In this current snippet I have declared notification to be nullable but get an null safe error for the if loop's notification.body and notification.title. Here'

How to deploy Spring boot and React application together on GCP App Engine?

I don't have any experience in deployment and trying to deploy Frontend and backend together. I am able to successfully deploy the spring boot application. I fo

PyQt 6: Are there any classes with signals that emit when the device connects/disconnects to/from the internet?

I'm adding a download function to an application that I'm creating. When the user's device's internet connection is lost during a download, I want the download

want the app to save state separately according to each user in react native

I have a app that conducts a test and when the currently logged in user passes the test, the app shows a modal telling him that he has passed the test. I want t

Can you run the Opacus privacy engine with pytorch SequenceTaggingDataset?

I am trying to adapt a pytorch Named Entity Recognition model to incorporate differential privacy with the Opacus library. My model uses torchtext to build the

Change background color in Bootstrap 5 multi level dropdown menu

anyone tried to changed the background color in multi-dropdown menu in bootstrap 5? the original code is here https://bootstrap-menu.com/demos/multilevel.html I

Python function to iterate each unique column and transform using pyspark

I'm building the following global function in Pyspark to go through each column in my CSV that is in different formats and convert them all to one unique format

GET method gives success but PUT method gives 401 despite same credentials

The problem Overview When getting products using a GET method everything works when trying to update a product using PUT method I get 401 unauthorized I use sam

Having trouble using List.js to filter student profiles in JavaScript?

I am trying to filter student profiles via an input field. JavaScript grabs the data via an API and then using a return function I display the data on an HTML p

razor pages culture value is lost after redirecting to identity pages

I have created razor pages web application with multiple language support, it is reading the first part of URL and tries to show the content with the correspond

Fake client behaviour when mocking k8s for testing

I am using the fake clientset to perform some mocking in a k8s cli tool I am creating. Therefore I am creating a Job resource jobs := clientset.BatchV1().Jobs(m

Check if "Remove permissions if app is unused" is disabled for a particular app

How can I programmatically determine whether the "Remove permissions if app is unused" setting is enabled or disabled for a particular app?

How to delete multiple records from different classes in django?

It seems that whenever I run it and delete records I get server error (500) but it deletes the the data of class Bscs1_1 but for the rest of the classes it does

Parent Process Directory not recognized by the Icon and Background Image fields in Windows Terminal

Windows Terminal version 1.12.10732.0 Windows build number 19043.1645 Issue Forgive me if this has been addressed already somewhere else, but I realized that wh

Displaying Cooldown In Seconds in On_Message in Discord.py

EDIT: I solved it, I just simply looped the asyncio.sleep and set a variable for the cooldown in seconds. :) I'm new to discord.py and I just started developing

Scanning log file using ForEach-Object and replacing text is taking a very long time

I have a Powershell script that scans log files and replaces text when a match is found. The list is currently 500 lines, and I plan to double/triple this. the

Gnuplot: Use of "graph 0" and "graph 1" when drawing rectangles

I'd be happy about some enlightenment on the use of "graph 0" and "graph 1": Goal is to draw rectangles into a graph, but while painting the whole background wo

Use an SSIS parameter inside of an Execute Operation

I have an SSIS package with a parameter параметром $[Project::MyParam]. Inside the SSIS package I ha

"Hello from the pygame community"

When I executed the following code, instead of an error it said "Hello from the pygame community. https://www.pygame.org/contribute.html". It would be easier fo

Regular expression to match pattern and text afterwards until that pattern occurs again, then repeat

I'm trying to write a regex for my Kotlin/JVM program that satisfies: Given this line of text {#FF00FF}test1{#112233}{placeholder} test2 It should match: Match

Compare two controls value validation

About I am trying to compare the value of password and confirm password and if found mismatch then message to be shown. Due to some reasons it shows nothing. Am

blogger authentication issues in android

I am working on blogger api and i am using this method to request blogger accesstoken, but problem is if user not select Manage your blog option and continue th

why this code isn't working in real-time pleace cheack this code [closed]

this code isn't working in real-time.. it works only whenever I restart/refresh the app. I am using Cloud Firestore. plzz change code am noob