pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

10712

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

Subscribe to a channel

Offtopic

yaa database learning like crud and then 1,2,3 nf already those was for sql, i was trying to learn mongo db here first time

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

Offtopic

Do you need that id for something in particular?

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

Offtopic

Only override the defaults if you need to for *some reason*

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

Offtopic

👋 I have a question about MongoDB's _id field. 🤔 As far as I know, it's automatically generated unless we explicitly provide a value during insertOne, right? ✅

I'm building a bot system and need to store Telegram user data. Should I let PyMongo randomly generate the _id, or should I override it with the Telegram user_id? 🤖 Which approach is considered best practice?

I asked Gemini about this, and it gave me two different answers for two different accounts, which is a bit confusing! 😅 So, what do you think is the best way to handle this? 🙏

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

Offtopic

not wasted since modern DCs are closed loop.

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

Offtopic

The server storing that file requires electricity, colling. All requires water

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

Offtopic

what the logic on this?

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

Offtopic

Mongodb's website say to pull this
https://hub.docker.com/r/mongodb/mongodb-community-server

But see when i search in google they say official mongo is:
https://hub.docker.com/_/mongo

so in real production or learning what i shold learn and practise? what do you guys say to use which one?

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

Offtopic

NO i use hotspot from my phone 's sim internet😅

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

Offtopic

nobody is going to watch these videos

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

Offtopic

My Half Day Internet Pack will got Exhausted 😅

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

Offtopic

And why it should be of 100seconds

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

Offtopic

Go to r/stupidquestions and you will fiind your answer there

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

Offtopic

why 1 minute should be 60 seconds?

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

Offtopic

what i will do now ?
i found my fastapi basic app just serve the webpage by itself and do some backend work so i will just run this with a caddy right reverse proxy?
But still the user can know my backend 's vps's ip address i can really not able to stop this so what become good here?

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

Offtopic

Have you done any databases training or study before doing this?

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

Offtopic

You just clear my confusion, first i thought to store user's telegram's userid in the _id value, now i think to make another key and store the usre_id now i will ok right?

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

Offtopic

Why would you need to override it? Depends on your use case. Normally, you just put shit in another field.

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

Offtopic

lol I thought you were insulting but I wasn't sure

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

Offtopic

nice, I like Hatsune Miku too

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

Offtopic

I just realized that if I order a pizza with radius z and height a, its volume is exactly pi•zza

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

Offtopic

1L of fresh water wasted

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

Offtopic

the speed of wired internet is 100mbps~200mbps.

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

Offtopic

your wired internet has a limit ?

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

Offtopic

at first I thought it's 409kb

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

Offtopic

The better question should be: why is 100, hundred?

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

Offtopic

The Timezones God decided it that way

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

Offtopic

historical reasons
google sexagesimal number system

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

Offtopic

Take a look at Cloudflare and what they do...
They have extensive documentation

What you will do?
Do the reserch.
See how other web apps deal with this...

It's not like you are inventing the first webapp...

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

Offtopic

Of course you can send requests without frontend - see the issue in lacking basic knowlege for any of this??

You can never stop it, but you can protect your resources and make it hard for them...

This is where all those words i said before come into play

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