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

wasnt that samsung display

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

Offtopic

I mean like apple company laptop have good screen

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

Offtopic

Windows OS laptop screen

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

Offtopic

At least you've got the right operating system for the hardware.

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

Offtopic

Glad to know there's no racism here, although it's strange to hear that racism is fun to you.

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

Offtopic

Maybe, I've never used Caddy myself.

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

Offtopic

now i am just running uv run main.py
as i am thinking later i will switch to gunicorn!

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

Offtopic

I was learning web development and noticed that when opening a localhost URL, it always requests a favicon.ico file. I found in the Flask documentation that I need to either create an endpoint to serve the ico file or place it in the static folder and reference it in the head meta tag. I implemented one of these solutions. However, the last line of the documentation states:

"The above will serve the icon via your application and if possible it’s better to configure your dedicated web server to serve it; refer to the web server’s documentation."


I am confused about why this is recommended and why not just handle it with Flask, especially since I am using a shared-ip VPS and am unfamiliar with the reverse proxy setup. so in real production what to do you do actually?

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

Offtopic

Are you spying on me, how do you know

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

Offtopic

aria2-next vibe coded their range header validation, and refuses to download when found unmatched content-range and content-length

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

Offtopic

well, I recommend use pnpm to manage dependencies, but I can't help you on integrating python with js, never did that yet, to learn more of pnpm go to its site:

https://pnpm.io/

start a new project with pnpm, because diference between pnpm and npm can cause problems...

some videos to start with pnpm:

PNPM basics:
https://www.youtube.com/watch?v=mZxAv0bpMWI

PNPM config for beginers:
https://www.youtube.com/watch?v=hH4e8PJaFeg

and i recomend to use nvm or fnm to manage your node versions (if not use bun or deno):

https://www.fnmnode.com/

I prefered FNM...

or

https://www.nvmnode.com/

that's it, it's all that i can do for you...

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

Offtopic

npm, pnpm and yarn are like pip in python...

bun, deno are like node but with ts integrated and some more features...

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

Offtopic

don't use npm instead use pnpm...

and maybe you wanna use biome in place of eslint...

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

Offtopic

but those are unwanted files when i just want warning over not using funciton, wrong naming and so on in js , but pylance offer this so easily no new file needs in my repo, but for js they say me to run this,
npm init @eslint/config@latest
and as a result i got many many files 😨, as i dont know those files do actually what or maybe make my code slower in real hosting, so i fear to use those files, and also i want to use js type sugession and so on 😅

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

Offtopic

its so problamatic, actually i still not undersand the npm and the lot of files coming in my repo so scary to see and undersatnd those files in the /node_modules, is this like the python libraries but just need for eslint?

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

Offtopic

Yes but windows laptops are made by many companies, some of them have high quality screens

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

Offtopic

Screens are not specific to an OS but a laptop builder

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

Offtopic

How long would you cost to compile the Chromium?
Oh.. you don't have enough disk space

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

Offtopic

Do apple laptop really have very good screen? I don't like seeing windows screen .heard from my friend

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

Offtopic

This chat used to be fun chat (racism) but now it's just an on topic chat

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

Offtopic

i haven't done any real hosting till now.

i am learning how to do host in real vps a python app with backed and database logics.

maybe that's will be Caddy part right?

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

Offtopic

It's faster to have a webserver serve a static file than to have Flask do it. The shared IP setup shouldn't matter -- presumably you're fronting your Flask app with Apache or nginx?

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

Offtopic

where are u storing them

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

Offtopic

Do you study in School?

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

Offtopic

https://github.com/AnInsomniacy/aria2-next/issues/52

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

Offtopic

When installing packages like Bootstrap 5 and HTMX, do I need to use npm, pnpm, or yarn? Currently, I download the raw .js and .css files directly. Is it okay to install these in my repository using pnpm, or should I continue with my current approach? If I switch to pnpm, what basic concepts do I need to learn to manage dependencies effectively?

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

Offtopic

i even don't know about npm and what those files are doig and again, pnmp, bun yarn all i will got cracked one day

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

Offtopic

Install it globally, don't use init.

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

Offtopic

I don't get how people get scared by files 🤷

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

Offtopic

Just because you don't want some files?

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