12466
Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)
If you can't to deploy a function alone then cloudflare Workers are one of the options but is not the only nor a way to hide your VPS ip
Читать полностью…
i was learning wen devs, devops, i learnt that i need to use cloudflare worker.
i found cloudflare workers is like python anywhere which will run my app in free of cost, i don't need a proper vps to learn and gost my learning projects.
that's why i was looking for cloudflare
Hii, i did a lot research in the midnight,
I found i need to use Cloudflare Workers,
So eben i am using fastapi in backend for processing database, redis, image modefy using pillow, so why they say i need to use cloudflare worker there, is this really helpful to my server how?
is this just hide my vps's ip address?
Hi everyone, I’ve started learning about Cloudflare and it suggests that understanding it is essential to becoming a real developer.
When I first started web development, I realized I needed to learn databases, caching, and mail services separately. Now that I’m learning Cloudflare, I see that it offers these same features.
So, why did we need to learn those technologies individually in the beginning if Cloudflare can handle all of them? Is Cloudflare essentially just a free server for hosting and running our backend?
yep, that should be the general rule.
else, people expect free spoonfeding in the age of AI.
some questions really deserve our attention, but not all.
Anybody know where to host a 24*7 python program at free cost?
Читать полностью…
See i have a normal ffmpeg function which take a audio/video and then cut this, now i want to use htis in my python-telegram-bot, but the PTB works in async way, but in one of those function i call the cli_function() which is sync so my full tg bot will work as sync right?
async def download_command(update, context):
result = await asyncio.to_thread(
song_worker.merge_song,
audio_format="mp3",
)
await update.message.reply_text(
f"Done: {result['audio_path']}"
)
by doing what?
I've never seen you ever talking about finite state machine or the generators
its one of truth btw, but i will do something interesting btw
Читать полностью…
see actually i used ai for those, also i used some ai agents to do some work for me for testing thigns, but i say ai he do and like this, and what i ask on a perspective he say me the way say is right and discuss on what i say to be truth, ai like can solve the problem what i ask, but i not going to know what in reality we shoudl to use.
Like async await, paralellalism, coroutine all i ask ai, ai say i say in this ffmpeg case should i use thread it say yes and just explain the code, but here like real developers who knows those help me like, no there is better way to handle this in reality, so i sometime try to ask here , not mind pls 😢
he likes to waste everyone's time with generic questions
Читать полностью…
Good question and we have no answer to that either. Nor to the more pressing question: What do we need to do to make them explain what they have tried before and, if the have not tried anything before, refrain from asking here until they did?
Читать полностью…
Well, Chatgpt/Claude can fairly answer these generic questions.
Читать полностью…
I am not giving you answers, figure it out.
You have all the docs in the world
No
As the name to_thread suggests, it will run your sync function on a diffrent thread.
It does not magicly turn it to non-blocking code, it runs it in a separate thread.
You managing FFmpeg which is CPU intensive task (not I/O waiting) should be run as a separate proccess, not a thread.
So use your brain 🤷♂
Or you want to rot it even more and not learn anything ever...
Be my guest, ruin your brain even more