Latest Questions

Nodejs concatenating numbers as a string

This function is triggered on button click nextPage() { this.tweets = [] this.$route.query.page += 1 this.getTweets() }, What it's doing is resetting arr

How to you check whether Hardhat is installed locally or globally. And how do you uninstall a global Hardhat installation?

How do you check whether Hardhat is installed locally or globally. And how do you uninstall a global Hardhat installation? Thanks!

Compute a function whose arguments stored in rows of a data frame in R

I have a very long function whose arguments take in different threshold values for different variables and give an event study result at the end. I want to comp

AttributeError: 'list' object has no attribute 'i_sd'Which function can be used to get values from a Callback Class

The callback is called when specific events occur in an environment (e.g. at the beginning/end of a reset and beginning/end of a step). I have written a stub of

React - .map returning not a function?

I was following this example: https://reactjs.org/docs/faq-ajax.html But my code is returning weather.map is not a function? function App(props) { const [wea

Sql Database sync error in azure Database Sync Group

I'm trying to connect my local database with online database. I've followed the full procedure but Database Sync Group is showing a log error of following type

next-sitemap "Error: Expected ';' on Windows 11

Trying to get a sitemap made for my Next JS site using next-sitemap. From my research, next-sitemap doesn't work on Windows without including cross-env. Any sug

How to get right msg.sender calling from contract instance a.foo() and have all secure from 3rd parties

I got stucked in thoughts guys and I need bit of clarification to move it forward. (Description is about real problem, code is for best (I hope so..) understand

How to know if the file end with a new line character or not

I'm trying to input a line at the end of a file that has the following shape "1 :1 :1 :1" , so at some point the file may have a new line character at the end o

How to save SHA256 object to a file?

(I'm doing all this in python 3.10.4 using pycryptodome) I'm trying to do this process: Get a hash of a file Save that hash somewhere Load that hash and perform

Azure Devops capture the user who triggered the pipeline `

Morning , I have a question , is their a way to capture who triggered the pipeline , it will happen automatically when some one commit in my master branch in GI

PHP | Parse specific german date format to yyyy-mm-dd

Hey I am struggling with a date format . I need to adjust the display of some dates in a wordpress project. Its not a duplicate of This question I tried the sug

How can I use jinja2 in python sanic?

According to my search. There are two main views: Install and use the sanic_jinja2 Just use the jinja2 But above two methods didn't work to me(Maybe it's my fau

DB2 Querying a table for both DISTINCT and COUNT(DISTINCT)

I'm trying to query distinct Update_Date but also return a column that counts the total number of distinct Update_Date The table right now (Only Update_Date is

Jetpack compose - How to do popBackStack with arguments?

I have this scenario in which the user clicks on a button in composable A then selects an item from the list from composable B and selects another item from the

What is meaning of # in espeak\dictsource\en_list

I'm trying to convert English sounds to IPA symbols in code. I came across espeak, which has good collection of words with corresponding sounds for English in

How many VM's we can connect to Azure File Share?

I have gone through the documentation of Azure file share. But didn't found how many VM's we can connect to this file share. Is it unlimited?

Why my menu is merging with the input field ? I want it to be responsive

I am new to HTML CSS, can anyone tell me what am I doing wrong? * { box-sizing: border-box; margin: 0; padding: 0; } :root { --pink: #ff6161; --w

Where should I put my question mark in Swift?

I can see in the Apple documentation, when if let, the ? is used after as. But I tried this and the compile would not complain and the code behaved the same as

Need help understanding Fix type in Haskell

I didn't have any problems understanding how fix function works in Haskell, but I just can't wrap my head around Fix data type. I believe I get the idea behind

Why does a checkbox get checked after another checkbox above gets removed?

I have an array of my clients' pending requests that I iterate through, creating a div with relevant information for each pending request. Within each div, ther

Shopify asset not loading

I am trying to include a JavaScript file (named StoreLocator.js) from my Shopify assets by using the URL filters as explained in the Shopify documentation (see

How to display Multi select Listbox as dropdown in ASP.NET web forms

I have the below code implemented, but the desired output is not rendered. The list boxes are used to filter the grid view. I can filter the grid view but the f

How to create a button which if it's clicked, it expands and shows details?

I have this table, where there are several entries with an orderID. To show more informations about the entry, you can click on the but Is this think doable w

question regarding max value in an array with recursion in JavaScript

Currently, I was able to get the following function to retreive the max value from an array through recursion const max = ([a,...rest]) => !rest.length || a

What is image data layout used in DNN models?

RGB images can be stored in memory in different ways, e.g. see link below planar and interleaved: http://avitevet.com/uncategorized/when-to-use-it-interleaved-v

Resource style not found even though I already remove it and not using in Styles.xml

I created this in Styles.xml <style name="Content.Right"> <item name="android:paddingTop">60dp</item> <item name="android:paddingLe

How can you access hidden published ms-project .mpp files

I was writing a simple script in VBA for batch updating project info posted on Project Web App. I've stumbled on a problem which seems unsolvable to me though,

How to rank a variable in a column based on a conditional, when there are NAs in the column

I have a longitudinal data set with two people in which the rows of data are numbered as 'episodes', and some episodes have a test 'result'. The goal of the bel

I am running my code on google colab. Am getting RuntimeError: CUDA error: device-side assert triggered.Error is showing for torch.manual_seed(seed)

import random total_steps = 1 seed = 42 random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) Below is the error am getting RuntimeError Traceback (mo