#ot1-perplexing-regexing

1 messages · Page 55 of 1

empty prism
#

It's hard to understand how I don't understand it tbh lol, my dumb brain getting in its own way somehow

glossy niche
#

stolen from realpython ofc

empty prism
#

Thank you, I'll try it out this evening

zealous comet
#

isn't everything depending on the dose

tropic lichen
#

the deepest innermost workings of asyncio scare me, but the basic idea of "awaiting something lets your event loop go off and run something else while waiting" is probably the shortest summary of it

tulip falcon
#

Shortest depending on how many terms you want to define

#

You could go into coroutines but not as concisely

glossy niche
stiff siren
#

i think the clocks went back an hour @glossy niche

quasi blaze
#

Can you imagine a battle rap being shared and it gets removed because it’s too offensive?

spare oriole
#

Then are you just saying stuff hoping to elicit responses?

quasi blaze
jaunty wraith
quasi blaze
#

Who makes up these off topic channel names?

grave cove
#

everyone

quasi blaze
#

I want to make one up please

grave cove
#

then make one

#

just make sure it's funny

quasi blaze
#

Humour is subjective

grave cove
#

true

#

i should clarify
make sure it's funny enough to the mods to get added to the rotation*

quasi blaze
#

Rotation?

#

Where can I see the rotation?

grave cove
#

we rotate off topic names every day

#

!otn

#

hm

#

!otn-names

#

i recall there being a command

foggy jungle
#

!otn a

#

wait. no I'm stupid.

grave cove
#

everyone laugh at this user for failing to use the bot properly

low chasm
low chasm
quasi blaze
#

I don’t endorse gambling

grave cove
quasi blaze
#

If you are a gambler, I think you should stop.

#

I suppose sports betting falls under that category.

young shoal
#

gamblers are only one more try before winning big on average

quasi blaze
#

People have lost their lives over gambling

quasi blaze
#

That’s why I think it’s bad

young shoal
#

after they lose, they're due for a win. bet double the next time

quasi blaze
#

Crazy how some governments fund these casinos in their nations

#

Really goes to show you have high impulses

#

If you are a compulsive gambler

#

Impulsivity is not good

solid elbow
uneven pine
#

They just messed up an old joke

#

"fun fact, most gamblers quit right before their big win" paraphrase

thick ore
#

this fun fact inspires me to gamble my life savings 😃

tulip falcon
#

Monte Carlo

#

Rolled black 17 times in a row, keep betting double

#

Like when guy who invented chess wanted to be paid grains of rice doubled per square on the chess board brainmon

#

When you've already lost 10 times in a row your chance to lose this time is still the same as the first time lemon_pensive

#

So I'm playin with a loaded deck

#

Writing an algorithm with techno music on in a cyberpunk blue room

zealous comet
split heart
#

Remind me to never join the colleges esports club it’s filled with toxic musty people that’ve never touched a blade of grass in their life and only have ever had a social life in Valorant

#

People literally got mad over tier lists and muted me when I suggested ideas and activities for the club

#

Jesus

young shoal
vale raven
royal lakeBOT
quasi blaze
# royal lake

I wonder who programmed it to rotate every midnight

young shoal
#

you can easily check

quasi blaze
#

Bagel sandwiches are actually really good. Can taste better than bread sandwiches if you’re eating tasteful bagel like four cheese

#

My bagel sandwich
Four cheese bagel
Two slices of bacon
Fried Potato crumbs
Lettuce
Tomato
Fried Egg
Sprinkle salt and pepper
Maple Syrup

ruby fox
#

Guys why do we have our own pasting website 🤔

#

We could just use pastebin right?

grave cove
#

We're just using our own paste bin

ruby fox
#

Nah, we have our own, that means, we are hosting it with money

tulip falcon
#

!paste

royal lakeBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

ruby fox
#

Well lol, why not the normal pastebin? Why we have to create our own?

grave cove
#

more control presumably

tulip falcon
#

I was checking if it redirected or something

grave cove
#

Better than being at the whim of someone else

ruby fox
grave cove
#

What if we wanted to customize something?

#

Or they have an outage?

tulip falcon
#

Custom pastries

jaunty wraith
#

we do upstream most, if not all, of our changes to pinnwand (the software that powers our pastebin)

grave cove
#

Yeah, having our own hosted instance gives us a lot more flexibility

jaunty wraith
#

if the official instance goes down, we'd be affected too
so we host our own instance

grave cove
#

Having our logo on the pastebin

tulip falcon
#

User analytics brainmon

jaunty wraith
#

plus, || there's plenty available compute on the cluster ||

grave cove
#

the cluster must grow

ruby fox
#

Well lol, thanks for answering, I'm currently doing a presentation for the code jam

distant hazel
#

say hello to morning sunshine penny

#

cc @wintry skiff

wintry skiff
#

adorable

distant hazel
vale raven
#

@distant hazel have you considered a job in photography?

distant hazel
#

nah, this is just iphone's portrait mode working well

quasi blaze
#

So many modules and decorators that I don’t understand

distant hazel
tardy rain
#

what a cutie

distant hazel
#

ikr

vale raven
distant hazel
#

our semi-daily routine is sitting in the driveway and watching the birds, squirrels, people, dogs and cars

vale raven
#

I wish I had time to do that

#

And like, there were actually squirrels and cars around

distant hazel
#

she's shifted my schedule to be a morning person lol

#

i live in such a quiet neighborhood it's quite nice

vale raven
#

If I try to sit down with my dog, she quite literally starts crying because she's so upset we're not walking anymore

distant hazel
#

aw, i can't wait to walk more with penny. she gets too excited and either zooms forward or in circles, or doesn't want to move from a spot she's sniffing

jaunty wraith
#

we demand zoomies

#

show zoomies

vale raven
#

Well that was dumb

vale raven
#

WAT

#

HECKS

jaunty wraith
young shoal
#

aboose

jaunty wraith
#

use an embeddable format smh

vale raven
jaunty wraith
#

put it through the churner

vale raven
tulip falcon
#

Running human in their natural habitat

jaunty wraith
#

can barely see dog, 4/10

tulip falcon
#

🏃‍♂️

vale raven
tulip falcon
#

Yes walking a dog is hard I never figured it out

