Latest Questions

code ERESOLVE when running the command npm install

I'm new to ReactJS and tried to run a code in VS Code using npm install command and this error pops up: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resol

Can not deploy my contract on ganache-cli using ETH mainnet fork

I used ganache-cli in combination with my Infura key to fork ETH mainnet so I could use the Uniswap router in my development environment: ganache-cli --fork htt

Hot Chocolate Graph QL.. Extend An Object With Existing Resolvers c#

Is it possible to pass an existing resolver into an Extension of an object method, so I can reuse the resolver? I am getting "Unexpected Execution Error : "No s

Keep Training in Ray RLLib even if environment throws exception

Sometimes I have environments, which can run into unhandled situations after choosing several bad actions, which yields exceptions. Instead of crashing the agen

How to import shared proto file into local one?

I have project Protobuf.Shared which contains shared proto files. This project is packed into NuGet package. Project structure: - .nuspec - proto - shared.prot

Webscraping sale prices from a grocery store- Am I on the right track or is there a simpler way?

I am new to all of this, and this is my first real coding project so forgive me if the answer is obvious :) I am trying to extract sale items from [my grocery s

Mock 'S3' feature of 'aws-sdk' (nodeJS and Jest)

I need to test a file in charge of retrieving data from S3 through the 'aws-sdk' (nodeJs + Jest). The file is: const AWS = require('aws-sdk'); let S3 = null;

how to delete resources with terraform?

set up - a lambda project ( see file structure below) in terraform . in my gitlab-ci, in a build step , lambda code is zipped up at the root of the directory. e

SQL Server 2019 - Pivot Result on multiple column

Please check my query and let me know what to do to get the proper result as expected - query: With ChemReq (AmdCode, ItemCode, itemcode1, D1K,D2K,D3K,D1,D2,D3)

How to install google consent script for CMP banner?

window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("consent", "default", { ad_storage: "Denied", analytics_storage:

In SvelteKit, is there a way to cancel a popstate event if user state isn't saved?

I have a component that allows a user to edit their state. This triggers a notSaved variable. I have a beforeunload event handler to handle reload and exiting t

Error: no suitable method found for add(int,int)

ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapter(adapter); ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapte

Need help finding the smallest number and ending the program with -1

This is what I got: H = int(input("Enter a number or enter -1 to end)")) smallest = H counter=0 while(True): number = int(input("Enter a number: ")) if

Un-escape specific characters when serializing to JSON in C#

I have a simple task which is to unescape an apostrophe when serializing to JSON using System.Text.JSON: using System; using System.Text.Encodings.Web; using Sy

confluent 5.0.1 upgrade to 7.0.1

Trying to upgrade confluent I have checked upgrade link: https://docs.confluent.io/platform/7.0.1/installation/upgrade.html I found inside it said in the Prepar

Templates do not show image. Django

Here is what i tried to do: in my settings.py: TEMPLATES = [ ... 'OPTIONS': { 'context_processors': [ ...

Replace every sequence of letters with a random word

I created a list of random words: library(OpenRepGrid) list_of_words <- randomWords(100) list_of_words <- gsub("[^A-Za-z ]", "", list_of_words) list_of_wo

Proportional sizing using equal heights missing constraint

I would like the blue container view to be the same height as the orange container view. I am using proportional sizing to do so (all of these are within a vert

Drawing a visualization of system capacity (pipe flow?)

I need to reliably and repeatably visualize a system which is like pipes that can pass a certain amount of fluid per unit of time. The real system is a therapy

selecting columns which are NOT of a specific type SQL

I want to select all the columns in BigQuery that are not of the type "TIMESTAMP". I have written the query which returns such columns which is: SELECT COLUMN_N

Python 3.9 - Connect to memsql

I am trying to connect to memsql (running as docker container - cluster-in-a-box). I am using Python3.9. Tried with Python 3.8 as well. Here is the code snippet

Drawing Lines From Pivots

I am trying to draw a trend line connecting previous pivot highs and previous pivot lows IF the last pivot high is higher than the previous pivot high AND the l

Dataproc: Can user create workers of different instance types?

scenario: master: x1 machine type workers: x2-machine type, x3-machine type. For the above scenario: AWS EMR instance fleet allows users to create different wor

Best Programming Language For An Application Installer [closed]

Alright I am new to programming and I want to make a game installer. Do any of you know what the best programming language for an .EXE applica

Not able to open Control Center UI on localhost

I am trying to understand confluent kafka and do some hands on with it Trying to setup on my local machine . I have followed the instructions in this doc : http

WPF Cefsharp google login

I know that google login for cefsharp has been blocked for long time now, but is there any way to bypass this for example calling a actual chrome browser for th

SSRS - Parameter(Multi-Value) Passed to Stored Procedure returns last value

I've used the join function to create a string out of an array of variables. =Join(Parameters!Variable.Value, ",") Let's say that the expression is using a par

Unable to create converter for class com.anyarscaner.model.ResponModel

I created the Retrofit API function, but it's an obstacle like the following. I corrected it yesterday, but after today it returned to the same problem. Here's

Why materialSkin.2 buttons are kind of fixed design winforms?

i have a problem when i want to edit a button from MaterialSkin.2 winforms, why this is happening, are they fixed from developers or what

How can I bind my selectAll button in Angular to an $event change?

May I know how to trigger the $event on the click of my selectAll button in Angular? My code are as follows: <div class = "col-md-auto" id = "container">