Latest Questions

When making an API call to a Node.js REST API, how can I view which portion of the code it uses?

I have a REST API that was built with Node.js and Express.js. When making an API call, how can I view which portion of the code it uses? (without me having to i

Send csv file in pytest test using restframework ApiClient

I'm trying to test my view which requires csv_file and one parameter in request, but getting error "details": {"csv_file": ["The submitted data was not a file.

MongoDB, get documents by a field, and mergeObject from another collections grouped count

Okay, the title is a bit too verbose and complicated but I have no idea how to put it any better. So here's what I have ModelA ModelB that has reference to Mode

Mp4 segments playback in buffer gets stuck in Chromium browsers

I'm facing the following issue, Ive got a bunch of .bmp files and a .wav file that I convert to a mp4-file using the following ffmpeg command. ffmpeg -i <inp

CKEditor getting displayed twice

I am trying to integrate CKEditor with antd in a React application. This is my code: <Form {...layout} form={form} name="control-hooks" onFinish={onFinish}&

How to scale one specific Rest API without microservice?

I am developing web application backend with Spring where client and server talk through Restful APIs. There is a specific API where I assume the hit will be mu

How to concatenate two strings in C++?

I have a private class variable char name[10] to which I would like to add the .txt extension so that I can open the file present in the directory. How do I g

Removing tracked time from estimated time on AC to show correct workload

In the workload tab, that AC subtracts the tracked time on a task so only the remaining hours are shown as left. Current situation: We create tasks with an esti

Create TensorFlow tensor from two smaller tensors using boolean mask

I'm using TensorFlow and would like to create a 1D tensor t1 from two smaller tensors t2 and t3, where len(t2) + len(t3) == len(t1) and a boolean mask which ind

Unable to Transfer spring-boot-starter-parent from maven repository

Below is my pom.xml. I am getting exceptions while fetching the spring-starter-parent from maven repo. what is it that I should specify in my relative path : Wh

React scroll to element (ref current is null) problem

I have a problem I'm not able to solve. The app got a component where a do looping array and making multiple elements off it. Then I want to make buttons in ano

HLS player is not streaming

I have a stream url which is getting from server. The streaming url is working in android and web, but whenever I try to play that ham getting a black screen wi

Add body to luasocket POST request with generic form?

From https://w3.impa.br/~diego/software/luasocket/http.html, there are two ways to make a request, simple and generic. I have gotten the body to work with the s

Create JavaScript event triggers for Google Analytics 4

Articulate Storyline is a software for creating interactive learning courses. I can execute JavaScript triggers in storyline files to track button clicks with G

Material doesn't apply properly to the mesh Unity

So I created a mesh (parallelogram) in code in Unity and i have a prefab of this object with mesh renderer, I tried to apply material 1 to this renderer 2 and i

Unable to find record, no key specified

I am coming across this infamous error in my Delphi application. In my ADODataSet, I have set my CommandType to cmdText, and then set CommandText to SELECT * FR

ERROR `input` must not start with a slash when using `prefixUrl` | Changing Wordpress URL in Gatsby Error

When I move from local wordpress headless CMS to azure headless CMS I get the following errors: ERROR input must not start with a slash when using prefixUrl I h

Health Kit: How to set 'totalEnergyBurned' for workout?

Today I worked for the first time with Apple Health Kit and successfully saved a workout in Health with the basic informations (activityType, start and end). My

React + vitejs + storybook setup

I am trying to setup react that is bundled with vitejs and storybook after running the setup command as per vitejs docs storybook vite builder storybook runs bu

How to connect azure synapse and an enterprise git repo using personal access token?

Im trying to link my git repo to an azure synapse sandbox and Im facing this error Failed to list GitHub repositories. Please make sure account name is correct

Mutually exclusive types in a function signature

Is this possible to achieve with conditional types in TypeScript? type Type1 = { field: string, } type Type2 = { field: number, } // I would like to make

ValueError: You must pass a freq argument as current index has none

I'm using pycaret.time_series alpha module but I have this problem avec launching my experiment. I think this is internal to the module. Can anyone help ? `from

How to implement authentication by use of JSON Web Tokens (JWT)

I'm trying to implement authentication by use of JSON Web Tokens (JWT).I searched a lot in google and GitHub but found nothing useful. Is there any pre-built we

Using Nuke build to push a tag to an Azure Devops repository

I'm trying to figure out how to push a tag after a successful build back to the azure devops git repository. Whether I'm just asking the wrong questions or goi

How to make button which swaps out the title with an input field that allows the user to edit and save the title

i'm asked the following question. "Each article in the array should have an edit button which swaps out the title with an input field that allows the user to ed

How to set cmake, in order to add txt files into working directory as resource?

CMakeLists.txt cmake_minimum_required(VERSION 3.8) project(untitled) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp) add_executable(untitled ${SOURCE_F

Spring boot - adding a secondary data source causes nothing to get save during a integration test

In a project I am working on we added a secondary data source. This meant adding the entity factory and the transaction manager at the @EnableJpaRepositories. W

Why does SwiftUI View background extend into safe area?

Here's a view that navigates to a 2nd view: struct ContentView: View { var body: some View { NavigationView { NavigationLink {

How to export image links in different columns in WooCommerce?

I want to export the image links of my products in different columns. For example like IMG1 IMG2 IMG3. So i wrote this code below (Not Worked): foreach( $articl

How to capture an authorized payment using PayPal Checkout-Java-SDK?

Docs provides HTTP requests as example to "Capture an authorized payment": https://developer.paypal.com/docs/archive/payments/authorize-and-capture-payments/ Ch