#voice-chat-text-0

1 messages · Page 155 of 1

frozen owl
#

yeah probably wifi issues

whole bear
#

I'm building a python program that recommends user a car based on their preferences

#

Can anyone help me with that

subtle cedar
#

I would draw out the algorithm you’re gonna use on paper first

subtle cedar
#

Yeah

whole bear
#

Oh okay

#

I have a code already

#

But facing issue with how to get info about cars and integrating it with my code

#

@subtle cedar

thorn lagoon
#

Csv file?

somber heath
whole bear
thorn lagoon
#

Wow

somber heath
#

List of dicts.

whole bear
somber heath
#

Each dict a car.

whole bear
thorn lagoon
#

How many cars you need?

somber heath
whole bear
#

How can I make for all of em

#

It's too tiring

thorn lagoon
whole bear
#

So should I change my code purpose

thorn lagoon
#

I have no idea. I'm just trying to find vehicle datasets cause you said you needed it

stark blade
#

anybody experienced this before? made an update and now..

whole bear
#

Oh okay, that's really helpful@dan.eff

#

Thanks

thorn lagoon
#

Lemme try to find some more

whole bear
#

But how do I integrate this with my codeM

#

?

#

@thorn lagoon can I dm you and show my code?

thorn lagoon
#

I'm a beginner. But I'll see what I can do.

whole bear
#

I'm an 8th grader

#

Even a beginner would be a big help for me

thorn lagoon
#

Haha OK, shoot me a dm

whole bear
#

@thorn lagoon done

#

Hello?

scarlet halo
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 106
Member status: status_online 56,173 status_offline 321,271

Members: 377,444

Helpers: 152
Moderation Team: 37
Admins: 12
Directors: 3
Contributors: 47
Leads: 14

Channels: 265

Category: 28
Forum: 3
News: 10
Staff: 124
Stage_Voice: 1
Text: 92
Voice: 7

thorn lagoon
#

50 messages over the course of 3 sessions

#

😍

scarlet halo
elfin moth
#

what's the book's name?

scarlet halo
#

how would i create an input with a border like this?

rugged root
#

nix or next

#

@final crane

final crane
rugged root
#

!stream 1053732836693258391

wise cargoBOT
#

✅ @turbid sandal can now stream until <t:1687982055:f>.

rugged root
#

@noble copper We can hear folks in your background

#

Would you please mute?

final crane
rugged root
#

!stream 492010589409771530

wise cargoBOT
#

✅ @final crane can now stream until <t:1687982931:f>.

rugged root
#

!stream 492010589409771530 30M

wise cargoBOT
#

✅ @final crane can now stream until <t:1687985036:f>.

rugged root
#

@stark blade

stark blade
rugged root
#

py -m ensurepip

whole bear
#

hello guys

rugged root
#

!stream

wise cargoBOT
#
Missing required argument

member

#
Command Help

!stream <member> [duration=None]
Can also use: streaming

Temporarily grant streaming permissions to a member for a given duration.

A unit of time should be appended to the duration. Units (∗case-sensitive):
y - years
m - months∗
w - weeks
d - days
h - hours
M - minutes∗
s - seconds

Alternatively, an ISO 8601 timestamp can be provided for the duration.

rugged root
#

!stream 361549679059795968

wise cargoBOT
#

✅ @stark blade can now stream until <t:1687984187:f>.

robust bone
#

how to stream .!?

rugged root
#

Nice try

cosmic lark
#

!stream 411031233364099072

#

;-;

robust bone
#

@cosmic lark can you share that api key or website link

cosmic lark
robust bone
#

it uses gpt 3.5

cosmic lark
#

unless u pay for a plus

robust bone
cosmic lark
#

cuz its not the openai official one

#

it uses the api from thirdparty sources

#

which im not sure is trained on the same model as openai one

#

which is webtext2

rugged root
robust bone
stark blade
robust bone
robust bone
stark blade
#

got it thanks

#

@robust bone

final crane
rugged root
#

@lavish rover Yo

lavish rover
#

yo

rugged root
#

In my defense, I haven't eaten much at all today

#

So me no thinky good

rugged root
velvet tartan
#

That’s awesome! I didn’t know Harvard is making a course on cybersecurity.

#

How’s Leetcode going? I’ll be practicing for a coding interview I have coming up https://neetcode.io/

cosmic lark
#

!e

a = [10, 20, 30, 40]
a[1:2] = [-1, -2, -3]
print(a)
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

[10, -1, -2, -3, 30, 40]
thick prawn
#

?

vocal basin
#

!e

print(int("৪୨"))  # answer to everything
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

42
vocal basin
#

it was this way since ~2019, I think

#

(like I had accounts using this name)

#

!charmap ৪୨

#

wait

#

I forgot

#

!charinfo ৪୨

wise cargoBOT
vocal basin
#

this

cosmic lark
#

got it

#

so

vocal basin
#

int() allows any decimals

#

!d str.isdecimal

wise cargoBOT
#

