pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

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

Читать полностью…

Offtopic

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

Читать полностью…

Offtopic

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?

Читать полностью…

Offtopic

well you can just ignore him

Читать полностью…

Offtopic

i remember he said it himself

Читать полностью…

Offtopic

well, why don't you use AI to ask these questions?

Читать полностью…

Offtopic

idk how to read these

Читать полностью…

Offtopic

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?

Читать полностью…

Offtopic

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.

Читать полностью…

Offtopic

Idk why they post here without trying first?

Читать полностью…

Offtopic

Anybody know where to host a 24*7 python program at free cost?

Читать полностью…

Offtopic

which part setup i need here in this case?

Читать полностью…

Offtopic

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']}"
)

so if the song_worker.merge_song function is a sync funciton, but if i will use this fun with to_thread then this will become non-blocking and others' user song merge will working side by side, is this right idea of me about asyncroniously work multiple thigns same time?
am i right now?

Читать полностью…

Offtopic

by doing what?
I've never seen you ever talking about finite state machine or the generators

Читать полностью…

Offtopic

its one of truth btw, but i will do something interesting btw

Читать полностью…

Offtopic

But if you have a VPS that is useless

Читать полностью…

Offtopic

no idea what are you looking for

Читать полностью…

Offtopic

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 😢

Читать полностью…

Offtopic

he likes to waste everyone's time with generic questions

Читать полностью…

Offtopic

he likes to learn from real people

Читать полностью…

Offtopic

Now read all the help of AI 😂

Читать полностью…

Offtopic

omg, you should've learned English first

Читать полностью…

Offtopic

🥸 in that case I don't think my program run 24*7 🥸

Читать полностью…

Offtopic

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?

Читать полностью…

Offtopic

Well, Chatgpt/Claude can fairly answer these generic questions.

Читать полностью…

Offtopic

I am not giving you answers, figure it out.
You have all the docs in the world

Читать полностью…

Offtopic

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.

Читать полностью…

Offtopic

why this i will takl and what actually?

Читать полностью…

Offtopic

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

Читать полностью…

Offtopic

Untill you do
Stay away from AI

Читать полностью…
Subscribe to a channel