Latest Questions

Java CompletableFuture allOf approach

I am trying to run 3 operations in parallel using the CompletableFuture approach. Now these 3 operations return different types so need to retrieve the data sep

C++: How to do a matrix multiplication with pointers? Error: argument of type int is incompatible with parameter of type int**

I need to multiply two matrices, I have a header file where the function product is, and I need to call it in main. I am not very familiar with pointers, so I d

deploying cloud functions on firebase

I need to deploy a cloud function on firebase to set admin role: this is my code: typescript "use strict"; import * as functions from "firebase-function

MUTATION_REQ/RSP message keep being dropped by Cassandra Cluster

I have a Cassandra cluster on my development environment. Recently I did some write request testing, and found many "MUTATION_REQ/RSP was dropped" message from

React Component Not Rerendering - Base Class

I'm having an issue where a component isn't rerendering. There's a base class that's needed to be overriden in order to perform testing. I'm expecting it to fi

Large Paragraph where in each line if it exceeds certain length , should go to new line using Java

Need help on solving below usecase using Java where in the below paragraph A@123@456789@10111213 B@123@456789 C@123@456789@101112131415 D@123@456789 E@123@4567

Strip all the text from a specific node and remove all tags from xml using xslt1

I'm trying to strip all tags from a xml doc and i need to strip all text from a specific node only. For more clearity see the below example: <root> &l

How to set 'charset' for DatumWriter || write avro that contains arabic characters to HDFS

Some of the data contains value in Arabic format, and when the data is written, reader code/hadoop fs -text command shows ?? instead of Arabic characters. 1) Wr

How to get autocomplete and suggestions in Jupyter Notebook in VS Code?

I'm trying to code on Jupyter Notebook on VS Code, but there are no code suggestions nor syntax highlighting! I am currently running python 3.10.

Input type file and button of different size in Bootstrap 4 html

I'm using Bootstrap 4 in html and I have an input box made of an input bar and a button. I set the size of the button to "lg" (large) but I can't set the input

Flatten list of dictionaries in dataframe

I'm pulling data with Facebook Insights API and there are nested columns in the data I pull. I tried separating them by index but failed. column I want to split

How can I plot Gaussian pseudo-random noise for N = 2?

How would one plot the Gaussian pseudo-random noise when N = 2 from the given code below? I don't know how to incorporate N into the formula in the code. I need

Speed Up AutoComplete Popup in MySQL Workbench

When typing a query into MySQL Workbench, the autocomplete suggestion popup is so slow. After typing a couple letters of a column or table name, I have to pause

BeautifulSoup getting href of a list with ++ 10k records

BeautifulSoup getting href of a list with ++ records I have the following soup: <a href="some_url">next</a> <span class="class">...</span&g

How to color navbar with width 100% while inside bootstrap container

I have this code https://jsfiddle.net/kxrmcpzn/ <!DOCTYPE html> <html class="no-js" lang=""> <head> <meta charset="utf-8" /> &

Code that can Identify the 6th day of the Month excluding weekend

Please can someone help me? I need a code that can identify every 6th of the Month on a rolling period excluding weekends. i would need the code to send an emai

React NPM inefficient regular expression complexity in nth-check

I googled lot about this issue. But could not find this issue belongs to which library? How to fix it? any help will be appreciated

Variable was never mutated...or Constant being used before initialized

So I'm wanting to get jsonMeals data back and use it outside of this function. However it seems no matter where I place my json variable I get an error. Changin

Rancher failed to launch with the error k3s exited with: exit status 1

I am running rancher latest docker image on Mac M1 laptop but the contact failed to start. The command I am using is sudo docker run -d -p 80:80 -p 443:443 --pr

CUDA cuDNN: cudnnGetConvolutionForwardWorkspaceSize fails with bad parameter

I am currently trying to implement a very basic 2D convolution using CUDA cuDNN between an "image" of size 3x3 and a kernel of size 2x2, resulting in a 2x2 outp

How to send the URL Swift to javascript iOS

I'm working on voice recording functionality.Voice recording has been done through webView now when the user clicks on voice record recording starts, and making

How to reset your App Engine standard docker image

I'm running a small app in a NodeJS14 App Engine standard environment. The app is currently only around 30MB in size, but the version in app engine is currently

ASP.NET Core - Entity Framework Core - Drop Down List - DbContext SaveChanges Issue

I'm new to using EF as well as ASP.NET Core. I'm working on a simple web application and I am getting an error when I go to save a new record. When the DbCont

c# - elsa workflow - child workflow - how to get workflowInstanceId of parent workflow

I have an elsa workflow parent which is calling some child workflows. Every child workflow has some custom activities (based on SendHttpRequest elsa activity).

apache flink to process only x% of events in a tumbling windows

I have an AWS kinesis data stream continuously receiving events and these events are sent to kinesis data analytics to get metrics over a tumbling window using

flutter on click download image from firebase

Here, when I add a new picture, it appears here and it can be opened to a full screen, but when I click I want to download the picture that I long pressed on to

double quotes on all keys and all values in athena query result

Preface: I defined an Athena table in AWS, using s3 as the source (defined it manually without glue crawler). The files contain data from Eventbridge, and each

How to use custom authentication class inside ListAPIView

I am using react components and to test my code I wrote a quick custom authentication class and defined in the settings for the rest_framework as follow: DEFAUL

"Undefined Symbol for architecture arm64"

Im new to swift programming. Im building a tic tac toe app for practice. when I want to run the app, the build fails with the error message: Undefined symbols f

how to monitor dangling pointers that points to leakded memory?

lets think we have a code like this : int * ptr = new int; int *nptr = ptr int * ptr2 = new int; int *nptr2 = 2*nptr+ptr2; delete ptr; delete ptr2; ptr =