Latest Questions

Standard way to add custom react-scripts in create-react-app

I have a project created from create-react-app and is in typescript, I want to add suport for custom react-scripts without eject so what would be the best way t

Getting error: The expression is not callable Mongoose NextJS

I trying to save data to a mongoose model on NextJS page. I get a typescript error on this line: await User.create(data) This expression is not callable. Each

Unhandled Exception: PlatformException(Failed to run model, Interpreter busy, java.lang.RuntimeException: Interpreter busy

I am trying to create an android application utilizing the MoveNet model from TFlite. The application is built but the following message occurs. The widgets are

how can i make og:url meta tags work in node js

I'm trying to share articles with facebook, this is my code: <!doctype html> <html> <head> <meta property="og:url"

Merkle Proof in python using Keccak256

I'm trying to create a whitelist for an NFT using a Merkle tree to save on gas costs. I saw a great implementation here, in javascript, but I would like to do

Recover seed-phrase from private key

I've created an account using near-cli / near-sdk, thus got private keys in ~/.near-credentials. In order to use the new account in wallet.near.org I need the s

Should R package functions not include comments?

I'm in the process of creating a small R package containing a set of functions that should be useful in a specialized area of Biology. I currently have the pack

Kafka Window Stores clarification

In my application, I defined a global state store (backed by a topic “query-topic”) in order to perform specific time based operations such as "give

name 'DiracDelta' is not defined in calculating the hessian

I'm working on a project and trying to calculate the gradient and the hessian using this symbolic library but I'm getting an error NameError: name 'DiracDelta'

ModuleNotFoundError: pandas 1.3.5 with pyinstaller 4.10

I'm trying to compile a python script using pyinstaller and pyinstaller says " 10230 INFO: Building EXE from EXE-00.toc completed successfully" but when I execu

Why are the args for my storybook component showing as optional instead of required?

I have a simple loader component import React from "react"; import { Backdrop, CircularProgress } from "@material-ui/core"; import { makeStyles } from "@mat

How to combine multiple commands output in the one varialble in shell script?

I'm using the following script to get the data of one of the variables from the database file #!/bin/bash sqlite3 pdu.db <<'END_SQL' .timeout 2000 SELECT

Blazor new WebAssembly App doesnt show the install app option

When I create a vanilla blazor webassembly app clicking ASP.Net Server Hosted and also the PWA option in the last week (over 5 test projects) and run the code a

CORS Problem with React js on my PHP from the scratch API

Hello Guys I have a problem on my PHP API i uploaded my API on this website "app.infinityfree.net" whenever I try to access my build in PHP API I get this error

How to exclude script on certain routes in Nuxt?

I have a nuxt2-webapp with a lot of routes and for all routes except 2, I need a script to be injected. Is there a way to disable the injecting? Nuxt config: me

Using read_excel to upload and automatically name all existing workbook sheets (without specifying the number of sheets)

I would like to adapt the answer below, taken from this question. # Example data write.xlsx(mtcars, "mt cars.xlsx") write.xlsx(mtcars, "mt car s.xlsx") temp =

Cookies NodeJS not getting saved

Unable to set default cookies in nodejs working fine in contact can anyone see what I am doing wrong the call from front end is handled let handleSignInS u

Error: Command failed with exit code 3221225781: ... \prisma\query-engine-windows.exe cli get-config --ignoreEnvVarErrors

I had an issue about [Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again], so I put postinstall : “pris

Function does not exist in PostgreSQL

I have this Postgres code CREATE PROCEDURE adjust_available(patientBed UUID) LANGUAGE SQL AS $$ UPDATE bed SET available = false WHERE bed.id = pati

Why my Spark mapPartition function is being slowed?

My algorithm is simple: I am using Spark to distribute the processing of a process that runs a cross-validation in Python. I have 3 workers and all I do is assi

bson.errors.InvalidDocument: cannot encode object of object having list of Object

I have a class defined in below form class B(): xyz: int class C(): abc: int Class A(): bList: List[B] cList: List[C] iex : int MongoDb Save Operation

Have Google Home trigger smart device

I'm developing a smart device that needs to respond to a trigger and take an action. I'm having some trouble however determining what will host the code that f

How many dimensions is a RGB image?

I first thought it would be 3 dimensions (one for R, one for G, one for B). However what about the width and height? More a physics/image processing question I

Authenticate with Azure AD account while using Read-SqlTableData to read AzSQL tables

What other properties does one need to add to the ConnectionContext while connecting to AzSQL using an AzAD account? $srv = new-object ('Microsoft.SqlServer.Man

I want to assign UAMI to kubelet, but it fails due to lack of permissions

I'm trying to assign UAMI to an AKS kubelet using terraform, but I don't have permissions and it fails with the following error. Error: creating Managed Kuberne

Solving "CUDA out of memory" when fine-tuning GPT-2 (HuggingFace)

I get the reoccuring CUDA out of memory error when using the HuggingFace Transformers library to fine-tune a GPT-2 model and can't seem to solve it, despite my

Failed to open DWF / DWFX file natively in Forge Viewer

I am using the below code to open the DWF file. File size is more than 20MB. const options = { env: 'Local', useADP: false} var config3d = { extensions: ['A

How can i remove an element in Deployment volumeMounts with kubectl Patch command?

I have a Deployment like this: apiVersion: apps/v1 kind: Deployment spec: template: volumeMounts: - mountPath: /home name: john-webos-vol

How to deal with "auth/missing-identifier" error in Firebase?

I am trying to create a simple web app in node.js (backend only), which would store some user data on Firestore. I want to use my own credentials management, an

MY React Web Page Does not work in an iframe

I've build a web app on react and used react hooks for my forms. However it is not working when the web application is embedded within another application. The