str.isdecimal()```
Return `True` if all characters in the string are decimal characters and there is at least one character, `False` otherwise. Decimal characters are those that can be used to form numbers in base 10, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Formally a decimal character is a character in the Unicode General Category “Nd”.
cosmic lark
#

oh

vocal basin
#

!e

characters = {chr(i) for i in range(100000)}
numerics = set(filter(str.isnumeric, characters))
digits = set(filter(str.isdigit, characters))
decimals = set(filter(str.isdecimal, characters))
print(numerics > digits > decimals)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
vocal basin
#

I think str.isdigit is one of the most used ones

#

but it's very non-strict

#

so, like, checking that character is [0-9] is very far away from using str.isdigit

#

conclusion: just use regex

cosmic lark
#

!e

print(int("32"))
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

32
cosmic lark
#

hmmmmmmmmmmmmmmmmm

#

!e

print(int("101"))
vocal basin
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

101
cosmic lark
#

cuz 3.10 seems to work fine

vocal basin
cosmic lark
wise cargoBOT
#

@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.

42
cosmic lark
#

oh

#

i see now

#

its ৪୨ not 89

#

mb

vocal basin
cosmic lark
#

right

vocal basin
#

!e

print(int("੧୨𑄽9"))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

1279
vocal basin
#

2 and 7 looking like 9 seem to be present more than once

#

@lunar haven

silk jewel
#

so close yet so far

vocal basin
#

or just this

#

simple enough example to demonstrate the issue

#

though

#

no

#

the first one

vocal basin
vocal basin
#

1,1,1,null,1,null,1

vocal basin
#

is that tree symmetric?

#

checking that elements are in reverse order isn't enough, the structure needs to be preserved too

#

(the test case it fails on)

#

I put it now because that's how it serilises the thing in the system

#

I normally don't put null at all

#

(and on the next level, there are four nulls)

vocal basin
#

with more varied values, would look something like this

#

[2,3] and [3,2] element lists are mirrored
but trees [3,2] and [2,3] aren't

vocal basin
#

you ignore the structure
you only consider the order of elements

#

i.e. you treat trees [3,2] and [2,null,3] as the same

#

your algorithm can't tell these two cases apart:

#

because order of elements in the right subtree is the same

#

f(root.right) is [3,2] in both cases

#

or not exactly

#

what does it actually return?

#

I'll check now

#

[None,3,None,2,None]

#

in both cases

#

you can add a hacky parameter depth
replacing [None] with [(depth,)]

#

(tuple there to differentiate from node.val)

#

though

#

even just [depth] should be fine

#

you have

f = lambda node: f(node.left) + [node.val] + f(node.right) if node else [None]

you can change it to

f = lambda node, depth: f(node.left, depth + 1) + [node.val] + f(node.right, depth + 1) if node else [depth]
#

not []

#

[depth]

vocal basin
#

reason why it works:
it accounts for the structure, not only element order

#

the structure of a tree is uniquely defined by depths of nulls

#

you incorrectly translated the tree

#
TreeNode(1, TreeNode(2, TreeNode(2)), TreeNode(2, TreeNode(2)))
#

left and right are the same in that test case

#

I have this thing which doesn't use recursion at all

#

(depths of nulls in small circles)

#
3 3 3   3 3 2
 2 2     3 2

3 3 2   2 3 3
 2 3     3 2
#

@lunar haven normally algorithm doesn't construct any sort of list of elements/depths/whatever

#

it instead considers pairs of nodes it needs to check for mirroring

#

starting from (root.left, root.right) pair

#

checking if one tree is a mirrored version of another tree can be done either recursively or iteratively

#

(both versions utilising a stack in some form)

wind raptor
#

@lunar haven How's it going?

lavish rover
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

wind raptor
#

Thanks

lavish rover
toxic arch
#

hi

#

cybersecurity is gay

#

jk

#

red dead redemption 2 gameplay?

#

fr

#

a puppy!

#

nah my cuteness makes your heart sing!

#

ok

#

eid mubarak @lunar haven

#

it means happy @lunar haven

#

blessings and happiness

sour brook
#

hi

violet cosmos
#

OH

#

hol up

#

LMFAOOOOOOOO

#

whoops-

#

now i have this

sour brook
#

I love the hear people talk

#

I love people noises too

#

yes

somber heath
#

!ytdl @violet cosmos

wise cargoBOT
#
Our youtube-dl, or equivalents, policy

Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.

For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:

The following restrictions apply to your use of the Service. You are not allowed to:

1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service;  (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;

9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
sour brook
#

sad

#

I'm very sad, I don't think anyone will answer my question g_sob

#

the code in question uses numpy

sour brook
#

lol

#

I understand

#

the problem for me is just the colors

toxic arch
#

hello @whole bear

somber heath
#

scipy.ndimage

toxic arch
#

@somber heath who are you talking to?

#

ok

sour brook
#

I'm trying to port a Cython code to another language

#

I would like to share my screen so I could show you how strange the colors behave

toxic arch
#

that is indeed true

sour brook
#

ok

#

wait

#

I edited the code so I can place cells with the mouse cursor

#

and also commented the line that steps the gol

toxic arch
#

!verfiy

sour brook
#

so we can see just the color system

toxic arch
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber heath
#

@whole bear 👋

sour brook
somber heath
#

You did post that...I saw it...it didn't register with my brain as what I was talking about.

#

Because I'm a ditz.

#

Numpy does have structs, if that helps.

#

Custom dtypes.

sour brook
#

I'll not port that to cython

#

or python

#

so no numpy

somber heath
#

Rightio.

#

Anyway, I'm off.

sour brook
#

ok

somber heath
#

Good luck. Sounds like a fun project.

whole bear
toxic arch
#

@lunar haven fix yo damn stream

sour brook
#

hi

trail tusk
#

hi

sour brook
#

gofek left

trail tusk
sour brook
#

@trail tusk do you know Cython?

trail tusk
sour brook
#

:( ok

trail tusk
#

sorry

whole bear
#

save wizard moment?

whole bear
#

ah ok

limber copper
#

hi @scarlet halo what you up to this morning?

scarlet halo
#

not much

#

just coding on a personal project

#

might release it when im done

limber copper
#

what kinda project is it?

scarlet halo
#

it downloads mods from modrinth

limber copper
#

you make mods too?

scarlet halo
#

no

limber copper
#

Coding going smoothly so far for your project, ive never used modrith before

scarlet halo
#

ah

#

a lot of people move from curseforge to modrinth

limber copper
#

yeah i checked it out, is it more for minecraft mods right?

scarlet halo
#

yeah

#

and theres plugins and shaders and resource packs and modpacks its pretty cool

limber copper
#

ever used blockbench?

scarlet halo
#

and theres like a notification system where you can follow a project and see when it updates

scarlet halo
limber copper
#

Ill join you in call one sec

scarlet halo
#

ok

wise cargoBOT
#
Missing required argument

code

scarlet halo
whole bear
#

@scarlet halo hiii

#

lemme go and finish my lunch XD

#

@scarlet halo cya

fallow timber
#

hi

#

guys

#

good morning or evening

obsidian dragon
#

hi

plucky dagger
#

hi

#

parce que it fait chaud

#

oui

#

@whole bear

#

wtf

scarlet halo
#

?

plucky dagger
#

ok poopy pants

scarlet halo
#

what

plucky dagger
#

est hola

somber heath
#

All.

#

@twilit quarry 👋

twilit quarry
somber heath
#

Hello, Kirti

echo garden
#

morning Opal

fallow timber
#

hi again

somber heath
#

AF.

#

@fluid void 👋

fluid void
#

👋

somber heath
#

@echo garden You startled me, you asshole!

#

lol

fluid void
#

Balkan

#

balkan

echo garden
somber heath
#

Owl be the judge of that.

echo garden
#

this heat jumped up on us like a panther. Thank god i got a couger to protect me.

twilit quarry
#

can somebody play some music??

echo garden
#

I could but i don't beleive that its appropriate here

scarlet halo
#

just get a spotify subscription

fluid void
somber heath
#

Hey, Shank.

somber heath
twilit quarry
somber heath
#

Also, this server has a policy against ytdl and other things like it.

#

Which music bots will often use.

echo garden
#

Honestly i would love to play music for people but i know that is in approriate here.

scarlet halo
#

a

twilit quarry
#

someone should start coding something and share it

scarlet halo
#

!e

print(ufsd)
wise cargoBOT
#

@scarlet halo :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     print(ufsd)
004 |           ^^^^
005 | NameError: name 'ufsd' is not defined
scarlet halo
#

hehe

echo garden
#

I wanna code something but im stuck i need a file from the organization im coding for, i don't have a phone and Emailing would be a pain untill i call first... go figured

scarlet halo
#

whats so funny quant

echo garden
scarlet halo
#

getting errors?

echo garden
somber heath
#

I'm available to attend to something,if that's what you're asking.

fallow timber
#

hi again

#

i keep saying hi

#

lol

echo garden
fallow timber
scarlet halo
#

amazing.

somber heath
#

@whole bear 👋

#

LP in the house.

#

Waguan?

echo garden
# fallow timber nah

the welcome to the club of irrational thought.. im your host, the waiter, and owner of this established reign of irrational behavior and patterns. Careful the cognitive conditions may be hot so you may wanna let it cool.

somber heath
#

I had another person tell me I sounded like a teacher.

#

Maybe the universe is trying to tell me something.

echo garden
#

Ah the teacher was being taught of their own teachings unbenounced by the teacher themselves...

somber heath
#

Right.

somber heath
#

I think it may just be telling me I'm gassy.

somber heath
#

Which, you know, thanks for the fucking update, universe, I already knew that.

echo garden
#

well the universe as a whole has this same affliction, we may as well wait for the comsic match to light.

somber heath
#

Life is just one big fart joke, in the end.

echo garden
#

the big bang.

somber heath
#

Ding ding.

vocal basin
#

ethanol

somber heath
#

IIIInteresting.

vocal basin
#

the non-drinkable is methanol

somber heath
#

A leaderboard.

#

You are winning at boredom.

echo garden
somber heath
#

Deciduous?

#

Evergreen?

#

Biannual?

echo garden
#

Deciduous is the type?? i think

#

no wait thats where they live no?

somber heath
#

Thank you, Dev. They're words from the heart.

echo garden
#

that indigenous

somber heath
#

Endemic? Foreign?

#

Native? Invasive?

#

Quanticookie. Not the worst take.

zenith radish
#

Perennial

somber heath
#

@polar ocean 👋

echo garden
#

or, a browser cookie like state for real world elements... hmmmm Quanticookie

turbid sandal
#

What does it mean to be indigent?
: suffering from extreme poverty : impoverished. archaic : deficient.25 May 2023

echo garden
#

did i say indigent?

#

can anyone read me the minutes?

somber heath
echo garden
#

lol

#

thank you OIpal

somber heath
#

Well I spell it with an s, but sure.

turbid sandal
#

.

echo garden
somber heath
#

@turbid sandal What were they?

#

Like how strong?

cosmic lark
somber heath
#

I take the blame for introducing Dev to the element song.

#

Dev mentioned a chemistry lesson.

#

So I mentioned it.

echo garden
#

ah

#

ok cool

#

now

#

thats a great song btw

#

Hot

somber heath
#

I've done Pirates, so I'm familiar with the origin.

echo garden
#

my favorite is his world war 3 song

cosmic lark
#

C++

somber heath
#

Python.

echo garden
#

English

somber heath
#

Mind you, I only do Python.

echo garden
#

Gotta feed cats

cosmic lark
#

dont need to edit it

somber heath
#

Haa

cosmic lark
somber heath
#

A Chucky doll vape?

fallow timber
#

hi

somber heath
#

@turbid sandal That you're taking up vaping worries me.

#

I want your lungs to be healthy.

cosmic lark
#

@turbid sandal but surely u are?

fallow timber
#

@turbid sandal you smoke???

#

oh

#

ok nvm

somber heath
#

@turbid sandal You misunderstand me. I mean if we ever need to harvest your organs, we want them in top condition.

echo garden
fallow timber
somber heath
#

In seriousness, it takes a toll on your health, and that's something you want to guard, because if you don't have your health, you don't have very much at all.

echo garden
fallow timber
somber heath
#

Yahoy. We hear you.

#

"Stupid bluetooth."

echo garden
#

@orchid mauve perhaps they interfered with each other

#

sounds like a EMP

#

yeah but for all to fail at once

#

better strip those drivers and cavity search the issue

vocal basin
#

government agencies can just show up on your doorstep and force you to give up data
cheaper, faster, but maybe not as quiet

#

"CIA is already controlling your device, so relax and hope it's only CIA and not FSB or whatever"

#

though I doubt FSB are actually capable of anything nowadays

#

well, I mean if they already have the data;
only thing FSB can do is to accidentally leak the data because they don't know better

zenith radish
#

FSB is literally a bully organisation stuck in the 50s

wind raptor
#

"I may have a hunch that it would be easier to get a mouse and keyboard"
~ Mr. Hemlock

vocal basin
somber heath
#

Neat

echo garden
echo garden
#

however, what seems to be happening in the fouriur thingy is a focus function

vocal basin
#

literally just a screech

echo garden
#

so the representation of sound here is standard and the upper portion of the graph signify High frequencies and the lower low frequences, now, the frequency in discretion, so the frequency is the what, 1800 range? is a chaulk scratch?

vocal basin
zenith radish
zenith radish
vocal basin
#

yes

echo garden
#

thats breathing in while trying to talk

vocal basin
#

no, this is not inhale

echo garden
#

it sounds human on the breath in

#

it only sounds odd after about 3 4 seconds

#

thats definately human.

#

like a kid

#

super?

#

i play'd it twice with eyes closed.

#

instince tells me human

rugged root
#

@somber heath Oh my god, the current enemy I'm fighting in Godville is a Bard Against Humanity

somber heath
#

Obligatory PTT on mobile is ass.

vocal basin
#

only two octaves lower, I guess

rugged root
#

Neat

vocal basin
somber heath
vocal basin
#

it's actually surprising how high-pitched it is
it doesn't sound like it is

wind raptor
vocal basin
#

two sounds are almost the same technique

#

I think

somber heath
#

Huge-ass fan or huge ass-fan? You decide!

rugged root
#

Yes

vocal basin
#

if it can be proved, it will be proved eventually if you just iterate over all algorithms

#

or disproved if can be drisproved

#

but

#

there are correct statements that can't be proved

rugged root
vocal basin
#

and we can prove that for some statements

vocal basin
#

we can't show such statement

#

because we would need a proof for that

rugged root
#

@frigid panther Sup

zenith radish
rugged root
#

So something as simple as:

True == True

Would need a proof?

frigid panther
#

hey @rugged root, just working on a django project, how are you doing

vocal basin
#

we can prove that, with the current axiom system, a certain statement can't be proven true or false

#

it might be true
it might be false
it might be either true or false

somber heath
#

Executioner's axiom.

obsidian dragon
#

hi @vocal basin

#

hi @somber heath

vocal basin
somber heath
#

Franish?

#

Spench?

#

"Yeah, you've got some Spench between your teeth."

obsidian dragon
#

hi like @rugged root and a few others

somber heath
#

Because it's me?

rugged root
#

Just seems like one that you would do in the accent

zenith radish
sweet lodge
#

@rugged root wave_animated

wind raptor
#

Hey @sweet lodge!

vocal basin
#

pandemic?

#

not necessarily

#

idk

#

outbreak sounds more like something when it's not yet wide-spread

sweet lodge
# rugged root How goes it

Not too good, but I think we're getting there
I found a team to work on a side project with, so that's helping
How goes the you?

rugged root
#

Hanging in there

#

Work home rinse and repeat

surreal hedge
#

plasma is what lightning and what the northern lights are made of @whole bear

rugged root
#

Oooo

#

Neat

#

In physics, a state of matter is one of the distinct forms in which matter can exist. Four states of matter are observable in everyday life: solid, liquid, gas, and plasma. Many intermediate states are known to exist, such as liquid crystal, and some states only exist under extreme conditions, such as Bose–Einstein condensates (in extreme cold),...

vocal basin
#

use JWT

#

oh

#

@obsidian dragon you can use localstorage instead

#

without sending anything to the server

#

window.location = something?

#

I don't remember

#

that's for changing URL

#

I've never automated scrolling beyond just scrolling to the bottom of the page

whole bear
#

@obsidian dragon where r u guys on now?

vocal basin
#

@rugged root some cookies are inaccessible from JS

rugged root
#

I thought that was just for cross site

vocal basin
#

I think there's a flag to forbid JS from accessing it

whole bear
#

@vocal basin where r u guys on now???

old marsh
#

Need to make a calculator with c++

vocal basin
stuck furnace
#

"adminless" would be a better term

whole bear
#

@rugged root where r u guys on now?

old marsh
#

Okay

#

I will try

rugged root
vocal basin
#

wth is this

#

MDN why

whole bear
vocal basin
#

stream?

rugged root
#

I don't think anyone is currently streaming

whole bear
vocal basin
#

yes, mostly

rugged root
#

Yeah

vocal basin
#

"ultimate paranoia:
company isn't hiring => ohno I'm going to get laid off
company is hiring => ohno I'm going to get replaced"

whole bear
#

@vocal basin why don't u speak and keep pinging?

vocal basin
#

?

rugged root
#

Some people just prefer to type rather than talk

whole bear
#

who on earth likes his boss?

rugged root
#

I don't mind mine

#

They've known me since like 2nd grade

zenith radish
#

hahaha

zenith radish
vocal basin
zenith radish
#

Both the CEO and CTO were amazing people

zenith radish
#

HOLY SHIT

#

I HAVE TO SEND THIS TO MY FRIEND

rugged root
#

@orchid mauve You're really quiet for some reason

sweet lodge
#

A lot

vocal basin
#

depends how early the typo gets caught

sweet lodge
#

A indentation error costs my company >$100K

vocal basin
#

"I don't even need to make typos, my code is already broken"

whole bear
#

@wind raptor u around?

wind raptor
whole bear
vocal basin
#

GIGO

rugged root
#

An acronymn to live by

vocal basin
#

quite an old problem

somber heath
#

!e py a

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     a
004 | NameError: name 'a' is not defined
whole bear
#

!e

wise cargoBOT
#
Missing required argument

code

sweet lodge
#

eh

#

Copilot is .... sometimes helpful

#

Not worth the money

somber heath
#

!e py def func(): a a = None func()

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     func()
004 |   File "/home/main.py", line 2, in func
005 |     a
006 | UnboundLocalError: cannot access local variable 'a' where it is not associated with a value
amber raptor
#

!e python if (1 == a): print('Hello')

wise cargoBOT
#

@amber raptor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     if (1 == a):
004 |              ^
005 | NameError: name 'a' is not defined
amber raptor
#
PS C:\Users\rabbi> if ($a -ne 1){write-host 'hello'}
hello``` WTF POWERSHELL
vocal basin
#

