#ot1-perplexing-regexing

1 messages · Page 72 of 1

honest star
#

I think my NaNoWriMo might be my thesis 🥴

thick osprey
ruby fox
thick osprey
#

Literary, Historical, Personal. I suppose not one that explicitly says "halp I'm writing a thesis"

wraith hound
#

I've been wanting to do a NaNoWriMo forever, but I don't know what I could possibly write >.>

civic pasture
#

HOI

#

ITS ALLOWEEN

#

we allow everyone to go crazy in this server

#

am I rite @wraith hound

#

😛

wraith hound
#

No.

young shoal
#

not authoritative enough with that first try

civic pasture
#

😦

#

whats up @young shoal

#

hows Temple

vale raven
#

Good luck!

jaunty wraith
#

sleb doggo

thick osprey
#

It begins.

distant hazel
#

have fun!

small coral
#

if we're talking about the same thing

tranquil orchid
#

what's beginning 👀

high haven
#

gl

#

for some reason i have a notion-template related to this

#

its not mine but it looks cool

high haven
high haven
jaunty wraith
#

I do not know what it is

high haven
#

here ill flash it

#

and you can bookmark it

small coral
#

the quick brown fox jumps over the lazy dog

jaunty wraith
#

that's rude to the dog

high haven
#

great. now we can forget we had this convo

jaunty wraith
#

what convo

high haven
#

what convo

foggy jungle
#

what conowo

jaunty wraith
#

rem, sleb

foggy jungle
#

Am off school 2 week

high haven
#

rem, slem

#

wait

#

i should also get ready for bed

high haven
#

i watched a horror movie and now im probs going to have nightmares

foggy jungle
#

Hold pillow close.

high haven
#

or just die

#

the movie was Talk to Me

#

tldr; never mess with spirits

jaunty wraith
high haven
jaunty wraith
#

of course

high haven
#

||watch it. jk. dont do it Running Running Running ||

jaunty wraith
#

I don't really get scared by horror movies tbh

#

so idk

high haven
jaunty wraith
#

I will

high haven
#

||brb need to find an adult Running ||

jaunty wraith
#

fedora

foggy jungle
#

Fedora.

mystic drift
#

Fedora?

foggy jungle
#

I have not use extensive.

hexed sierra
#

fedora

foggy jungle
#

I have no problem with Debian and closed source software though.

jaunty wraith
#

edd, I've used dnf coprs with moderate success

hexed sierra
#

hmm

delicate gull
jaunty wraith
#

some coprs I used to use weren't updated for recent versions, so I had to figure out other ways

foggy jungle
#

"other" ways.

hexed sierra
delicate gull
#

i don't remember seeing debian in gny's black list

mystic drift
#

I don't think I've ever had a closed source

#

Well, except for Windows

jaunty wraith
foggy jungle
jaunty wraith
#

or flatpaks

mystic drift
#

Ubuntu and Ubuntu Server were always open source, soo...

jaunty wraith
#

or nix

hexed sierra
jaunty wraith
#

occasionally build from source

livid citrus
foggy jungle
#

Sure but I didn't.

delicate gull
hexed sierra
#

e.g. if you install chrome or skype with dpkg install or apt install, it'll both install the program and add the respective repo to apt so that you now get updates with apt update

jaunty wraith
#

for Ubuntu, are you talking about PPAs?

hexed sierra
#

yeah

foggy jungle
livid citrus
hexed sierra
#

you're a fake linux user 😔

#

(jk)

jaunty wraith
#

some mucking about the sources list needed to be done when I upgraded the Ubuntu box

livid citrus
#

It should be open source

delicate gull
foggy jungle
#

I have had no issues so far. I will knock on wood.

hexed sierra
jaunty wraith
#

yeah

foggy jungle
#

This all sounds like a skill issue, just get good.

hexed sierra
foggy jungle
#

I have Chrome installed I think.

jaunty wraith
#

chrome 👎🏼

hexed sierra
#

so the main issue is that i need stuff like teams, skype, and cisco anyconnect for work

delicate gull
#

i have chrome and pycharm

foggy jungle
#

I have like 8 different browsers installed dissolve

hexed sierra
#

and uninstalling and reinstalling each time is a PITA

delicate gull
#

i have vlc too
is that closed?

jaunty wraith
#

firefox or ungoogled-chromium 👍🏼

livid citrus
#

@jaunty wraith since you mentioned k8s before - did you see tiltfile?

jaunty wraith
foggy jungle
#

User agent shenanigans and whatnot.

mystic drift
jaunty wraith
#

I haven't been able to get it adopted though

mystic drift
#

...right?

jaunty wraith
#

people liked helmfile OTOH

foggy jungle
#

I use Firefox as my do-everything browser.

mystic drift
delicate gull
#

i use chrome cause of the extensions
i'de use something else otherwise

mystic drift
#

I regularly have like, twenty or so tabs open at any given time

jaunty wraith
mystic drift
#

And it has a pretty theme

foggy jungle
mystic drift
livid citrus
foggy jungle
hexed sierra
jaunty wraith
foggy jungle
#

Thanks, I just like the Kali styling lol

jaunty wraith
#

people are really invested in the dockerfile approach

#

so it's hard to get them to use tiltfile

foggy jungle
#

dockerfile that away in the trash

jaunty wraith
#

plus the CI is complicated

#

they don't wanna invest in two different ways to do things

livid citrus
jaunty wraith
#

