Skip to content

How to run multiple while loops at a time in Pygame

I’m trying to work on a simple Pygame program for a project that simply displays some faces and talks in a text to speech voice, but there is a while loop at the end that is necessary for the code to run but blocks another while loop that I need for the program from running. The while loop I’m try…

How can I take the log of a column in Python using Numpy?

I have the the following df: I would like take logs of the whole column, but when I try: ..I get the following error: AttributeError: ‘int’ object has no attribute ‘log’ How can I fix this? I looked up other threads. They seem to explore causes, but don’t provide solutions. Answe…

Running functions siultaneoulsy in python

I am making a small program in which I need a few functions to check for something in the background. I used module threading and all those functions indeed run simultaneously and everything works perfectly until I start adding more functions. As the threading module makes new threads, they all stay within th…

Python webhook API

I am trying to create a python webhook to receive data from my ELastic SIEM (JSON format), when I try it I am getting this errors: (sorry It’s my first time using python, so couldn’t know what’s the problem) The webhook configuration: And here is the watcher that I have configured: Could you…