!e

# don't
from collections import defaultdict, ChainMap
exec("print(repr(a))", globals(), ChainMap(__builtins__.__dict__, defaultdict(str)))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

''
sweet lodge
rugged root
#

Back in a sec

fallow timber
sweet lodge
#

planning

#

That's what I write

#

@rugged root remind me to come to story time

#

ur a "bi-modal"

somber heath
#

French stockmarket. "Oui. Sell."

somber heath
#

Earthquake.

#

Things be vibrating.

mossy cedar
#

a

somber heath
#

Rip Torn died in 2019.

mossy cedar
#

rip

somber heath
#

Garbage is its own ecosystem.

#

Plenty of things live because of it.

mossy cedar
#

disposable garbage bag. its replaceable and only trash goes in it

somber heath
#

White ibis, seagulls.

#

So long as the garbage is where it's supposed to be.

#

The planet does gain mass.

mossy cedar
#

i feel like opal is a ai bot undercover

somber heath
#

Nope, I was wrong. It loses mass, overall.

mossy cedar
somber heath
#

There are additions and subtractions.

mossy cedar
#

The shape of the Earth is nearly spherical. There is a small flattening at the poles and bulging around the equator due to Earth's rotation. Therefore, a better approximation of Earth's shape is an oblate spheroid, whose equatorial diameter is 43 kilometres (27 mi) larger than the pole-to-pole diameter.