helmfile is quite hacky

#

but it works ¯_(ツ)_/¯

livid citrus
#

I just use tiltfile to automatically deploy an app chart locally 🙃

#

Nothing more really

jaunty wraith
#

it has way more features

livid citrus
#

Helmfile?

jaunty wraith
#

no, tiltfile

livid citrus
#

Yeah

jaunty wraith
livid citrus
#

That's just what I primarily use it for

#

Any python tooling you can recommend by the way?

jaunty wraith
#

ruff 👍🏼

livid citrus
#

Already use it pithink

jaunty wraith
#

what kind of tooling are you looking for?

foggy jungle
jaunty wraith
#

kopf is very nice if you do k8s native stuff

foggy jungle
#

Install Moyen today.

jaunty wraith
#

owo

livid citrus
#

Anything that could help improve code quality really

#

Be it libraries or linters

spare oriole
#

mypy

foggy jungle
#

ourpy ||/s||

livid citrus
delicate gull
livid citrus
#

It's weird

jaunty wraith
#

we do use sonarlint for code quality and a vuln scanner for… vuln scanning

#

I like pre-commit 🥺

livid citrus
#

And I use pdm for dependency management

spare oriole
#

running ruff on C drive be like

Found 88512 errors.
[*] 37628 fixable with the --fix option (3731 hidden fixes can be enabled with the --unsafe-fixes option).

delicate gull
#

it messes up my commits
i don't know what is happening

jaunty wraith
#

get gud /s

#

it blocks your commits

jaunty wraith
#

if changes violate any… thingies

#

rules

#

uhh, hooks

livid citrus
foggy jungle
jaunty wraith
#

really depends on what hooks you use tbh

timid latch
#

enforcing stuff on each commit might be a bit annoying to be totally honest, but I could totally be behind a pre-push hooks

jaunty wraith
spare oriole
jaunty wraith
#

or an amend

livid citrus
#

I just use a taskfile to run all the linters, though I'm considering using pre commit just as a runner for some of it's hooks

foggy jungle
jaunty wraith
#

coincidentally, I use pre-commit to run… tasks defined in pyproject.toml

#

only some of the hooks though

livid citrus
#

Try taskfile pithink

jaunty wraith
#

yaml 👎🏼

livid citrus
#

Heh

timid latch
jaunty wraith
#

(yes, I know pre-commit config is YAML)

foggy jungle
#

“Appeased linter”

jaunty wraith
#

"this commit was ruff"

livid citrus
#

ruff select = ["ALL"]

jaunty wraith
#

and then a ton of ignores

foggy jungle
#

Safepull almost passed All

jaunty wraith
#

almost?

livid citrus
#

Like 10(0)

foggy jungle
#

I ignored a line length rule iirc

jaunty wraith
#

blasphemy

livid citrus
#

You have black for that to be honest

foggy jungle
#

I use both.

delicate gull
#

ruff and black fight over line length

jaunty wraith
#

I'm trialing ruff format over black

#

I did notice miniscule speed difference

#

but not many style differences

#

which is nice

delicate gull
#

i don't let ruff format :p
just show me

foggy jungle
#

I’m the opposite.

#

Format as you please, but if I see it, I’ll get annoyed

delicate gull
#

sometimes i want them to be there

foggy jungle
#

Just in case, right?

jaunty wraith
livid citrus
unborn warren
#

anyone in here have decent knowledge and wanna make a few bucks? need something done!

jaunty wraith
foggy jungle
#

^ I made a buck.

royal lakeBOT
#

9. Do not offer or ask for paid work of any kind.

delicate gull
# foggy jungle Just in case, right?

no but like
in django i want the default imports there for when i go for that file

and in flask there are some imports you have to do in __init__

unborn warren
#

i cant offer to pay people bro lmao

livid citrus
jaunty wraith
#

can't touch my snapshots 😤

livid citrus
delicate gull
#

passing formatting isn't that hard
pass 100% coverage

#

that is the real chad

livid citrus
#

self: Self, cls: type[Self]

foggy jungle
#

I’m in bed, eating cold pizza and talking on Discord. I’m fairly confident I’m at a low enough point in my life to try and leap through Ruff’s hoops

crystal spruce
#

that sounds pretty good honestly

crystal spruce
#

there are worse things than cold pizza

jaunty wraith
#

soggy pizza

foggy jungle
#

Frozen pizza I suppose

livid citrus
#

Can we get a wrapper around ruff that would mandate a certain amount of specific errors

jaunty wraith
livid citrus
#

So your code is just shitty enough

foggy jungle
#

Ah like an anti-linter

livid citrus
#

Ruffian

foggy jungle
#

Ironically that’s probably within the scope of a project I was describing a week ago lol

jaunty wraith
#

so like, ruff with a min-threshold of errors?

foggy jungle
#

Err

#

I can’t delete embeds on mobile?

crystal spruce
#

put <> around the link

#

no like

foggy jungle
#

Thanks Stickie!

jaunty wraith
#

bro

crystal spruce
#

< on the left

#

> on the right

livid citrus
#

If it works it works

crystal spruce
#

i didn't even know you could do that

jaunty wraith
#

amusing headings in that article

crystal spruce
#

huh

jaunty wraith
#

TIL Phylum has a GitHub app

foggy jungle
#

Ye

jaunty wraith
#

for free

foggy jungle
#

Ye

#

All their internal crap is written in Rust too lol

