#ot1-perplexing-regexing

1 messages ยท Page 123 of 1

fair summit
#

Skill issue is a great self-preservation instinct

#

Imagine you can't even Eol

short island
#

id never imagine that a truck could move like that

#

welp now i think i have a future

#

i have nothing that satisfies me yet but i plan to adopt a kid if i get enough income to get them to a decent school

#

and maybe they can get rich

#

that would be pretty satisfing tbh

fair summit
#

Or there are much of kids that need home?

#

Then understandable

short island
fair summit
short island
short island
glossy niche
#

what sorta natural way?

fair summit
#

misery of them.. uh, nuh, language issues

short island
#

what

glossy niche
#

you mean that god will help them out or something?

by natural way you mean marriage and what not?

fair summit
short island
#

i honestly have no idea of how orphan kids are treated here

fair summit
short island
#

id want to have a kid of my own, but since i dont really have an atraction to anything i belive that isnt possible

glossy niche
#

can relate in a way

fair summit
#

If you still in school, i think you are relatively young, some feelings will be in future

short island
#

and staying with someone just because i want kids seems pretty bad

short island
#

by december im done

fair summit
glossy niche
#

some people are just ace, and some people have mental conditions that make it hard to tell what you feel

short island
glossy niche
# short island ?

some people really just have no attraction to anything

and some other people have issues that make it hard to understand how they feel about things

glossy niche
fair summit
#

Most humans need companionship and relationships

short island
#

ima gonna take you to brazil

short island
#

even among brazilians they say my life is pretty fcked up

fair summit
glossy niche
fair summit
#

Nuh, I'm staying at haifa

glossy niche
#

then i will bring indonesia to you

short island
#

i think im starting to get hungry

#

i normally only know when its hurting my stomach

#

but now i can feel its kinda uncomfortable

#

im gonna make a omelet

#

what does this cat means?

fair summit
glossy niche
short island
fair summit
short island
#

๐Ÿฑ

fair summit
glossy niche
#

they dont eat them, they just kill them

short island
glossy niche
fair summit
glossy niche
#

i did find a black viper last summer in my yard tho

#

im gonna need a bigger cat

short island
#

just hit it with a broom

glossy niche
# fair summit ??

Vipera berus, also known as the common European adder and the common European viper, is a species of venomous snake in the family Viperidae. The species is extremely widespread and can be found throughout much of Europe, and as far as East Asia. There are three recognised subspecies.
Known by a host of common names including common adder and com...

#

they call them black vipers where i live

short island
#

found a coral too and a broom incapacitated it

#

work wonders

fair summit
#

That cat food monthly cost is about three times of my food cost

glossy niche
fair summit
glossy niche
#

google yert

fair summit
#

Google

glossy niche
#

it sucks balls

fair summit
#

Firefox/duckduckgo

glossy niche
#

search operators seem to do jack shit these days

#

idont remember them being this useless before

fair summit
#

Internet nowadays

short island
#

im hngry

#

and the pans are occupied

fair summit
#

What about vi-search? Or how its name..

short island
#

im thinking of repeating food in school

#

since its free

#

just pray for them to not recognize me

glossy niche
#

like, eating a double meal?

fair summit
#

Are boiled eggs more filling than fried?

glossy niche
#

is there a difference? yert

#

other than how much water it loses

fair summit
#

Less water

#

More heat

short island
#

prob not since less vertical volume

glossy niche
#

i would assume fried has more

#

because oil or butter

short island
#

Tomorrow i will try to find a job

fair summit
#

On fry it splits more

short island
#

the bus costs R$5,10 everytime you ride it

fair summit
#

I mean its proteins or smth

short island
#

so if i go to schooll to work and from work to home its R$10,20 total

fair summit
#

Again how much $?

short island
#

if i get a bus student card i can prob go to R$2,90

#

for each ride

short island
fair summit
#

We have 5.5ils (nis) it's 1usd:3.7ils

#

A bus ride

short island
#

so its cheaper here?

#

in brazil

fair summit
#

Ig anywhere is cheaper

#

1.5$ for 90 minutes of bus

short island
#

finally something cheaper

#

and its a public bus

fair summit
#

Minimal wage, in internet they say 5.8k ils โ‰ˆ 1.5k$

short island
#

theres rats in my food

fair summit
#

Additional protein

short island
#

i cant afford to get diseases tho

#

idk how many vaccines i took as a baby

#

so i dont know how immune i am

fair summit
#

Better be safe ye

glossy niche
fair summit
glossy niche
#

you sure do

fair summit
#

I just don't have any job cause im too lazy, but still i have enough food and comfort

short island
#

what is a welfare

tardy rain
#

Whats an ils

glossy niche
#

international license for shitting

fair summit
tardy rain
#

You need a loicense for that?

glossy niche
#

cant hit the toilet without it

short island
glossy niche
#

life healthcare

short island
#

A LOT

fair summit
glossy niche
#

o?

short island
#

liek A REALLY FCKING LOT

#

but you need requirements

glossy niche
#

thats good to hear ig

short island
#

like

glossy niche
short island
#

being really poor

#

really

#

really

#

poor

fair summit
#

Your poor

short island
#

yea i get welfare

#

from schoo

#

i get R$200 a month

#

for studying

#

and at the end of the year i get R$1000

fair summit
#

