Latest Questions

My Tkinter Python code returns "I/O operation error"

I am trying to create a code that will detect cursor coordinates upon user's entry and exit of the Tkinter window. However, I am not getting an output the first

Sip installation fails --plat-name not recognized correctly

I was trying to use pip to install pyqt5 on my windows 10(64-bit) sytem. Before this I upgraded to python 3.10.4. The Installation using pip failes during the i

Why is my function not printing the try-except-else result?

What is wrong with my code? I am not being able to retrieve data about the age range. I am working with a CSV file but having problems with the try-except-else

Automatically solve rm cannot remove path : device or resource busy error

I am trying to remove a directory /path/to/dir using the rm -rf command. Unfortunately I get the error rm: cannot remove '/path/to/dir/.nfsdda293a660f276ca00000

how to switch between inputs in converter app in react?

I built a celsius(as input) to fahrenheit(as output) conveter with react But I want to switch between celsius and fahrenheit as input and output I mean when I c

Using web sockets with C++ and set the object protocol

I'm a complete beginner to all things HTTP and Websockets. I am trying to figure out how to setup a websocket for this specific example: https://docs.automata.t

problem to do a post at soap service from php soapclient

i'm a new using soap services, so i have a problem when i consume a soap service using soapclient in php. this is the request at soap: <x:Envelope xmlns:x="h

Pine Script Fill Stop Order Only If Stop Price Was Reached Before Stop Loss

I'm building a strategy using Pine Script Version 5. I'm trying to create a stop order using strategy.order command. The command is working as expected and exec

Is there any way to draw line by it's center in OpenGL?

I'm making a class that draws axis for a graph. And the result should look like this: And I want to draw lines which represents scale by only passing the coord

Full Calendar v5.11.0 - How can we vertically stack overlapping events in timeGridWeek view using JavaScript

I am using Full Calendar v5.11.0. The scenario is that there can be multiple hour long sessions in a day and there can be 18-25 people in each session. From Ful

How to iterate over a List of numbers and check if there are pairs of numbers that add up to a given value using Scala?

I have to generate a list of prime numbers smaller than a given number and then find all pairs of the generated prime numbers that add up to that value. E.g. nu

How do I find out the aria role of MUI components for RTL querying?

I've just started migrating from enzyme to react testing library on my project that uses material-ui. From what I understand, RTL queries the dom and the recomm

Jetpack compose scrollable table

I need to have a component that scrolls vertically and horizontally. Here is what I did so far: @Composable fun Screen() { val scope = rememberCoroutineScop

Not all icons are shown in react-native

I added react-native-elemets and react-native-vector-icons. I am looking for the icons name in the official website and by selecting only free icons, and import

Json Web token and implementation in front end & sever side?

I want to know about Json web token and how to implement. If we use **node.js** as backend with the help of express js and **react** as front end, what will be

tampermonkey @grant GM_setValue // @grant GM_getValue when i try open file

// @grant GM_setValue // @grant GM_getValue let fileHandle; let fileData; let text async function read()

Drastically results variation when change condition in _gradient_descent tSNE scikit-Learn

I am working with some noisy data to classify the spectrum of light curves using the tSNE instance in scikit-Learn. The problem comes when I try to understand h

Where can I find names of regions in cartographic report in IBM Cognos Analytics?

I have a map report in Cognos Analytics. It pulls up the names of the regions from the database. However, not all region names correlate with those stored in th

How to remove repititve pattern from an image

I have to clean images for my OCR. Some of them have text of quite pale gray color above complex background. After some modifications I've got result like this

Metro has encountered an error: While trying to resolve module `@apollo/client`

I am trying to install GraphQL into my React Native app and in doing so, I was given this error message. I have confirmed that the file actually exists and have

How to integrate hubspot chat on electron app

I'm trying to integrate hubspot chat on an electron app. For example: <!DOCTYPE html> <html lang="en"> <head> <meta charset="ut

data column not recognized in the ggplot geom_hline

I was wondering why variable mean_y is not recognized by my geom_hline(yintercept = unique(mean_y)) call? library(tidyverse) set.seed(20) n_groups <- 2 n_in

what should be the default value of file in react-typescript in useState

How do I initialize a file through useState in React Typescript? const [images, setImages] = useState<File>(); const [formData, setFormData] = useSt

Ubuntu 20.04 VM cc linker errors

During using cc linker and cargo, I am repeatedly running into = note: collect2: fatal error: ld terminated with signal 9 [Killed] compilation terminated.. My

get a dictionary of an attribute in all instances

class Players: def __init__(self, username, score): self.username = username self.score = score If I create a class and some instances of it with diffe

Kalman filter system/measurement noise covariance

This may be a bit of a dumb question, but the textbook I'm using doesn't do a deep dive into the intuition on each parameter of the Kalman filter. When I am dev

Postgresql offset optimization in partitions

I created a table: create table test (id serial, name varchar(20), rownumber serial) partition by range (id); then I created index create index "test_rownumber

How to reference image in an array?

I have some data im using in an array that looks like: import image from "./image.jpg"; export const data = [ { id: 1, title: "kevin", content: `G

Got a java.lang.IllegalArgumentException when sending a Java object by the dynamic TCP/IP integration flow?

Gary Russell helped me some time ago with the following 'DynamicTcpServer' flow (see Building a TCP/IP server with SI's dynamic flow registration) having now a