Latest Questions

Add new sink to gstreamer examples camera

I'm very newbie at GStreamer and I can't write the output to file. I'm testing the gstreamer detect example in the coral/examples-camera/gstreamer project. This

How to navigate between NavigationLink while leave a part of main window stay the same in SwiftUI

I would like to navigate between different NavigationLinks in NavigationView while some part of the main window stay the same. For example, I want to make a mus

Run VS code projects through batch file

I have so many projects I have to open during windows startup. So I have created batch file to open them in vs code as following. start cmd /C code C:\project1

delete a repository and create new repository in same file

I have a situation where I needed to create a new repository from the existing repository on Github (with a different name) but I want to import the log/history

Problems with pip und Command line

I am trying to create a Python pip package. This works also well. I can successfully upload and download the package and use it in the Python code. What I can't

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

Hide RecyclerView until List is sorted

When my RecyclerView loads it shows the unsorted list for a few milliseconds and then switches to the sorted list. Here is a video what it looks like: https://d

R: Copying value for one type of group and year downwards and upwards

I created a simplified version of my data since my actual data is too large to be include here. structure(list(Name = c("A", "A", "A", "A", "B", "B", "B", "B",

Having a problem with installing a package on React 18

I tried to install react-neshan-map-leaflet and everything was installed well without errors, After the project started, I saw this error: ERROR in ./node_modul

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