Latest Questions

Why does jest mock test give me undefined?

I am new to learning jest mocks. I am trying out a very simple test. I have a folder greeter. This folder has a file 'greeter.js' and a subfolder called 'test'.

dataframe to save csv: not accumulating the records only saving the last dataframe group records

dataframe question in web scraping data group example:the first loop-eg:5 records, second loop-eg:3 records when I did my below code, the csv file was saved the

Interfaces and static methods in java [closed]

It occurred to me that interfaces cannot be instantiated and hence I could create an interface containing only a bunch of static utilities met

How to move desktop icons with python?

I am making a python program that moves the desktop icons using LVM_SETITEMPOSITION from winapi but I have a problem with commctrl.LVM_SETITEMPOSITION and it gi

Including unlabelled data in sklearn pipeline

I'm setting up a machine learning pipeline to classify some data. I have lots of unlabelled data (i.e. target variable is unknown) that I would like to make use

Where should the MUI X Pro license key be installed?

I have a next app and recently bought a license for MUI. Where is the appropriate place to place the following setter for the license info? Does it have to be i

Access GPU as PCI device

I am new to the GPU OS kernelspace world. I would like to access GPU memory as a PCI device through its memory exposed on the BAR using for exmaple dev_alloc ()

Object is not subscriptable python error django

I have this function where i am using models 'Start' and 'End' that contain fields latitude and longitude.. and I am trying to match them with a field called el

React 18 Fragment complaining of too many children

A few days ago I tried to add Storybook to my React app, and basically everything imploded. I restored from a backup, but it didn't include the node_modules fol

How can I add users in a private room with a command when they are mentioned?

I am creating a command and in this command when I run it, it has to create a room and add the people mentioned. Instead, it adds the user who used the command.

how to drag and drop point in oxyplot,i have no idea

i'm using oxyplot,i want to drag point in scatter series,but i hava no idea. i tried to add OnMouseMove but its not work. var _model0 = new PlotModel(); //axes

Need help on Arraylist quicksort and partition

Instructions: Given a main() that reads user IDs (until -1), complete the quicksort() and partition() methods to sort the IDs in ascending order using the Quic

How do I tell or allow Blazor to "refresh" an HTML element from its bound value that hasn't changed?

When I have a one-way binding on a HTML element and accompanying binding on onchange that doesn't always change it, then how do I tell or allow Blazor to "refre

How can I set a minimum unit test coverage with GitLab CI?

I have a project hosted on GitLab that already has working CI configuration. I would like to add the notion of "minimal code coverage". What I would love is to

Issue upgrading XState's Reddit sample from Vue 2 to Vue 3

After reading the XState documentation I followed the Reddit sample found at the official guide, here: https://xstate.js.org/docs/tutorials/reddit.html I was tr

google-cloud-resource-manage list projects 403 The caller does not have permission

I created a GCP service account and assigned the needed permissions for listing the projects inside the organization. When I'm using the gcloud cli, everything

ChromeDevTools in selenium, waiting for response bodies

I need to work on ajax response, that is one of responses received upon visiting a page. I use selenium dev tools and java. I create a listener, that intercepts

How to add animation to navigation in flutter using Get package?

I want to change the default animation of page transition to fade transition when I go to a new route using get package, Currently I am using this command to na

How to add version info to OpenSSL 3.0.2 fips.dll?

On Windows, I basically run these batch commands to build the OpenSSL 3.0.2 FIPS module (fips.dll): perl Configure VC-WIN64A -MT -Z7 no-shared enable-fips nmake

pyspark error: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.newAPIHadoopRDD

When I tried to search in Spark to Elasticsearch an error ocurred The code that i use is the following: from pyspark import SparkContext from pyspark.sql impor

Make child elements active

I have a code that can be used to filter cars by country of manufacture. The code is structured like this: I put the name of the country with a checkbox in the

React + gRPC don't reach envoy container

I was trying to build a very basic web page in React that would send gRPC request to a backend written in Rust. I followed these guides: https://daily.dev/blog/

Does a QUIC server generate a Connection ID or just the client?

Does a QUIC server generate a Connection ID or just the client? Some people say there's a source CID and a destination CID, others say there is only one CID pe

How to sovle Query Issue throwing MySql.Data.MySqlClient.MySqlException

I am doing a project with C# and I have this error: MySql.Data.MySqlClient.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual

Android Studio shortcut keys for windows, linux and mac

Android Studio shortcut key for Windows, Linux and Mac. For example in windows: Run -> Shift + F10 Debug -> Shift + F9 Any others similar to this? What ar

If / Else in HTML within a return of PHP function

I am trying to use an if/else statement within an HTML structure of a return in a PHP function: function price_vat() { global $product; $condition = $pr

How to scan a table in DynamoDB with time period?

I have a table in DynamoDB and it has an attribute 'createDate' and I want to do a scan using a filter in a specific period of that attribute (for example: 2022

MethodError: no method matching setindex! when using DifferentialEquations.jl

I am trying to simulate a multi-dimensional SDE with non-diagonal noise using the DifferentialEquations package in julia. The drift function has the following f

Error in executing YOLO .txt annotations to .csv converter

I'm having trouble executing this file. Given that I'm working on a multi-class classification, each .txt file has several lines addressing each object in every

Xamarin System.ObjectDisposedException: 'Cannot access a closed Stream.'

I'm working on a mobile project with Xamarin Forms and I have this error in particulary case but, it's impossible to use the debuger to fix it. System.ObjectDis