#ot1-perplexing-regexing
1 messages · Page 70 of 1
leaky allocations are basically lost souls
only reaped when the process exits
I guess soul goes better with reaping
Garbage collector lol?
Maybe we should consider what does it mean as "object is dead"
it's not really a garbage collector in the normal sense 🤔. the OS just cleans everything up after a process exits
with some stipulations for zombie processes
Garbage collection gets around to it when it feels like it, you might get turned into a fossil object or might degrade entirely
I mean, let's talk inside of a process, cause we can't control what os does to killed processes.
Let's keep the world limited to a python runtime
So, the objects that aren't getting destroyed by garbage collector get fossilised 🤔

It's fossil dung
And ghosts posses living things 🤔, so ghost objects make the undestroyed objects act with thier parameters of the ghost object 🤔🤔
Earth is running its own python process
Some objects it claims for fossil to be destroyed at end of runtime
When the sun process turns into a red giant
speaking of living in a simulation
(it didn't blow my mind as the post says, but it blowed up someone's intestine)
quantization is clearly floating point issues
I experienced quantum entanglement
Of two objects which were never together in space time
Thought of my acquaintance and he texted me an hour later 
after like two weeks since we talked
You don't me, i thought of a person, and he texted the next minute
Let's just get an entanglement going and telepathically communicate , this texting is too slow
Guess what, i thought of a person after he messaged, does this mean quantum entanglement goes reverse in time too???
🙂
"Texting faster than light"
What would you do if I already predicted all your texts, im replying using that
How do we know we got entangled?
We don't...
(entanglement doesn't really help with communication much)
it actually cannot help
Yes actually 😔, it would cool to control entanglement, we can communicate across universe with 0 lag
Forget GB per second, we will be measuring reality's frame rate
He really don't care huh
Hiiii
Hi 👋👋
Somehow he manages to make me hate him more with every action he takes
Alr deactivated my twitter tho
The website keeps boosting fascists, its unusable now
you must first entangle and transport said particles
and they are single use
Wormholes can work 🤔, after all the particle is very small, so we can open a wormhole that small
And transport the particle to other side
if we have that why do we need entanglement to communicate?
We can't open wormholes everytime we need to communicate right? So just send the entangled particle there
to send one potential bit?
Nah, it all depends how much time you spend to write data into the particle,
And how fast you can read from it
I was telling that if we can find a way to control entanglement like we need, we can do all this stuff
The European Union in August adopted the Digital Services Act (DSA), which sets forth rules for preventing the spread of harmful content, banning or limiting certain user-targeting practices, and sharing some internal data with regulators and associated researchers, among other things.
control in what sense?
we know how to entangle stuff
but entanglement isn't some forever thing
He has to be joking -- unless that act is worse than it seems
Maybe I'm interpreting entanglement in a wrong way hmmm
it's not that observing one sends state to the other particle
Humans discovering a method to transmit information faster than C (god is not happy)
time to preach end of times
me when I use rustls instead of openssl: i'm feeling a little blasphemous today
@gloomy tusk I thought that was in DMs
(also didn't notice that was in #community-meta)
also messed up the ping, sorry other rex
@high haven ^
thanks rex
other rex: yw
plot twist: it's your alt
alt-rex: 
It's my alt 😔
yank word
productive downtime while temp conditioning happens, got my work inbox from 650 items down to 250
Very nice
"if more than 2-3 days old, archive without reading"
at least I have most of the worst spammy offenders filtered
one particular service has sent...142k emails
A lot of the emails I get are suuuuper in-depth technical discussion. So I like to keep it around until I have time to synthesize into my own notes
Why the hell do washrooms at my school not get tp
if they care then they should email again
the mummies needed them
😩😩
miltary
@rough sapphire let's move here further sat discussion here
costs money to take it in general. Your school might pay for the first test, though - it varies.
whenever, there's a bunch of dates, yeah.
typically you'd take it in your junior year of high school
the more you take the sat, the better you'll get at it
you were a freshman, right? You've got a bit of time before needing to stress on it
a 1500 would make my year 🥺
when I was a freshman in high school I was still an npc without sentience
in curve we trust
rip curve
hasn't changed
frosh 👎
😭

Find a group of nerds people who have similar interests, for me it was marching band
There'll be jerks in any school as well
I haven't done shit yet , a year of this is nothing, not like I went and killed terrorists
Hi @foggy jungle


yes sacrifice your hand to the god spelled backwards
does a fresh-out-of-bath dog smell like clean towel
Wet dog is a terrible smell
even with shampoo and the like?
routine baths and laundering
put him in the laundry wtf is this wording
💀
iron your dogs
this sentence is in a poor sequence
AWWW
yippers
I will win 👿
yayy
why does the timer freeze
when you left and rejoined it unfroze for me
same
yea
oop-
I did all lowercase
😭
i need to warm up with monkeytype
was wondering why it wasn't working
bro is the flash
oof
is he stil trying to understand..?
mos optimal solutin ```py
for _ in[0]int(input()):print(input().replace('ox'))
flow..?
oki
no im here
ur consistenly 2nd..
which i think is betr than being 3rd
lmao, forgot negative nums
0else is valid??
t=int(input())
print('ftarlusee'[t%3<1::2]*(t>=0)or"no negative numbers")
nuu wait..
str(...).lower() is shortr
i like to
lmao
ftarlusee moment
This is hilarious
https://lerner.co.il/2023/10/19/im-banned-for-life-from-advertising-on-meta-because-i-teach-python/
I'm a full-time instructor in Python and Pandas, teaching in-person courses at companies around the world (e.g., Apple and Cisco) and with a growing host of online products, including video courses and a paid newsletter
"Meta only retains data for 180 days" , Sounds like complete bullshit , coming from the company with Cambridge Analytica scandal
And still rated most aggressive/intrusive data collection
Plus I think you're required by US law to retain info longer than that
If they get a subpoena the data will magically be there
i personally think this is kinda shady, not allowing special characters (the symbols !@#$%^&*()_+=- etc)
what do you guys think
I think password rules often do much more harm than good
Length rules are ok, thats about it
Sounds lazy and or shady
shazy
i agree
i'll probably make a throwaway
Will the real Slim Shazy please stand up
I feel like 16 characters is a little bit low
Probably not, on second thought
8 seems too low though
challenge: write script to solve password challenge
games
like uhh
minecraft, cs, and stuff
counter strike?
W
easy
windows compatibility layer
😎
in pygame?
then it wouldnt technically be an operating system
yes but very hard
😟
testosterone????
into a computer??????????
max length is pretty bs
I mean sure, something stupid large maybe
inb4 1000char password
but I've seen limits at like 12
possibly, I can't really recall where
I mean, with a password manager I wouldn't really care
You wouldnt but i imagine the tech people behind it would
why?
idk, just guessing
they aren't storing it
or at least they shouldn't
they would store a hash
so what does it matter to them other than having to hash a slightly larger string
a limit at 256 or 1000 wouldn't really hurt anyone
the congrats spit out confetti
I made it 
I need to go find my Yubikeys and finish adding them to some crap that I don't really care about, but couldn't possibly suffer from having them paired.
you guys don't save your passwords in a password.txt?
plain text gang
and encrypt securely with rot13
.io
link?
OP
Post-it on my monitor
Yes!
Microsoft Sticky Notes ™
I have all my job application sign up things on a single password
Imagine you had a rocket, with its name same as your password.
what's the rocket's name..?
🤔
********
nah, thats your password, i didnt ask for that, give me your rocket's name 😇
let me ask another question, if your credit card's number is your soulmate's distance from you, tell us how far is your soulmate away from you?
😇
that reminds me
i should probably check up on my accounts passwords
itd be cool if like
one could use a phone as a passkey
probbly a bad idea?
that's called 2 factor
but itd be cool
many phones have a good security chip in them anyway
My first dog was named Buster and my mom's maiden name is Jones
Thanks, now If the charge on your phone is same as the distance of me from you in metres, tell me how far am I from you?😇
Around 5 foot per deciliter
always has been 😇
if your phone ever reaches 0%, you will see me very close
😇
I dont think i let my phone die
good 🙂
Ah, yes, Polish politics
Although it's usually written with the space - ***** *** - but it's referred to as just "eight stars"
"fart right" sounds about right
same
classic
They won't have majority in parliament (half seats), but idk about the "lost" as they still have the most seats
you need a power bank or something then
Yeah I saw the chart thing 
pshht, it works out
Get a phone with good battery and fast charging 👍
at school I just plug it into my chromebook
Parliamentary system 
overnight charging 👍🏼

I'm scared it'll explode
skill issue
???
it's an irrational fear
¿
Most.phomes stop charging when full
just get over it, duh
I set my phone.up to stop at 85
mine does this
Nah. I read stuff or play mobile games before sleep.
<1h for full charge is magic
I don't like sleeping near charging electronics or batteries
it's irrational, but I won't be able to sleep 🥴
bruh
you know that messes up the sleep
I'm on my phone before bed too lol
imagine being on life support
tell aboo the digital ghosts will get him.
not that I have anything to say, because I do the same
reading manga, some book, or whatever is part of my night routine 😤
modern phones charge quickly to to about 80% then charge very slowly up to 100
better for battery life
I already have messed up sleep. I can't fall asleep because my mind is racing.
It's been better lately, maybe because I'm drinking coffee (I make it not taste like coffee tho) - that would kinda self-medicate my possible-adhd
and sleep
drinking some rn
I'm quite bad at sleeping actually
Skill issue
same
sleep issue
why sleep
I can sleep on coffee 😤
when you can not sleep
to charge
that fishing game

the one
well it's not that I'm trying not to sleep
mar made a game?
Yep, the fast charging is done only when it's safe, that is for around 80%. My phone sometimes says "charged to 80%, battery will be fully charged by 8am" or something like that because it tries to optimise that last bit even on normal chargers... But it is sometimes bugged (woke up to 80% on non-fast charger already past that morning time)
maybe

Btw, Adhd brain actually calms down when stimulated, it's common for people with adhd to get sleepy with coffee.
???
i have perpetual kind of eyebags it's terrible
do you drink more coffee than me? lol. i cant have caffeine after 6p otherwise rip sleep
oh, hey same
Btw mobile games - If you like games with plot, I can recommend Path To Nowhere. Without the lore it would be boring fights, but there's a lot of lore and character backstories
I think I spent half of the first night playing instead of sleeping because it was so good. XD
aboo maybe youre immune to caffeine
I've had that like twice lol
perhaps
only one way to find out. down an espresso shot right before bed

for science
we dont have a coffee machine lol, I drink instant
I've had tea before bed before, I can still sleep fine 🥴
drink a cup before bed and let us know the results

i gotchu
maybe you're really sleep deprived

so you sleep even when high (on caffeine)
that could be it
however I get enough sleep
how much?
like around 7 hours on the weekdays
maybe you need more
Yo whatsup
IIRC, ideal hours of sleep are roughly inversely propotional to age
I usually get like 7
7 hours should be the bare minimum
so if im 100, i only need 1 hour of sleep. 
lol
perhaps
Also, isn't too much sleep harmful as well?
I mean probably not immune
I'm gonna go afk, I gotta sort the carrots.
perhaps, although I don't have it that much

what kind of sorting algorithm does one use for carrots?
👀
I don't ever really consume ungodly amounts of caffeine
That's one huge ass carrot
heh, ass-carrot
thats good. i try to just have 1-2 cups/day
at most
I fucking love carrotw
I said tetris because I try to put as much of them there. So I form lines and try to fill in the places between them
do they disappear?
Xkcd strong
Caffeine has one effect on me
Nope, the rest of the distance is filled with sand. The sides are insulated with straw
L tetris
I go ape shit on caffeien
Why are u running
I also love to drink it like this
I like tea
slurp
hi jk, I'm aboo
Suggest some motivational movies
yw
Tomorrow is holiday
thanks
So, it's movie night today
youre not johnf. youre aboo.
what kind of movies are you into
good observation
moving movies
you cant say thanks.
sure I can
thanks rex
ok. thank me then. dare you.
your welcome
yw moyen
All kinds. But today I feel like watching something feel good motivational movie
who are you
my name is robin
Check out this dog
dog
that spin tho
also
i was baited
🪤
was expecting doggo
That IS a dog
it is dig
I've been meaning to watch that new shah rukh khan movie, for like a while now
wdym

Jawan?
however I'm not completely confident in being able to understand it without subtitles, and I'm not sure if the theater offers those 🥴
yeah
If its been.a while, then he probably has 5 more new movies
async Python is hard btw
he's like in 1/3 of bollywood
As a newbie we try to learn everything, that's why it feels hard to learn
ong

Bollywood is meh
hello rem
guys, how can i store my db in encrypted form in mongodb community edition
can't find amy method to do it so far
hi doggo
how's the R*
?
Callbacks 👎
you want to encrypt it on dusk?
Async await 👍
i mean, locally, yeah
okay, I'm awaiting calls
can i do that?
Posture issues are real with desk jobs
carrot 👍🏼
asynchronous threading 🥴
🥕 👍
setintervals
Easz pizi
https://www.mongodb.com/docs/manual/core/security-encryption-at-rest/ seems to be enterprise only
so, there's no way to do it then
tho u can always just encrypt manually
Cassandra and mongodb are the same thing, right?
how do u reach that conclusion
2 very different databases
both nosql yes
but mongo is document orientated and cassandra is columnar or something idr
different paradigms
Sadly real life has too irregular blocks to make them disappear :c
also cassandra might scale better cuase of some shit about architecture
discord migrated from mongus to cassandra years ago
It's distributed ig
they have a blog post about ut
how?
wouldn't that make it difficult in searching for data?
Hello
you decrypt it 
idk much about encryption tbh
it often needs some pip packages
I'm stuck. Catto showed belly, I am a cat servant
and tells me i should use virtual environment
or something
how should i install pip packages correctly?
either they do different things or ppl just burning vc money cause databases are trendy especially vector ones
source?
crush
me
do not crush the cat
dog
This is really helpful. Thanks
then i would have to encrypt every key and its value
and decrypt it when i wanted to use them
but i'll be using the keys very often
that would cause some serious overhead
crocodile
ridiculous
@glossy niche so, any better idea, or any better alternative than mongodb to store json data as a db?
im trying to make a password manager
if you want to install stuff globally, prefer using your package manager when possible
like lets say i wanna install telegram
and it contains some python packagses
should i install python packages with package manager too?
how are you installing telegram?
if it's something installed through your package manager it should pull in all the needed dependencies already
what about it is ridiculous
I don't really know if it's correct or not but just wanted to illustrate that there are many dB paradigms
idk tbh, postgres is free and open source and full of features, and it supports json so you can try that I guess 
youre welcome! please double check the info in it tho, info graphics are always sus
is postgres faster than mongodb?
does it encrypt the db?
there's probably an extension for that
joins?
im just gonna insert stuff
not gonna use any set operations
the yo u won't use joins
so, no problem on migrating to postgres?

vector dbs are only popular bc most classic dbs arent built to read/write embeddings at low latency
pretty cloudline
bring me with you
playdate at fenix's?
wheres the slide
IDK MAN STOP ASKING ME
ok sry
sorry i jsut dont have that much exp with databases, i do use mongo a lot but still a newb
pretty 
you can try asking in #databases
what if
datacringe?
they do?
they really do a lot of heavy-lifting
so true
whats based in a db full of passwords?
its based
however, innovation in dbs has stagnated a bit
since the '80s
wild hair and big collars 👍
Cocaine
yeah if you can push as much as you can to the db layer, its better to have the sql engine do a lot of work rather than the app layer
most dead but theres an OO DB made by mongo
my favourite db is actually adb
yeah but sometimes i see this happen and you end up with some wild looking sql queries that could be solved in 2 lines of python
yeah you def see problems at both extremes
its about finding a balance
for sure
it's also a thing to move business logic into the db layer as well
when you model the data?
are we talking classic data modeling or
more modern approaches
like semantic layers
and such
not only that. if you have multiple apps talking to the db that need to maintain some constraints, you don't want to implement that logic multiple times
the problem is the business can never decide
"what IS a customer"
"how should it be defined, etc"
yeah. so now you only update the stored proc instead of all the apps
its def a better way of doing things
can you imagine trying to update that many apps if one definition changes
esp in microservices world

😩
my fizzbuzz cluster is down fuckkkkkkkk
i used this trick twice this week
#meetings
literally once was yesterday
I need to try that
Fancy
Never let me guess your next move
it's a trade-off
that term only clicks with technical people
they all have advantages and disadvantages
business people want it both ways
its about finding the right tool for the job
both ideas have pros and cons
its never just "A" or "B". its always both.
i promise you that
you give them 2 options, this is what happens
||if you know what I mean||
this is funny
RTUEN?
trune
so true
async fail?
"sir, would you please explain to the chat where you were on the morning of November 12th?"
:pithg
async 👎🏼
sync 👍🏼
distributed systems are a mistake
"it was never built for this use case"
gl
ow
break a leg
good luck dude
or two
break their legs too
ow
this
why break leg
insurance clai
break a lego instead
m
rejected
easier to break a leg
where? any place interesting?
skill issue
they technically compete with my company
i will wait
yeah and?
actually they're the biggest company in a few of their domains
who? lego?
what
what
yeah but its not a noncompete
yeah
are non-competes enforceable?
depends
the original message being gone doesn't exactly help the convo
it's different based on state, I think

we are a delete gang here
we have logs
they're also usually area and industry specific I think too
so like, maybe it's only in a certain area of finance or something like that
finance is huge
idk IANAL
it's about 5 nance huge
1 nance = 54.32 dollary-doos
ok moyen
if non-compete covered all my company did I would be basically screwed for a while
giancarlo my beloved
oh this ones kinda funny
oramg car
sir that's no car
can someone explain why the ubuntu font is used in a bunch of memes?
or rather
how tf did that happen
why does ubuntu use the font used in a bunch of memes
i deleted what you saw
i like it
WARFRAME PLAYER DETECTED
errr... anyone knows what this means
is WF warframe?
GO GO GADGET DEODORANT
💀
oh nvm
yeah
what is going on
Escape Character maybe?
arrow key?
war funder

was I just ghost pinged
no it was me
pulling logs
I was here
I can't remember which arrow key is \e[A
idk. It's meant to look like a loading bar but instead, im getting this
pull up a graph instead
up
im also quite concerned since I had to terminate the file several times
What are you using for the bar?
pull them. let me know what you see
so this is
up up up up up up ...

we goin up
Your code has a couple thousand balloons attached to the top of it
i dont think its meant to do that 😭
i dont understand
is that an UP reference?!?!1?
im just gonna rewrite it
JoJo × UP would be fun
🎵 look at this Foster graph 🎵
Does Dave have a metric for deleted messages?
you'd have to ask Dave
@wide verge do you have a metric for deleted messages?
that looks neat
Lmao wait it looks like it does log if a message was deleted
So theoretically you could make a graph of when and where messages are deleted on this server
mayhaps
graph being an overloaded term is always fun
graph a graph on a graph paper using digital graphics
bonus points if you pronounce it as giraffe
the call will be on teams 🤮
still missing the graph theory graph I feel
guys, im making a password manager, and i already have all the data in a json file like this
{
mail: {
website: {
pwd: 84q79er09084hgerjiijru
},
...
},
...
}
the question is, do i have to store this data in a db json type db (like mongodb), or table type (sqlLite, postgres), or anything else?
i need to store the db locally in encrypted form
i do data retrieval more than anything else
which one would be better to use here?
the database paradigm depends on what your application needs are
if its a local application, sqlite for sure
man, im already getting oerwhelmed with databases
what are your needss?
if you already know how to use one databse
just go with that
just to store all the passwords in a db
in an encrypted form
i just store it in a json file
no encryption
which is not good at all
postgres seems to support many encryption options
postgres is neat but super complex at times
but i need to retrieve passwords from the db
so the data must be decrypted while acceessing it

that is, just decrypt when the user has the credentials/authentication
thats what i have in my mind
you can do that in the application itself
store the encrypted password or whatever in the DB
pull it out
decrypt it
not sure how safe that is tho
ok, but still, what kind of db should i have to use here?
i found out the recent teams update broke teams the software on macs
but im not a mac person so
🕯️
💀
anyways i kinda got rolled
no new internship this summer i guess 😩
what you use doesn't matter much in this case
how you store data is what matters
i need to store in an encrypted fashion
so do that
encrypt -> write
read -> decrypt
you don't need a db that does that
that's my point
you are in charge of what data you put in/pull out
the storage medium is secondary
there are things that encrypt the entire database, but that's an additional thing
right, there are kinda two ways of doing this
you encrypt individual data entries and decrypt on fetch
or you encrypt the entire file and decrypt the thing on first load
and keep it in memory
but doesn't a db store it as multiple files?
so by that if the only file that has all the data gets corrupted or smth, i'll lost my data
im just overthinking
that's what backups are for
I mean, that's always a risk, no?
I should set up a nice NAS for backups...
currently I have basically zero backups...
ok, but you know how mongodb returns values for the keys that are passed in like this
key1.key2.key3
i can't find a convenient way like this in pymongo
(I've never worked with mongodb)
that's not very 321 of you
iirc pymongo just returns dicsts
so you just dict that dict around
idk
why not build something that's storage agnostic?
i'll also search the db with a query like
mailso that i get all the sites under that mail, andwebsite- gives all the mail ids that has this sub-key in it
and i think it would be a little bit slow to check it if the db starts to grow
it really won't be
u mean, hashed keys for dicts?
unless you have like 100s of thousand of logins
u mean, mails, right?
yep, i have only like 10-15 mails
oof
thats not a problem for now ig
WAL
I meant linear search through smallish data isn't really slow
you're probably storing like 100s of entries
1000s tops
lookup time isn't really going to be an issue
what do u mean by agnostic here?
that your main code doesn't care about what the storage format it
e.g. create some interface with the operations you need
u mean, an interface for any kind of db?
repository pattern 🥺🥺🥺
abstracting the exact storage details away
this is a pattern with a name other than just "abstract stuff away lol"?
Microsoft said it, not me
I swear, I do not remember names of most patterns
ok, then i'll just hash the db like this
hashed_db = Hash(PrivateKey2 || Hash(str(DB) || PrivateKey1 || Username))
and idk if this is too much or stupid
dependjection
in c# you just slap interfaces everywhere then DI things
I just remember some of the principles
singleton
and apply them when they seem fitting
theres a design pattern i use often that i dont know the name of
sometimes i have a bunch of related logic in a function
often giving a pattern a name is almost giving it too much credit
and i group it together in one class
so that i dont have to look around for when it was implmented
idk whats the nam,e of that
also, lets say i have a similar system like this in an another system
and if i let them sync together by merging the db, it should merge such that the latest update to a key's value should be the one that got updated at the most recent in either of the db, or show it like a merge conflict
and im thinking of doing this by implementing separate log files for the insert/update/delete operations in the db
how is this idea? is this ok-ish, or it can be done better than this?
it's about giving a more concise way to refer to things
isn't that just refactoring?

and obligatory "classes aren't namespaces"
you can refactor something ot use a specific pattern
nuh uh
zero cost abstractions bro
optimization bro
there's no optimization in that thing
at most part, u just make things readable
I would probably also just store the history of the thing
u mean, archive the whole old version of db for each change done to it?
archive history of individual entries
I think keepass does this and it can be occasionally useful
(granted, I don't tend to merge dbs often anyway, this is mostly a non-issue for me)
so, like enabling git for the db file?
but i have to reimplement git to make it work specifically for my encrypted db file
that's more overkill than I would imagine it
then how?
git is not going to be useful for a db
conceptually just keep the history as a list
and the dumb merging algo would be to just concat, and sort by time
hmm
I mean..
Pass is the standard unix password manager, a lightweight password manager that uses GPG and Git for Linux, BSD, and Mac OS X.
I mean like, versioning something like postgres's data
like the actual data or just the metadata
data versioning is its own thing
dont ask me
plenty of podcasts though
the data
thats a loaded one. everyone uses different things and no one seems satisfied
pick your poison

@limpid dove I took a look at your StackOverflow question and replied. Tl;dr: Your dictionary contains original non-decorated version of the function
oh shit
I never thought that could be the issue
My first reply was gonna be discord-only asking whether you saved your file because it worked for me - because I run the function directly instead of the dictionary version XD
Lol
Eh, your fix worked too
You've probably saved me 10+ hours, thank you so much 🥲
Don't worry, It's not uncommon.
I once spent probably around 2 hours only to realise that at some point I uploaded my files in the wrong place (I used filezilla and i must've accidentally dragged the project files into some directory, then I entered it and started uploading whole project there instead of normal location). I thought flask had some weird caching stuff because no changes I did were visible. XD
Once you have your first situation like that, you'll start understanding the missing/misplaced semicolon memes XD
I actually made a meme like that like half a year ago
(this is the only meme Ive ever made)
🥹
no










