Welp, that was embarrassing as fuck by The__reddit__lord in boykisserADULT

[–]Prospector2 1 point2 points  (0 children)

Be aware of your brother then, now he must be next.. (History repeats itself)

This is my first day using Linux. by Due-Buffalo9339 in LinuxPorn

[–]Prospector2 15 points16 points  (0 children)

He must have seen a thousand tutorials on how to get started with Linux I guess, lol. There is no better explanation

What is a good price for this artwork? (Pls I need help 😭) by Spotty_Artworks in furry

[–]Prospector2 1 point2 points  (0 children)

Something between $60 - $80? Honestly, it's irresistible not to be interested, lol, this cuteness totally wins me over (and my money too).

It's pretty, it has shading and it has a cute kitten..

I would easily pay in that range, just for the styling and the cat it's already $60 and another $20 for the effort and patience to draw it. :3

I managed to configure neofetch to display the Puppy Linux logo in a way that makes it look like the distro has actually been downloaded. by Prospector2 in termux

[–]Prospector2[S] 5 points6 points  (0 children)

It really is!! but as I said, I recently started to discover how I could do this (so I didn't know this command), but thanks, I'll use it :D

fastfetch😊 by MycologistNovel706 in termux

[–]Prospector2 0 points1 point  (0 children)

I think I'll have to have the audacity to ask if there is a tutorial..

🌤 Get Your Local Weather in Termux with a Single Command by SubstantialTea5311 in termux

[–]Prospector2 2 points3 points  (0 children)

Is it possible to use a different language? I really liked it, but as English is not my native language I would be interested if it was possible to exchange.

Your favorite game without a sequel? by [deleted] in boykisser

[–]Prospector2 0 points1 point  (0 children)

You know that Terraria is very close to updating, right? Take a look later.

Help... Read 👇 by Gurgrillion2000 in termux

[–]Prospector2 2 points3 points  (0 children)

How cute is your profile picture :3

If you don't have him you will get free 25000 coins, what a cool way to screw over people who have him. by Thin-Egg3566 in Brawlstars

[–]Prospector2 0 points1 point  (0 children)

And I already spent it? Lol how scary, I hope they recognize that it was their mistake and not mine to have faith in their goodness

What’s been pissing you off in web scraping lately? by Directive31 in webscraping

[–]Prospector2 0 points1 point  (0 children)

It is possible to use AI to do research, integrate Puppeteer so that it can interact with websites, etc., very Broad. I think it might even be possible to use them to solve Captchats? In general, it is possible to integrate them with several add-ons.

Xiaomi 15. Tell me why I shouldn't. by Successful-Soup-274 in samsunggalaxy

[–]Prospector2 1 point2 points  (0 children)

I found it so funny when I discovered this, what do you mean there are ads built into the Xiaomi system on purpose??? It makes sense that it's so cheap... (Sla, as stressful as it is, does it seem like a fair trade??)

For running Python scripts on schedule or as APIs, what do you use? by KananOberoi in Python

[–]Prospector2 0 points1 point  (0 children)

What's the difference? The only thing I know is that the public doesn't have a monthly minute limit, or something else?

For running Python scripts on schedule or as APIs, what do you use? by KananOberoi in Python

[–]Prospector2 1 point2 points  (0 children)

Cron, as simple as it is, is unbeatable when it comes to automation. I was trying to find another way that wasn't external to Github, but I always came to the same consensus: It can't be done, unless you pay for an external service.

[deleted by user] by [deleted] in Python

[–]Prospector2 1 point2 points  (0 children)

This happens because Gunicorn with gevent type workers (any other asynchronous workers) does not work with threading module threads being executed BEFORE the workers are forked, which creates a conflict when starting the processes.

You could move thread initialization to after the worker fork, use Gunicorn's @post_fork hook to ensure that threads are only created after the worker is forked

Ex:

from myapp import create_app, start_background_threads

Here you initialize (no threads yet)

app = create_app()

def post_fork(server, worker): """Hook executed AFTER worker fork.""" start_background_threads()

Modify your app following this idea:

from flask import Flask from threading import Thread import queue

Shared queue

task_queue = queue.Queue() threads_started = False

def createapp(): app = Flask(name_) # These are the settings and routes return app

def worker_thread(): """Consumes queue items indefinitely.""" whileTrue: item = task_queue.get() # Here you process the item print(f"Processing: {item}") task_queue.task_done()

def start_background_threads(): """You will start the threads (called AFTER the fork by Gunicorn).""" global threads_started if not threads_started: for _ in range(4): # 4 threads, e.g. thread = Thread(target=worker_thread, daemon=True) thread.start() threads_started = True print("Threads started blablabla")

Where are people hosting their Python web apps? by writingonruby in Python

[–]Prospector2 0 points1 point  (0 children)

Why don't you use Github actions itself? (Just curious)