Source: Conversation with Bing, 6/29/2023
(1) Earth - Wikipedia. https://en.wikipedia.org/wiki/Earth.
(2) Earth - National Geographic Society. https://www.nationalgeographic.org/encyclopedia/earth/.
(3) Shape of the Earth: The Oblate Spheroid - Earth How. https://earthhow.com/shape-of-the-earth/.
(4) In Depth | Earth – NASA Solar System Exploration. https://solarsystem.nasa.gov/planets/earth/in-depth/.

Earth is the planet we live on, the third of eight planets in our solar system and the only known place in the universe to support life.

Earth How

Earth is not a perfect sphere. In fact, it’s in the shape of an oblate spheroid. Earth shape bulges at the equator and flattens at the north and south pole.

honest pier
#

this fucking standup is never going to end

rugged root
#

Perpetual standup

somber heath
#

I ghost pinged you in dms.

#

Rabbit said a thing that you missed, but then he said it again.

#

and you heard it

rugged root
#

That works

somber heath
#

The oligargling.

#

Oligobble the second time around.

rugged root
#

So good

sweet lodge
#

@honest pier just ban him

#

Yes, and?

#

I know

#

I do agree

somber heath
#

The pigeons are taking over! They're staging a coup!

sweet lodge
#

How?

#

NO

