Latest Questions

I can't get the code to say reached, anything I try to assign to the array position returns [] instead of the current state (index)

let level = 1 const buttonColors = ['red', 'blue', 'green', 'yellow'] const gamePattern = [] const x = gamePattern.slice(gamePattern.length - 1, gamePattern.

How to set random colour in a discord.js embed

I have a discord bot and it works perfectly. My objective is that when I send the >help message, the bot chooses a random colour for the embed and sends it.

Invalid parameter number in Laravel Raw Query

I have the following query in mysql select count(*) as aggregate from `promotions` where `supplier_id` = 1 and '2022-03-27' <= promotions.to AND '2022-04-27'

Initialize a Merkle tree of 8 with blank leaves in solidity

I am trying to initialise an empty merkle tree in the constructor my solidity contract I have a merkle tree of 8 leaves, so that means that the flattened out fo

Ionic cordova build aandroid --release aab "Web page not available"

I created a simple ionic app, works good if i build with --packageType=apk and install it to the phone or run with --livereload but when i build it locally with

FastAPI: How to use POST data as variable to trigger another script?

I have written an API on FastAPI with filename api.py: from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Username(BaseMode

InDesign does not apply the paragraph styles correctly even when mapped to the same working paragraph styles

Was wondering if anyone knew why this may be happening? I've set up an InDesign document importing from Word with the correct formatting but then when I import

Can I Append Custom Highlights to an Existing Syntax Without Forking It?

I'm looking to add a few custom syntax highlights to an existing one, but I don't want to maintain a copy of the base one I'm using in its entirety. Is there a

How do you pass data dynamically is a Swift array?

Im creating a tinder like swipe app and I need a new CardData(name: "", age: "") to be created depending on how many profiles I pass through from my database. T

Questions about CTS/VTS and CDD for android 10

We are developing Head Unit for Automotive and using Android 10. We won't integrate Google Play Services on this. I concern that we have to run and pass CTS/VTS

Continous Bag of Words

I have a question related to the continous Bag of Words model. If I have a vocabulary size of 1000, a window size of 2, and the number of nodes in the hidden la

How to scrape similar/related accounts from instagram in python?

I am trying to scrape accounts which are similar/related to a given account in instagram. Querying URLS: https://www.instagram.com/{username}/?_a=1 doesn't prov

Concatenation of array and array element on i'th position

Having some declared types and an array: type player = Orange | Red | Blue | White ;; type piece = Knight of player | Town of player | City of player

$env:PATH different for Windows Powershell and VSCode integrated Powershell

I am using Windows 10. The result of $env:PATH is different for Windows Powershell and VSCode integrated Powershell. I need the VSCode integrated Powershell to

How to trigger phone open with, when done downloading with url flutter

Hi everyone so I'm trying to create an app using flutter that will able the user to download file from URL (might be PDF, image, etc.) I want the app to be able

Why does the freezeWeights fucntion not work for me in MatLab?

I am following the mathswork tutorial for transfer learning on the GoogLenet, and when it comes to the freezeWeights function, it just doesn't work for me, and

WTForms how to use description paramter

I have some simple boolean field and I want to add a short description. I specified a description parameter but it seems like no effecr. How it suppose to work

Resetting the form fields and output of the function simultaneously

I am making a picture frame calculator. Therefore, I'm creating a reset button to clear the form fields of the calculator and the output of function calc() sim

Django allauth return Account Inactive page after login

I am new to programming and I don't fully understand how allauth work and what exactly to do. I have an application where the user is inactive after signing up

How to provide flutter path in next User Account (2nd user) mac?

I have installed flutter and it's working but it doesn't work in another user. For another user I have given it as administration privilege. Do I need to downlo

Convert list of objects to numpy array without coercing objects into array

I want to turn a Python list of objects into a numpy array of objects for easier manipulation of the list, e.g. index slicing, etc. However, numpy coerces list-

How to use ${text} interpolation from a variable in Angular?

This question is about ts inline text interpolation in Angular (not template interpolation for the HTML files). I couldn't find relevant information about my qu

How can I get the output as a scalar value not a vector from this function?

I am writing a function to find the definite integral of any function by using the Midpoint method, the output of this function must be a scalar value, where y(

How to use code auto completion on the notebook of kaggle kernels?

I just run this code in one cell, but it don't work. %config Completer.use_jedi = False

File Selector (.txt)

I've been trying to get a code to list all the .txt files which are stored in a directory of a mobile phone. It's my first time with Android Studio, so it's har

C2059 syntax error: ',' after upgrading to Python 3.9 from Python 2.7

I have a C++ application that runs on Python 2.7, today I decided to upgrade to Python 3.9 but ever since then I've been getting the following error in visual s

Full page with nested flexbox and scrolling

I'm trying to do what I thought was a fairly standard sort of full-screen layout using flexbox, but it's not behaving the way I want. My goals are: Auto sizing

How to replace a specific position of a main grid (array of arrays)?

I'm coding a minesweeper and I got the UI and I can't modify it. I've made the grid for different sizes but now I need to push the mines into it, I created a fu

Convert a short DateTime string with date and time to DateTime

Having trouble with my Android project here trying to convert a string of DateTime into an actual DateTime object. here's the code I wrote: string strDateTime =

Teams Invoke_response being rejected by Teams?

I have a teams app running on a standalone server with an AzureBot setup for message extensions on the app. I've got a class implementing message handling exten