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

No, it is the other way around
You need an application to build an image for and run as docker.

As you do not even have one line of code written (and i am sure of this), you need to master Python first

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

Offtopic

what is this bro?

Ok first today i will try to learn Docker first fully a-z completely then i will think about separating, i need to master all docker concept first then i will go to python will it a good choice?

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

Offtopic

https://hub.docker.com/_/debian#supported-tags-and-respective-dockerfile-links

Try to find out what these tags are for.

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

Offtopic

Do you know what an image tag is and what it's used for?

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

Offtopic

No, you don't install anything when a container starts. You build an image and use that image. The build can be as little as using a Debian image and doing the ffmpeg installation.

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

Offtopic

Whatever works for you. If you solve it with a container image, it'll work everywhere where that container runs.

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

Offtopic

Like This anyone know anything sticker,
saying

Downloading

?
or which ai like thigns can make one like this?

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

Offtopic

Pure arch Linux with custom hyprland dots

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

Offtopic

In The Way of learning python i found, for audio, video processing and converting i need to use FFMPEG, but even i will use python there is no direct support for audio convert and so on i need to use FFMPEG by install this externally. So what do you say, in consistency i will install ffmpeg how best way ?
i am confused because in my this linux os i have ffmpeg installed in vps there i need to install this externally as a debian package so best docker ?

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

Offtopic

It depends on the task you're doing. Use a language best suited for it

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

Offtopic

I’ve been learning Python for many years, but I recently discovered that it handles very few requests per second. 😭😭😭 What do you think? Should we switch to a new language to become a better web developer?

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

Offtopic

why they Keep Bun in this language list?

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

Offtopic

Workers - yes
Pages - no

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

Offtopic

But OP is talking about CF Pages

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

Offtopic

i never had enough users to exceed free tier quota 😞

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

Offtopic

That's when the plans are bigger because you have actual users and want to make sure things keep working when you have a sudden surge of users.

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

Offtopic

Yeah, for what you do, that's totally sufficient. But if the plan ever becomes world domination, you might want to make it a separate service.

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

Offtopic

yaa i this is like after i will change my code and new version of my app i will make a tag so that later something wrong happens i can come back to the version right?

So you say i will use one container for this ffmpeg + flask app?

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

Offtopic

see i will write the instruction in the Dockerfile and then i will make image with -t right?
and then i will just run this after this will build ?
but i cannot gurantee what ffmpeg version it will install here ?

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

Offtopic

But for if you say i will run one container where i will run flask app with uv run main.py ...
There i need to install ffmpeg at start of this container with the instraction of:

RUN apt-get update && apt-get install -y ffmpeg`

But this doesn't means it will be consistant of the version of the ffmpeg, maybe today this is verion 6.1, tomorrow whern i rerun the container it will maybe use version 7.0 and something breaks, is this how justified.
and this 2 things is run in one container will this really good?

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

Offtopic

Hello, apologies for the interruption. I am developing a Python web application that allows users to upload audio files (MP3, M4A, WAV) and converts them using FFmpeg. Since my local machine already has FFmpeg installed, I have been researching how to implement this in a Dockerized environment on my VPS.

I understand the best practice is to run one service per container. However, I am unsure how to apply this when my Flask application requires access to FFmpeg. I have found two potential approaches:

1. Install FFmpeg directly in the same container as the Flask application (e.g., using `

RUN apt-get update && apt-get install -y ffmpeg`

in the Dockerfile). This seems straightforward, but it violates the "one service per container" principle and makes it difficult to guarantee a specific FFmpeg version.

2. Use a separate, dedicated FFmpeg container (such as the `jrottenberg/ffmpeg` image). However, this image is not officially maintained by the FFmpeg project, may lack the latest version (9.0), and would require complex networking or shared volumes for my Flask app to locate the FFmpeg binary.

Given these constraints, what is the recommended approach for integrating FFmpeg with a Flask application in Docker while adhering to best practices?

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

Offtopic

Don't have the token budget for an ai OS lol

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

Offtopic

Who has tried this ....omarchy

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

Offtopic

And BTW
You should know that Python is high-level language.

It does a lot of work for you (like managing memory, dynamic typing, and many more things), which makes it slower to execute but fast to write and prototype in.

That is the tradeoff, you want pure speed and performance - use a lower level language like C, C++, Rust - but it is YOU who now has to manage all of those that Python does for you automaticly.

There is always a tradeoff
You as a developer need to know about those and select the best tool for a job.

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

Offtopic

That's 2000 AT THE SAME TIME
it is not few.

And given you do not have anything built by now, i would focus on that.

As you do not have ANY users, that would be my first goal

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

Offtopic

because it's different runtime from node?

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

Offtopic

There is a diffrence

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

Offtopic

See but they say if i include my Razorpay pay button in my static Github Page, i need to have a running server which get confirmation that i received a payment, is not Cloudflare workers is for this???

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

Offtopic

we were talking about workers

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

Offtopic

Thats CF Workers - not CF Pages

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