#

I WILL NOT

#

That's easy

molten pewter
#

yes

#

hi

#

well

#

well as in good

#

Though my mic could work better

#

by working at all with discord

#

it's unclear.

#

I think it's discord.

vocal basin
#

-not before filter?

molten pewter
#

I have tried resetting, but I gave up so now I just pushed the mute button so that people know my mic isn't working.

vocal basin
#

all files that don't end with .go

find -not -name "*.go"
molten pewter
#

Has anyone tried discord on the Switch?

rugged root
#

Didn't know that was a thing

vocal basin
#

find is so weird

molten pewter
#

yes

#

like Bob Dylan?

#

"Discord remains unavailable on Nintendo Switch. However, although Nintendo has not officially made this communication app available on Switch, there is a tricky way to get Discord on your Switch using the Discord Website."

vocal basin
#

well, that "rich" in cryptocurrency still comes mostly from crime
it might change over time

molten pewter
#

@mossy cedar omg TURN ON ~~CRISP ~~ KRISP PLEASE.

vocal basin
#

Krisp

molten pewter
#

All you backroom noise R belong to us

#

Pringles.

sweet lodge
#

I hope it goes away

molten pewter
#

Once you pop, you can't stop listening to background noise

#

yeah, does look like an imitator.

#

FedNow baby

#

It is becoming main stream.

vocal basin
#

having the ability to revert transactions in case of something going wrong seems to be more important for society than not having it

molten pewter
#

The US digital coin baby.

#

@thorn wharf This is already happening

#

@rugged root see the FedNow

thorn wharf
#

i gotcha, i was mostly meaning it becomming a standard across all/almost all banks @molten pewter

#

but like i said im not familiar enough with blockchain to confidently speak on it

molten pewter
#

All of the banks are partnering.

thorn wharf
#

oh wow thats crazy

molten pewter
#
The White House

Outlines First Whole-of-Government Strategy to Protect Consumers, Financial Stability, National Security, and Address Climate Risks Digital assets, including cryptocurrencies, have seen explosive growth in recent years, surpassing a $3 trillion market cap last November and up from $14 billion just five years prior. Surveys suggest that around 16...

#

biden's executive order: 14067

thorn wharf
#

wildddd

rugged root
#