vale raven
jaunty wraith
#

dog too slow to qualify for zoomies NA/10

wanton delta
#

aww why she cryin

vale raven
vale raven
wanton delta
#

so eager

#

good dog

vale raven
distant hazel
vale raven
#

Moyen has a new picture

vale raven
#

We're uh... Not athletic

distant hazel
#

idk he seems pretty athletic, how old is he?

jaunty wraith
#

vale raven
#

He'll be 4 in December, that was a few months ago

jaunty wraith
distant hazel
#

yeah maybe it's a gratuitous clip but that is very impressive to me lol

#

he's 3!

wanton delta
#

dogs and sticks

ruby fox
jaunty wraith
#

kid with steel vs dog with steel
who will win?

distant hazel
#

so the photos and videos i post online are definitely one-sided

jaunty wraith
#

the solution is to use a gopro

vale raven
jaunty wraith
#

did I stutter

distant hazel
#

are they that much?

#

oh yeah ig so

vale raven
#

Even more for the bigger ones

vale raven
#

@jaunty wraith where's your dog?

young shoal
jaunty wraith
jaunty wraith
vale raven
#

2022

#

Relatively

jaunty wraith
#

1.5 years is ages ago

vale raven
jaunty wraith
#

I live with my family and they don't want pets

vale raven
#

Do you?

jaunty wraith
#

apparently mom's family had a dog when she was a child, which is why she doesn't want us to have pets

tulip falcon
#

I mean everyone has pets die if that's what happened

jaunty wraith
#

ikr

frozen coral
grave cove
#

source?

low chasm
#

apparently my mom's family has had parrots for a couple generations

#

I'm totally getting a parrot when I'm older

tardy rain
#

dont

#

parrots are so much effort

glossy niche
#

parrots are a lot harder to take care of that ppl think

#

and they live LONg

tardy rain
#

theyre loud af, they smell

low chasm
#

I see

glossy niche
#

and demand a lot of attention

tardy rain
#

and yea they'll outlive you lmao

low chasm
#

but they're so cute

tardy rain
#

and also theyre very social, you need a pair or more

low chasm
#

my grandmother has like six lol

tardy rain
#

get a pigeon or something

low chasm
#

a couple of parrots and a few smaller lovebirds

tardy rain
#

they cute

low chasm
#

but they don't talk

glossy niche
#

get a cat or a bunny

#

easy to take care of

low chasm
#

cats are very based

tardy rain
#

you dont want talking parrots

glossy niche
#

doubles as a pillow

low chasm
#

peak pet

tardy rain
#

they wont shut up

jaunty wraith
#

cat

glossy niche
#

dogs fking suck i hate them so much

tardy rain
#

unbased and cringe opinion

glossy niche
#

i hate things that are loud

low chasm
#

my grandmother's old parrot, which has since died, had like, a nicotine addiction

glossy niche
#

