Latest Questions

Finding closest pair of points in the plane with non-distinct x-coordinates in O(nlogn)

Most of the implementations of the algorithm to find the closest pair of points in the plane that I've seen online have one of two deficiencies: either they fai

Flutter WooCommerce Customer registeration failed using Dio?

I am buidling flutter woocommerce store app for customers. I want to create/register a new customer using Dio() and I am using WordPress Plugin JWT Authenticati

Python3 'cv2.resizeWindow('img', 500,500)' error

I am trying to run this face tracking program provided here, but running the python program returns; Traceback (most recent call last): File "C:\Users\User\De

How to refresh tkinter window if requirements aren't fulfilled when pushing button

So I have a make story button, but I want it to be so if the entry boxes are empty or an adjective is not selected, it refreshes the window and does not make th

What is the reason of this error I'm getting when using tkinter for a math app

Im making a program that will do most of my homework. Im trying to add some ui and it gives errors in my code. Please tell what's wrong. Make it easy enough for

How to create an ensemble model by stacking different model?

I want to use ensemble model by stacking Multiple Linear Regression, SVR, Decision Tree Regression and ANN regression. How can I do that?

After updating answers in a SCORM lesson in the same attempt, the score result doesn't update - MOODLE

After adding a SCORM lesson in MOODLE, I took an attempt and then the SCORM lesson gives me a score result. Then, I took the same attempt again(Not "Enter a new

I'm Trying to Build a Discord Bot that Sends a Message once Every Scheduled Interval

import discord import time import random import schedule import asyncio async def run_scheduled_tasks(): while True: schedule.run_pending()

Error deleting locked file on publishing a webservice over Visual Studio

I'd like to publish a webservice in visual studio 2022 over the context function "Publish..." to a remote server folder, on which internet information services

Failing to get debug app check token for iOS

I'm closely following app check documentation in order to use debug token, however instead of seeing it logged out in the console I see following error (when ru

Feature importance in neural networks with multiple differently shaped inputs in pytorch and captum (classification)

I have developed a model with three inputs types. Image, categorical data and numerical data. For Image data I've used ResNet50 for the other two I develop my o

Why Segmentation Fault for this below code? [duplicate]

This following code gives Segmentation fault: #include <stdio.h> int main() { char* str = "hello world"; str[0] = 'H'; // it is

Kubectl error upon applying agones fleet: ensure CRDs are installed first

I am using minikube (docker driver) with kubectl to test an agones fleet deployment. Upon running kubectl apply -f lobby-fleet.yml (and when I try to apply any

Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 4 in Azure Synapse

I have a Spotify CSV file in my Azure Data Lake. I am trying to create external table you SQL serverless pool in Azure Synapse. I am getting the below error mes

Representing Django M2M data export in a CSV

The problem I am trying to solve is to export all the entries of a Django model as CSV. The field names are supposed to be headers, with each row having an appr

How do I call react function in js map?

I have the below code, the problem is in the part where I am calling the RemoveProduct function in the map function: function AddOrder() { const d = new Dat

Prevent window from being clicked in while another window is open

On Windows, when a window opens on top of another window, the parent window will not be clickable, and will make a "ding" sound and its titlebar will flash. It

TypeScript: How to replace a particular number in a string (a combination of numerical and non-numerical values), and then update its value?

I asked a similar question here TypeScript: How to replace a particular number in a string, and then update its value? Really appreciate the answers there. It a

I have a problem with calculating SUM amongst nodes in the subgraph of binary tree

I have a problem with calculating SUM amongst nodes in the subgraph. If I have a binary tree then I need to sum a certain property namely "weight" on nodes. for

First line in URL list must be TsvHttpData-1.0 but it is Google Cloud Transfer Service Error

I am trying to import some csv files from Google Cloud to Google Cloud Storage(GCS), but I am getting the error. I can't seem to find what I did wrong. Please h

How to replace a list inside a multildimensional array?

I was solving this question on SO and faced a few problems with the methods I was trying. OP has a list which looks like this, a = [[[100, 90, 80, 255],

Visio - How to use the same shape property for many shapes

I have created one master shape with many properties. In the "Define Shape Data" windows of the master shape (of the document stencil), one of the properties (m

Cant get video progress time in Flutter better player

I am building a video player app in flutter with better video player. All things are working fine with better player except that i cant get the video player pro

How Read File Path From a .dat file then open the program When Pressing The Launch Button?

I have a problem Where I cant make my program automatically read the given file path inside the .dat and be ready to launch the program when pressing launch fil

How to write BigTable table data into a pandas dataframe?

I am trying to read a GCP BigTable - table to a pandas dataframe, and currently, the function I am using to fetch rows from BigTable is read_rows(), which retur

I want to delete all the lists with length 1 at the beginning and end but not in the middle in python

Given a list of lists (i.e. a nested list), I want to delete all the inner lists with length 1 from the beginning and the end of the outer list. For example d

manual FB login integration ( without SDK)

FB dialog gives me no feedback so that I can parse token from url and close it. Window event is stuck in onunload event. The below code builds my FB url which I

How to get RecurringJob from ElectStateContext?

I try to implement IElectStateFilter and get RecurringJobId for current job from context. Is it there a way to get RecurringJobId for BackgroundJob.Id from cont

E/LB: fail to open file: No such file or directory - Flutter

I try to display whatsapp Status images from the File directory ('/storage/emulated/0/WhatsApp/Media/.Statuses'). But there do not appear any image. Console sho

Combine two resources and then send to a node in Anylogic

I am simulating a warehouse inspection model where an inspection-officer (present as node1) needs to go to a different node (node2) to collect tools and then go