Latest Questions

looping through an array of objects that contains three key, value pairs

I have these objects, which could be in an array, like in the example or a database: [ { "payer": "DANNON", "points": 1000, "timestamp": "2020-11-02T14:00:0

Using 2FA authentication with classic ASP always returns an invalid response

I'm using this code from GitHub https://github.com/as08/ClassicASP.TwoFactorAuthentication I downloaded the demo site, installed what I needed on the server and

type 'Future<dynamic>' is not a subtype of type 'String' Invalid radix-10 number (at character 1) Instance of 'Future<dynamic>'

I am having a problem of reading a number from firebase. I have no problems writing the number to firebase but as soon as I close the app the numbers displayed

Using an async function in Array.find()

It seems I'm unable to use an async function as the first argument to Array.find(). I can't see why this code would not work what is happening under the hood?

Having problem in connecting to remote MongoDB Server

I tried to connect a remote MongoDB Server running on Ubuntu using MongoDB Compass on Windows. But I have problems connecting always as the IP of the Windows ma

Why does not working elasticsearch auto mapping when use number without quotes in json

When I try to initially POST data in index firs time POST /my-test-index1/_doc/ { "foo": { "bar": [ "99.31.99.33", 862 ] } } i receive error { "erro

Python GUI with Multithreading - how to manage threads

I am new to Python. I have been trying to develop a GUI based tool to monitor a set of databases. I want to pull data with multiple threads to make the DB reads

SwiftUI text field orphan on macOS

I have a text field like this Text("Hello, one two three four five six seven eight!") .frame(width:270) .border(.blue) When it

How to make an image fill the background of a div? (using img tag in the div itself)

This seems like a simple problem but I'm having a bit of trouble finding a solution. I have cards on my page and I simply want the image (in the img tag which i

Invalid entry CRC in Spring boot

Hello so today I planned to do some work but now, all my projects are --- I dont know what happened, the same errors occurs in intellij, vscode. Can someone gui

Explain this with example

HP@LAPTOP-ASEAM8KR MINGW64 ~/Desktop/udemy_laravel/blog $ php artisan tinker Psy Shell v0.11.2 (PHP 8.1.4 — cli) by Justin Hileman $posts = App\Models\

Used IDisposible for Object class but not returing the result to Ajax success in C# MVC [duplicate]

In our application for the last few weeks we are getting memory exceptions. W​herever we used DataSet & DataTable​, we used th

How to set the resolution of a Raster using gdal.Grid in python 3?

How to set the output resolution of the raster generated in gdal.Grid? I am using the code below, which produces a TIF with very large cells (~70m) however the

Mac terminal not valid context

I'm a new Mac user. I'm receiving this error every time I open my terminal and I'm not sure what its about. I was hoping someone can help me with this issue. Th

problems counting rows and columns with no spaces in a matrix

Im trying to find the number of rows and columns in a matrix file. The matrix doesn't have spaces between the characters but does have separate lines. the sampl

SwiftUI List Selection: Have to Tap Twice to Deselect Item Initially

Why do you have to tap twice to deselect "Item 1"? Am I doing something wrong? If not, is there a workaround? It happens both in the simulator and on my iPhone.

Add Multiple prefixes in order in Excel

I don't know a lot in Excel but I want to add Multiple prefixes in Excel and let them loop until the number of cells ends. I used this Formula, but it picks the

Is implementing a direct Assembly macro in a programming language a good idea? [closed]

I'm making a compiler for a programming language, and because I needed to directly write Assembly code in my language for my tests, I created

ANTLR4 error recovery issues for class bodies

I've found a strange issue regarding error recovery in ANTLR4. If I take the grammar example from the ANTLR book grammar simple; prog: classDef+ ; // match o

Using this JS function, how can I store in a SQL database TMDB fields?

I'm currently developing a project that will be Client on Java and Admin on PHP. For this purpose, I would like to store the API's data in a SQL database, so th

How to write a recursive function to calculate the frequency of characters in a char array [duplicate]

My goal is to write a program to determine the frequency of characters in a char[]. The test case for my program is written below: Expected: E

Socket.IO cannot establish a connection

I use socket.io-client for Javascript server on JAVA and when I enter address 'ws://10.201.223.67:9902/' the request is not by 'ws' but by 'http'. It returns

How to use S3 as storage for Loki logs?

I am fairly new to Kubernetes, Helm and Loki. I have deployed Loki-stack on my minikube cluster using Helm charts and I am trying to use S3 storage as storage f

chromedriver Selenium in vba

I am currently struggling with coding and need help from an expert. Help. There are a large number of classes ("df-table") on that link homepage. The first clas

FastAI : Getting Prediction of Image from Learner

I want to be able to predict the Class of a Single Image from the Learner and i always get an Index Out of Bound Exception . Here is the Code data = ImageDataLo

Findall vs search for overwriting groups in Python

I found topic Capturing group with findall? but unfortunately it is more basic and covers only groups that do not overwrite themselves. Please let's take a loo

Errors about scanf and printf expected types

My issue is coming from the %c name input, I am getting an error that it is expecting type char * but has type char * [15] for the scanf function. I am also ge

Who i can create Developer and marketing fee with burn for my smart contract?

I did a lot of research and looked at different classes but could not create anything similar. Is there a project property that I can use?

How to remove Github PAT from Gitlab?

I recently imported a project from Github to Gitlab (Uni Owned) and I had to put my Github PAT in when importing. Now every-time I select New Project -> Impo