Your having starving pains
It means you are poor enough to get 3k $ per month with no questions

short island
#

they give a lot of welfares because its cheaper to give the actuall salary

short island
short island
#

theres a thing called "Bolsa familia" (Literall translation: family bag) that gives money to poor families based on a few things like number of kids etc

#

i discovered that i was receiving it just this year after my mother was forced to tell the truth

#

she was getting this only for herself and buying cigarettes and alcohool with it

#

and still is

#

but the gov dont give a shit

fair summit
#

You don't drink?

short island
#

she doesnt work a bit and receives like 2.5k

short island
glossy niche
#

they only need to eat

#

like a sand cat

short island
#

and im not planning to drink

#

never

#

since i kinda experienced what drunk people have to give

#

and got the police called like 3 times

#

yeah but nothing ever happens and its the same thing every day

#

cant do nothing bout it

fair summit
short island
#

when a divorce happens, the man is also forced to pay a certain monthly amount to the woman there?

fair summit
#

Only naked monkeys sweat, and drink as hell much cause of that

fair summit
#

Maybe, never researched country law on that, in my religion though there is such thing, "year worth of living for first time divorced"

#

with additional notes*

short island
#

if i were a genious would i manage to live and get a decent life?

fair summit
#

I can't see straight dependency in intelligence to wealth

#

Even decency

#

I always think, everyone has around same level of struggle

#

In one or another way, through the life

short island
#

im probably a genius, but i dont tust brazilian IQ tests

fair summit
#

Genius must be realised anyway

tardy rain
#

Brazilian iq tests?

#

Do they test for brazilian iq?

glossy niche
#

lmfao

#

ive heard of emotional IQ but never brazillian IQ

fair summit
#

If can spot that rat can lead to deseas, your iq is 50+ atleast
95+ if you are ok with your life

tardy rain
#

me when i pass my brazilian iq test

chrome junco
#

I don't think inteligence is a number at all

fair summit
fair summit
glossy niche
fair summit
glossy niche
#

mutable strings typically store a bit more data for things like resizing

#

slightly more complex data structure

chrome junco
glossy niche
#
  • they dont do interning (usually)
chrome junco
#

Even though you could plug quadrillions of weights on a ML model and simulate someone

glossy niche
#

id say W for linear algebra

fair summit
#

LLM is not linear algebra

chrome junco
fair summit
glossy niche
#

ยฏ_(ใƒ„)_/ยฏ

#

i see matrix i call it linalg

fair summit
#

What if you are emulating your feeling huh?

chrome junco
#

Well, my point being inteligence is more similar to personality than to a number

glossy niche
#

my feelings run in the BEAM VM

chrome junco
tardy rain
#

What about many numbers

fair summit
#

Training neural network to make feeling seems easier than to make intellegence

fair summit
chrome junco
glossy niche
#

shhhhhhhhhhhhhhhhh the category theorists might hear you

chrome junco
#

You cant compress a 2D vector into a real without losing information, can trustfully convert It back

fair summit
#

Has Someone solved three body problem?

lone vortex
#

Hi

fair summit
chrome junco
fair summit
chrome junco
#

Obviously for a computer is the same thing, you point to the VRAM and mount and ext4 filesystem and It should theorically work

fair summit
glossy niche
#

np

#

im assuming this goes off the assumption that main memory in a computer is merely one big number?

chrome junco
glossy niche
#

e.g. my PC has one big 16gb number for memory

chrome junco
fair summit
#

Python can handle that

glossy niche
#

but yeah we do have to lose theoriticaly infinite amounts of info to compress a physical thing into 16gb of data

chrome junco
#

Don't forget your Drive, your VRAM and your CPUs cache lines

glossy niche
#

uhhhhhhh

#

remind me again what was infinity minus some constant

glossy niche
#

๐Ÿ‘

fair summit
glossy niche
#

Infinity is not a number. So, you cannot add or subtract it.

short island
glossy niche
#

NVM

short island
#

yea i smell BS

chrome junco
glossy niche
#

IQ ESTIMADO

fair summit
#

It's cause we are physicists, we simplify

glossy niche
#

what was omega again

fair summit
short island
chrome junco
glossy niche
#

wait actual\ly i dont know what htat is in math

#

oh

fair summit
#

Omega is smallest of infinities iirc

glossy niche
#

look man

#

i took calc 2 during covid

#

online class

#

i dont know shit

fair summit
#

Oh

fair summit
#

My last years on school also got blurred

chrome junco
glossy niche
#

IQ tests miss out on a lot of info

fair summit
#

There is a right opinion

glossy niche
#

yeah

#

mine

fair summit
#

And your opinion is mostly wrong

young shoal
fair summit
glossy niche
#

who wants a

#

2:40 movie

#

for the sleepover

fair summit
#

Wtf is sleepover

glossy niche
#

you sleep over at someone elses house

fair summit
#

Uh

#

Regular thing

glossy niche
#

like u stay at grandmas house or something

fair summit
#

I stay at my parents house

glossy niche
#

as a sort of party

chrome junco
chrome junco
short island
young shoal
#

IQ tests are not only the progressive matrices. usually online not real tests will only have one test

#

if you have a real test like the wisc-v or something, it's multiple subtests

glossy niche
#

never taken an IQ test before, i feel like itll only bring me harm

fair summit
#

Focus is more important than intelegence

chrome junco
fair summit
#

