Latest Questions

Implement Func<T,TResult> delegate in Typescript

Fairly new to the node ecosystem and Typescript. I am looking for how to implement an abstract delegate Func<T,TResult> in Typescript. A C# Example of wh

How to store custom java objects with ArrayLists in Firebase realtime database

I am trying to store custom java objects in Firebase. These objects have ArrayLists and other object references inside them such as Location. When I try to writ

vuejs3 : can't import axios globally

I can import and use axios in a component: import axios from 'axios' export default function usePostLogin() { const login = async (url , data , callback) =>

Bitcoin / DefiChain RPC rawTransaction

Hello i try to figure out how to encode normal rpc calls in an raw transaction. Till now my problem is that i dont know what the hex must contain as string. f.e

java script function for filling a list

I wrote a function that enters personal information into empty list and save them. I want to add one by one but if first name and last name have entered before,

TypeScript. The function accepts two different objects, but returns one object

I am beginner in TypeScript. I am developing a home project - a weather application, I have two requests to the server, the responses are almost identical, exce

How to Make Input Checkbox Update Price Total Using Values + Include Additional Fees for Total?

So I made this basic checkbox price app that updates the food price whenever you click on a checkbox option https://codepen.io/shodoro/pen/GRQNXyq However, I ha

Removing values from an 2d array

I have a 2 dimensional numpy array and want to remove all 'false' values. A nested array with different lengths should be created. [['false' 'value1' 'false' 'f

Where is the breakpoint code located in the React export from Anima?

I followed the steps to add breakpoints using Anima's Figma plugin and SHIFT-selecting the three desktop, tablet, and mobile frames. Then I clicked "save" and s

how to use Google Cloud Translate API for translating bulk data?

I have a csv file of several thousands of rows in multiple languages and I am thinking of using google cloud translate API to translate foreign language text in

CosmosDB return data from external API on read

I am attempting to write an Azure CosmosDB integration (Core SQL Api) that integrates with an external service to provide some of the query data. As an example,

Not Implemented Error in Django Channels Layers

I was following the Django channels tutorial to create a simple chat application. But while trying to check if the channel layer can connect to Redis, I get thi

Error install Charm Crypto 0.50 Error:---> make: *** [Makefile:29: all] Segmentation fault

Charm installation problem solution needs suggestions. Hello, I am not a well good expert I have to face the problem by installing charm crypto 0.50 documentati

pyautogui, locate on screen doen't work in linux

I am using linux, and it returns none instead of the co-ordinates. import pyautogui as p a=p.locateCenterOnScreen('like.png',confidence=.5) print(a) Did I di

ORTools CP-SAT Solver. Constraint to require two lists of variables to be drawn from the same set of integers

I have two lists of variables M and T. I would like to create a constraint where the set of unique values between M and T are identical. From the solution varia

Reading filename using regexp in Bash

I am writing a bash script that calls an external program which generates a zip file of the form ########.zip which the '#'s# can be any decimal digit. There i

django removes "is_staff" permission if I try to login

I have a pretty strange situation within my django project. I have a LoginForm where a user can log into the website. I am using django 3.2.12 with some other l

How to add border to a circle image in DevEco Studio?

Whenever I am using border-radius property the border to the image is not coming but when I am not using the border-radius property the square image is coming a

How should I fix it to run epiR success

I run install.packages(epiR) and library(epiR) and then it said the download source packages are in C:\\Users\\user\\AppData\\Local\\Temp\\Rtmpq2xPjc\\download_

Nuxt 2 & Vuelidate 2 not working properly

I have installed vuelidate 2 to validate forms in my NuxtJS project. I followed instructions for installation and setup according to vuelidate documentation. Th

Create nginx "sites-available" and "site-enabled" files along content using terminal commands

I have been assigned a task to automate the deployment process using digital ocean droplets. I am using doctl for creating the subdomain "A" record from my term

Specify runner to be used depending on condition in a GitHub Actions workflow

We have two runners, one for running production jobs and another for running non production jobs, but I am unable to do that using a workflow level environment

Hi, If we want to show/hide both tabs and fields in AEM, based on the style selected for a component

Like for my one component there a two styles added , if style one is selected then I have to hide 1 field in cq:dialog and if style 2 is selected then I have to

How to assign IPV6 on Google Cloud VM instances

Good day, I am new to google cloud plateform please help. How can i assgin ipv6 for my instance on google cloud, i have created an ipv6 but is says not in use j

How to create xpath that matches both conditions present in an element?

Description: I need to create an Xpath that matches both the condition present in the div class = 'item_inside' Explanation: Imagine There are two item_inside c

Nodejs readstream, what value should I use for highWaterMark

I have a copy function that uses createReadStream and createWriteStream to give me progress events during a file copy: createReadStream(source, { highWa

Can't get all table elements using selenium webdriver

I'm trying to get all information from this website using Python/Selenium: https://bitinfocharts.com/top-100-richest-bitcoin-addresses.html I have successfully

How can I prevent Undesired data from being added into the Queue?

I'm wrote my code using combination of stack & queue data structures. My code is working, but I have a problem in the main() method. I'm using a loop to rea

Make Screen Reader read out a prefix text along with DOM contents when using role=option

I have an outer div of role="listbox" and a few inner divs of role="option". When I use keyboard up-down to move focus within the elements of the inner div, it