jaunty wraith
#

Robin be like, time to apply

foggy jungle
#

They’re not hiring devs dissolve

jaunty wraith
#

sadge

foggy jungle
#

He’d do so well, he basically wrote the same system dissolve

jaunty wraith
#

real

foggy jungle
#

I sleb

crystal spruce
#

otsu rem

fathom musk
#

How does opacity really work?

#

Hello zeff

hybrid root
fathom musk
#

I mean how does opacity work?

#

Is it just like density?

#

Like if the a=1.0, then all the pixels are at work

#

And if a=0.0, then none of them are at work

#

And if its 0.5, then every other pixel is on but the other is just transparent

fathom musk
hybrid root
#

are you talking about checkerboarding or dithering or something

fathom musk
#

Yes

#

What happens at a pixel level

#

Or do you just dim the pixels or something?

ruby fox
hybrid root
#

that 0.5 explanation feels unrelated to the base concept of opacity

ruby fox
fathom musk
fathom musk
#

What does opacity really work?

ruby fox
#

Let me find a good explanation

ruby fox
#

This is the formula, when they use 0.5 transperency

#

It's like a weighted mean

#

Here image 1 and image 2 are numpy arrays

fathom musk
#

Interesting

#

Array of what though?

#

I mean

ruby fox
fathom musk
#

Array representing images I get that but which images?

#

Let's say image1 is my main image

#

image2 is?

#

The shape im trying to draw?

ruby fox
hybrid root
#
#

that 0.5*im1 + 0.5*im2 explanation has a lot of caveats

#

maybe im overthinking the q

ruby fox
fathom musk
#

@hybrid root @ruby fox thanks got it now

#

aA + (1-a)B is what I was looking for

hybrid root
#

ye that ig

solemn tulip
ruby fox
hybrid root
solemn tulip
hybrid root
#

yeah I wasn't trying to get the huge premultiplication part of the video across anyways

#

is good vid

thick osprey
#

@vale raven I've found something WSL2 cannot help me with. My first limitation that hasn't been work related. Apparently WSL2 and WSL (which is to say; not WSL1) do not have AF_UNIX interop.

#

On the other hand, I have a new-found interest in learning about sockets.

vale raven
#

I'm scared of sockets

thick osprey
#

I just accepted they were a thing until about 18:00 this afternoon when I tried to use a library that wanted to create a socket to Discord. Now I'm super interested in how they work. Especially these read/write file sockets. :3 So neat.

carmine apex
vale raven
#

They're very pointy

carmine apex
#

maybe 🤔 idk.
might not be long enough

lament cairn
#

teeth issue

civic pasture
#

meow

jaunty wraith
thick osprey
#

*more awake

grave cove
#

The websocket gateway?

thick osprey
grave cove
#

Ah, fair

#

I've been writing a Discord API wrappers lately so websockets have been of particular interest to me lately 👀

thick osprey
royal lakeBOT
#

src/connection_unix.cpp line 56

self->sock = socket(AF_UNIX, SOCK_STREAM, 0);```
thick osprey
#

It does... but it doesn't quite as seamlessly as I would have thought.

#

It supports the socket. You have to bring your own bridge from WSL2 to windows pipe

#

Which lead me down the rabbit hole of socat

#

which directed me to npiperelay.exe

#

which is where I said "You know what, I'll just dev this silly thing on windows thanks"

jaunty wraith
#

WS L

jaunty wraith
grave cove
#

that might explain why my rpc hasn't been working

#

I use neovim inside WSL2 and found it curious my Discord RPC wasn't working but shrugged it off as unimportant

thick osprey
#

That's likely why.

jaunty wraith
thick osprey
#

I already have done this song and dance once but....eeeehhh.. can't lie, I just copy and pasted this stuff and it worked. Now I'm looking and it saying "okay... how do you work!?"

# 1Password SSH Auth Bridge
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock
ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?)
if [[ $ALREADY_RUNNING != "0" ]]; then
    if [[ -S $SSH_AUTH_SOCK ]]; then        echo "removing previous socket..."
        rm $SSH_AUTH_SOCK
    fi
    echo "Starting SSH-Agent relay..."
    (setsid socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork &) >/dev/null 2>&1
fi
grave cove
#

wtf

thick osprey
#

Right?

grave cove
#

so you just exec this in wsl and sockets start working again?

jaunty wraith
#

AFAICT, it sets up a tunnel with socat

thick osprey
#

But it makes sense, kinda:

  • Make an environment variable for the location of the socket
  • Check if npiperelay.exe is already running
  • If it isn't running remove the old socket
  • Build a new socket magically bridged to the named socket "openssh-ssh-agent" in windows
royal lakeBOT
#

src/connection_unix.cpp line 66

for (int pipeNum = 0; pipeNum < 10; ++pipeNum) {```
thick osprey
royal lakeBOT
#

src/connection_unix.cpp lines 29 to 37

