Latest Questions

Load data from reading files during startup and then process new files and clear old state from the map

I am working on a project where during startup I need to read certain files and store it in memory in a map and then periodically look for new files if there ar

Update or create row based on ID - Google Script

It's been several days since I'm stuck on this problem. I've tried everything I saw but I think I miss some logic of the Google Script. I have a php form which

How to solve the problem with installing google colab?

Tried to solve a simple problem from google.colab import files import numpy as np file = files.upload() !ls my_array = np.loadtxt('train_vector.csv', delimi

setState not updating state with multiple varaibles

I am working on one reactjs project. where the user needs to pick two different dates starting date and end date. When a user picks first date i need to update

grab UserSecrets from a NuGet package

I've written a C# class library for my company to use internally, and it uses DotNet UserSecrets to allow each developer to have their own credentials set witho

Unusual Target Invocation Error in Unit Tests

I'm trying to run a group of 12 unit tests. When I run the entire group, one test passes and the rest fail with the same error: Could not find default endpoint

How to include multiple values under a section in inifile

I am trying to create a puppet manifest using inifile. This would be for a configuration file where I need to have the following format. [safe] directory =

How to get the current month and the next months until next year in javascript

so I want to get the current month and the next 12 months in vanilla js. For example, upon writing this question it's April 2022, So I want to have this output:

Why is my collections.sort leading to different outputs in 2 arraylists with the same data [closed]

I am having some trouble sorting 2 arraylists of mine which have the exact same data, one is received through my API and the other is parsed t

PDF file sent from flask to client is empty when downloaded

I have a flask server that sends a pdf file with the send_file function. When I test this route on postman I can view and download the pdf. However when I try t

PGP BouncyCastle + Kleopatra Decryption: Unknown Packet Type: 20

I am attempting to decrypt a file using BouncyCastle in C# that has been encrypted with RSA via Kleopatra. Unfortunately, I am receiving an error that states "

"Not Authorized to access " error on create mutation + GraphQL

I'm running the below GraphQL query to create data on dynamodb table, but gets the response with "Not Authorized to access createClient on type Client" Why this

Hidden TPU nodes

What do the HIDDEN TPU nodes states, specified in this page, exactly represent and mean? The TPU states specs for the hidden states are a bit too vague for me:

snowsql - tls_process_server_certificate

New to snowsql. Installed snowsql and ran the command snowsql -a <account_name> -u <user_name> and that failed with below error: 2022-04-28 18:50:5

Mock Injected Twilio Service in Unit Testing Nest.js

I have a problem with overriding provider/setup module testing in nest.js application for testing. Module file: smsModule.ts: import { TwilioService } from './t

XQuery "Cannot conver to xs:double"

Im new to learning XQuery and im not sure why i get the error "Cannot conver to xs:double" for the following code: for $element in db:open("data", "restaurants_

Plaid - PAYMENT_STATUS_INPUT_NEEDED

I've got Plaid payment initiation working on my cart but for some reason, all payments have the status of "PAYMENT_STATUS_INPUT_NEEDED". Also, I can only get Pl

SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102 [closed]

I am receiving the error of SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102 i

Calculating a difference for groups within dataframe

I have a dataframe structured like the example, df, below. This contains 2 variables, time and state. Since these are repeated observations for identity, I want

How to run these Coral AI models inference in a computer rather than on the TPU?

I have the Coral AI usb TPU and I have succesfully run the Getting Started example, deploying the already compiled / trained example model (image classification

Firebase not returning ID in useCollectionData

I'm trying to make a simple firebase to-do app. I can write todos, no problem. However, when I try to delete a todo or mark one as complete, it seems the id is

How to get x-axis to show all months in dataset

I can't figure out how to customize the x-axis in the graph below. At minimum, I would like each month to be labeled on the x-axis. All help is appreciated. dpu

Run mini-httpd serveron linux

i just installed mini-httpd on linux mint. but can'n connect to localhost / 127.0.0.1 on browser server is working ● mini-httpd.service - LSB: mini-http

Git warning "encountered old-style '/home/user/.gitignore' that should be '%(prefix)/home/user/.gitignore'"

Using git version 2.35.1.windows.2, all Git invocations include this warning at least once: PS C:\Users\BoppreH\Desktop\source\keyboard> git status warning:

How to make whole html input type date field clickable for calendar popup?

In the HTML input type date field when we click on an icon, the calendar is popup. But I want to make it pop up when we click in the dd/mm/yyyy field?

Flutter Error: No named parameter with the name 'displayLarge'

I am working on an app, I posted last update on git 2 days ago and haven't touched the code since. Now, I opened android studio and it was giving me this error

Cannot Autowiring Spring MQTT

Spring 2.5.3 and Java 1.8 I want to send a json data to a mqtt topic but i cannot autowiring my Interface and i'm getting null pointer exception when i try with

Add a column based on a condition that iterates over a list

So I have the following dataframe: Person_x Person_y Apple_x Banana_x Orange_x Apple_y Banana_y Orange_y Tomas Sidd

Swagger yaml response html

I need to format my response (examples) in swagger, at the moment I have this but it doesn't work: /** * @swagger * /instance/status: * post: * securi

Change file content using batch

So I have this going and I need a little help to improve it @ECHO Off setlocal ENABLEDELAYEDEXPANSION cd /d "%~dp0" :: Significant part of string set "replace