Latest Questions

Using User Set Variables to Create an Instance of a Class

I was wondering if anyone had any advice on how to take a user input from a std::cin and enter it into a variable. The variable would be used to add an object t

how to pass props through a Link from react-router-dom?

I'm trying to pass state using Link <Link to={{ pathname: `/contact/:${contact.id}`, state: { contact }, }}> And this is whe

jsp page shows 404

Got a simple project setup, my goal is to load a jsp file: I got my Controller with a RequestMapping for a jsp file. package com.example.registrationFrom.contro

Issue with looping through elements in an inner array

I'm having an issue looping through a set of css classes when an iteration of an outer loop is being executed. What I'm trying to do is to append all the paragr

React typescript - Gettting type error when trying to assign React's key prop

I have simple code as follows: /types.ts export type TodoType = { id: String task: String completed: Boolean } /components/Todo.tsx import { TodoType }

Jest not returning exit codes

I've trying to run tests for my Express + TS application through GitHub Actions But even if my test fails, it seems Jest doesn't return a non-zero exit code so

net::ERR_ABORTED 431 (Request Header Fields Too Large)

my problem on on site when im using npm start : Mail_Sende:25 GET http://localhost:3000/mateu52/Mail_Sender/static/js/bundle.js/ net::ERR_ABORTED 431 (

How can I specify a generic MutableSet, that demands existence of a update method, in a typed signature (Python >3.9)?

I have written a library. Some of its functions and methods operate on sets of Hashables, e.g.: def some_function(my_set: set[Hashable]) -> None: ...

how to paste a constant block of code in vscode

The requirement is to create a constant and save it in vscode and assign a shortcut to it and whenever the shortcut is used the stored block of code gets pasted

Using Xamarin.Forms and C#, how to connect via bluetooth to Arduino and receive message?

I'm looking all over the place, and I can't find a description of how to do this that I understand... I have to make an Android app in Xamarin.Forms, that conne

Sprint boot database polling or listen database updates

I have 2 Spring Boot applications let's say named App1 and App2. There is a table in oracle DB with status column. when App1 runs a scheduler, it will update t

React-native Expo SpeechOptions

I would like to use these expo react native events (onPause, onResume, onDone,...) which can be found here: https://docs.expo.dev/versions/v44.0.0/sdk/speech/#s

Elasticsearch DSL queries - optional should terms & scores

I'm pretty new on Elasticsearch world and I might be missing some concept. That's the scenario I'm not understanding: I want to find a doc from the following cr

Communication between multiple docker-compose projects

I have two separate docker-compose.yml files in two different folders: ~/front/docker-compose.yml ~/api/docker-compose.yml How can I make sure that a container

Branching out a function

I've built a function that tries to extract some information from a string. Before: function (string) Now, I want to refactor that function by receiving two ext

Flutter StreamBuilder shows Firebase data even when I'm offline

This is not a problematic question, it was asked because just wanted to know what's actually going on behind it, I can't find an answer in any documentation. Wh

Unit test Azure Event Hub Trigger (Azure Function)

I have an Azure Function which is an EventHub Trigger. The events are being processed in a batch (EventData[]). [FunctionName("EventHubTriggerCSharp")] public a

How to use Sweet Alert to send ajax DELETE request in Rails?

Problem 1: When I click the link, the sweet alert modal pops up for a split second, disappears, and redirects to route. Not sure why the modal is only flashing

How can I recognise a 'second' tap on a segmented control in SwiftUI?

In SwiftUI, I have a Picker with a .segmented style that I use to select how a list is sorted. What I want is for each segment of that picker to reverse the sor

Azure REST API to recover Azure SQL Server

I am looking at Azure SQL Server & database DR options. It appears that it is possible to recover a deleted Azure SQL Server: https://docs.microsoft.com/en-

What is "internal vertical borders" / "internal horizontal borders"?

The setBorder() has vertical and horizontal arguments, what are these exactly?

How do i handle phone number, address and email in nextjs [duplicate]

Currently I am using nextjs/Link for handling tlf number and email inside of a contacts section in my footer. I use href property to send the

Bootstrap's 'active' buttons not working properly

I'm working on this website here: https://shmoss.github.io/Gibbs-Lab/index.html As you can see, I have a nav-bar with buttons for navigation. Normally, I set a

Publishing status: Rejected - Google play store app review

I am facing the below issue, I have previously declared the permissions but since i do not need the permissions any more, I removed the permissions from the man

Certain number question being missed in regex

I have the following if statement that removes the first instances of a number followed by the period. However, I am noticing it is missing to catch some of the

mypy fails for numpy sum

This code snippet works: py -c "import numpy; print(numpy.array([[1,2,3],[4,5,6]]).sum(axis=0) % 2)" [1 1 1] But mypy gives an error: py -m mypy -c "import num

Angular: access variable which is declared inside subscribe function

I'm trying to access a variable inside a subscribe function but it returns to me undefined, please any suggestions: export class InboxmanagementComponent implem

Javascript object not adding new key value pair

Javascript object not adding new key value pair of sample and namespace. Empty object is return const { lruCaches } = state console.log('here123456') lruCaches[

How to ensure that the labels of two axes do not overlap?

I have some questions about labels of axs. Firstly,I have 2 subplots which can be seen below. As you can see, labels of first ax are overlapping with the second

why does only running cmake -S. -Bbuild twice works?

Im using llvm in my c++ project that I build using cmake. when I run this command cmake -S. -Bbuild for some reason findpackage() doesnt find llvm and I get th