Latest Questions

Giveaway Bot with buttons discord.py

Hi this is my giveaway bot command, currently, I am using reactions in it but I want to replace it with buttons like someone clicks on the button then participa

Uncaught TypeError: Cannot read properties of undefined reading pathname

I am getting this error while running the below code import React from 'react'; import { Link } from 'react-router-dom'; const DanimProduct = () => { re

Pandas: Creating multiple indicator columns after condition with dates

So I have a data set with about 70,000 data points, and I'm trying to test out some code on a sample data set to make sure it will work on the large one. The sa

What is the status of the 'default props rerender' trap in React?

I'm looking for a canonical reference to how this has been dealt with. If I have a component that looks like this: const MyComponent = ({ value = [] }) => {

How can i create a function to validate if an user can mint?

i used to use for erc720 this function isValidSignatureNow, but now i am working with erc1155 i need a function like that. i am trying to mint but before i need

GeoPy SSL Certificate Verify Failed: certificate has expired (_ssl.c:1056)

UPDATE: Okay, so I was finally able to figure it out. Apparently I accidentally installed something through pip before leaving the other day, which had some sor

Google Data Studio Pie Chart and Donut Chart Cross Filtering Error | System Error [closed]

Suddenly, today i cannot interact with this specific donut chart. Before, it works fine. When I tried to click on the part of the chart, for

How to retrieve data from different AWS regions for my glue job?

I have Glue DBs(db1 and db2) and tables(tbl1 and tbl2) available in different AWS regions(eu-west-1 and us-east-1) respectively. My glue job in eu-west-1, needs

using powershell inside batch file to add floating numbers from text file

i have a text file logging timestamps from ffprobe on video durations of some video files, which that text file looks like this: 14.068700 5.043011 84.071967 5

How to use useContext correctly,

I want to take out the function and state globally, because the function and state use the global header. But how can my MainPage page get this data? I know tha

React: React-Bootstrap Collapse is not working

Started using React-Bootstrap today and I want to make a collapsable card. Using Collapse component but it's not working. Any tips? My code: import { RiArrowDow

Left join pandas if column value is within a certain range?

I was wondering if it were possible to merge two datasets if the values were in a certain range of each other. For example, If I want to join on zip codes, then

Calculating joint probabilities from two tensors of different sizes in pytorch

I am trying to calculate joint probabilities from two tensors.. It's a little bit confusing for me. Suppose we have : a = torch.Tensor((10, 2)) b = torch.Tensor

WARN: Unable to load JNA library (OS: Mac OS X 12.2) warning when running flutter app on release mode. (M1 Mac)

I built a simple tic-tac-toe app on Flutter. It works in debug mode without any problem, but when I run it in release mode it gives me an error: WARN: Unable t

MySQL Subtract Date Time and insert results into a new Column

I have a MySQL database, I use Heidi SQL to access it. The following columns are part of one of my tables: START_DATE START_TIME STOP_DATE STOP_TIME 01-10-202

Trying to Upload database file using python requests and sending to django API

Hi I have a database file. I want to send this database file via python requests post method to my django server and store this database file somewhere in my se

How get the language of browser in selenium ide?

I am trying to assert if the language of a site matches the user language of the browser. For web-driver, I think this can be done by getting the window.navigat

Error building kivy app for android with buildozer

I am fairly new to Kivy and app development in general. I made a simple app and wanted to try creating an apk file using buildozer. I ran the following command:

Percona on podman with bind mount on /var/lib/mysql not working

I spent an entire day on this with no progress. Percona/MySQL documentation was read and followed, here is the result. On RHEL/Alma /srv/percona/my.cnf.d and /s

NodeLocalDns on Kubernetes

I am trying to implement nodeLocalDns on my eks cluster. I have deployed the master branch of https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/

How to Convert or Solve a Non-Linear Optimization Problem with Non-Linear Objective Function & Constraints

Overview I am working on an order allocation problem with variable and fixed costs. The initial formulation of this problem was a linear optimization, but when

Docker container with shiny app listening on localhost

I am working with a linux server and I would like to run a docker container with my shiny app, but it is not working. In order to check the problem, I have run

Using EF Core with WPF and I'd like to revert to initial state when a user press Cancel instead of OK on a dialog, is that possible and how?

I'm using EF Core with WPF and I'd like to revert any changes done on any objects to their initial state when a user press Cancel instead of OK on a dialog, is

removeClass('data-element="xxx"'); not working

I have html code like this: <div class="smt" data-smt="41" data-element="do"> how I can remove this special attribute [data-element]? I trying like this,

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

Laravel: Feature test json validations unique rule issue

I recently started implementing the unit testing in Laravel 9.x framework. So far, I was able to write some basic rules without any complications. However, in m

Entity Framework Core child entities only show up when I debug through code

I'm having this really weird scenario where I have a component in MVC that will call a service to grab all the categories in the database and include its child

How to map a subarray

I am using a sample I found online to map a subarray and can't seem to get it to work. import { Component, OnInit } from '@angular/core'; @Component({ select

S3ToGCSOperator : Connection error while getting file from S3 to GCS

I have been trying to source data from S3 bucket to GCS with provided operator: S3ToGCSOperator. Below is the error I am getting: ______________________________

Is it possible to know the size of a variable that is being created while the function is running?

I am very new to R and I was exploring a function in a library that download data from a server and leaves the data as dataframe. The data are stored in a varia