Latest Questions

Retrieveing floor price for specific filtered assets Opensea

I know how to get normal collection floor price. However I'm trying to find out how to retrieve floor price for specific filtered assets. such as, grabbing floo

How to use Button SwiftUI correctly?

There is a code that, by pressing the "Sign Up" button at the bottom of the screen, should open another window. But for some reason, when you click on the butto

How to maintain Audit Logs

I am storing user data in MongoDB and want to maintain activity logs for each user. eg: Who logged in and when? Which user perform certain and when they did Al

OpenSea Error - Please use providerUtils.standardizeOrThrow()

I'm having trouble using the openseas.js library. I'm trying to do a getAsset call on a random asset on openseas I found, but I keep getting Error: DEPRECATED:

How to get specific chunks from stream node js

I'm trying to make a server that are used like a "CDN proxy". We have S1: main server that has all media S2 CDN proxy client The aim is: obtain a stream from se

Error submitting the frame for encoding when submitting NV12 texture

I'm trying to encode D3D11 NV12 Texture on QSV encoder but getting [h264_qsv @ 00000244ce6f50c0] Error submitting the frame for encoding. Main: int width = 1920

Logback log to different files from the same package

I want to log into two different files, historic.log and applicative.log, from the same package that is com.authenticationservice.user.UserRequest. In the histo

Grep how do I check if a token comes before another in a fil?

I am trying to find among a bunch of files who hold SQL statements whether we ever SELECT from a table before we INSERT into it. It seems it should be a one-lin

strip all strings in list of specific character

I have been looking for an answer to this for a while but keep finding answers about stripping a specific string from a list. Let's say this is my list of strin

How to display small numbers in chart js tooltip?

I am working with chart.js and I have data than is very small like this (0.00000023120098, 0.00000887272934, 0.00000343234). The problem is that, the tooltip on

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?