not to mention, they scare the cats >:(

low chasm
#

dogs aren't bad, cats are just better

young shoal
#

bro was addicted to nic

jaunty wraith
glossy niche
low chasm
glossy niche
#

but i guess thats what opinions are about

low chasm
#

and the parrot started asking for it like, daily

tardy rain
#

i have an uncle that had 2 grey macaws and one cool original flavour

#

whenever you visited you left with a headache

#

mfs were so loud

jaunty wraith
#

flavour?

glossy niche
low chasm
#

bunnies get pretty smelly too, yeah?

tardy rain
glossy niche
#

we literally had to separate them

tardy rain
#

.wiki blue parrot

median domeBOT
#
Wikipedia Search Results

Blue parrot
Blue parrot or Blue Parrot may refer to: Bird: Blue-backed parrot, a parrot endemic to the Philippines, Sulawesi and nearby islands in Indonesia Blue-bellied

Dead Parrot sketch
Monty Python's Flying Circus about a non-existent species of parrot, called a "Norwegian Blue". A satire on poor customer service, it was written by John

tardy rain
#

lmaooooo

glossy niche
#

birds apparently get aggressive?????????????????????????????????????? pithink

ruby fox
low chasm
#

my grandmother got a couple of bunnies, but had to give them away since they got smelly

tardy rain
glossy niche
#

ifu want a bird, parakeets r nice and cute, and not loud

low chasm
#

they were super cute though

#

if you pat their heads, they'd go to sleep

glossy niche
#

they pee everyWHERE

low chasm
#

I'll get a cat 😤

#

I'm slightly allergic though

#

but it's whatever, I'll cope

jaunty wraith
young shoal
#

bruh

tardy rain
#

there are hypoallergenic cats

low chasm
#

hmm

glossy niche
#

i remember one time my a hole neighbours kid decided to break into my backyard to try and steal my bunny

i saw him and told him, and proceeded to take my bunny away, then the bunny FKING PEED ON ME

low chasm
#

apparently siamese cats are hypoallergenic

jaunty wraith
glossy niche
#

after that he decided he didnt want a bunny for some reason

#

i womder why

low chasm
#

one of my dad's friends had a persian cat

glossy niche
low chasm
#

it was fluffy, but didn't do much of anything

glossy niche
#

i also heard from friends taht they r actualyl really soft

tardy rain
#

flat faced cats bad

#

same with dogs

jaunty wraith
#

sure

glossy niche
#

why cant i have one as a pet smh

low chasm
#

apparently hypoallergenic cats aren't completely hypoallergenic 😔

#

perhaps there's medication I can use

jaunty wraith
#

or get a dog

#

they're honorary cats

low chasm
#

ruby fox
#

Get a ancient common predecessor of cats and dogs 👍

tardy rain
#

get a lizard

grave cove
ruby fox
tardy rain
#

they need a tank and a light

#

but thats about it

#

unless youre too grossed out to feed them insects

wanton delta
#

Arent reptiles high maintainance

low chasm
#

like snakes?

jaunty wraith
#

get a plant

low chasm
#

I assumed the opposite

tardy rain
#

geckos are pretty entry level

wanton delta
low chasm
#

hmm

ruby fox
#

Get a pet dragonfly

#

It's cool to see them fly

vale raven
low chasm
#

they seem fairly low maintenance, at least

jaunty wraith
wanton delta
#

Cold area, hot area, humidity yada2 idk some of them are more high maintainance than me

low chasm
#

I see

jaunty wraith
#

we can use them as a mascot

ruby fox
#

I had a pet dragonfly lol

wanton delta
#

How do you keep it from flying away

ruby fox
tardy rain
#

a food source

#

why would it leave?

grave cove
#

i want a bunny

wanton delta
#

How tf do you train a dragonfly

Do they even live long enough to survive the training period

grave cove
#

🥺

#

their little nose 🥺🥺🥺

ruby fox
wanton delta
#

Based

ruby fox
#

And you would need a insect box, a bigger one

wanton delta
#

Ooh u had a box

jaunty wraith
grave cove
#

Chris has very cute bunnies

glossy niche
#

if you get 2 bunnies you will end up with 30 within 2 months

tardy rain
#

get 2 females

#

...unless

#

is there a bunny god

glossy niche
#

my friend bought 2 bunnies and ended up with 24 shortly after

wanton delta
#

They'll find a way

ruby fox
#

My grandfather had lots of bunnies lol

glossy niche
#

he kept them on the roof of his house (roofs here are flat and have fences around them so you dont fall off)

#

and then an eagle ate them

low chasm
#

my grandmother bought two bunnies, but they were babies

glossy niche
#

😃

low chasm
#

and then gave them away cuz of the smell

ruby fox
tardy rain
#

bunnies are farm animals, you dont want them in an apartment

grave cove
low chasm
#

beus

ruby fox
#

My grandfather had like a large free area, so he grew goose, bunnies, pigeons and many more

low chasm
#

neat

glossy niche
#

dogs aslo require a lot of space, if you get a dog, you will need to walk them often, this is harder if you dont have a backyard or sth

jaunty wraith
grave cove
#

🤨🤨🤨

#

that's illegal

jaunty wraith
#

have you learned anything about greek mythology?

wanton delta
#

But zeus is god of gods

#

I think

jaunty wraith
#

because a lot of stories start with zeus

ruby fox
#

Ah yes Zeus, your friendly neighborhood offender

#

I can't say what offender though

tardy rain
#

Its ok cause he turns into an animal

#

Or he does the animal

jaunty wraith
#

sometimes, he doesn't

tardy rain
#

Either way animals are involved

ruby fox
wanton delta
#

Sometimes

ruby fox
tardy rain
#

The one true pick up artist

jaunty wraith
#

wanton delta
#

Is that how centaurs came to be

ruby fox
grave cove
glossy niche
tardy rain
#

The centaurs were usually said to have been born of Ixion and Nephele.[6] As the story goes, Nephele was a cloud made into the likeness of Hera in a plot to trick Ixion into revealing his lust for Hera to Zeus. Ixion seduced Nephele and from that relationship centaurs were created.
What in the fuck

jaunty wraith
#

wild

wanton delta
#

💀

tardy rain
#

Guy does cloud and out come horse man hybrids

glossy niche
#

did greeks belibe this stuff or did we dig up someones fan fic and just assume it was a belief

ruby fox
#

The guy who came up with this story is the best pickup artist

sinful solar
#

new head cannon

glossy niche
#

greek mythology is just like baki pithink

#

woah

sinful solar
#

explosion noises

ruby fox
#

Try not to get banned challenge 👍

wanton delta
#

Id rather it be made up shiz by some drunkard high on whatever was trending at that time

grave cove
#

greek lore thickens

wanton delta
#

Bet a lot of things were fair game at the time
😨

ruby fox
#

Try not to seduce challenge 🔥

#

Nvm i can't believe those people who say that older times were great

glossy niche
#

CHAT IS THIS REAL

jaunty wraith
#

sanpchat

glossy niche
#

never used slapscat before pithink

jaunty wraith
#

this reminds me of that population map xkcd

ruby fox
#

Yeah lol this is real

grave cove
jaunty wraith
#

.xkcd 1138

median domeBOT
#

There are also a lot of global versions of this map showing traffic to English-language websites which are indistinguishable from maps of the location of internet users who are native English speakers.

glossy niche
glossy niche
grave cove
#

🗿

jaunty wraith
#

the chart is basically inversely proportional to the growth of internet users worldwide

glossy niche
#

i hope threads dies fast that would be funny

#

i think

jaunty wraith
#

it doesn't tell you anything about the quality of any of those platforms

#

(they're all garbage)

distant hazel
#

new daycare place and she's having fun

jaunty wraith
#

caught while zooming

distant hazel
#

yup

grave cove
#

omg the ears on the left picture

tulip falcon
#

Straight jumping off the table

rough sapphire
#

dogs don't like me, they bark at me every time they see me

#

some of them are even scared

#

idk why

gritty zinc
#

what's an example of a function, let's say on [0, ∞], that's roughly exponential at the start but approaches linearity afterwards?

#

hmm, I think ln((1+exp(x))/2) would do

#

wait, no, that's not really... hmm.

tulip falcon
gritty zinc
#

forgot to mention, should be monotonic and continous

#

I basically want a hybrid of np.geomspace (at the start) and np.linspace (at most of the interval)

tranquil orchid
tardy rain
#

companies are never up to anything cool

crystal spruce
solemn tulip
hexed sierra
#

.wa s plot 20e^(-x/2) - x from x = 0 to x = 20

median domeBOT
hexed sierra
tulip falcon
#

Not for its users

#

It's uncool, and highlights the problems of non-FOSS software

#

Anything that happens is at a whim of companies

glossy niche
#

this is why elysia is the best framework

#

BETH stack ftw

thick ore
#

bun getting so much love while it doesn't even work well on Windows 😔

glossy niche
#

btw ive heard ppl running it via WSL successfully so i guess you can use that? pithink

#

im a filthy windows user as well so ia ctually havent tried it yet lol

ruby fox
thick ore
#

kinda windows support

#

it works bad

glossy niche
#

it also uses zig, which hasnt reached version 1.0

#

funnily enough, bun has VC money in it

#

but the dev team seem like sensible ppl so i hope they dont chase the bag too hard

thick ore
#

Bun provides a limited, experimental native build for Windows. At the moment, only the Bun runtime is supported.

bun <file>
bun run <file>

The test runner, package manager, and bundler are still under development. The following commands have been disabled.

bun test
bun install/add/remove
bun link/unlink
bun build

rough sapphire
#

nah i don't think bun will replace anything fr

uneven pine
#

What is bun

#

It's impossible to Google that name

#

Oh man

#

The shipping estimate says it'll get here on the start of my work week

#

Yikes

ruby fox
uneven pine
#

Oh it's javashit crap?

glossy niche
harsh tundra
glossy niche
#

the big thing about it is that its node API compaitible for the most part, but a lot faster

ruby fox
glossy niche
#

so for some, its a drop in replacement for faster performance

ruby fox
uneven pine
glossy niche
#

blazingly faster!!!!!!!111!!!

uneven pine
#

Shipping alone was $57 US

plush sun
uneven pine
#

Anyone to willing use JavaScript for backend is no friend of mine

glossy niche
ruby fox
glossy niche
#

JS for backend is pretty nice if its next JS or a similar framework

#

simplifies work a lot

harsh tundra
glossy niche
#

but if its just a rest API, its probably not as good as its competitors

ruby fox
glossy niche
#

a lot of them have techbro syndrome

ruby fox
glossy niche
#

like 80% of their content is nice and then they go off and start dropping weird takes that you usually only see in second year CS classes

uneven pine
#

It's all credit card debt

#

🤣

harsh tundra
#

I buy from the US mainly when there are any promos, two times the promo code basically only offset the shipping costs... And then customs and vat on entry...

edgy ember
#

hello

#

hay

uneven pine
#

Well niche hobby items are rarely US based I've found

edgy ember
#

.

#

,

plush sun
#

;

low chasm
#

if so, please don't spam - if you spam to meet the requirements, you'll be voice muted.

#

contribute meaningfully, you'll get there.

edgy ember
edgy ember
grave cove
#

it appears as if so

low chasm
#

.8ball am I a moderator

median domeBOT
#

Signs point to yes

low chasm
#

you heard em

jaunty wraith
#

.8ball is aboo a good moderator?

median domeBOT
#

You may rely on it

jaunty wraith
#

it has spoken

vale raven
#

Very non-committal

#

Is he good?
He's....... reliable

uneven pine
#

That's not how that should be read

#

That's "you may rely on the fact he is a good moderator"

solemn tulip
#

snuday?

young shoal
#

not quite

eternal depot
#

.8ball is shananigans a doggo?

median domeBOT
#

Yes

eternal depot
#

.8ball is shenanigans a good doggo?

median domeBOT
#

Signs point to yes

solemn tulip
#

.8ball is shananigans a catto?

median domeBOT
#

Concentrate and ask again

solemn tulip
#

.8ball is shananigans a fuckin cat?

median domeBOT
#

It is decidedly so

solemn tulip
#

ok then

young shoal
#

sheesh

eternal depot
#

@vale raven it is confirmed you are a cat dog

vale raven
#

Spitting out random heckery is ezpz

eternal depot
grave cove
#

lol

harsh tundra
vale raven
#

It’s too chewy!!

harsh tundra
#

Depends on how you do it, I guess. 🤷 I generally don't eat seafood (not my taste), but my partner cooks and sometimes uses mixed seafood and there's octopus there

tardy rain
#

If octopus is chewy you overcooked it

#

Same with calamari

#

My grandma used to make this wine braised octopus dish, its so good

rough sapphire
#

Aged like wine

quasi blaze
#

I’m reminiscing about the golden days of me playing San Andreas Roleplay. They had an official Ventrilo server and my gang had our own gang channel in it. I kicked a General Admin out of our channel because I didnt want him in it. His ego got hurt so he temporarily banned me.

tardy rain
#

Youre roleplaying as a gang member and you "disrespected" one of the seniors

#

Sounds on-brand

quasi blaze
tardy rain
#

I’m reminiscing about the golden days of me playing San Andreas Roleplay. They had an official Ventrilo server and my gang had our own gang channel in it. I kicked a General Admin out of our channel because I didnt want him in it. His ego got hurt so he temporarily banned me.

#

That sounds like its you

quasi blaze
reef goblet
vale raven
reef goblet
#

I love octopus balls

quasi blaze
#

Cancel Culture is basically collective sadism; a collection of people virtually getting together to find dirt on somebody of what they did in the past. It’s disgusting.

#

They are really obsessed with harming people’s reputation.

spare oriole
vale raven
#

"general admin"

#

"general + admin"? Like the S1 got a promotion?

#

Or "generic admin"?

#

What would a "specialized admin" look like?

quasi blaze
spare oriole
quasi blaze
vale raven
#

Where'd it go?

quasi blaze
quasi blaze
vale raven
#

"Why did it get canceled?"*

spare oriole
#

in which someone is thrust out of social or professional circles – whether it be online, on social media, or in person.
sure fits the bill to me

quasi blaze
# spare oriole

Cancel Culture is a manifestation of collective sadism. They simply attempt to cancel people out of pleasure and think they hold a higher moral ground than the people who are trying to cancel people. I kicked the admin out of the channel because I didn’t like him.

spare oriole
quasi blaze
vale raven
# spare oriole

Okay, I'm sorry, but I'm going to have to cancel you
Using BING is COMPLETELY UNACCEPTABLE

spare oriole
quasi blaze
spare oriole
#

no, that's a sympton of trash human beings if they're in reality defaming,

#

but you dont need to defame people in order to cancel them

#

in fact most "cancel" culture i've seen has been without defaming

#

the few times i've seen someone defame in order to cancel, it turned out to be a lie (which is defamation) or simply someone who didn't have all the facts

quasi blaze
#

You bring up a fair argument that the admin I kicked is ostracism which is what Cancel Culture creates. But my motives of kicking him out my channel were completely different.

spare oriole
#

it sounds like "cancel culture" was just a "sympton" of you disliking that person

#

your words.

quasi blaze
spare oriole
#

no, you took actions to ostracize them from your surroundings, you kicked them out of your server, that was the cancel culture in your actions

quasi blaze
spare oriole
#

okay, that doesn't change much

quasi blaze
carmine bane
spare oriole
#

that's like, not much better than calling them dumb

young shoal
#

or they are all substantially more intelligent than everyone else

spare oriole
young shoal
#

I mean, not really

undone thorn
#

based

#

maybe they all have similar areas of expertise :%)

wanton delta
#

We will sound dumb anyway at some point so better do it now

small coral
#

how many tries does it take maximum to solve a random number generator of numbers between 1 and 1000 using the cut in half kinda thing

#

because it seems like it only takes a maximum of 10 tries

primal herald
#

It should be ceil(log2(1000)) = 10

crystal spruce
#

i think that depends slightly on your implementation of binary search?

#

because when you compare you partition it into 3 sections not 2 since you can exclude the element you're comparing against from subsequent searches

glossy niche
#

I think that the ceil handles that

#

if you have an odd sized array, you end up with a half when dividing the size by 2

#

oh wait, that would néed a floor not a ceil pithink

solemn tulip
#

if you're looking for the transition from true to false in the predicate you have an interval [l, r) where pred(l) = true and pred(r) = false, if you look at the midpoint pred(mid) you'll find that the new interval is either [l, mid) or [mid, r)

crystal spruce
solemn tulip
#

r = middle
l = middle

#

no -1

crystal spruce
#

why no -1?

solemn tulip
#

l is the largest known value with the predicate being true, r is the smallest known value with the predicate being false

#

so if pred(middle) = true it's the new largest known true, if false the new smallest knowm false

#

the beauty of phrasing in terms of inclusive-exclusice

crystal spruce
solemn tulip
#

and you would continue searching while r - l > 1

#

and when you finish you have an l and r that straddle the transition true→false

hexed sierra
#

i also have to pithink this one

ruby fox
#

🤔

solemn tulip
#
def bs(l, r, pred):
  """
  Precondition:
    pred(l) == True
    pred(r) == False
  """
  while r - l > 1:
    mid = (l + r)//2
    if pred(mid):
      l = mid
    else:
      r = mid
  return l, r
ruby fox
#

Whats this binary search lol?

hexed sierra
#

this is ignoring trichotomy though

ruby fox
#

What's trichotomy?

solemn tulip
#

usage like

bs(0, len(arr), lambda i: arr[i] < value)
#

for search in sorted array

ruby fox
hexed sierra
#

... search in a sorted array 😛

ruby fox
#

Well lol "in" operator is looking tasty rn

hexed sierra
#

since the array is sorted, you know that if you compare an element in the array and it doesn't satisfy a condition, all the elements before or after it also don't satisfy the condition

ruby fox
#

If we are talking about algorithms then 🤔

solemn tulip
ruby fox
#

Binary tree? 🤔

solemn tulip
#

a sorted array is a data structure 🥴

#

why build a binary tree?

#

wasted effort if you have a sorted list

hexed sierra
#

binary search is equivalent to building a binary tree anyway

solemn tulip
#

other than having to build the tree

ruby fox
hexed sierra
#

you build it as you split into left and right. that's the same as deciding the branches and also automatically going down a branch

#

it's equivalent

glossy niche
ruby fox
#

Maybe a hashmap?

hexed sierra
glossy niche
#

what is the problem here?

solemn tulip
hexed sierra
#

the original point was stickie saying that, due to trichotomy, in special cases, binary search can be a little faster than ceil(log2(N))

solemn tulip
#

trichotomy would usually require more than one check, no?

hexed sierra
#

it would

solemn tulip
#

so you lose a factor of two

ruby fox
#

Then what's stopping us from "n" partitions?

hexed sierra
solemn tulip
#

unless you have more rich comparisons, e.g. returning -1, 0, 1

glossy niche
#

I remember implementating bs for an interactive problem at an acm icpc style.contest and it it took precisely ceil(log2(n)) to find an element as a worst case pithink

ruby fox
glossy niche
#

like the judge would fail my submission if I did one query too many

hexed sierra
ruby fox
hexed sierra
#

the argument being that you can discard one extra element at some comparisons in the binary search

graceful basin
#

Python has a bisect module that implements bs in most useful shapes

solemn tulip
hexed sierra
#

the transistors in my computer have 3 states

ruby fox
#

Huh, shouldn't it be 2?

solemn tulip
#

bisect requires you to work on some sequence iirc

hexed sierra
crystal spruce
#

well cereal's question was "how many tries"

ruby fox
#

Lol

crystal spruce
#

not "how many comparisons"

graceful basin
#

Ye, but you can magic it into existence with some class and a custom getitem

solemn tulip
solemn tulip
graceful basin
#

But ye, there are cases where you need even different binary search

#

Than what bisect can do

solemn tulip
#

what info do you get out?

hexed sierra
#

define define

ruby fox
#

Try and comparison is same in this case, as they tell about the number of loops we are doing

solemn tulip
ruby fox
#

A loop will contain 2 comparisons, and one try

crystal spruce
#

I'm assuming he was asking "a random number from 1 to 1000 is generated, and you can guess the number and either get it correct, or be told if the number is less than or greater than your guess, how many tries is needed at maximum"

solemn tulip
#

that gives you richer info than just a true/false yeah, in which case you can so slightly fewer queries

ruby fox
#

And the first choice would be either ends

crystal spruce
#

no like how many tries do you need in the worst case scenario if you're playing optimally

solemn tulip
ruby fox
solemn tulip
ruby fox
solemn tulip
#

if you get <, == or > as a result of one query you can do slightly more

#

if you only get < or >= you can't

ruby fox
#

🤔

solemn tulip
#

and you have the pretty generic binary seach code I shared

ruby fox
#

I actually feel like, if the sorted array is 1-1000, we can find the target number in 2 tries

#

First try gives the distance between the target and our assumption

#

Second try, we increment or decrement the assumption by the distance

solemn tulip
#

again...the query you can make matters

hexed sierra
#

the only way to compute the distance in this case would be to test all elements of the list

ruby fox
#

Yeah, but like I said, if it's 1-1000 integers

hexed sierra
#

yes, but which integers?

ruby fox
#

1,2,3,4,....1000

hexed sierra
#

then the problem is trivial, you already know the list

#

there is no need to compare anything, you already know the indices

#

you need 0 checks

ruby fox
#

Yeah lol

hexed sierra
#

we don't care about the trivial case

ruby fox
#

But random numbers 🤔

hexed sierra
#

"arbitrary" is a better word than "random" here

ruby fox
#

Yeah you are right

#

Or can we use properties of the target number?

#

Like 🤔 0 has some properties

#

Still it's bad ig

#

Idk why, but if we can make like a complete graph of nodes of the elements, we can find the number in two tries maybe ¯_(ツ)_/¯

#

Like a mesh network

#

Each node is connected by all other nodes, so we can find any number of it exists

hexed sierra
#

it's great to see you have interest in these problems and a creative mind. i would encourage you to try out a book on data structures and algorithms

solemn tulip
ruby fox
solemn tulip
#

putting your elements in a set would allow super cheap membership checks, but costs you O(n) up front

hexed sierra
ruby fox
hexed sierra
#

in the current problem, you already receive a sorted list. there is no cost to that

#

if you want to change it into anything else, you incur a cost

ruby fox
#

We would need to find a way of accessing the elements, like we were able to make binary search without making the actual tree

#

Would it be actually possible 🤔

hexed sierra
#

as i said earlier, the two things are equivalent

#

binary search is equivalent to building traversing a binary tree

#

they have the same cost

solemn tulip
#

not building

#

traversing

ruby fox
#

Yes, but building a binary tree is different

#
  1. Build tree
  2. Search tree
hexed sierra
#

building a tree will make it slower necessary

#

you can actually do the two things at the same time tbh

ruby fox
#

Here, in binary search, we are able to traverse a non existent tree

hexed sierra
#

at best it'll be the same complexity, at worst it'll be slower

ruby fox
#

My take is, is it possible to traverse a non existent complete graph?

hexed sierra
#

that sounds like the travelling salesman problem

solemn tulip
ruby fox
ruby fox
hexed sierra
solemn tulip
#

you have O(n) neighbors

ruby fox
#

Maybe I'm mixing hashmap and graph theory lol

#

Using hashmap to access the Neighbors

#

In a graph

solemn tulip
#

that would require constructing a hashmap

ruby fox
#

Like in binary search

solemn tulip
#

the binary search works because of a property of the array, that it is sorted

ruby fox
#

Maybe because binary tree has a logic of "left elements < middle element< right element"

solemn tulip
#

that's kinda the only useful property we really have

ruby fox
#

Binary search with linear probing 🤔 nvm lol I'm thinking of imaginary stuff

#

Ig, we only get 3 types of comparison in our number system

#

,<,==

#

What if we used principle of radix sort?

#

Like if the target is 34

#

We can skip numbers with 2,4 in tens place

solemn tulip
#

that's effectively doing several binary searches

#

first you binary search to get the range of numbers with the correct leading digit, then binary search the second digit

glossy niche
#

you can also use it on a non sorted array to find a "hill"

#

or an element larger than its 2 neighbours

#

its kind of trippy but it works

quasi blaze
#

What do you guys think the maximum percentage of income people should spend on their hobbies?

young shoal
#

100%

tranquil orchid
#

I mean that depends on your situation really, I'm a student who doesn't have many responsibilities, all I really spend money on is car things, food, random stuff I want to buy, and hobby stuff

#

At the moment hobby stuff probably makes up around 50% of my weekly spending 👀 (which is only about maybe 20-30% of my weekly income, I tend to just shove >=25% in savings)

#

Bouldering do be expensive

glossy niche
#

i think it depends on both your situation and the situation of the people around you pithink

harsh tundra
#

Well, in ideal world everyone would be able to live comfortably, so the money earled would be spent on doing what you want. So max would really be 100%.

glossy niche
#

technosocialism when

harsh tundra
#

It's sad that all this automation etc in the world is used to pad the pockets of wealthy, instead of making the world easier for everyone :c

glossy niche
#

this realisation is actually what initially got me into politics

#

i was looking at things like chatGPT with fear of technological unemployment

#

and then it dawned on me:

#

"I fucking hate javascript just take my job already"

tranquil orchid
#

Frontend web dev moment

young shoal
#

get a cooler job fr

glossy niche
#

recently ive been going backend so thats nice

#

FP shilling o'clock

#

tl;dr: instead of putting guards everywhere for validation, parse your data into a datastructure that cannot possibly represent an invalid state, this means that you can be 100% sure at any given moment that a certain object is valid, its kind of like pydantic but a little more general

harsh tundra
#

I think my phone's settings "app" got fucked up. Battery settings show this.

quasi blaze
#

Will a GET request response be 400 if there’s literally no data to grab on the server?

glossy niche
#

wouldnt that be a 404 instead? pithink

#

400 indicates that your response is not correctly formed

#

so either a 404 or a 5xx if the server is supposed to have content but doesnt for some reason

#

i imagine a 503 would be correct here if its supposed to have data but doesnt atm

quasi blaze
#

But I was still sending GET requests

#

To see if my keys would work

solemn tulip
#

400 Bad Request
The server cannot or will not process the request due to an apparent client error

#

which does not seem like your case at all

#

eben something weird like 501 might be apt for this weird scenario

quasi blaze
#

Damn I should have tried a POST request instead after all this time since the sandbox is empty

#

Maybe not.

solemn tulip
#

if the request doesn't make sense, at least return some error

#

if it makes complete sense that the request is empty, then maybe it's fine

hallow frigate
#

Shopping for food and saw this:

#

"wild caught" "this product comes from a fishery"

harsh tundra
young shoal
harsh tundra
#

By no endpoint it can mean like /something/123 where the endpoint is /something/<id> but 123 doesn't exist

young shoal
#

404 for that is kinda weird though

harsh tundra
#

Why? That particular resource doesn't exist then

#

404 is specifically for resource (e.g. page) not found. But wrong endpoint, server going "idk what you mean with this url" is generalisation

young shoal
#

meh. i guess

quasi blaze
solemn tulip
#

maybe your request is actually malformed, who knows

#

or whatever you're querying are returning bad status codes

tardy rain
#

We'll never know

young shoal
#

there is literally no way to guess the correct answer

solemn tulip
#

||if only we had all the info||

tardy rain
#

You either know or you dont

#

At this point just email support

quasi blaze
#

That’s what I did. They didn’t get back to me yesterday. I’m quite annoyed.

glossy niche
#

better yet, send them your request body, headers and params and tell them to send you a .json back

quasi blaze
#

Biggest technical mystery

solemn tulip
#

you know, you could share the request sent, the one that works and the one that doesn't

tardy rain
#

None of them ever worked

solemn tulip
#

that way we could actually start to reason about whether 400 seems reasonable or if it's bad behavior on the server

tardy rain
#

One is a 400 and the other is a 401

quasi blaze
solemn tulip
#

which makes sense if the key is no longer valid

quasi blaze
#

I’m off work on weekends so I won’t be able to show you until Monday

tardy rain
#

Smh not dedicated enough to the grind

quasi blaze
solemn tulip
#

yet you're looking into this on a weekend

young shoal
#

😬

#

work do be living in your head rent free 😬

tardy rain
#

Make sure to tell your boss you were working on it on the weekends

#

Preferably during lunch

#

🫢

#

Maybe if you see them doing a hallway

#

Right after you greet them

#

You know how it goes

quasi blaze
# solemn tulip yet you're looking into this on a weekend

A senior developer once told me a 9 to 5 in software development isn’t actually a 9 to 5. There will be times where I would need to spend my free time researching new technologies, modules, softwares and etc is what they claimed.

young shoal
#

do that during work

glossy niche
#

make a motivational post on linkedin telling everyone how dedicated you are to seeing your company achieve great things and how invested you are in giving it your all lest your contributions are not enough to elevate your organisation to the place it so deserves

tardy rain
#

Its most likely in your contract

glossy niche
#

fk i have linkedin disease from writing all thsoe cover lettesr

quasi blaze
# young shoal do that during work

So you’re telling me software development is simply a clock in and clock out kind of job? Don’t Doctors of medicine also spend their free time researching illnesses and diseases? That was also the comparison the senior developer made.

glossy niche
#

theres some truth to what you say, but id rather i get paid for the shit i do pithink

young shoal
#

and no, doctors don't do that

glossy niche
#

its like this for me

young shoal
#

your office doesn't have good tech? rip

glossy niche
#

bad screen: displays JS
good screen: displays JS

tardy rain
#

Doctors having free time? Lmao

young shoal
#

they do need to undergo training and that is on their free time

tardy rain
#

Students or residents

#

I dont think it counts

#

Its like thinking of your degree as a 9-5

young shoal
#

at least in the us, doctors have annual training

#

basically certs they need to pass

quasi blaze
#

I was seriously under the impression that people spend free time researching material for any career their in as oppose to a job

tardy rain
#

Well anyway

#

Youre not saving anyone's lives with get requests

glossy niche
#

but in general:
boss makes a dollar
I make a dime
thats why i shit
on company time

tardy rain
#

Based

young shoal
tardy rain
#

And toiletpilled

glossy niche
#

its not like the SaaS suite im working on is going to revolutionalise software

#

i could not care any less for my job

#

im only there because i get paid to scold ppl on bitbucket

stark oasis
#

i think the bad/good screen meme references that the thing you enjoy workking on and the thing you get paid to work on are different, but you're always on a computer either way

glossy niche
#

true for me because i WFH

#

cant wait to close the BAD vscode workspace so that i can open the GOOD vscode workspace

young shoal
#

for wfh you need a good work life balance fr

glossy niche
#

yeah :/

#

WFH is hard when you r pea brain and have an attention span of 2 picoseconds

stark oasis
#

so I messaged this discord scammer that was soliciting get rich on crypto bs and played stupid hoping I would get a domain out of him, but he instead wants me to join his trading telegram. idk enough about telegram to feel comfortable following him into there.

grave cove
#

then dont

stark oasis
#

ye

glossy niche
#

telegram is full of unhinged shit, dont go there if you dont know what you are stepping into

stark oasis
#

yeah I know that much.

stark oasis
#

I was hoping to get a domain that I could report but yeah its not worth it.

#

It would be one thing if I knew the platform very well

grave cove
#

probably best to just block and move on tbh

stark oasis
#

yeah

glossy niche
#

report the telegram group if you dont mind jumping into a gore video fest just to get a report

#

🍋

stark oasis
#

right

#

well what concerns me the most I guess is I dont know what kinda information a telegram server owner has about its users and all that shit, and I know its 100% the shadiest platform on the internet.

#

so im definitely not willing to do it

glossy niche
#

telegram is more private than most other apps, recently they even added anonymous accounts that dont require a phone number

#

so its not that bad

#

but its thinly split on

  • gay furry groups
  • nazis
#

middle ground is as thin as a blade

#

oh right you dont like furries lmao

stark oasis
#

Im pretty sure its way worse than that even. It has a reputation for hosting everything that used to only be on the dark web. drug dealing, etc

#

mostly scams probably

glossy niche
#

ive been using it for years

stark oasis
#

haha

glossy niche
#

yes its full of scams

#

but it doesnt force you to particpate in social media stuff like facebook for example, so i never have weirdos DM me

#

not even once

stark oasis
#

But other than that its not that i dont like them

glossy niche
stark oasis
#

I generally dont trust platforms that are like, "our services are encrypted :)" because time and time again people say that and its not true.

harsh tundra
stark oasis
#

true.

glossy niche
#

tg is safe than most, but yes they arent super trust worthy

stark oasis
#

you can run into some really uncomfortable stuff on discord just by doing that

glossy niche
#

ive heard stories of them sahring info with authorities

#

and their serverside code is not open source, unlike the client, so we have to take them at their word

#

signal on the other hand, seem to actually store nothing pithink

harsh tundra
#

Just remember that normal chats are encrypted using your account key, and group chats are stored in some pretty plain way. Secret chats are the ones that have end-to-end encryption

stark oasis
#

one time i was looking for servers about this music group i listen to, and I found a server of people pretending to be the rappers in the group, and faking that its an official discord, and no one in there knows its not real. If you say its not real, your messsages get deleted and you're banned. And the majority demographic of people in there are kids. I reported it but i never checked up on if anything happened as a result

#

I see.

glossy niche
harsh tundra
glossy niche
#

the russia one is true, yeah

#

afaik the CEO went to great lengths to avoid sharing info with the gov

stark oasis
#

anyway, audits are good. If they submit to third party audits and do them yearly, thats not bad.

#

Its about as good as you can do anyway

glossy niche
#

i think that there was an incident with german law enforcement where they did share info tho

harsh tundra
glossy niche
#

i should probably invest in using apps like those more, you never know what happens pithink

harsh tundra
#

I have tg. Got it originally to chat with some friends, they also played Ingress and I started playing Ingress later... So I have joined a bunch of ingress chats as well.
And partner's family has tg, although they don't use it really actively, but we have a group chat to share photos 😄

glossy niche
#

i initially got it because i thought it was safer, also because whats app and FB fking SUCK, and it had large file uploads which is super handy to me

#

it makes yeeting around ML projects easy

#

no more filling up my uni email drive with pickled models

harsh tundra
glossy niche
#

i had a bunch of book chats but then telegram started to crack down on copyrighted things harder pithink

#

even tho most of the books were public domain

#

moderation on tg has tightened a lot over the past 3 years

#

they nuked a large portion of the NSFW channels that covered the global search

harsh tundra
#

This one chat I'm in has occult/pagan/witch stuff because I wanted to check something and while looking for the book online, I found the link to tg server

glossy niche
#

telegram is actually one of the things that introduced me to leftism lol

harsh tundra
glossy niche
#

and its all because i looked up "memes" on the global search and ended up in a network of lefty channels

stark oasis
#

I tried telegram once and immediately removed it. It had this feature where it would just connect you to local groups. This was at least 3 years ago. And it was nothing except bots advertising prositution and drugs. I assume its a mixture of real and scams. But I left the same day I installed because it didnt feel like anyone but bots were using it.

glossy niche
#

oh yeah one time i tried to look up the name of my town on telegram because i wanted to see if it had a news channel there and all i could find were 10 illegal weed channels lol

#

i WISH they let me block channels so that i cant enter them by accident or see them in global search

#

for some reason, they dont have that feature

#

which pisses me off because im rather trigger happy with my block button >:(

stark oasis
#

This wasnt a weed channel, it was just a normal innocuous channel name that would get spammed by prostitutes and drug dealers.

#

And it wasnt just weed being offered, everything

#

So yeah... it seems like a cool idea that is just ruined because they wont do anything about the botting and scamming.

#

It seems like the users they are targetting are in fact bots and scams lol

#

so I just left the same day i installed it

harsh tundra
#

That's why you just need to have someone to chat with before you install. Like I had friends or people joined because Ingress. I don't think I ever looked anything in global search, other than for osint (checking tg names from malicious stuff we found)

glossy niche
#

i wish they let me block the fking global search

#

it seems to only work on certain clients

stark oasis
#

I kinda wish Discord had a similar thing that was like, "Show me channels and users that are logged in in this geographicr area" -- but I suppose having such a feature would require another layer of responsibility for what goes on on your app, something I dont think the telegram devs care about lol

harsh tundra
#

By "global search", yoink didn't mean geo search, but rather "search whole userbase/all public chats for this name"

stark oasis
#

mm

glossy niche
#

i reallly like leetcode, i did codeforces for 3 years but got really bored afterwards

#

codewars didnt seem appealing to me, seemed to be too basic

#

leetcodes problem set is very nicely curated

jagged plover
grave cove
#

no

vale raven
stiff siren
#

i bought warranty for my backpack @vale raven

crystal spruce
#

I like hard codewars kata

#

but I dislike the not well made ones

glossy niche
#

yes? I avoid recommending it for absolute begginers, there are easier sites, easy codeforces problems can be very trivial too

glossy niche
#

https://youtu.be/hDek2cp0dmI?t=1142 suddenly i like vtubers wtf

PROMO SHORT: https://youtube.com/shorts/ToulgVAofw8

Join me and @cyannyan6 in an epic collab where we tell the story of how I found a bug in macOS and got a bug bounty from Apple! 💰

Learn all about page tables, weird machines, and return oriented programming with us!! It's going to be super fun~ ✨✨

Cyan Nyan is on Twitter! @cyannyan6
▶︎ http...

▶ Play video
#

catgirl GPU programming anyone?

rough sapphire
#
long double operator ""_wtf(long double x){ return x; };

i love c++

glossy niche
#

the "" is an operator? pithink

#

ohhhhh its a user defined literal

#
long double operator ""_w(long double);
std::string operator ""_w(const char16_t*, size_t);
unsigned    operator ""_w(const char*);
 
int main()
{
    1.2_w;    // calls operator ""_w(1.2L)
    u"one"_w; // calls operator ""_w(u"one", 3)
    12_w;     // calls operator ""_w("12")
    "two"_w;  // error: no applicable literal operator
}

its not actually that insane imo, i think julia has a similar thing

rough sapphire
#

it's insane

glossy niche
#

which exist all over the langauge btw

#

like 11L for example

thick ore
#

is it possible to dump the memory/cpu/state of a process, then load that back into an empty dummy process

#

this might sound dumb but

#

it's worth a shot

glossy niche
glossy niche
#

i underestimated how much ram multithreading eats up

the code using mljar

automl = aml.AutoML(mode="Perform")
automl.fit(X, y)
#

and the dataset is only 250kb here

meager sphinx
#

💀

vale raven
glossy niche
#

finally

#

some good fking benchmarks

#

this channel is good btw

vale raven
#

wot

#

Has Python done either of these?

uneven pine
#

Any way to see it without using the garbage Reddit app

uneven pine
#

????

#

Lmfao

graceful basin
#

Python has never provided prebuilt linux binaries outside of package managers to my knowledge, which is actually indeed unusual, most languages do have binary downloads for linux.

uneven pine
#

I do agree that it's strange

#

Considering python's strong point is backend and that is pretty much always Linux

graceful basin
#

IG a statically linked python binary would be quite unwieldy, you would need to embed a tcl/tk interpreter.

gritty zinc
rough sapphire
#

r/python is bad

eternal depot
#

Fr ong what bussin todizz @reef geyser ?

eternal depot
reef geyser
#

Nah, just doing some research on language design.

rough sapphire
#

so u wnet to that blind date with him or not

reef geyser
#

Er, no?

rough sapphire
#

weak rizz

#

jahrules

fathom musk
#

LoL

eternal depot
#

It was for someone much more angry than myself

rough sapphire
fathom musk
eternal depot
rough sapphire