static const char* GetTempPath()
{
    const char* temp = getenv("XDG_RUNTIME_DIR");
    temp = temp ? temp : getenv("TMPDIR");
    temp = temp ? temp : getenv("TMP");
    temp = temp ? temp : getenv("TEMP");
    temp = temp ? temp : "/tmp";
    return temp;
}```
thick osprey
#

oh hey, 60 seconds to see if my quickly silly code crashes

#

Hell yeah.

#

Two day bb

thick osprey
#

Oh, oh that is c++

#

I'm tired

#

haha

young shoal
#

c# would make that much nicer

thick osprey
#

4.8k words into 50k. Solid day one. I'm going to bed.

jaunty wraith
#

right?

young shoal
#

yes, ??

thick osprey
young shoal
#

⁉️

jaunty wraith
#

is this done ???

grave cove
#

⁉️⁉️

wanton delta
civic pasture
#

Hey guys and gays

glossy niche
solemn tulip
thick ore
#

francis' last message here was 2 months ago

#

is he still banning helpers

lament cairn
#

quietly

thick osprey
#

in the end it's all just loop, if-statement, unsafe operation. I don't even see the code anymore.

tardy rain
#

Why the mix of naming convs in that snippet

hearty violet
thick ore
#

damn i dont like nim

#

like why does it use camelCase when the files are named in snake_case

#

and not even SCREAMING_SNAKE_CASE for constants

hearty violet
hearty violet
#

so pascal case, snake case, whatever is all the same

#

but my issue with nim is that it doesn't know what it wants
it's everything, it also has an ugly indent based syntax
and there's no reason to go out of my way to use it since to me it doesn't do anything I can't do already

thick ore
#

it can compile to JS, i guess

#

and would you look at that

hearty violet
#

but most big languages now seem to be able to either compile to JS or to WASM

hearty violet
thick ore
#

not really

#

it's literally the example on jester's page

hearty violet
#

you're attempting to read a nil value

hearty violet
thick ore
#
import jester

routes:
  get "/":
    resp "Hello, world!"
#

i guess i'll have to switch gc

thick ore
#

so i guess Nim isn't special anymore

#

the native JS compilation is what made me wanna use it

hearty violet
#

JS compilation is kinda popular nowadays

#

u have languages whose entire purpose is just to compile to other languages

#

other's that are just syntax over other languages

#

imo nim's draw is that it looks like python but compiles to C

#

so it can be kinda fast

#

but it's a very big and ugly language and it doesn't have a lot of support channels

solemn tulip
jovial oriole
#

You just lost the game

#

if you read this

tardy rain
#

'ate unit tests
'ate react
'ate jest
'ate nobody knowing what their app should do

#

Honestly testing is probably the worst aspect of dev

solemn tulip
#

Tests are great to have, not fun to write 😛

tardy rain
#

tests are fine to write

#

if you're the one that wrote the code

#

not if theyre being passed onto you to write and now you gotta chase people to explain what the code is meant to be doing

high haven
#

classic

uneven pine
#

If people have to explain what the code is doing, the code is bad

tardy rain
#

the code is terrible

#

the app is basically a form and a table

uneven pine
#

Rewrite in rust

tardy rain
#

its js

#

pass on rust

#

not even TS

jaunty wraith
#

Rewrite it in Reason

uneven pine
#

Js is genuinely the worst case scenario

#

Rewrite in scratch

high haven
jaunty wraith
#

all of them

high haven
#

quite literally

high haven
#

theres so many SaaS products that do the same too

young shoal
#

bannable imo

high haven
#

let me give you some examples

#

notion could be used as well if you squint hard enough

#

anyway i kid

#

you shouldnt be using this stuff for the financial domain

high haven
#

or ig

#

alt-psm now

young shoal
#

huh you know, my v is gone

high haven
#

ill just call you alt-pub

young shoal
#

quite disappointing

high haven
#

hopefully you wont change the first bit

#

for alt-pub:

young shoal
#

I was gonna be private for halloween

high haven
#

and its not even the github copilot, but the microsoft copilot

#

the one for business peeps

young shoal
#

the built-in one for Windows

high haven
#

i think

young shoal
#

huh. per person?

high haven
#

source: myself

#

jk

young shoal
#

incredible

high haven
#

thats considering monthly pricing. dont enterprise licenses do stuff annually?

#

so its really an additional $360

young shoal
#

honestly, over a year, it just needs to save like 10 hours out of 2080 to be worth it

tardy rain
#

frontend only

#

its literally a table and a form

low chasm
#

what the fuck

tardy rain
#

and something like 200 tests

#

160 sorry

high haven
high haven
#

do you have this many components?

#

is this what the frontend world looks like

low chasm
#

each pixel on the screen gets its own component

tardy rain
#

24 components

#

Or at least thats how many dire are in the components dir lmao

high haven
#

24 actually isnt too bad

#

at least from the little frontend i know

#

which has mostly been through derping around + my fullstack friends

tardy rain
#

Its too much

#

And also too dark

#

England sucks

#

I think we might be catching some seasonal depression

high haven
#

oof

#

come to texas

#

you can meet my friends

tardy rain
#

Next year

#

Actually idk if we'll make it in 2024

#

Idk how long visas take to process

high haven
low chasm
#

you guys should all come to my house

#

est best 😤

#

the east coast reigns superior

high haven
low chasm
#

based

high haven
#

DS in the financial legal intersection

low chasm
#

we have good food too

high haven
#

he says hes def coming back to texas

low chasm
#

how is it there

#

I have a friend who recently moved to Texas

high haven
#

so ill take that as a win

high haven
low chasm
#

that reminds me, I have no idea where in Texas they are

high haven
#

is it dfw? theres a reason why i moved.

#

jk

#

maybe

jaunty wraith
#

what was the reason?

low chasm
#

why they moved?

#

oh, why rex moved

young shoal
tardy rain
#

Actually what

young shoal
#

visiting?

high haven
#

yeah dude

young shoal
#

why didn't you tell me

high haven
#

not like youll ever visit

#

so

tardy rain
#

Im not

#

Yet

#

The gf is american so ofc i'll have to visit at some point

young shoal
young shoal
tardy rain
#

Studies

#

And then trapped

high haven
young shoal
#

many such cases

tardy rain
tardy rain
#

It do be like that

young shoal
#

and probably vacation days

#

which will probably be like 2 years at least

high haven
#

someone should set a !reminder, then we shall see

young shoal
#

why don't you visit me then

#

you're the one with the job

hearty violet
#

why don't u both deposit money on my bank account instead?

tardy rain
#

No me

high haven
#

also get in line

#

i already have another friend up north who wants me to go up there

#

but he says hes going to come down here first

#

so ill wait

#

(since hes considering moving down here)

acoustic moss
#

hmm ive never met pydis members irl

#

met people from a different server before

high haven
#

does it count if youve introduced irl people to pydis

#

or no

acoustic moss
#

lol there might be two or three people like that

high haven
#

ok cool

acoustic moss
#

theyve probably left by now lol

young shoal
#

only one has stuck around, but they're inactive

acoustic moss
#

the other psvm

young shoal
#

you might know them

acoustic moss
#

yeah theyre staff

#

i forgot their username 💀

#

aha found

young shoal
#

hah sfoundp

solemn tulip
#

the one person I inducted into pydis...

young shoal
#

I know that's person

acoustic moss
#

is it pajenegod

solemn tulip
solemn tulip
young shoal
#

cool esopy though

solemn tulip
young shoal
#

hard or soft boiled egg

solemn tulip
#

depends

#

what are you doing with it?

young shoal
#

eating it?

solemn tulip
#

as part of something or just a solo egg?

young shoal
#

consider all cases

solemn tulip
#

it depends™️

#

sandwich or salad, for sure harder

#

egg on its own, softer is quite nice

#

in a noodle soup? soft

young shoal
#

what about eggs in general

#

what form factor is superior

solemn tulip
#

french style scramble is always nice

#

low temps, ends up very creamy

young shoal
#

anyways the picture had a soft boiled egg but the yolk is solid

foggy jungle
#

Isn't a soft boiled egg with a hard yolk a hard boiled egg?

solemn tulip
#

when you say form factor I think of the egg tubes

foggy jungle
#

Condom eggs!

solemn tulip
foggy jungle
#

Damn you thermodynamics dissolve

young shoal
#

use radiation the wavelength of the width of the yolk 😤😤

#

I think microwaves are about that big

young shoal
#

huh

#

is that a real egg

foggy jungle
solemn tulip
#

many eggs presumably

young shoal
#

how do they do that

tardy rain
#

Extract the yolk

young shoal
#

huh

tardy rain
#

Watching hellsing

#

This guy goofy af

young shoal
#

For consistent slice sizes in food service, several eggs may have their yolk and white separated and poured into a cylindrical mold for stepwise hard-boiling, to produce what is known as a "long egg" or an "egg loaf".
https://en.m.wikipedia.org/wiki/Boiled_egg

Boiled eggs are eggs, typically from a chicken, cooked with their shells unbroken, usually by immersion in boiling water. Hard-boiled eggs are cooked so that the egg white and egg yolk both solidify, while soft-boiled eggs may leave the yolk, and sometimes the white, at least partially liquid and raw. Boiled eggs are a popular breakfast food aro...

high haven
#

😦

#

anyway ive somehow fallen down the YT rabbit hole of weeb + eurobeat music

#

thanks rem

solemn tulip
#

no nightcore for the trifecta?

tardy rain
#

gf is stuck somewhere in the midlands

#

Some mild rain and wind is all it takes to make the train network collapse it seems

high haven
#

how far away is it

#

how long would it take you to get over there

tardy rain
#

I cant get over there

#

Its 3h away

high haven
#

bruh

tardy rain
#

I dont have a car, public transport is how we get around

high haven
#

i forgot

#

guess shes spending the night over there (?)

tardy rain
#

Idk

#

Its still early

#

If they start cancelling trains then yea

high haven
#

ah right now its just delayed?

#

not cancelling yet

#

?

tardy rain
#

Yea

high haven
#

gotcha

tardy rain
#

Other trains have been cancelled

#

Hopefully not hers

high haven
#

🤞

tardy rain
#

No one here to make me hot chocy

high haven
#

mar im going to need you to be independent

#

and make your own hot chocy

tardy rain
#

I have but its not as good

#

Idk how she does it

high haven
#

why dont you ask her

tardy rain
#

I've seen her make it tons of times

#

Im too stupid to reproduce it

high haven
#

as the zoomers would say

young shoal
#

bruh

high haven
#

||skill||

#

||issue||

tardy rain
#

Truly 😔

young shoal
#

give a man hot chocolate he drinks for a day

high haven
#

anyway, one of my friends took almost a full 24 hours to reply to my text

#

theyre not being invited to the next coffee chat smh

#

jk

#

maybe

young shoal
#

they'd just show up late anyway

tardy rain
#

24h late

high haven
#

cancelled

high haven
#

@rugged owl accurate depiction of healthcare data:

rugged owl
#

Speaking of which, so many problems would be solved by having a web UI that forces format. Prevention > clean

#

Looking at you insurance

tardy rain
#

Im down to half tests fixed and the sprint ends tomorrow

#

The joys of software development

high haven
#

and who cooks with their cat on the counter?

#

arent they afraid of eating cat hair

young shoal
high haven
#

🕯️

tardy rain
#

Never

high haven
#

rip mar

#

remind me to never go into frontend development

tardy rain
#

How do i get out of it tho

high haven
#

uhhhh

#

i sent you a book

tardy rain
#

Yes

high haven
#

fastapi + data skills > backend/data eng

tardy rain
#

But that means i gotta build projects

young shoal
high haven
#

frontend

#

then start doing more backend

#

then somehow end up in devops

tardy rain
#

I did ask to do some ops work

high haven
#

literally happened to a fullstack friend of mine after he was working for 5 years

tardy rain
#

But all i did was make more work for myself lmao

high haven
#

since no one wanted to do it

high haven
tardy rain
#

We'll see

#

Not yet anyway

young shoal
#

devops moment

high haven
#

anyway

tardy rain
#

But i imagine thats how it'll go

high haven
#

hmm everyones gone. guess ill delete.

young shoal
#

😦

high haven
#

||thats probably for the best||

#

jk

#

its just not as relevant for you

#

atm

young shoal
#

o

graceful snow
#

Here I am

granite tree
graceful snow
#

Whether A = {0, {0, 1}} is an element of B = {0, 1}?

dusky turret
#

ok

#

in python u can't do {{0}}

granite tree
dusky turret
#

basically sets aren't hashable

granite tree
granite tree
graceful snow
granite tree
#

Like, "Apple" is an element of {Fruit}

graceful snow
dusky turret
granite tree
#

<terrible example, let me think>

#

For A to be an element of B, that means you can look at B and find a single element that matches A

#

Does {0,1} have the (entire exact) element {0, {0,1}}?

polar galleon
#

Think about the sets as bags, A is in B means that if you open the B bag an look inside, you should see something that is identical to A

graceful snow
#

In the following case, I think that A = {0, 1, {2}} is a subset of B = {0, 1}, but not an element, right?

polar galleon
#

B = {0, 1} means the bag B contains two marbles: 0 and 1

granite tree
polar galleon
#

A = {0, {0, 1}} means A is a bag with one marble 0 and one bag {0,1}

graceful snow
polar galleon
#

So the A bag has another bag inside it

#

A does not contain a 1 marble.

dusky turret
polar galleon
#

thank you, fixed!

graceful snow
#

I'll send you something in 3 minutes. Can you check that for me, whether I have understand the set theory?

graceful snow
#

@granite tree @dusky turret @polar galleon

graceful snow
granite tree
polar galleon
#

P is powset?

graceful snow
polar galleon
#

You have an error in the topleft cell

young shoal
granite tree
#

First cell, you say that {0,1} is a subset of {0,1}.

dusky turret
granite tree
#

I mean, you say that {0,1} is an element of {0,1}. A set is not an element of itself.

granite tree
young shoal
#

I thought the confusion over "in" was what got us into this mess 😔

granite tree
young shoal
#

😩

#

in any case writing it using just logical symbols would probably remove any ambiguity

dusky turret
#

alright i'll go back to python discussion, good luck guys

graceful snow
#

Why is not A an element of itself?

polar galleon
#

A = {0, 1} (is a bag with two marbles) B = {0, 1} (an identical bag with two marbles)
Is A an element of B? NO, because A is a bag, and there are no bags inside B. @graceful snow

young shoal
#

technically this is impossible, by definition, but it's a bit complicated

graceful snow
granite tree
#

third row, first column)

granite tree
# graceful snow How about this?

Actually... wait. First row first column: What about B and A? A is a subset of B... but since they're equal, what about the reverse?

graceful snow
polar galleon
#

Is is, but also B is a subset of A

graceful snow
#

P({0, 1}) is equal to {{0}, {1}, {0, 1}}, so is {0, 1} a subset of {{0}, {1}, {0, 1}}?

graceful snow
graceful snow
#

{{0}, {1}, {0, 1}} cannot be a subset of {0, 1}

polar galleon
#

correct

graceful snow
#

Is {{0}, {1}, {0, 1}} an element of {{0}, {1}, {0, 1}}?

polar galleon
#

No

graceful snow
#

Is this {0, 1, {2}} an element of {0, 1, {2}}?

jovial oriole
#

Cant exist

#

Set doesnt have hash

#

error

granite tree
graceful snow
jovial oriole
#

Oh ok

#

Just saw

granite tree
#

Or, is A an element of A?

jovial oriole
#

A set is itself

granite tree
#

To which I replied: "No set is an element of itself" https://en.wikipedia.org/wiki/Axiom_of_regularity

In mathematics, the axiom of regularity (also known as the axiom of foundation) is an axiom of Zermelo–Fraenkel set theory that states that every non-empty set A contains an element that is disjoint from A. In first-order logic, the axiom reads:

    ∀
    x
    
    (
    x
    ≠
    ∅
    →
  ...
graceful snow
#

Is it like, the same set has to be in the same set again, like {0, 1, {2}} --> {{0, 1, {2}}}

granite tree
#

The left hand there is an element of the right hand side.

graceful snow
#

What about my final answers? Do they look clean?

granite tree
#

... sorry, I'm tired. one sec

#

Ok, let's talk about third row first column.

#

Is P{{0,1}} an element of {0,1}?

graceful snow
granite tree
#

I'm repeating what you wrote. You write A element of B. Which is: "P{{0,1}} an element of {0,1}"

graceful snow
civic pasture
#

A⊆B if and only if every element of A is an element of B.

granite tree
graceful snow
civic pasture
#

Which one?

polar galleon
#

I'll also have to leave, time to sleep 🪥

graceful snow
#

I think that P{{0,1}} is not an element of {0,1}

young shoal
#

that is correct

civic pasture
#

Isn’t that a power set?

graceful snow
civic pasture
#

What are the rules of power sets

#

Set A = {1,2,3}
Subsets of set A = {}, {1}, {2}, {3}, {1,2}, {2,3}, {1,3}, {1,2,3}
Power set P(A) = { {}, {1}, {2}, {3}, {1,2}, {2,3}, {1,3}, {1,2,3} }

#

Based on your question set A is actually a subset of the power set A

#

Well it’s an element

graceful snow
#

But in this case, P{{0,1}} is not a subset of {0,1}, whereas {0, 1} is a subset of P{{0,1}}

civic pasture
#

In the subset

#

P is not a subset

#

P is the power set

#

A is a subset in P

graceful snow
civic pasture
#

Yus

graceful snow
civic pasture
#

Looks good to me imo

civic pasture
young shoal
#

idk what the colors mean

graceful snow
polar galleon
#

It's incorrect

#

In similar ways as before

polar galleon
civic pasture
#

What do you mean?

#

Power set of A = {0,1} contains 2^2= 4 elements or subsets.

polar galleon
# civic pasture What do you mean?

The power set ℘(A) is the collection of all the subsets of A. Thus, the elements in ℘(A) are subsets of A. One of these subsets is the set A itself. Hence, A itself appears as an element in ℘(A), and we write A∈℘(A) to describe this membership.

But, A is not a subset of ℘(A)

civic pasture
#

Then the power set is the element of A?

graceful snow
#

Have I done a mistake?

civic pasture
#

@polar galleon knows better

#
  1. No set is an element of itself. ( But nothing prevents a set from being an element of another set).

(2) Every set is a subset of itself, every set is included in itself. ( Take any set, say {a, b,c}. Can you see an element of the set {a, b,c} that is not an element of the set {a, b,c}? Of course not! So the set {a, b,c} passes the test of inclusion, relatively to itself: the set {a, b,c} is a subset of the set {a, b,c}, that is to say, of itself. I said subset, not member!)

(3) Every set is an element of its power set .

Explanation :

(a) If a set X is a subset of a set Y, then X is an element of the power set of Y.

(b) But, the set Y is itself a subset of Y ( itself), because of law (2) above.

(c) Therefore, the set Y is an element of its own power set.

graceful snow
#

Alright, but where exactly is my mistake?

civic pasture
#

I assume A is not a subset

#

P(A) is the element of A

graceful snow
civic pasture
#

I’m not saying which one is wrong

#

Honestly I forgot set rules @polar galleon

#

I’m just saying as a fact that if A is {0, 1} and B is P({0,1})

#

B is an element of A

graceful snow
#

But also A is an element of B, right?

#

The set of A {0, 1} is an element of the powerset of P(A)

civic pasture
#

🥲

#

but they said thats wrong @granite tree

#

😢

granite tree
#

Since: P({0,1}) = {{}, {0}, {1}, {0,1}}

civic pasture
#

you are right

barren elbow
#

what’s a powerset

#

is it just every possible combination of all elements of the set

civic pasture
#

no its the set that contains the subset of a set @barren elbow

barren elbow
#

aren’t there multiple subsets of one set

civic pasture
#

empty set is not a combination tho @gritty zinc

barren elbow
civic pasture
#

yet its still in Powerset

barren elbow
#

it’s the set that contains all possible subsets of a set

civic pasture
#

YES DEAR

#

YOU GOT IT

gritty zinc
#

(if you have a set of n elements, there are 2^n possible subsets of it (because for each element, you may pick it or not). the set of all of these is the powerset)

civic pasture
#

guys whats the best Markdown app?

barren elbow
#

so the cardinality of a power set is always 2^ of the cardinality of the original set

barren elbow
civic pasture
#

for code highlighing

#

I wanna take notes

barren elbow
#

i haven’t done enough markdown to be qualified enough to answer i’m afraid

#

you could just use github

gritty zinc
#

you can use, like, vscode too

barren elbow
#

oh yeah

civic pasture
#

uh

#

vscode is basically a code editor

#

i want it look more professional

barren elbow
#

you will have to write your markdown in some format of text editor though

gritty zinc
#

alternatively check out something like obsidian

civic pasture
#

okay

bright grove
civic pasture
#

thank yu so much

#

Obsidian is amazin @gritty zinc

#

its gorgeous @bright grove

bright grove
#

discord server

#

i have a private discord server for note taking

uneven pine
#

With discords new expiry crap I don't trust it

#

Plus I don't want my notes scanned and used for AI training

low chasm
#

handwritten notes 😤

uneven pine
#

Yikes

uneven pine
#

Can't embed a YouTube video in a handwritten note

low chasm
#

no but you can copy down the transcript 😤

uneven pine
#

Also printing out all the art would be very expensive and wasteful

low chasm
#

guess it depends, then. I prefer all the notetaking I do for school handwritten

#

don't handwriting notes also benefit your ability to recall the information

young shoal
#

compared to typing, yes

grave cove
wanton delta
#

cleaning up data from a <table></table> in a webpage is fun 😄
😄

civic pasture
civic pasture
civic pasture
#

@grizzled estuary

grizzled estuary
#

Oh that is cool

#

Good for technical writing

civic pasture
#

Hell yeah

wanton delta
#

that's cool

#

i love obsidian's graph view though
and i structure my notes so that i can see the bigger picture.
which means

md files scattered everywhere

#

often these md files only have a line or two in it lol

civic pasture
#

Obsidian to the moon @wanton delta

polar galleon
rough sapphire
#

meow meow

cursive salmon
#

all the definitions involve having 1 or more elements

thin cloak
solemn tulip
cursive salmon
#

I just searched the definition

hearty violet
#

also no one looks at language grammar for technical definitions

#

you'll get a lot of casual usages

#

when certain fields use a word for a very specific thing

glossy niche
# cursive salmon

https://en.wikipedia.org/wiki/Combination this is the definition we want

In mathematics, a combination is a selection of items from a set that has distinct members, such that the order of selection does not matter (unlike permutations). For example, given three fruits, say an apple, an orange and a pear, there are three combinations of two that can be drawn from this set: an apple and a pear; an apple and an orange; ...

#

and its rigorously defined in the litererature and theres a lot of agreement on how its defined

cursive salmon
#

let me read that

civic pasture
#

Omg are you a dinosaur @cursive salmon

cursive salmon
civic pasture
#

😁

civic pasture
#

🤨

young shoal
#

it is a combination of 0 elements

civic pasture
#

How many different combinations can you make with 2 3 and 4

young shoal
#

2^3

civic pasture
#

Can you make a 000?

#

Or an empty combination

solemn tulip
#

00
01
10
11

civic pasture
#

No I’m talking about 2 3 4

solemn tulip
#

oh I saw the {1, 2}

#

yeah

civic pasture
#

They say empty set is a combination of {1,2}

solemn tulip
#

you can think of this as a bunch of bits saying take/don't take

civic pasture
#

That’s bits tho

young shoal
#

it's isomorphic to a combination

#

if you have a set of n elements you can represent subsets of it using an n bit number

solemn tulip
#

{2, 3, 4}

000 -> {}
100 -> {2}
010 -> {3}
001 -> {4}
110 -> {2, 3}
011 -> {3, 4}
101 -> {2, 4}
111 -> {2, 3, 4}
#

yeah, it's another way to interpret combinations

civic pasture
#

That’s specific to sets tho

solemn tulip
#

so...what are you asking about?

civic pasture
#

I dunno if I would say combination definition applies to that

solemn tulip
young shoal
civic pasture
#

Combination is definite as nCr

solemn tulip
#

picking stuff from a set, yes

acoustic moss
#

and u can put r = 0

solemn tulip
#

nCk corresponds to n bit numbers with k bits set

civic pasture
#

Do combinations of 2 and 3 @acoustic moss

#

Using the formula

acoustic moss
#

what formula

#

theres 2 things

#

theres nCr(2, 0) = 1 ways to pick 0 things

#

which is {}

civic pasture
#

C (6,2)= 6!/(2! * (6-2)!) = 6!/(2! * 4!) = 15 Possible Prize Combinations

The 15 potential combinations are {1,2}, {1,3}, {1,4}, {1,5}, {1,6}, {2,3}, {2,4}, {2,5}, {2,6}, {3,4}, {3,5}, {3,6}, {4,5}, {4,6}, {5,6}

solemn tulip
#

huh?

acoustic moss
#

thats number of ways to pick 2 things from 6

civic pasture
#

Let’s pick 1 out of 2 then

acoustic moss
#

we're picking 0 out of n

solemn tulip
#

n!/((n-0)! 0!) = 1

civic pasture
#

I think I’m talking about permutations

stark prawn
#

!e

import math
print(math.comb(2, 0))```
royal lakeBOT
#