Executive Orders should not be taken as it'll be there forever

molten pewter
#

Executive Order 14067, officially titled Ensuring Responsible Development of Digital Assets, was signed on March 9, 2022, and is the 83rd executive order signed by U.S. President Joe Biden. The ultimate aim of the order is to develop digital assets in a responsible manner. The executive order addresses the potential national security implication...

vocal basin
molten pewter
#
U.S. Department of the Treasury

WASHINGTON — The U.S. Department of the Treasury today published three reports pursuant to Sections 4, 5 and 7 of President Joe Biden’s Executive Order 14067 on “Ensuring Responsible Development of Digital Assets.” The reports address the future of money and payment systems, consumer and investor protection and illicit finance risks. “Innovation...

pallid hazel
#

aww come on

thorn wharf
molten pewter
#

Sure. But listen to the Department of the Tresury.

pallid hazel
#

so many people i pop in thinking theres a good convo.. and its shitcoin stuff

honest pier
#
$ rg --files -g '!*.lock' | xargs cat |  wc -l
4954
molten pewter
#

Coin swapping is a thing.

pallid hazel
#

bbl

rugged root
#

As far as I know, coin to fiat still needs an exchange

molten pewter
#

20 of 25

late river
#

I was involved in implementing some of the controls around digital currency in a large bank.

vocal basin
#

block chain might be very less-than-ideal solution, especially for distributed systems
even ethereum, iirc, doesn't actually have a strict chain-like structure (they do include sibling blocks if they exist, to some extent)

#

supporting for merge, if split ever occurs, is important

#

drone piracy

late river
#

My neighbor’s kid is constantly flying his quad copter outside my windows. I see the copter has a camera and I know the little sexed crazed monster has been snooping around the neighborhood. With all of the hype around geo-fencing and drones, this got me to wondering: Would it be possible to force a commercial quad copter to land by sending a lo...

▶ Play video
molten pewter
#

Revolutionary wheels.

somber heath
#

All you need to do is set them up so that you arm the explosives before they get sent out, and disarm them upon delivery, rearm, and disarm upon return.

late river
#

Keep in mind Hemlock, you need to make sure you tip it so when the singularity comes about, you're not on the hitlist.

molten pewter
#

Get it, because wheel go around, they revolve.

#

The most revolutionary invention: The revolving door.

somber heath
pallid hazel
#

@rugged root 5 days until a lot of people cant count to 5 on 1 hand...

somber heath
#

A plumber gets called out to a chicken farm to deal with a backed-up pipe.

He reaches into the pipe and pulls out a whole chicken. Dirty, but otherwise inharmed, it runs off.

"Well, that's what was causing the bokage."

#

Despacito prestissimo.

rugged root
#

rawr~~~

#

XD XD

somber heath
#

Did you hear about the constipated chicken?

#

I don't think I need to finish this one.

molten pewter
#

See Y'all later 👋

thorn wharf
#

My cat is always wearing a tuxedo

rugged root
somber heath
#

Birds of a feather.

rugged root
#

Shart together?

somber heath
#

It's chickens, so yes

late river
#

Can I subscribe to the totallymad podcast? Dude's got a radio voice.

rugged root
#

Right?

late river
#

PyDis podcast when

#

big community, lotsa' python to talk about thonk

vocal basin
#

what is StaticArray?

#

where is it from?

somber heath
#

"I went to the tailor and all I got was this lousy smoking jacket."

vocal basin
#
class StaticArray:
    def __init__(self, n: int):
        self._array = [0] * n

    def get_at(self, i: int) -> int:
        return self._array[i]

    def set_at(self, i: int, x: int) -> None:
        self._array[i] = x
#

the interface is described here

#

it matches the spec

#

underlying implementation doesn't matter there

#

!d array.array

wise cargoBOT
#

