Latest Questions

Why is the second background image not displaying after rotating my device?

I have two background images to create a layered effect and to keep the file sizes small. There's a repeating star pattern in the back, and a white "cutout" on

discord.py 1.7.3 - Send messages to a specific user id ( on_ready )

So I'm having the issue where I send a dm message (message var) to each user id on a list (memberlist var), and when I try to send it, I get an error saying: At

Hardhat is not compiling

I have been trying to test out hardhat. I follow the guide on https://hardhat.org/getting-started/#quick-start. I use the sample project as mentioned. When I tr

Mockito can not mock Random in Java 17

Trying to update my project from Java 11 to Java 17 and got an unexpected error from Mockito in a specific test. mock(java.util.Random.class); Throws Feb 04, 2

How to create a three-by-three floating array in Arduino

I need a three-by-three array of flutes that should be in a loop (the loop can be used and should be displayed at the terminal output) I found the following cod

How to use the draw and keyTyped() function at the same time?

I want to create a code where when I click a key on the keyboard it will play music and draw a rectangle. I have managed to add music using the keyTyped() funct

How to add the UIA ExpandCollapse pattern in Qml

I'm using http://accessibilityinsights.io/ to make sure my QML application passes Microsoft requirements for accessibility. There's only one error that I couldn

Batch Job Performance testing - what parameters to measure?

I know about the Performance test for an "Online" application or APIs where we measure response time, throughput and CPU/Memory utilization. My question is - Wh

Get array of object's keys

I would like to get the keys of a JavaScript object as an array, either in jQuery or pure JavaScript. Is there a less verbose way than this? var foo = { 'alph

The datetime columns in all the tables on SQL server have shifted by a few hours

I've created a few tables all of which had a column of datatype datetime. Recently, I think after the daylight savings adjustment, for some reason all the dates

Animation css for the last element added with js and Vue

I have an array in which I put all the elements that have the class Box, then I add a new div with Vue, which is added correctly, but I try that the last div th

ERROR [ExceptionsHandler] Cannot read properties of null (reading 'concat')

Here What I did is I have a user entity and a role entity. Every user can have one role. I have set up many-one relationship in role entity. I have create an en

Edit a value in a large csv file which appears multiple times

i have a large tab seperated csv file, about ~10GB, i need to edit all the "direct" words in a column named Tab2 with the value of the column Tab1 in the same r

how can i get the specific info about a user

i'm working on a web app in which a user can create an address when logged in, how can i get the current logged in user address which was created by the user th

Batch Job Performance testing - what parameters to measure?

I know about the Performance test for an "Online" application or APIs where we measure response time, throughput and CPU/Memory utilization. My question is - Wh

Unable to execute Synchronization Manager for mobsync.exe

I'm trying to execute a registry dump on Windows to show the programs executed on bootup along with any entries that could've been added. I was told to run the

How do use the same variable in background and feature being called

With Karate 1.1.0, you could define a variable in the background, ex "* path = 'www.google.ca', call a "helper" feature at the top of of a scenario, which was u

how to create an encoder for a row type of map[(String,String),List[Row]] for creating a Dataset[ map[(String,String),List[Row]] ] in spark?

This is my piece of code . There is a good lot of business logic happening here. I have tried to explain it in understandable manner as much as possible. I have

TypeError: Cannot read properties of undefined (reading 'document')

I was using qraphql (JavaScript graphql-request library) in a project and ran into a typeError. Here's the code: import { request, gql } from 'graphql-request'

Successful API call but no data returned

I'm trying to request data from api.travelpayouts to find cheap flights, but even after trying exact examples from their documentation I'm not returning any dat

tf.data pipeline from large numpy arrays for a multiple input, multiple output Keras model and distributed training

This question relates to the optimal setup for a multiple-input multiple-output Keras (Tensorflow) model given corresponding numpy arrays. For example, suppose

Reduce float precission to save memory in Python

I am preparing a code to create an array of 10^5 rows and 10^4 columns with Python. Each element of the array is a float (1.504096744947185, e.g.), which takes

"Edit with elementor" button missing

I've got a site hosted on altervista.org that works with WordPress 5.9.3. I use Elementor for my pages. I've recently installed a plugin called "Redirection", a

Having a loop issue

I am running the following code for pi value to calculate the first value which yields 3.14. I used manual values for range which works, but I want the values t

Prisma One-to-one relation issue

I have just recently started using prisma and I ran into an issue with relations. I have a user model and an address model. model User { id Int

How can I build the file in C++ with wiringPi?

I am trying to run an example program from the wiringPi in C++ in Geany software(called blink.cpp) This is the code (I did not do it, I took it directly from t

How do I populate the QuickFix list with argdo make?

I'm using a simple compiler for W3C's Nu HTML Checker, so that when I call :make inside Vim, the active document is validated as HTML. This works fine when I'm

How can we integrated ads in video player like YouTube in flutter?

I working with Flutter on my video streaming application. I want to implement ads in a video player. How can I implement it?

How to sign and notarize a PKG within a Github Actions macos runner

Context I'm building a Github Actions job to build, sign and notarize a PKG file. I'm using an Apple Id account (the workflow needs username and password) as we

Broken image when site is called from external link

My React app is working well when I call it typing directly in the browser, but when I call it from a link sent by email it shows a broken logo in the header. T