Latest Questions

I am getting "AssertionError: Expected transaction to be reverted with Username " when I am testing my solidity code

When I am running npx hardhat test on the below smartcontract I am getting AssertionError: Expected transaction to be reverted with Username is taken please try

NZ-Table of NG-Zorro doesn't show any data

I'm developing a page where I use a table from ng-zorro, I get the data from an API, but after I filtered the Data the table just show the "No data" display, no

Add missing dates to pandas dataframe

My data can have multiple events on a given date or NO events on a date. I take these events, get a count by date and plot them. However, when I plot them, my

JLabel not displaying image after choosing from jFileChooser in java netbeans IDE 8.02

I am using NetBeans IDE 8.0.2 to create my project application. I have created my application's signup page using multiple panels in CardLayout. For users to up

How to write an unit test in Python in tictactoe code

--------- Global Variables ----------- # Will hold our game board data board = ["-", "-", "-", "-", "-", "-", "-", "-", "-"] # Lets us know

Error in Jest Test with Vanilla Javascript: expect(jest.fn()).toBeCalledWith(...expected) Expected: "click", Any<Function> Number of calls: 0

Looks like click method is not getting triggered I have tried evreything, it would be appreciated if someone knows the answer I'm getting this error: expect(jes

Terraform aws_s3_bucket_replication_configuration can't generate multiple rules with for_each

I have an S3 bucket with the following "folder" structure: Bucket1----> /Partner1 ----> /Client1 ----> /User1 | | |-

3D head mesh morphing from one mesh into another using scripts (C, C++, python etc) [closed]

I have 2 3D head images and want to morph one into the other (animation) without using blender, three.js etc. I want to do it using coding pre

VS2022 IE8 WebDeploy - Could not connect

Why am I unable to publish my website? I am using Visual Studio 2022. I am running WebDeploy 3.6 on an AWS EC2 instance. I have setup up the connection paramete

How do I correctly memoize this recurrence relation?

I am solving a problem: Given a list of integers nums, write a function that returns the largest sum of non-adjacent numbers. Numbers can be 0 or negative. Fo

clang 14.00 : _GLIBCXX11_DEPRECATED_SUGGEST("std::bind");

Installed clang 14.0 using GNU/Guix's clang-toolchain package. I am getting depreciated feature usage error when trying to compile a simple code: //build with:

FastAPI: How to log the return value of a POST method after returning the response?

So I'm working on my first ever REST API, so apologies in advance if I've missed something basic. Anyway, I have a function that takes a json request from anoth

Can this search bar autosuggest by any word?

The search bar only suggest results by the first letter of the first word, can i make it suggest by de contains of the result that I'm looking for, for example

How to make a reactive copy from props with Vue3/TypeScript?

How can I take a value (in this case, an object) outside of the props it was provided in and place it into a reactive variable without affecting the original pr

Spartacus - breadcrumbs on checkout

On MultiStepCheckoutSummaryPageTemplate (e.g. checkout page) breadcrumbs are disabled. Even if we create a ContentPageMetaResolver and provide it in our custom

Spring: @RequestScope - annotated method does not get called

In the application I would like to create a request-scoped bean (annotated with @RequestScope) that would represent a user of the application (for authenticatio

Read data from text file given in a Tree format

I am trying to read the data from a text file given in a tree format. A sample of the text file looks like this, ['972651', '80080680482123777', '0.0']->['10

How to expose any API globally on Node

I have a web development framework which I use on personal backend projects. All web apps revolve around my framework and the API is quite big so importing it i

How to use the JSON response from a Python App, To render it with Javascript on to an HTML page using Fast API? [duplicate]

I have an HTML page being rendered with FastAPI: @app.get("/index", response_class=HTMLResponse) def write_home(request: Request): return t

SQL Server Agent alert

I hoping there is a way to get an email alert for which a new distinct data has been inserted in to a column in my views found in the SQL Server Agent - job?

How do I clone a AWS instance?

I had a developer create a react app and he hosted it on AWS. He never sent us the code and stopped responding. I'm trying to edit a few things on the app but I

Automapper - Map setup from collection<double> failing

I have a Automapper setup that was working on the v10 version but since i updated it to the latest v11, it wont work anymore. I have no clue what could be the i

How can I request turn on the location?

I have previously requested location permission in Android Studio (Java) for Android version higher 6.0, and now I want to request to turn it on. On the other h

compilation problem while trying to iterate a class of ArrayList<Obj>

I have a class to generate an Arraylist it all seems to work but in main it produces a compilation problem which I guess does not recognize my variable name as

How to write a TXT from multiple sheets, same range, into one file?

I am a real novice at VBA, so any help would be welcome. I am trying to convert certain ranges across multiple sheets into only one file. I have written code fo

apt-update in Azure Nvidia gives publickey error

I started a NVIDIA VM on AZURE and trying to do update using sudo apt update but gives error: Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease

Unable to execute "trunk serve"

I was getting into Rust and looking at these simple instructions for Yew framework (a frontend framework for Rust). (Found at: https://yew.rs/docs/tutorial) I f

How to find the cause of occasional slowness in .NET WebApi

I am investigating some occasional slowness in a aspnet Webapi method (.NET 4.8, not core). The symptoms are that most of the time the API responds in a few ten

How to search nested hash of arrays and arrays of hash and return multiple matching objects from the parent node?

Say I have the below ruby hash nested hash_or_array = [{ "book1" => "buyer1", "book2" => { "book21" => "buyer21", "book22" => ["buyer23", "b

Determine butterfly subtopologies in a network topology

I recently got a project where I have to identify all the butterfly subtopologies in a network. The network has to be implemented using a graph. Fortunately, I