Latest Questions

how to make a shopping cart in javascript

I'm having trouble making a shopping cart using Javascript for a project. I made buttons called Add to Cart, and I tried various ways so that when I click on th

React onclick change variable/state to return different html

I am trying to have html be rendered while x =true, and different html while x = false. I am not sure how to do this in react but I thought of two ways, both wh

Get info from a "incorrect" JSON in Deluge

I am having a bit of trouble with a JSON provided by Zoho Analytics API. When you consult a table, the JSON is not well formed and I am not able to get all the

Preserve Type Restriction between Generic Variables

Assume that we have some class that has an important generic variable T and another class we have two fields, one wrapped, and one not: class Wrapper<V> {

Lazy Load Exception in a foreach loop with try/catch inside

I have the following code: The User is a Hibernate domain. for(User user : users) { try { function() //log the user

Compile all C files in all of the children directories

So, I'm making a game with raylib and I need to compile all the .c files at once. The files are in separate folder inside the 1st one(Like "MainFolder/PlayerFil

Typescript compiles successfully but node cannot find module

Node error Error: Cannot find module 'hello' even though Typescript compiled successfully. Dir structure (note this is almost identical to tsconfig docs for bas

Bitbucket reducing size under 4GB

What do you do if it has remote repo gone over 4GB? My local Repo is now 1.75 GB only after running git gc --prune=now How do I refresh the Remote, to be the sa

How to recover original code file parsed by React build?

I'm working on React old projects and several of them have the native structure, like: ...{ key: "render", value: function () { return React.creat

How to maintain a Websocket connection for my Angular(13.0.4) application across pages? I need to load the websocket url into service not at the start

So this is my web-socket.service.ts where I send the url information to the websocket in order to establish the connection: import { Injectable } from '@angular

How to update and delete a review of a product using nodejs

I am creating a e-commerce app and now I want to update and delete a review of a product using nodejs and database is mongoDB (using mongoose). This is my User

Code exiting when Dynamic Array of class allocated

I am trying to dynamically allocate an array and whenever it gets to the part where it dynamically allocates the program exits. I would rather not use vectors a

Can I modify a failed Laravel (redis/horizon) job payload before retrying?

Locally, I use the database queue driver, but on production, we use Redis with Horizon. Recently, I noticed a job failed due to a tiny issue in the payload (a s

How to align windows side by side?

I have two windows i.e Chat window and feedback window, I want to show them side by side on button click, for eg if chat is open and user clicks on feedback but

'Object(...) is not a function' in Amplify Authenticator in vue2

I would like to use the AWS Amplify Authenticator in a js vue2 app. The manual that I used can be found here: https://github.com/aws-amplify/amplify-ui/tree/leg

ExtensionInstallForcelist with locally stored extensions

Values in ___\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist registry now can not be used to automatically install locally stored extensions? Extensi

Why Is My HTML and CSS Code Not Running Properly On The Internet?

I recently added some text effects to my website in HTML and CSS. It runs perfectly on VS Code live sever but whenever I upload the code files on to my cpanel,

Data reset when moving from one to another fragment using Bottom Navigation Bar

I am using bottom navigation bar dan fragment in my project. When it moved from one to another fragment, I dont want to lose the state or data How can I do it?

Add tooltips on column headers in a React Bootstrap table

<BootstrapTable bordered={false} hover={true} wrapperClasses="responsive" keyField="id" data={products} columns={columns} {...props.baseProps} // ref={(n)

4003: Data item to large sending data from wear os to app

I'm developing a wear os app that needs to send a list of "MyObject" to mobile, data class MyObject( val id: String, val name: String, val locations

Replace SpringFox @Api tag with SpringDoc tag

I have this SpringFox @Api tag: @Api(hidden = true) I tried to replace it with: @Tag(hidden = true) But where is not option hidded=true What is the proper way

Data Mismatch error while using the Update query

I am using the Update query inside VBA to Update one particular column. But I am getting the Data Mismatch in criteria expression error. Please find below the c

How to turn string into json with php and whitespace and padding

I am struggling here. I have looked up many previous answers on this subject and nothing is working. I have the following string and can't figure out how to get

How can I reshape a long dataset into a short data set with multiple variables

**UPDATE My data set contains 314090 observations in the following format: UPDATEDID BRIEF_ID gamma LDR_SUM LDR_Topic LDR_7Code 16 04999120040277 2.879744e-03

SQL Service Analysis Service - Process Full in Visual Studio?

I am working on a SSAS tabular model in Visual Studio which I have imported from our SSAS server. I have noticed that at the top I can select process - process

API for merge and create branch in Azure Devops for TFVC

Warm greetings for the day. Hope you all are good. We are looking for REST API's to do code merge, branch and check-in for TFVC in Azure Devops. Couldn't find,

Passing a pointer to a class member function as a parameter

I have written a small program where I am trying to pass a pointer to member function of a class to another function. Can you please help me and where I am goin

can you use split_cols_by and also get a total column?

I'm making a table like this: basic_table() %>% split_cols_by("ARM") %>% analyze(vars = c("AGE", "BMRKR1"), afun = function(x) { in_rows( "M

Python code for ozone reaction in FDM scheme

How can I use the Forward method for finite-time differencing to build a single box model for a third-order ODE? Just so you know, I am a beginner in coding in

Flow to Typescript

I now have flow type code like this export interface NodeBase { start: number; end: number; } export type Node = NodeBase & { [key: string]: any }; The