Latest Questions

How to handle connection reset in Python SignalR and reconnect again

I am using Python3, signalr, and WebSocket to connect to a server. When the connection is closed or reset by the server or the network layer, I receive the foll

getting error while creating unmanaged node groups using eksctl in eks

Anyone please help ,I'm getting this error "Error: couldn't create cluster provider from options: nodeGroups[0].overrideBootstrapCommand is required when using

Alpine.js :class not working in second element

I'm starting to look into Alpine.js and trying to understand how it works. I have some html with one button to flip the background-color in two other buttons, b

Is it recommended to pass setters from useState as props?

I am currently in a coding bootcamp and the instructor told me that it is not best practice to pass the setters defined in my useState as props to children comp

How do I keep grabbing bytes and encrypting them in Python?

cipher = Cipher(algorithms.AES(key), modes.CTR(iv)) decryptor = cipher.decryptor() plaintext = decryptor.update(data[0:4]) paramEntry1 = int.from_bytes(plainte

construct a binary tree from string in haskell

how do I construct from string representation of binary tree a binary tree ? I already wrote a function that takes a string representation and converts it to a

LeetCode 7: Reverse Integer | why does it work with a long but not with an int?

I was trying to solve this problem on LeetCode where you have to reverse an integer using a function. The constraint is that if the reversed number goes outside

JQuery autosubmit

I have a form with three input elements. I want to run my validate function when the last input element is not equal to null. Any ideas please. Here's the code

Copy the file with folder structure from Linux to Windows using WinSCP and delete file which ever is copied and keep the folder

PowerShell or WinSCP – need to download the file and folder structure and delete the file which ever is copied and delete the file but not folder structur

Issues with Pytorch and Torchvision on MAC M1 - python / conda

Im trying to run Pytorch and Torchvision on Mac M1. I follow these instructions successfully install pytorch and run it natively on apple - https://betterprogra

Can't show api data in qml table correctly

I'm trying to get data from an api and insert it into table view from python side. Code. main.qml import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.

Error in install.packages : package ‘RGtk2’ not installed because it is not built for UCRT

I tried to install rattle and RGtk2. I used install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos

Python Login to UPS.com returns 403

I had a script that would login to my UPS.com account to receive all incoming packages. The following code was working for a while but not anymore: import reque

Hashicorp Vault Server UI loads a blank screen

I am trying to run hashicorp vault server as windows service in windows 10 system. Vault server UI is showing as blank screen. Please refer my configuration det

Access JSON like object properties

I have a return object like so: Can you tell me how to access its properties? I have tried many ways with Lodash too. But no luck yet. Failure attempts: t.conf

How to Retrieve OAuth2AuthorizedClient in a request when using WebFlux

I have a back-end(Springboot) application that is connected to Azure AD and a front-end application that accesses it. In the front-end, I am requiring the user

Argo workflow json parameter file and secrets

Argo workflows allows you to specify arguments in a json file: { "valueA": 1, "valueB": 2, "valueC": 3, "valueD": 4 } and then specify this when the wo

Error: Can't resolve 'fs' in node_modules\dotenv\lib' in React web app

I installed dotenv using npm install --save dotenv in my React web application. Whenever I use require('dotenv') this error comes up. Error: Can't resolve 'fs'

How to Update the .config file using Azure DevOps "Update config" Task

I want to Update the Web.config file using Azure DevOps Release Pipeline. I am using [Update Config][1] Task from MarketPlace. [1]: https://marketplace.visualst

package.json - how to set default value of variable in windows

In Linux you can use the following syntax to set the default value of a variable in the package.json file: try=${myEnvVariable:"defaultValue"} How do you do thi

Problem viewing a pdf file in a shiny app

To view a pdf file and my shiny app, I use the following code on the server side, which everyone recommends: output$pdf_info_exper <- renderUI({ se

Pdfium stretches or squashes document on printing

I'm using PdfiumViewer in one of my C# applications. This is the part of the code which I'm using for printing: public documentCopies = 2; // here for example's

I'm getting an error using playwright nth-match

I just discovered playwright and I'm trying to see if it would be better to use than selenium. One issue I have is that none of the items in the application I

trying to give role for voter top.gg

i'm trying to give top.gg voters role in my server but there's so many thing happened got me confused and i can't find any solution for it. full source code : h

Mongoose Schema for Groups (a number of users in one group)

One aspect of my website is that people can join groups according to a specific code provided to them, for example- when we play 'Kahoot' or 'Psych', we have to

window.postmessage() data is not recieved instantly rather than i have put a setTimeout function to pass the data

I am using window.postmessage() to send the data across domains to a popup but, postmessage is not sending the data instantly i.e. when captured on other domain

Interface "Composer\Plugin\PluginInterface" not found

I am writing composer package and in my plugin code I am trying to get Composer\Plugin\PluginInterface but I'm receiving Interface "Composer\Plugin\PluginInterf

React setState componentDidUpdate React limits the number of .. when trying to update the state based on updated state

i have react program that need the data from other components. When the parent components send path data, an array will get all of the files name inside folder,

Reading incremental results from stored procedure

I am working on a stored procedure that will perform time consuming query (> 30 seconds) inside the engine (arrays, temp tables, ...). The stored procedure r

SwiftUI Preview crash with await async iOS15 if returns a struct with UUID

I reduced to very simple code. If the struct has a Int is working, if there is an UUID the preview is crashing (it's working if I run on the simulator or real