@stark prawn :white_check_mark: Your 3.12 eval job has completed with return code 0.

1
acoustic moss
#

dang theres no comb emoji

civic pasture
#

Permutation is not combination

ruby fox
#

🪮🪮

solemn tulip
civic pasture
#

It is

stark prawn
#

!e

import math
print(math.perm(2, 0))```
royal lakeBOT
#

@stark prawn :white_check_mark: Your 3.12 eval job has completed with return code 0.

1
stark prawn
#

still 1

civic pasture
#

! Is permutation

solemn tulip
ruby fox
#

! Is factorial...

solemn tulip
#

you would have both {1, 2} and {2, 1} picked

civic pasture
#

A permutation is essentially an ordered combination, except the total length of each permutation must equal the original input.
Finding all permutations of a string is sort of the same as saying "find all anagrams of a string" (except our permutations might not all be real words).
There are two types of permutation: with repetition & without repetition.
Simple permutation example: "AB" has 2 permutations: "AB" and "BA".

#

When dealing with strings, often we refer to subsets as combinations. The idea is the same as subsets:
"AB" has 2^2 combinations (as there are 2 characters). So all 4 combinations of "AB" are: {}, {'A'}, {'B'}, {'A', 'B'}

solemn tulip
#

yeah, in your listing the first element is < the second

solemn tulip
civic pasture
#

So I was talking about permutations when I said {} is not in {1,2}

#

😂

#

I got them confused

solemn tulip
#

wdym by "is in"?

civic pasture
#

Like you can’t create distinct combinations with 1,2 using {}