Latest Questions

Deserialize array that was Serialized with BinaryFormatter, without using BinaryFormatter to deserialize

BinaryFormatter is now obsolete for security reasons. Unfortunately, there is a ton of old legacy records that were serialized to array using the BinaryFormatte

How can I create a launch.json to use pipenv scripts?

I have the following folder structure in a monorepo repository /--.vscode /--Services --/Service1 --/Service2 --/Service3 In each service, I am using pip

how to store a closure to map and call it in another thread?

I just try to write a consumer for rocketmq with rust, and have a PushConsumer like below: pub struct PushConsumer { consumer: Consumer, handler_map: Ha

In Azure pipelines; where to store arrays?

We're setting up infrastructure as code in Azure pipelines. I now have a list of Role assignments; Roles which I want to give to groups. I've defined a list of

failed to fetch data from mongodb in dynamic route

I use mongoDB, after run server site 1st time all data load and display in UI. But whenever I try to show dynamic route using an event handler , and this give m

Remove video play-button when iOS mode is "lower power"

I autoplay my videos and this is working perfect. The only problem is, when a iOS user is on lower power mode the videos are not autoplaying. Then the videos al

async/await, Task and [weak self]

Okay so we all know that in traditional concurrency in Swift, if you are performing (for example) a network request inside a class, and in the completion of tha

How to return Non Json response - for a API Post Method

How can we return a Non JSon Response, enter image description here This is the response for one of My Post Method. I am seeing an error Newtonsoft.Json.JsonSer

separate datetime column in R while keeping time accurate

4/12/2016 12:00:00 AM I have dates in the format above and have tried to use separate() to create two columns in the data frame where the data is present. When

Random HTTP/1.1 502 Bad Gateway in PHP REST API

I have written a REST API in PHP using slim micro framework. Hosted on Apache (Event MPM) + PHP8.0-FPM on 2-vCPU and 4 GiB RAM and 10Gbps N/w bandwidth behind L

How can I monitor the requests during 'npm install <package>'?

I wish to monitor the calls made by the npm cli to the npm registry. (I am building my own registry) I have tried using a program, Charles for monitoring reques

I get an error when I try to run t.test()

I am trying to perform a t.test as follows: t.test(data = a, score ~ group, paired = T) However, I get this error: Error in complete.cases(x, y) : not all arg

What is a SMART WAY to deal with a lot of repeated If statements checks?

In my attempt to create a searching tool for a database that I created in the context of my undergrad thesis, I am required to make a lot of checks on the value

How can I upgrade newtonsoft in outsystems 10

I'm trying to upgrade outsystems eSpaces from version 9 to 10 and I'm facing this error: Internal Error Compilation Error. bin\OutSystems.RESTService.Runtime.dl

IndexError: list index out of range with api

all_currencies = currency_api('latest', 'currencies') # {'eur': 'Euro', 'usd': 'United States dollar', ...} all_currencies.pop('brl') qtd_moedas = len(all_curr

Random HTTP/1.1 502 Bad Gateway in PHP REST API

I have written a REST API in PHP using slim micro framework. Hosted on Apache (Event MPM) + PHP8.0-FPM on 2-vCPU and 4 GiB RAM and 10Gbps N/w bandwidth behind L

Vue 3 + Vite image URL becomes undefined after build

I encountered a bug where I dynamically generated a URL from props for image import in my Vue 3 component and it becomes undefined after build Script used to ge

IndexError: list index out of range with api

all_currencies = currency_api('latest', 'currencies') # {'eur': 'Euro', 'usd': 'United States dollar', ...} all_currencies.pop('brl') qtd_moedas = len(all_curr

Return does not return information

When wanting to return a value with the return and wanting to use it later in a variable, nothing is returned to me. #Actualizacion de informacion def messageHa

How to create a loop/function to open set of shapefiles?

How can I create a loop or a function to open many shapefiles at the same time where the names of the shapefiles change very little? For example with the data b

Reverse words in a string in C++ [duplicate]

Can anyone please tell that why the below written code isnt working , theres no error but its simply printing the string which was passed and

Gradle build sync failed. Basic functionality (e.g. Editing Debugging) will not work properly

Error screenShot `plugins { id 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.example.helloworld" minSdk 16

Reading hex data from serial port

I am trying to read a hex data from an MCU connected by USB. The MCU is designed to provide output in hex. This is a simple code I wrote using pyserial: import

Azure Functions bundle and extension, functions versions - javascript confusion 2.x, 5.0.x+?

I am making an azure cloudfunction with nodejs that gets triggered by a servicebus topic. Reading this I am super confused, they have a version for everything a

Net to setup simple if and else statement in node.js

trying to setup node.js code i want to setup simple if and else can anyone help to setup if and else // To use any npm package on Pipedream, just import it i

Is there a way to make sure formatted string is always in quotations?

I am working on a new tool to help automate some tedious processes. it involves ExchangeOnlineManagement, Python, and Powershell. I have input variables that I

Why does my Discord bot keep repeating when it runs this command?

This is the code used, there is nothing (I think) that's causing it to repeat, matter of fact I added something so it stops repeating but it didn't do anything

Navigation with arrow keys to the left does not work with input readOnly

I have built a table with 4 columns. 1 column is text and the other 3 are inputs that are set to readOnly. For this table I have written an arrowKeyCodeNavigati

How to use multiple databases in Django with an empty 'default'?

I'm trying to make a multiple database project in Django. But I'm having problems to properly migrate my models to the appropriate database. I'm using the 'Writ

animations with svg.js - adding runners to timelines

I wish to have animations that are controlled by buttons. My idea is to have a number of timelines which I can play() eg when the correct button is clicked. I'm