class array.array(typecode[, initializer])```
A new array whose items are restricted by *typecode*, and initialized from the optional *initializer* value, which must be a list, a [bytes-like object](https://docs.python.org/3/glossary.html#term-bytes-like-object), or iterable over elements of the appropriate type.

If given a list or string, the initializer is passed to the new array’s [`fromlist()`](https://docs.python.org/3/library/array.html#array.array.fromlist "array.array.fromlist"), [`frombytes()`](https://docs.python.org/3/library/array.html#array.array.frombytes "array.array.frombytes"), or [`fromunicode()`](https://docs.python.org/3/library/array.html#array.array.fromunicode "array.array.fromunicode") method (see below) to add initial items to the array. Otherwise, the iterable initializer is passed to the [`extend()`](https://docs.python.org/3/library/array.html#array.array.extend "array.array.extend") method.
vocal basin
#

you can't modify a tuple quickly

#

set_at would be O(N)

#

because you need to create a new tuple each time

#

type hints seem wrong, a lot

#
def birthday_match(students: Sequence[tuple[Name, Bday]]) -> tuple[Name, Name] | None:
    ...
#

input isn't StaticArray

#

more strict:

def birthday_match(students: tuple[tuple[Name, Bday], ...]) -> tuple[Name, Name] | None:
    ...
somber heath
#

Flashbang instructions: "Rule 1: Try to avoid deploying to baby cribs."

vocal basin
#

missing , ...

somber heath
#

Ha

vocal basin
#

| not or

#

!e

print(int or str)
print(int | str)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | <class 'int'>
002 | int | str
vocal basin
#

| means union there

thorn wharf
#

yeah python 3.10/11 update

vocal basin
#

or just means pick first if it's not None

#

| is since 3.10, iirc

#

before it was typing.Union

thorn wharf
#

that sounds about right

vocal basin
#

Union still has its place

#

(though less so if you use from __future__ import annotations)

#

line numbers style seems familiar

#

minted package for TeX

thorn wharf
#

theyre the same but there wont always be support for |, when defining a response_model in fastapi routes, it requires Union simply because of the context - | would perform operation in that context so something to just keep in mind

vocal basin
#

mostly | runs into issues when operands aren't types

#

None and str usually

obsidian dragon
#

str aint type?

vocal basin
#

!e

None | 'C'

class C:
    pass
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     None | 'C'
004 |     ~~~~~^~~~~
005 | TypeError: unsupported operand type(s) for |: 'NoneType' and 'str'
obsidian dragon
#

i caint even read that

vocal basin
#

maybe typo?

obsidian dragon
#

so if type None merge type str

vocal basin
#

seems to be k-1

somber heath
#

It's not peculiar.

vocal basin
amber raptor
vocal basin
#

the example is there just for demonstration purposes
not showing "how to properly do it"

amber raptor
viscid lagoonBOT
#

Neophyte (Simon Hall) is a fictional mutant super villain appearing in American comic books published by Marvel Comics. The character is depicted as a member of the Acolytes.

#
Wikipedia Search Results

Neophyte
neophyte in Wiktionary, the free dictionary. A neophyte is a recent initiate or convert to a subject or belief. Neophyte may also refer to: Neophyte (botany)

Neophyte of Bulgaria
Patriarch Neophyte (Bulgarian: Патриарх Неофит, secular name Simeon Nikolov Dimitrov; born 15 October 1945 in Sofia) has been the Patriarch of All Bulgaria

amber raptor
somber heath
#

I've got nothing.

somber heath
#

There is an archery range not too far from where I live. I've shot a bow in primary school and I remember being shittier at it than I thought I'd be.

late river
vocal basin
#

"Godwin's Law for PLs"?

lavish rover
amber raptor
vocal basin
#
(not (a or b)) == ((not a) and (not b))
(not (a and b)) == ((not a) or (not b))
rugged root
#
2 b or not 2 b
vocal basin
#

corrected

#

because operator precedence

somber heath
#

1.21 gigabytes

#

"Yes, it's on fire, but that's a design feature."

rugged root
#

Pontiac Actually-On-Fire-Bird

somber heath
#

@lavish rover Did you settle on a new name for the new thing?

vocal basin
#

there are multiple Ds

somber heath
#

Oh my.

rugged root
#

tee hee

vocal basin
#

one of them is for dtrace

#

> (not to be confused with other programming languages named "D")

#

maybe alternation between compilation and runtime is what differentiates it from strictly compiled

robust bone
#

mob psyco.!?

fallow timber
#

a lot of code i see

#

who put a flower emoji on my thing grr

#

`thats rude

glass bluff
#

@lunar haven what's up? I cannot hear your voice when I am watching your live streaming

#

Are you explaining data strucure?

#

I'm currently studying data structure too

#

yes

#

now i hear you

#

thanks

#

idk

#

no it is not about volume

vocal basin
#

discord magic

glass bluff
#

right lol

#

i cannot speak either

#

i can type tho

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

vocal basin
#

assuming the animal

glass bluff
# wise cargo

thanks for sending me this. I did not satisfy the condition yet. I just joined yesterday

vocal basin
echo garden
#

omg anyone see this guy? https://www.youtube.com/watch?v=f9smvQ5fc7Q he's actually pretty cool

I programmed an AI to solve any rubiks cube, see how I did it.

this video was inspired by:
https://www.youtube.com/watch?v=0cedyW6JdsQ

Music used:
smiles for miles - Silent Panther
RESPECOGNIZE
ES_I Wish That I Was A Mad Man (Instrumental Version) - Staffan Carlén
ES_Youngsters Anthem 01 - John Åhlin
ES_Army Of Angels 3 - Johannes Bornlöf
ES_A...

▶ Play video
vocal basin
#

"watch his videos in reverse so it actually looks like he's learning something"

glass bluff
#

I cannot hear you for some reasons. let me join again after two days. if you still do the streaming then

vocal basin
glass bluff
#

okie dok

#

i did not meet the condition for Have over 50 messages in the server.

#

and Have joined the community over 3 days ago. this

vocal basin
#

list is an array list, I'd assume

#

re-allocating when necessary

#

list is good enough for most cases

#

yes

#

Python is way more about utilising existing data structures

wise cargoBOT
#

class list([iterable])```
Lists may be constructed in several ways:

• Using a pair of square brackets to denote the empty list: `[]`

• Using square brackets, separating items with commas: `[a]`, `[a, b, c]`

• Using a list comprehension: `[x for x in iterable]`

• Using the type constructor: `list()` or `list(iterable)`...
vocal basin
#

it's like Vec in Rust

#

mostly

#

(or vector in C++)

#

ArrayList in Java?
I don't remember

#

Python is okay for prototyping some data structures

#

trees, for example
not that easy to properly handle in something like C

#

(for me, Rust is even easier than Python in this case because of enums/match/etc.)

vocal basin
#

@slate viper I can hear

#

(idk if gofek can)

slate viper
#

@lunar haven am i muted?

vocal basin
#

Django? Java?
(did I mishear?)
((listening to something else relatively loud too))

#

I haven't worked with it myself yet

#

not really a fan of frameworks

#

yeah, match statements

#

!d match

wise cargoBOT
#

8.6. The match statement

New in version 3.10.

The match statement is used for pattern matching. Syntax:


match_stmt   ::=  'match' subject_expr ":" NEWLINE INDENT case_block+ DEDENT
subject_expr ::=  star_named_expression "," star_named_expressions?
                  | named_expression
case_block   ::=  'case' patterns [guard] ":" block
```...
vocal basin
#

3.12 will have new generics syntax also

#

!d typing.Generic

wise cargoBOT
#

class typing.Generic```
Abstract base class for generic types.

A generic type is typically declared by inheriting from an instantiation of this class with one or more type variables. For example, a generic mapping type might be defined as:

```py
class Mapping(Generic[KT, VT]):
    def __getitem__(self, key: KT) -> VT:
        ...
        # Etc.