Or im just telling that from side of "neighbours grass is greener"

young shoal
fair summit
young shoal
# chrome junco I had one of those but I was too Young to remember, I just remember describing s...

The Wechsler Intelligence Scale for Children (WISC) is an individually administered intelligence test for children between the ages of 6 and 16. The Fifth Edition (WISC-V; Wechsler, 2014) is the most recent version.
The WISC-V takes 45 to 65 minutes to administer. It generates a Full Scale IQ (formerly known as an intelligence quotient or IQ sco...

chrome junco
young shoal
glossy niche
#

i dont like fighting over what is more important than what so i prefer to frame at follows:
both are terms in the same equation

fair summit
glossy niche
#

so both are equally important and missing either will mess you up

tardy rain
#

Whats important is +100 strength

#

Bonk builds are always goated

fair summit
fair summit
#

Focus is multiplicator

young shoal
#

haven't you heard work smarter not harder :P

fair summit
chrome junco
#

When you're smart enough you start to not only know you're shit, but also know literally every aspect of yourself

#

Hell, for me is defined as knowing why you feel bad

fair summit
#

And harder is about str, not focus

young shoal
glossy niche
fair summit
#

It's like solving 2+2 but getting bored on first 2

glossy niche
#

cant solve 2+2 if stupid
cant solve 2+2 if too out of focus

sounds like they are in the same term and in the same equation

chrome junco
fair summit
#

But

#

You can solve if stupid

#

2+2=2

#

Ez

short island
glossy niche
fair summit
chrome junco
#

Focus makes your inteligence work better, or worse, for good computing you need Focus, and for fast, superficial thinking you don't need it

fair summit
short island
#

me seeing an undocumented file where all the variables are named "var1, var2, var3..."

fair summit
#

And still ig it requires some focus to get going?

chrome junco
fair summit
chrome junco
#

Superficial thinking is like meeting someone, you don't think about It, yet, your brain has understood their personality traits

#

That's so superficial people don't notice

fair summit
#

Okay yku know him

#

But you are too out of focus so you can't even notice them

#

Nuh im going too hard

#

Okay both are important

chrome junco
fair summit
#

Atleast +8 of each as dnd says

#

Less than +8 is already invalid

chrome junco
#

I bet that had something to do with autism

#

I think autism makes you think more profoundly, and therefore, more slowly, consciously sometimes and only one thing at a time

fair summit
#

A thing is bothering me for last two hours

chrome junco
fair summit
#

And makes me sooo mad

#

It's so dumb

#

h

chrome junco
#

What is it?

fair summit
#

it's uhh

#

You won't like to know

#

It's so common

chrome junco
fair summit
#

It's irl personal thing

young shoal
#

if you don't want people to ask about it, why are you bringing it up ๐Ÿ—ฟ

chrome junco
#

So it's private, right

fair summit
#

Cause im frrr mad

#

@young shoal
You know there are lots of things you can't tell about but they are very huge chunk of your outer personality??

chrome junco
#

Can I asume your gender?

young shoal
fair summit
young shoal
#

never watched that

fair summit
#

Fr

chrome junco
#

You made me think It was something we were doing

fair summit
chrome junco
#

But if you dont want to tell us, then don't

fair summit
#

Ill just leave until morning
Good bye !

#

Good night also

chrome junco
#

K, thanks

#

I Hope you get better

#

Anything that It is

fair summit
#

Thanks

glossy niche
thick ore
#

good UTC+8 morning everyone

thick ore
#

good UTC+8 afternoon everyone

patent girder
#

hi defender

thick ore
#

hiiii

glossy niche
#

Microsoft teams emote ๐Ÿคฎ

#

dumbass app decided to randomly stop working last meeting I had

#

Also gm Microsoft โ„ข๏ธ Windows Defender

thick ore
naive igloo
thick ore
#

gave me sick ass products

rough sapphire
#

Skibidi Emoji

thick ore
glossy niche
#

i hate this bullshit man

#

whenever anyone does anything on any other social media, credit goes to the person who did it

#

but when 4chan does anything, credit goes to the collective

#

because anonymity

#

hacker known as 4chan moment

gritty zinc
#

i hate this bullshit man
have you tried to stop watching youtube shorts

thick ore
#

real

#

well i mean if it was a group effort (which it likely is), you don't just attribute it to one person only

glossy niche
#

have you tried opening yt before

gritty zinc
#

no, actually, that's what invidious is for ๐Ÿ˜›

glossy niche
#

this emote

vale raven
gritty zinc
#

also you can probably just adblock the entire shorts section out of existence.

thick ore
#

imagine buying youtube premium

glossy niche
#

i do actually like shorts when it recommends channels i do watch

#

not 4chin content

thick ore
#

hey you like computer stuff right

glossy niche
#

no i dont

thick ore
#

that hacker 4chan

thick ore
#

you must like the hacker vs military edits

vale raven
glossy niche
glossy niche
thick ore
#

F_n = F_{n-1} + F_{n-2}

#

or whatever

glossy niche
#

man i love use latex

#

it makes me look a lot less stupid than i actually am

thick ore
#

i learned latex because i had to write math notes in obsidian

glossy niche
#

same but for notion then migrated to obby

#

obsidian based

vale raven
#

Spelling entire words based

thick ore
#

obby

#

oh man that abbreviation reminds me of the minecraft days

glossy niche
#

obsidan stacked tabs is such a goated feature

#

it took me a while to appreciate it

#

i thought it was just a gimick but then i learned it supports horizontal scrolling

vale raven
glossy niche
#

why did you correct that typo

#

i read it as "phase"

#

made sense to me

thick ore
vale raven
#

โ€œNEW parkour obbyโ€

glossy niche
thick ore
#

OH

glossy niche
#

sorry i dont like big words

thick ore
#

when u said "obsidian based" i thought it meant "obby is based on obsidian"

#

sounded like a fork ngl

glossy niche
#

tehre actually is a FOSS obsidian if u want something like that

vale raven
drowsy rose
#

the otn ๐Ÿ’€

#

@foggy jungle dis u?

#

(if you couldnt tell, i just started reading death note

foggy jungle
#

Honestly I look like that right now, wrapping up my B.S. degree and grinding hard for my tests.

drowsy rose
#

lmfao

#

rem at the end of the year

#

smh bad opsec

junior hearth
#

ur pfp does not look like that

tardy rain
#

spank

#

in js i assume?

#

i keep seeing it a lot with my peeps too, they cant use reduce to save their lives

#

same difference

#

no idea actually, whenever i see it i feel like commenting on the prs but also its not really that big a deal

#

feels like a nitpick

#

i wish i could just tell em to get good

young shoal
#

it's not a nitpick. forEach consumes the stream

faint cove
#

Hello

young shoal
#

also, mutating is bad

#

๐Ÿ—ฟ

solemn tulip
#

positively pythonic

thick ore
#

FP is so skibidi toilet

#

like where is my encapsulation

#

dependency injection?

unkempt python
junior hearth
#

I'm gen z and i have no idea what that means

thick ore
#

oh sorry

#

i meant "FP is so ohio"

thick ore
small coral
thick ore
#

not 13+

#

just 13

fringe rain
#

2010

#

they could be 14

thick ore
#

14 year olds are gen a or z?

fringe rain
#

they're among us

thick ore
#

AMONG US

small coral
#

according to the creator of the term "gen alpha" it describes people born from 2010 to 2024/'25

thick ore
#

isn't gen z 1997-2012

small coral
#

ya there's an overlap

thick ore
#

bit of an overlap there

#

who's born in 2011 โ“

small coral
#

:p

thick ore
#

W

fringe rain
#

college is good, but i do not wish to discuss it here

thick ore
#

skibidi toilet rizz

#

i want to delete tiktok off my brothers phone

small coral
#

go then

marble bay
#

doit

thick ore
#

but that would be hypocritical

#

i watch ig reels on a regular basis too

#

:P

acoustic moss
#

cant have your brother turning out like you

marble bay
#

imagine

#

a microsoft shill

acoustic moss
#

fr

marble bay
#

what could be worse

acoustic moss
#

a linux shill

thick ore
#

yes

#

exactly

#

a linux shill is worse

#

what will I do when my brother starts talking to me about "hyper land" or "way land"

#

or how "X Windowing System 11" is "not sigma"

small coral
#

exempli gratia germany's autobahn

marble bay
#

man uses hotmail coz he doesn't want google ๐Ÿ’€

thick ore
#

LMAO

#

LMAOOOO

#

that's just microsoft

#

so W

marble bay
#

that never occured to me

#

hold on lemme go ask him and see how he defends that

thick ore
small coral
thick ore
#

were you the guy engliz was talking about

small coral
#

no

marble bay
#

he isn't in this server

#

he's @ my clg

small coral
#

honestly i really don't give a damn what i use if it works

thick ore
#

LMAO

thick ore
#

did you also use hotmail thinking it was an escape from corporate land

#

if so that would imply that you also have a microsoft account

marble bay
small coral
marble bay
thick ore
small coral
#

๐Ÿ›Œ

#

this guy is a bean

thick ore
#

it's 3pm

#

oh

#

yeah

#

nvm

small coral
#

too

#

about that other meaning

thick ore
#

fluent ui bed

small coral
#

beddo

thick ore
#

the lighting in fluent ui emojis

#

so cozy

#

i feel like i could eat them

patent girder
thick ore
#

looks like it was made in paint 3d lol

small coral
#

blurple square

tulip falcon
#

Yea I think if the bed frame was brown it'd be more recognizable as a bed

thick ore
#

omori colored bed

tulip falcon
#

Looks somewhat like a random assortment of shapes

thick ore
#

anything is a random assortment of shapes

small coral
#

anything is random

#

..or is it?

marble bay
thick ore
#

Yes I do

small coral
alpine edge
#

even if we don't, but it has the illusion of that we do...then whats the point?

#

if it feels like free will, and works like free will, it's free will

honest vault
thick ore
#

this is how i would imagine Microsoft Godot would look like

#

pretty fire

rough sapphire
lost jolt
#

Just want to ask does anyone know any good alternatives to the nand to tetris book? Looking for something similar but a tad bit shorter and bit more beginner friendly to systems engineering

thick ore
#

!e

import random
print(random.choice([True, False]))
royal lakeBOT
thick ore
#

yikes

junior hearth
#

I don't like that

#

!e

print([True, False][hash(bytes([__import__('random').randint(0, 255)])) % 2])
royal lakeBOT
junior hearth
#

better

tropic badger
#

This is a million US dollars visualized and its not even the full stack

small coral
tropic badger
junior hearth
thick ore
#

every white pixel is a dollar bill

#

it's pretty crazy isnt it

thick ore
#

for reference this is how much money i have

junior hearth
thick ore
#

1000x1000 image

gritty zinc
#

me walking into interrrp's house and resizing all of the money images to 64x64

thick ore
#

NO

#

That's like

#

4096 dollars ๐Ÿ˜ญ

junior hearth
thick ore
#

expand the image man

junior hearth
#

it's yours not mine

#

I'm not making you a millionaire

thick ore
#

hello i am microsoft

#

i need million dollar for making windows 12

#

enable telemetry

#

please

junior hearth
#

we do not need a windows 12

thick ore
#

yes, actually, we need a Microsoftยฉ๏ธ Windowsโ„ข๏ธ 12 24H2

marble bay
#

a million dollars for two keypresses?

thick ore
#

no its proof that im microsoft

junior hearth
#

no, visualised million dollars*

#

gaslighted himself to think he actually has it

#

can't help anymore

marble bay
glossy niche
#

i like posting propaganda

glossy niche
#

then pay in credit bitch

thick ore
#

what about money laundering

#

fr

glossy niche
#

if you want to wash it before you hand it to me, fair

#

just dont hand it soggy

south elm
eager trout
#

Currently watching the pyramid. This dumbass saw her father get impaled by a monster and said "I have to go back for him" lmao

lyric ridge
#

!e ```py
boasd = True
print(True if boased == True else False)

#

!e py boasd = True print(True if boasd == True else False)

royal lakeBOT
rough sapphire
#

boasd in [True, True == True, True is True == True is True and True or True, [True, True, True][True]]

jaunty wraith
#

@high haven, ducky_beer

junior hearth
echo crypt
#

I'm funny

high haven
#

the otn never lies

#

hope you been good moyen

jaunty wraith
#

I've been fine

#

hope you're having enough caffeine, rex

brittle void
#

who the fuck is rex, and who cares if he's funny or not?

sacred cove
high haven
#

theres this summer drink at one of my favorite cafes

#

ube iced latte

#

gotta get it while its still here

young shoal
#

real

high haven
copper yarrow
#

The characters shared a single braincell

#

And the monster looked wierd

sterile sapphire
heavy trench
#

I've remapped my pinkie key to be underscore normally, and colon when shifted

ashen ermine
tardy rain
young shoal
#

who is rex

brittle void
#

yeah, never heard of his name since im here
anybody gonna explain me his history?

tardy rain
#

he's a guy
he runs
he enjoys coffee

acoustic moss
#

he does data science

uneven pine
#

why would you need to science data

#

you use science to get data

#

you shouldn't need to scence the data

#

if you're having to science your data that just means you didn't science hard enough to get the data in the first place

#

just science harder next time

acoustic moss
#

make me

high haven
low chasm
#

we have someone named rex?

vale raven
#

Never heard of โ€˜em

sterile sapphire
#

i mysteriously disappeared from this server for a while

#

work and all

jaunty wraith
#

@solemn tulip, I'm, again, trying out jj for routine work
how do you use pre-commit with it, if at all?

#

I did notice there's a relevant jj fix command, that wasn't there before

solemn tulip
jaunty wraith
#

sad

#

I like the squashing and splitting

#

better than rebasing manually with git

solemn tulip
#

also found a fun quote in the discord

pre-commit hooks are evil, pre-publish hooks are fine

solemn tulip
solemn tulip
#

"take this revision and insert it after/before these commits"

jaunty wraith
#

frfr

#

moving between different "branches" is also pretty seamless

#

just jj edit -r abc

#

without having to commit, that is

solemn tulip
#

also, I can recommend trying the new+squash flow rather than the edit flow

#

makes it trivial to abandon some attempted change

unkempt python
#

yk...im thinking we should give rex a chance

#

at being funny

carmine apex
tropic badger
#

!otnames

#

.otnames

#

.ot

plush sun
#

@tropic badger

#

!offtopic

royal lakeBOT
eager trout
jaunty wraith
eager trout
#

Only watched it because I thought it was tomb raider (I thought a scene from tomb raider I saw in a youtube clip was in the pyramid)

#

went halfway through then realized I was watching the wrong movie because the characters were dumb af

#

Like bro, you see your rover get munched tf up and all you can think about are costs lol

foggy jungle
#

๐Ÿง‘โ€๐Ÿณ

brittle void
#

yo rem, can i have some stew?

brittle void
#

you're not rem

granite tree
#

Huh. What is that, like a shrimp gumbo?

neat hull
#

hehe

#

hi

brazen ingot
fervent furnace
undone thorn
patent girder
rough sapphire
#

instagram femboy moment

vale raven
#
def _audit_changes(session: SessionType, client: Client) -> None:
    """Audit changes to the session."""
    print(session.deleted)  # noqa: T201
    print(session.new)  # noqa: T201
    print(session.dirty)  # noqa: T201

    for instance in session.dirty:
        changed_attributes = {}
        state = inspect(instance)
        for attr in state.attrs:
            if attr.history.has_changes():
                changed_attributes[attr.key] = (attr.history.deleted[0], attr.history.added[0])
        session.add(
            AuditLog(
                actor_id=client.id,
                action=f"UPDATE {instance.__class__.__name__} {instance.id}",
                detail=str(changed_attributes),
            ),
        )
#

@thick osprey can I bug you about audit logging again?
I actually have an MVP (see above) that I'm fairly happy with.
I had "action" and "detail" as strings.
I just read up on some SQLAlchemy black magic, and I was able to get a str(dict(changes)) of the changes into "detail", which I will change into a JSONB column at some point.
That part I'm pretty sold on, but the "action" I'm not so sure about...
Right now I have f"UPDATE {instance.__class__.__name__} {instance.id}", which...
My main concern is figuring out how to tie the audit record to the actual record.

In the days of yesteryear, I used to have a string column for the class name and a column for the ID, and I would filter based on class name in code.
I actually mostly like this idea.
But I keep getting told it's a bad idea to not have the constraints set at the database level.

On the other complete other end of the spectrum, I think you were the one that told me that I should have an optional foreign key column in the table for each table being audited.
I'm just being whiny, but that sounds like "so much effort"...

granite tree
unkempt python
thick osprey
young shoal
#

is this for tracking changes to things ๐Ÿค”. one row is one change to one or more rows?

young shoal
#

there's also UserDefinedType

#

My main concern is figuring out how to tie the audit record to the actual record.
wait, are you thinking of introducing an audit row for each row that is added to some table? i just comprehended this

vale raven
# thick osprey Not sure I follow completely on what you're trying to tie a row to. <:darkoHmm:8...

Say I have orders, which have items and are placed by a customer
So I'd have a customers table, an orders table, and an items table
I want to audit CRUD actions to each of them
So previously I had

CREATE TABLE audit_logs (
  id UUID,
  target_class TEXT,
  target_id UUID,
  action TEXT,
  changes JSONB,
);

So when a customer signed up I'd do

INSERT INTO customers (name) VALUES ("Preocts");
INSERT INTO audit_logs (...) VALUES ("customers", [idgoeshere], "CREATE", '{}'::JSONB)

And then when you place an order I'd

INSERT INTO orders (placed) VALUES (current_date);
INSERT INTO audit_logs (...) VALUES ("orders", [idgoeshere], "CREATE", '{}'::JSONB)

I'm just not super happy with target_class being a TEXT.
I keep getting told "firBap , don't use strings as replacements for relations"
Though.... it is actually working just fine for me, so.... maybe I just shrugch and keep doing it...

young shoal
#

this is postgres, right?

vale raven
#

Though SQLA

#

I'm writing raw SQL for my examples, but I'm using my ORM in prod

thick osprey
vale raven
#

no, yes

thick osprey
#

What do you intend to do with an audit record?

solemn tulip
#

sql blame

young shoal
#

yeah. why do you need this? there's pgAudit

vale raven
young shoal
#

postgres also has built-in logging

vale raven
young shoal
#

ah, that's a lot more specific. what i've implemented in the past is a sort of linked list of changes

#

table looks something like

create table log (
  id int primary key,
  up int references log(id),
  down int references log(id),
  msg text
);
thick osprey
vale raven
#

That's the target_class

thick osprey
#

Why? Are there different uses that you haven't mentioned or is that scope creep?

vale raven
#

Well -- the idea is that there would be a "view history" button on every type of entity, not just orders

solemn tulip
#

it feels a bit odd to group all kinds of audits in one table

#

but maybe it's not that weird if they all have the same data pithink

thick osprey
vale raven
#

Well yeah but I...
I have no garuntee that the primary keys don't overlap

thick osprey
#

What I'm trying to piece together is what the primary ask of the business is (this should be the only feature) and how the audit table helps you reach it.

I don't see any dates or ordering for these audit rows. Left out for brevity in the example?

vale raven
#

Yea

vale raven
#

There's a mixin applied to all tables:

class TimestampsMixin:
    """Add created, updated, and deleted timestamps to a model."""

    created: Mapped[datetime] = mapped_column(
        DateTime(timezone=True),
        server_default=func.now(),
    )
    """The date and time the object was created"""

    updated: Mapped[datetime] = mapped_column(
        DateTime(timezone=True),
        server_default=func.now(),
        onupdate=func.now(),
    )
    """The date and time the object was last updated"""

    deleted: Mapped[datetime | None] = mapped_column(
        DateTime(timezone=True),
        nullable=True,
    )
    """The date and time the object was deleted (NULL if not deleted)"""
thick osprey
vale raven
#
with Session() as session:
  order = Order(...)
  session.add(order)
  session.commit()

order_audit_history = session.scalars(
  select(AuditLog)
  .where(AuditLog.target_class == order.__class__.__name__)
  .where(AuditLog.target_id == order.id)
).all()
#

It's not pretty
but it does run

solemn tulip
#

would an order create other stuff than order target_class?

vale raven
#

I don't understand the question

solemn tulip
#

it feels odd to even filter by target_class if the key is for all intents and purposes unique

vale raven
#

Creating an order would create a AuditLog(target_class='Order', ...)
Each item added to the order would create a AuditLog(target_class='OrderLineItem', ...)

solemn tulip
#

unless the same id can have different type of audit entries

vale raven
young shoal
#

birthday paradox :sip:

solemn tulip
#

err, wrong message reply

vale raven
#

Understood

#

But it took me five minutes to add this column and entirely remove the possibility

#

Holy hell my work phone is exploding

#

WTF is on fire

solemn tulip
#

to grab some stuff I've mentioned before:
to have a 10^-16% chance of collision you need to generate 2.6ร—10^10 uuids
for 50% chance of a collision 2.2ร—10^19

vale raven
#

Oh
It took the night shift five messages and a picture of their monitor to tell me that they forgot the link to a SaaS app

vale raven
solemn tulip
#

you would use stuff whose entire purpose is handing out unique ids

#

or you just use uuids with the knowledge that even with the birthday paradox the chance of a collision is truly ridiculously tiny

vale raven
#

Or...

#

Now hear me out

#

I just stick the class name in the front and don't worry about it

solemn tulip
#

actually, why even use uuids?

#

you can just use some incrementing number

#

why even risk the collision within one table?

vale raven
#

... PG will make sure the PKs are unique, won't it?

thick osprey
#

If it is generating them, I would assume it would reroll a constraint violation for an insert.

vale raven
#

Me too

thick osprey
#

It's been a day or two since we had databases that just said "lul, no more keys, insert failed."

#

Though... somehow... I work with people who still make tables where that is possible. :sigh:

young shoal
#

did you know that postgres needs to vacuum approximately every 2 billion transactions

vale raven
#

Does that.... matter?

young shoal
#

kinda

vale raven
#

I'm going to figure out how to make it do that tomorrow just for you

young shoal
#

it already does it if you don't touch it

vale raven
#

You can deal with my DB being freshly vacuumed

#

I might even mop while I'm at it

young shoal
#

the reason is that it uses a 32 bit int for transaction IDs. for multiversion concurrency control, postgres needs to know if a transaction is older than another. to do that it compares the transaction id. greater tid = younger. but you don't want to just run out of tids. so it wraps them around and uses modular arithmetic

vale raven
#

So.... what was the consensus?

young shoal
#

when vacuuming, it will go through and clean up by marking transactions as "frozen", meaning the tids can be used again

#

if you don't touch the config, it will work fine

vale raven
#

You guys want me to make an audit table per entity table?

young shoal
#

it's pretty cool though

#

no that would be not relational

vale raven
#

what do you waaant

young shoal
#

use a key (tableoid, row oid)

vale raven
#

Is this going to turn into the notes thing again?

CREATE TABLE audit_logs (
  id UUID,
  order_id REFERENCES orders(order_id) NULL,
  customer_id REFERENCES customers(customer_id) NULL,
):
solemn tulip
#

tablead, a tableoid in the table of endotables

vale raven
#

get out

young shoal
thick osprey
vale raven
young shoal
#

that sounds horrible

vale raven
thick osprey
#

By whom? Someone on your team writing the solution?

vale raven
#

Nah, I have no team
This server, this chat right now, we're talking about how it's "bad" to not have constraints

young shoal
#

i'm honestly not a fan of putting this as a database table. technically you could make a foreign key to some postgres system tables :sip:. like pg_tables.tablename

vale raven
young shoal
#

you should just keep this as logs, and process with elasticsearch or something

thick osprey
young shoal
#

lol

#

the sad face thing is surprisingly controversial

thick osprey
thick osprey
young shoal
#

yeah that's why you write

select
  col1
  ,col2
  ,col3
vale raven
solemn tulip
young shoal
#

just comment it ๐Ÿ˜ฉ

thick osprey
young shoal
#

constraints do have a cost, that is increased time to update as well as increased storage costs. but you do get added safety

solemn tulip
young shoal
solemn tulip
#

I just want the ability to comment out conditions without thinking when doing some data extraction

young shoal
#

ah. it lets you comment out each one by one

solemn tulip
#

yeah, first one isn't a special case anymore

#

I saw my old manager do it and realized it's kinda neat ๐Ÿฅด

vale raven
#

I deployed the alpha of the rewrite

#

Archived the newly legacy code

#

Business needs a feature I haven't rewritten yet now, a few months earlier than expected

#

I'm going to have a busy week firFine

young shoal
ancient minnow
#

yoo

#

I wanted to ask, I need a vps that is not based in america. Preferebly cheap and very fast bandwith.

#

any good suggestions?

tulip falcon
#

Huh not in America eh? Sounds kind of sus

#

And in that case I'm sure setting up a scam/abuse company is only a few google searches away

acoustic oak
#

you are highly suspicious

weary moat
ancient minnow
#

i can tell you why

#

im using an api for polymarket

#

and that api is banned in america

#

and for the api I need to be fast

#

so proxies are not an option

ancient minnow
tardy rain
#

If the api is blocked in the US then thats a sign you shouldnt be doing what youre trying to do

weary moat
#

oops. Sorry, I misread the OP

ancient minnow
#

i live in europe

#

i dont see your issue @tardy rain

#

look up polymarket its a crypto prediction market

#

its nothing illegal

tardy rain
#

Why does it matter if its banned in america then

ancient minnow
#

because i need a vps

#

i want to run it on a server

#

that was my whole quesiton

#

vps can not be in america

#

because american ips are banned on polymarket

tardy rain
#

Oh, i see

#

Yea, ok, carry on

#

Surely there are european servers

weary moat
ancient minnow
weary moat
#

no idea

#

I was just pointing you at something European that I've used and have been happy with.

ancient minnow
#

yea i see, good share thanks

harsh tundra
#

Digital ocean has servers in Europe, my friend had one with UK location
OVH is from France and mostly hosts there, I believe. OVH is fairly cheap but has bad support (like not informing clients about maintenance and related downtime...)

tulip falcon
tardy rain
#

Asian is further away

#

Ireland or france are good

ancient minnow
tardy rain
#

Lmao this is wild, betting on politics and other world news

ancient minnow
#

its pretty awesome tbh

tardy rain
#

This is how betting should be, its purest form imho

ancient minnow
#

i think its one of the most accurate forms of getting predictions

tardy rain
#

Not betting on horses and dogs and whether a guy fakes an injury in the 2nd half

ancient minnow
#

because real money is involved

tardy rain
#

This feels like 4chan but with money involved

tulip falcon
#

Comrade Kamala 3 times pithink

tardy rain
#

70% chance he'll say tampon?

#

In what context????

tulip falcon
#

I have no comment on the gambling or predictions tbh. I was just trying to figure out why they don't operate in America

tardy rain
#

Gambling restrictions probably

#

They need shittons of licensing

#

People are betting on whether the bieber child is a boy or a girl ๐Ÿ’€

#

Who's the maniac behind this site

tulip falcon
#

Yea could be gambling regulation. When I heard predictions I thought it might be something about selling securities (promising a return on investment)

ancient minnow
tardy rain
#

ah

#

That makes sense

ancient minnow
#

one of the paypal devs

tulip falcon
#

Wasn't he angel investor early on in ethereum

ancient minnow
#

idk tbh

tardy rain
#

Gambling related global warming lets gooooooooo

#

This is beyond late stage capitalism

ancient minnow
#

check this guy

#

he is long on world goes to shit

tardy rain
#

Based

tulip falcon
#

He bet $1600 on nuclear explosion yes ๐Ÿ’€

tardy rain
#

Pretty grim, are the cards there for him? Stay tuned

tulip falcon
#

Must be a Russian oligarch betting for black swan events

tardy rain
#

He's pretty bad at betting tho

#

Down 5k

tulip falcon
#

That's what I mean by black swan event he got money to just throw at it

#

I think losing all of your money is normal for betting

tardy rain
#

Yea

tulip falcon
#

you win $1000 one time and it keeps u going until u are broke

#

Ray lost all the liquor money?!?!?

#

fffffuck I need to grind!!

#

This is no time to relax

#

Do or don't and then you're dead

#

I'm up to my eyes in it

#

Need to push harder

#

Put pressure on myself until I evolve

tardy rain
#

@agile summit cant see any other option

honest star
tardy rain
#

I clicked on the profile then the 3 dot menu then Report User Profile

honest star
tardy rain
#

Thats dumb af

#

They delete the message, now what

honest star
#

ยฏ_(ใƒ„)_/ยฏ

tardy rain
#

Based discord devs

young shoal
#

old man narc

honest star
#

welcome to Discord, we can't actually properly report on deleted messages

tardy rain
#

Get off my lawn kids

stark prawn
#

mar has all the age limits by country memorized in order to report at peak efficiency

stark prawn
#

surely if you report an edited message the discord people should be able to see that

agile summit
#

Apparently not

stark prawn
#

discord is so data hungry they must store every iteration of a message

agile summit
#

Yeah they store it but don't let you manage a report

jaunty wraith
#

average Discord design

harsh tundra
# stark prawn surely if you report an edited message the discord people should be able to see ...

I once asked Joe about his old contacts at discord and he said old support team was fired and replaced by outsourced one, which works like a black box. No real way to contact them outside of report form on the website, which already requires message id.
Rem had problems reporting whole servers of malicious actors, we had proof with webhooks that dumped passwords etc into discord, discord would be able to track it by just looking into that server or what was sent through that webbook - but without the message id the report was deemed useless...

carmine apex
#

also there were cases where rem would have an alt account join a server with bad guys to gain access to individual messages for reporting purposes, then discord would ban rem's alt and none of the bad guys

tardy rain
#

rem catching strays all around

tulip falcon
#

skill issue

foggy jungle
pure phoenix
#

can i remove my email linked to proton mail?

#

or sign up proton mail without having to use my mail?

quick ledge
#

I am no average cow

willow narwhal
#

Is there a way to see all notes I have on every user in Discord without going the GDPR route?

undone thorn
#

self botting ig pithink

#

idk how you would get a list of users though unless you're just checking your friends list or a specific set of servers' users

late orchid
young shoal
#

did bro run out of notes

tardy rain
#

What use do notes even have

vale raven
#

Birthday storage

#

No reminders though, so you have to remember to check that note on their birthday to remind yourself

tardy rain
#

Wouldnt it be easier if the birthday person says so in a chat

young shoal
vale raven
#

Yeah but it's considered "polite" if you already know

young shoal
#

plus name changes, though that's less of a problem now

vale raven
#

IDFK

#

Don't ask me I'm Autistic

vale raven
#

I can't even remember to close my mouth

young shoal
#

anymore

late orchid
#

yeah there's an Edit button right next to your username in the user settings

tardy rain
#

Build a thing that holds your notes

#

Or dump em in a .txt

late orchid
tardy rain
#

Strange

#

Do you make notes for irl friends too?

late orchid
#

if their username has nothing to do with their real life name? yes

young shoal
late orchid
young shoal
#

pretty sure that was the whole thing where the made everyone pick a username