Skip to content

multi-threading, what is wrong with my code

I was trying to make faster my frames in opencv, it was so slow using it normal, so I decided to ask it here Make faster videocapture opencv the answer was to use multi threading to make it faster, so I code it like this it give me no errors, but compared to my other code that is on the

How do I append things on list through recursion?

I have this code: Theoretically, when I input a list of numbers, it will return the list of positive numbers. For example, when I pass [2,5,-3,-5,2,-6] it will return [2,5,2]. But in my code, what happens is that the positive values are evaluated so this returns 9. I think my problem is that in A [0]+positive…

Curly braces in os.system on python

In the linux terminal i can delete all files from directory including hidden ones with: I’m trying to run the following command via os.system in python: this will exit without any error (exit code 0) but do not delete nothing. I understand here probably the curly braces have a special meaning but trying…

How to use `not` condition in the gitlab api issue query

I am trying to read the list of open issues title which doesn’t have label resolved. For that I am referring the API documentation (https://docs.gitlab.com/ee/api/issues.html) which mentions NOT but I couldn’t able to get the NOT to work. The following python script I have tried so far to read the…

Somehow my Fask API returns me old values

In debug: I run ng serve on my angular project, make the request and receive the updated values In production I update de files of the API and the angular project, make the request and receive old data. If I open the API link in a new tab I get the updated values, even the files in the server are