```  This class can then be used as follows...
vocal basin
#

!d typing.TypeVar

wise cargoBOT
#

class typing.TypeVar(name, *constraints, bound=None, covariant=False, contravariant=False)```
Type variable.

Usage:

```py
T = TypeVar('T')  # Can be anything
S = TypeVar('S', bound=str)  # Can be any subtype of str
A = TypeVar('A', str, bytes)  # Must be exactly str or bytes
```  Type variables exist primarily for the benefit of static type checkers. They serve as the parameters for generic types as well as for generic function and type alias definitions. See [`Generic`](https://docs.python.org/3/library/typing.html#typing.Generic "typing.Generic") for more information on generic types. Generic functions work as follows:
vocal basin
#

py 3.12 will have this

def max[T](args: Iterable[T]) -> T:
    ...

class list[T]:
    def __getitem__(self, index: int, /) -> T:
        ...

    def append(self, element: T) -> None:
        ...
#

stack is LIFO

#

queue is FIFO

mossy sinew
#

yes

#

ime here

vocal basin
#

they're just named after what element is popped

mossy sinew
#

@lunar haven

vocal basin
#

if you pop a stack, you get last inserted element
if you pop a queue, you get first inserted element

#
if you pop a stack, you get last inserted element
^^^^^^^^^^                  ^^^^^^^^^^^^^^^^^^^^^
first out                   last in
#

or, the later it was inserted, the earlier it will be popped

#

(applies only when comparing elements currently present in the stack)

#

and in case of a queue, the earlier it was inserted, the earlier it will be popped

slate viper
#

Queue is

First in First Out

Meaning the first thing to enter will be the first thing to leave

Stack is

First in Last Out

Meaning first thing to enter will be the last thing to leave

vocal basin
#

work one hour

#

don't sleep

mossy sinew
#

what ur trying to do?

#

on stream?

vocal basin
#

sometimes duplication is okay

#

just have table of addresses

#

(student, address)

#

all addresses associated with that student

#

not sure about the second one

vocal basin
#

like

#

indices are data duplication too

#

@slate viper
this?
(student id, course id, grade) row
(student id, course id) primary key

#

ah

#

if per assignment, then yes, assignment id

#

there is grade for the whole course

#

there is grade per assignment

#

assignment uniquely defines the course (so course can be excluded from the question)
(assignment, student) uniquely defines the grade if any

#

have a separate table

#

assignments

#

assignment has a foreign key to its course

#

are student address and parent address two different concepts in the system?

#

or is the whole purpose of it to just list addresses associated with a student in order of precedence?

#

well, same as in the original question

#

have one table with ids of all people?

#

yes

slate viper
#

STU1
PAR1
TA1

vocal basin
#

add check, not only FK

#

maybe

slate viper
#

STU2

#

STU3

vocal basin
#
people:
  id

students:
  id

parents:
  id

teachers:
  id
#

ah

#

also

#

@slate viper teachers can be parents

#

don't forget

#

also
if you intend on the system working for 5~10~20 years, and if you intend on keeping all the data for that time,
students also might become parents and teachers

#

I originally had 10~20 years there
but then I remembered that some students become teachers in the same school they graduated from even earlier

#

code 💣

#

course, I think

slate viper
#
people:
  id

student:
  people.id

teacher:
  people.id

parent:
  people.id
vocal basin
#

or idk

#

method name?

lavish rover
#
class Dynamic_Array_Seq(list): pass
vocal basin
#

wait, what was that naming convention called

#

I forgot

lavish rover
#

No idea

#

Title Snake case or something?

vocal basin
lavish rover
#

ah pascal snake makes more sense since the first is also capitalized

vocal basin
#

thankfully

#

screaming kebab
screaming snake

#

ah

#

I remembered the most ugly

#

camel_Snake_Case

#

"LP will soon be working for pharmacy"

echo glade
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

vocal basin
#

Shkreli

#

can now

slate viper
whole bear
#

hi

vocal basin
#

Fast, offline, and free documentation browser for developers. Search 100+ docs in one web app including HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++, and many more.

sweet lodge
#

Why do they care?

cosmic lark
#

ghidra g0d

#

but yk what?

#

i would rather look at a lady all day

#

than looking at a dragon

#

😎

viscid lagoonBOT
#
Wikipedia Search Results

Stirling
Bridge and the port. Located on the River Forth, Stirling is the administrative centre for the Stirling council area, and is traditionally the county town

Stirling engine
the regenerator is what differentiates a Stirling engine from other closed-cycle hot air engines. In the Stirling engine, a gas is heated and expanded by

cosmic lark
#

pretty young if u went to the conf

#

yep

#

woman better

#

no i mean overall, if u like look at the research, ghidra has yet to reach that level of what IDA has implemented

#

only thing close to IDA opensource i would say is angr

#

oh

#

oh

#

u dont need to pay if ur company sponsors ya

#

or have a fren who works on hexrays

#

lol

vocal basin
#

depends on the interface of D

#

what if D[] operations are undefined?

#

this, for example, doesn't seem to define indexing

somber heath
#

@gentle flint You could bake your own.

#

It'd involve a bit of technique, but it'd be doable.

#

@rugged root If the omnipresence of God is taken as given, then God is in the refrigerator.

rugged root
#

That tracks

#
    @classmethod
    def from_dict(cls, obj: dict | None) -> AcceptContract200Response | None:
        """Create an instance of AcceptContract200Response from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return AcceptContract200Response.parse_obj(obj)

        _obj = AcceptContract200Response.parse_obj({
            "data": AcceptContract200ResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
        })
        return _obj
#

That just feels way too long to have as a ternary

somber heath
#

If your kitchen designer had poor taste, would you have a kitschen?

#

Why are shark? Nobody know.

cinder dawn
#

hey

gentle flint
orchid mauve