#voice-chat-text-0

1 messages ยท Page 893 of 1

woeful vine
#

jacobo too pussy

#

be a man jacobo

gloomy vigil
#

i am gonna go guys bye

primal yacht
#

@shut flame come over to this channel

wise cargoBOT
#

Voice verification

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

primal yacht
#

Asad, that is why above (the bot states why)

shut flame
#

not like this i mean my mics muted

shut flame
#

oof

primal yacht
#

Read the channel fully as well.

shut flame
#

๐Ÿฅฒ

shut flame
primal yacht
#

If you already got verified by the bot, fully exit & reopen Discord.

shut flame
#

no the bot dmed me that i have not completed 50 msgs

primal yacht
shut flame
#

ok

primal yacht
#

After a full 1 hour, it might be updated properly if you did make the list

shut flame
#

aaoh

#

thx i got the perms hehehe

#

but i still cant stream

lucid pine
#

There is no cloud. Its just someone else's computer

shut flame
#

for now

primal yacht
#
try:
    value = int(input())
except ValueError:
    print('not a number')
shut flame
#

xD

#

heheheh

#

xD

#

so what do we have to do to get a permanent permission to stream

#

ooh

#

sed life

stuck furnace
#

Hello, did someone want to stream something?

primal yacht
#

Asad just got accepted apparently into the Voice ability

stuck furnace
#

Streaming is a little bit locked down here because we've had some unfortunate incidents in the past.

shut flame
#

and

#

i got my answer

stuck furnace
primal yacht
#

I would stream but I got to prepare a window to stream so it doesn't get automatically taken away

stuck furnace
#

What's everyone up to? ๐Ÿ˜„

shut flame
stuck furnace
#

๐Ÿ‘‹ @wind raptor

shut flame
#

@wind raptorbye

#

what type of programming do u guyz generally do POP or OOP

#

?

#

lol Procedural Oriented Programming

#

hehehe

#

POP

#

xD

#

i am a begineer but i think oop is easy hehehe

stuck furnace
#

I like a kind of multi-paradigm style, when programming in python.

#

Like a mixture of functional and oop.

shut flame
stuck furnace
#

My programming style was heavily influenced by this guy called Peter Norvig.

shut flame
stuck furnace
#

He writes in a very functional style because he's an old-school Lisp programmer.

stuck furnace
#

Oh right, is IronPython just python running on .net?

#

Ah right ๐Ÿ˜„

#

Does that just compile directly to java bytecode?

shut flame
#

ooh

primal yacht
#
>>> ADD(2)(3)
5
stuck furnace
#

Well the key idea of functional programming is that functions should avoid having side-effects where possible.

stuck furnace
shut flame
stuck furnace
#
def add(x):
    def addx(y):
        return x + y
    return addx
shut flame
#

hehehe

stuck furnace
#

Named after Haskell Curry.

cedar briar
#
def curry(*, nargs):
    def decorator(f):
        if not nargs:
            return f()
        @curry(nargs=nargs-1)
        def wrapper(*x):
            return partial(f, *x)
        return wrapper
    return decorator

@curry(nargs=2)
def add(a, b): return a + b
>>> add(5)(4)
9
stuck furnace
#

Nah, don't worry about it ๐Ÿ˜„

stuck furnace
cedar briar
#
def curry(*, nargs):
    def decorator(f):
        return partial(*([partial] * (nargs - 1)), f)
    return decorator
shut flame
#

ok bye gotto go to sleep

cedar briar
stuck furnace
#

Ah yeah, it's in the functools module.

#
from functools import partial
#

Gtg, got to keep an eye on python-general ๐Ÿ˜„

#

Cya

past pawn
#

@somber heath you telling me you didn't hear this?

calm cypress
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

stoic grail
#

hi @alpine flame

alpine flame
#

Hi

#

@stoic grail hi

stoic grail
#

hello

alpine flame
#

Hello!

#

:)

stoic grail
#

: )

#

So which coding language are you learning or good at? @alpine flame

alpine flame
#

@OpManBros Well the truth is that I do not know anything, but I am learning that it is python itself and I would like to learn more, much much more.

stoic grail
alpine flame
#

@stoic grail Well, I'm happy for you, I don't know if you could teach me how to found programming and something else, my native language is Spanish.

alpine flame
#

Translate this what I'll send ok

#

Creo que digiste
Hola, estoy estudiando espaรฑol

stoic grail
#

who dont understands me?

stoic grail
alpine flame
#

xD

stoic grail
#

Sorry i dont make sense im dumb

#

im learning french and spanish

alpine flame
#

Well, how much do you know about programming? And how old are you?

stoic grail
#

i will start learning Python today

alpine flame
#

Omg

stoic grail
#

?

alpine flame
#

Ok

stoic grail
#

your aslo 13?

alpine flame
#

@stoic grail my 14 year

stoic grail
#

@alpine flame come in this channel

alpine flame
#

hi

stoic grail
#

@alpine flame

#

hello

alpine flame
#

hello

stoic grail
#

click on the blue thing

alpine flame
#

!voiceverify

#

emm

stoic grail
#

no no do it in that channel

alpine flame
#

I don't understand what to do ._.

stoic grail
#

let me explain

alpine flame
#

ok

stoic grail
#

tell me when its done

alpine flame
#

! Voiceverify there

#

!Voiceverify there

stoic grail
#

nooo

alpine flame
#

ahh

#

xD

stoic grail
#

check your dm now

alpine flame
#

ok

#

He says no because I have not sent more than 50 messages on this album.

stoic grail
#

ohhh

#

you have to send more messages

#

dont spam like a lot

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @alpine flame until <t:1630986934:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

stoic grail
#

im so sorry..

whole bear
#

Hello everyone

cinder vector
#

hello

stoic grail
#

hello

cinder vector
#

hi

stoic grail
#

how u doin?

cinder vector
#

i am fine u tell

stoic grail
#

same

woeful vine
#

hey

#

@stoic grail

stoic grail
#

hewwo

woeful vine
#

bet you cant beat me in 1v1 type race

stoic grail
#

Okay.

#

I dont wanna actually.

woeful vine
#

dont be pussy

stoic grail
#

@dire folio

woeful vine
#

be a man

stoic grail
#

lol nice trick

#

k it looks fun

#

ima join]

woeful vine
#

lol

#

bruh

stoic grail
#

let me scan the URL first

woeful vine
#

come on i type like my grandma

stoic grail
#

what do i do now?

#

breh

woeful vine
stoic grail
#

@woeful vine

woeful vine
#

join race

#

than start typing

#

im 10 wpm

stoic grail
#

what?

#

chat there bruh

woeful vine
#

bruh 2 wpm

#

your not even trying

#

cmon man i need a competition

stoic grail
#

yea yea

#

bugged game

#

i had not typo

#

its showing typo

#

like wtf

woeful vine
#

lol blaming the game

stoic grail
#

i see

#

ima just learn Python

#

if you think that im blaming the game then i dont care bout what you think.

woeful vine
#

i can code in swift language

stoic grail
#

huh?

#

which coding languages do you know?

woeful vine
#

html python c++ java swift

stoic grail
#

thats nice

woeful vine
#

swift is easy to learn

stoic grail
#

so why are you wasting my time tho?

woeful vine
#

im bored man

#

need a break

stoic grail
#

uhh

woeful vine
#

for some type race

#

lol

stoic grail
#

so

#

u play any games?

woeful vine
#

nope

#

i watch gay porn

stoic grail
#

!ban @woeful vine

woeful vine
#

whats wrong with gay

stoic grail
#

NO ITS ABOUT THE ABUSIVE WORD U SAID TO ME BEFORE IM JUST GONNA IGNORE YOU NOW BRUH

#

waste o time

woeful vine
#

u from india?

stoic grail
#

yea saw from da ga,e

#

its my VPN nerddd

#

lol what a nerd

green bone
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @woeful vine until <t:1631004304:f> (59 minutes and 59 seconds).

stoic grail
#

thats scared the heck out of me i thought that im not in a call and someone just hacked me @whole bear

whole bear
#

lol

stoic grail
#

lol

#

im learning Python rn

whole bear
#

sounds good

stoic grail
#

yea

whole bear
#

what about JS

spiral jay
#

hello

cinder vector
#

Hi

stoic grail
stoic grail
#

hewwo :>

past pawn
#

@tough delta nice music!

stoic grail
#

@somber heath im bak to irritate

#

hehe

past pawn
#

@stoic grail keep it up and i'll show you real irritating...

past pawn
#

jk XD

stoic grail
#

lol

#

im goin to da afk channel :>

past pawn
#

nuuuuuuuuuuuuu

#

DoNT lEaVe mEEEeEeE3eE

somber heath
#

Bajaja

past pawn
#

Bajaja?

somber heath
stoic grail
#

@somber heath i got low marks in my exam only 18/20 : (

#

i got 1 question wrong : (

past pawn
#

i heard my name?

stoic grail
#

looks like an hacked screen,lol

#

pls tell

#

fatal

past pawn
#

Windows 11

tulip bison
#

Hello

#

I dont have permission to speak @somber heath

#

I have

#

Not up to 50 messages

past pawn
#

ive been voice verified for a year yet they're too scared to let me stream or video cos i think its my "code is too terrifying"

minor crow
#

ok

#

@somber heath

#

i have question

#

can i send you an image of code and can you tell me why im getting an error?

somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

somber heath
#

!paste

wise cargoBOT
#

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.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

minor crow
#

@somber heath

#

it gives me the error local variable 'money' referenced before assignment

#

wdym?

#

i have referenced it iin the get value function should i move itup?

#

@somber heath what would be a better way to store the data??

past pawn
#

always remember that x = ... will implicitly declare x as local unless explicitly stated otherwise.
and y = x + ... will ask for x from globals, unless an x = ... exists without a global x

#
x = 4
def main():#>>
  x -= 4 #< error
main() #<<
x = 4
def main():
  global x
  x -= 4 # good
main() # x = 0
minor crow
#

@somber heath if i dont have no data it will error

stoic grail
minor crow
#

is there an alternative?

#

@somber heath could i use that same paste thing to show my changes?

#

!paste

wise cargoBOT
#

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.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

minor crow
#

might be a few names not fixed

#

ok

#

int

#

so suround it in int()

#

for now??

#

ok

#

ok thnx i gtg now

past pawn
#

I cant hear you but lily is purring into the microphone @somber heath

#

well, near it

#

can you hear her?

#

you might need to turn volume max

#

?

#

if you said something, the cat is sitting on my headphones

somber heath
#

Do you have noise cancellation on or something?

past pawn
#

nope

#

it registering noise

#

you just need to turn volume up to max

somber heath
#

I'm hearing occasional, quiet noises of like movement and stuff, but nothing remarkable.

#

Still nothing.

#

Were you talking?

stoic grail
#

Fatal you sound like a guy speaking from the space who is lost

somber heath
#

I can't hear a thing you're saying.

stoic grail
#

pls stop its scaring me fatal

#

pls dont eat me

#

im just a kid

#

noo

somber heath
#

It sounds like you're cupping your hands to your mouth and around the microphone and speaking quietly into it like you're half asleep.

stoic grail
#

gets eaten

#

fatal plug off ur headphone and plug it in again

#

yea

#

you sound like ur in slowmo

#

@somber heath why dont you join a hypesquad?

past pawn
stoic grail
#

uhh so

#

yess

#

its a badge

past pawn
stoic grail
#

there are 3 badges and the one you get tell about yourself and puts you in that group probably

#

im in hypesquad balance

#

its not a server

past pawn
#

i'm in Brilliance

#

Brilliance feels kinda like Slytherin

stoic grail
#

bravery one is very common

#

like everyone has bravry

past pawn
#

that would be gryffindor

stoic grail
#

pls @somber heath take the quiz

past pawn
#

i think ur in hufflepuff

stoic grail
#

okay :< sad face

past pawn
#

@somber heath come join the Brilliance side

stoic grail
#

Balance one is better @somber heath

past pawn
#

In brilliance, we offer the opportunity to truly excel

stoic grail
#

@somber heath whats the reason for that?

#

pls reapeat

#

okhay

#

what does opalmist means?

#

what does opal means?

#

okay

#

your profile pic looks like a mist

past pawn
#

and it's opalish

stoic grail
#

how do you have a lotta time?? @somber heath

past pawn
#

not if they die early

stoic grail
#

uhh like how can i explain

past pawn
#

they have a lotta time if they saw their 100 year old self from the future

stoic grail
#

bruhhhh

#

bruh

#

bruhhhhhhh

#

fatal pls mute

past pawn
#

they dont have a lotta time if they traveled to the future and attended their own funeral in 2028

#

nope

stoic grail
#

EPIK KEYBOARD INTEFISES

#

yesss

#

fatal you sound like an alien

#

stopppppppppppppppppppppppp

#

mutttttttteee

#

fatal

past pawn
#

OH NO IVE BEEN CAUGHT THEE HUMAN SAW THROUGH MY DISGUISE

stoic grail
#

one dude was abusing me today on dis channel

#

i leave home everyday for exersize and ik the spelling is wrong

#

lol

#

i was laughing soo hard when he abused me

#

Can we ban some particular words using code by making a block?

#

like

#

if (fuck)

#

then = ban

#

yea that was my example

slate blaze
#

so it ll be like a chain of if else?

#

oh

stoic grail
slate blaze
#

ye its japanese

stoic grail
#

eyy

stoic grail
slate blaze
#

ye im not japanese sadly

stoic grail
#

oh,lol

slate blaze
#

i just like japanese character lol

past pawn
#

lol

stoic grail
#

oki bai im goin AFK

#

whats ponyo?

past pawn
#

my vpn doesnt give me the option for japan :/

stoic grail
#

i suppose its an anime

past pawn
#

I can UK

rich cloud
#

"ponyo wants ham"

past pawn
#

There, I'm Bri'ish now

#

@stoic grail COME BE BRITISH WITH ME

stoic grail
#

Okay fa'al

rich cloud
#

the wind rises is cool too

stoic grail
#

ehhehhe

#

heheh

#

anyone wanna get muted?

#

:<

#

oki im goin AFK @somber heath sirr

#

idk]

past pawn
#

]

rich cloud
#

i forgot how the movie ended -.-

past pawn
#

it ended at the end

slate blaze
#

wait i thought your name ends with a good ending?

past pawn
#

@somber heath what about the ending of 1984?

#

ye

#

at the very end, the bullet did hit him aha

#

the protagonist dies aha

#

it eventually did happen

#

they did it from behind

stoic grail
#

bai

#

@past pawn

past pawn
#

h

stoic grail
#

@somber heath

past pawn
#

451

stoic grail
#

and the japenese dude

#

no one saying bye to me :<

past pawn
#

h

stoic grail
#

bye

past pawn
#

h

slate blaze
#

sad

past pawn
#

last time i tried to cry it didnn't work but my eyelid went swollen instead

#

crying only works if i have hayfever

rich cloud
#

"if thine enemy offends thee
give his child a drum" this is verboof's bio, and i don't get the analogy. why give his child a drum

past pawn
#

hayfever also makes my eyballs itchy

#

hahah

rich cloud
#

...

past pawn
#

I've played a similar prank like that before

#

When my uncle's ex broke up with him, i took revenge by introducing her children to the genre of death metal

#

and that had the same effect

#

as "giving the child a drum"

#

yeah this is the sort of give the child a drum sorta death metal i was talking about

#

i think she regrets it hehehe

#

ooh

#

DOOM

slate blaze
past pawn
slate blaze
#

yeye

past pawn
#

lol we thought exactly the same thing

#

we must be related

rich cloud
#

different types of metal (e.g aluminum, bronze, brass, copper magnesium

slate blaze
past pawn
#

I heard virgin black before thyer good

#

they only have a single track on spotify :(

slate blaze
#

sad

past pawn
#

hai

slate blaze
#

ight ima head out too

#

sad

past pawn
#

sad

cobalt magnet
#

whar

past pawn
#

hi

#

"aaaa"

cobalt magnet
#

hi

#

"bbbb"

#

'brrr'

past pawn
#

done

cobalt magnet
#

thanks

#

sending this data to nasa

past pawn
#

lmao

cobalt magnet
#

what does pygame.image.load().convert() do

past pawn
cobalt magnet
#

wqhar

past pawn
cobalt magnet
#

pygame devs say convert is very good

past pawn
#

huh

cobalt magnet
#

goomba

past pawn
#

roomba

#

DOOM soundtrack makes good hacker music

#

hello @drifting summit !

#

and MeA sublime_T_Boy

whole bear
#

hi

past pawn
#

welcome to the vc lol

drifting summit
#

hi there!

whole bear
#

ya ,thanks for welcoming

drifting summit
#

i have a question can i just ask here?

past pawn
#

sureeee

whole bear
#

sure

drifting summit
#

i am just getting started with ml libs

cinder vector
#

hello

whole bear
#

hm-hm

whole bear
past pawn
#

ooh, machine learning!

#

machine is better at learning than me ;-;

drifting summit
#

i was trynna build chaterbot I have installed that lib twice but like i don't know it still shows errors

whole bear
#

chatbot really is horryfting

whole bear
drifting summit
#

not just that none of the ml files in there

drifting summit
#

maybe if u can help me with that it'll be very nice!!

whole bear
#

in a nutsheell what is not wrking

#

are the libraries not instaalled or u are not able to acess them

drifting summit
#

ya libraries are installed it'll be showing errors like in ListTrainer and chatterbot

#

and now it's fine no errors and it's giving no optput

whole bear
#

That might be an issue with the code

drifting summit
#

can I share here?

whole bear
#

Ya

drifting summit
#

sure

#

from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
bot = ChatBot("Bot")
convo = [
"Hello",
"Hi there!",
"How are you doing?",
"I'm doing great.",
"That is good to hear",
"Thank you.",
"You're welcome."
]
trainer = ListTrainer(bot)

trainer.train(convo)

answer = bot.getresponse("Good Morning!")
print(answer)

cinder vector
#

hi

cobalt magnet
#

like how much there would be to do

cinder vector
#

hi

#

hi @somber heath

swift valley
#

Good evening

rugged root
cobalt magnet
#

hello there

cobalt magnet
swift valley
cobalt magnet
swift valley
#

That's JS code that's derived by the PureScript compiler for generically representing data types

past pawn
#

Cat sit on arm XD

swift valley
#

That's just a single part

rugged root
#

X to JS compilers are terrifying

swift valley
rugged root
#

Just don't look directly at it

#

brb

swift valley
#

All that code is generated just so I can print some type out

somber heath
swift valley
verbal gull
#

@whole bear i don't like you

solemn hornet
somber heath
#

Temp Agency. Temporal Agency.

Hemlock: Time Cop.

sweet lodge
solemn hornet
rich cloud
#

no wonder it's called funnel cake

sweet lodge
#

Any opening of the item

#

Yes, you can

whole bear
severe veldt
#

@woeful salmon were ya talking about XPS 15?

sweet lodge
#

Get a Free Pair of Wireless Bluetooth Headphones at Micro Center: https://micro.center/7f7633
Check out the Micro Center Custom Builds Showcase: https://micro.center/792de5

Get your G.Skill Z5i mini-ITX case today at: https://lmg.gg/Z5i

When Framework told me they were making a completely repairable laptop I assumed it would be a flimsy chonke...

โ–ถ Play video
woeful salmon
#

yep that one

sweet lodge
#

Thanks to Panasonic TOUGHBOOK for sponsoring this video! Check out the TOUGHBOOK 55 at https://lmg.gg/8KV1N

In the world of soldered ram, pentalobe screws and glued down batteries - Panasonic is taking the complete opposite approach with the new Toughbook. They've created a laptop where nearly everything, including the GPU, can be swapped almos...

โ–ถ Play video
verbal gull
#

can i talk in voice chat?

sweet lodge
#

Happy @rugged root is happy

sweet lodge
wise cargoBOT
#

Voice verification

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

sweet lodge
#

How dare you not carry your pocket banana at all times?

#

Why not?

rugged root
sweet lodge
#

Where do I acquire one of these?

gloomy vigil
#

yo guys hi

rugged root
sweet lodge
#

Though you can get a 2.5" HDD if you so desire

#

It's cute

#

Mines boring

gloomy vigil
#

lol

sweet lodge
gloomy vigil
#

well i will be going i got some work rn

rugged root
sweet lodge
#

I just hate how everyone uses different escape characters
Postgres (and Excel?) use two consecutive quotes to escape a quote

rugged root
#

Huh

#

That I didn't know

somber heath
#

If you can have a kernel of truth, does that mean it comes on cobs?

#

Shark-ram.

shadow cedar
#

hello there

#

how do you do young men

rugged root
#

I'm good, you?

shadow cedar
#

kids these days and their memes

sick cloud
whole bear
#

hlo sir

#

how are u doing @rugged root

rugged root
brave steppe
#

Interesting, so an official GTK one

severe pulsar
#

thats cool

paper tendon
#

who is marko

vivid palm
#

@smoky dustyou're thumping into your mic

woeful salmon
primal yacht
# sweet lodge

Your name reminded me of this game .... (which I only have on Android) https://youtu.be/TNTlsNKMPAw

Fight and tame alien beasts, craft resources into menacing weaponry, befriend the outlandish locals, and go toe-to-chin with a world-domineering maniac in this award-winning RPG. Have a friend join you for couch co-op with a single Joy-Con!

#NintendoSwitch #Crashlands

Subscribe for more Nintendo fun! https://goo.gl/HYYsot

Visit Nintendo.com ...

โ–ถ Play video
#
>>> a = { [] }
>>> a.add([])
>>> len(a)
2
haughty pier
#

@primal yacht that's not legal Python

primal yacht
#

first line is a set literal

haughty pier
#

it fails in Python 3.8.9

#

lists aren't hashable so you can't add a list to a set.

primal yacht
#

oh?

#

my bad

rugged root
#

brb

undone idol
#

cya!

haughty pier
#

@primal yacht maybe you mean this? ```

a = set()
a.update([])
len(a)
0

#

There is no set literal for an empty set.

primal yacht
#

.... was your speakers working at the time I typed that?

haughty pier
#

closest thing is ```

{*[]}
set()

primal yacht
#

It was a contextual code block

#
// JavaScript (untested)
console.log(JSON.stringify(
  Array.from({length:0})
)); // []
console.log(JSON.stringify(
  Array.from({
    length: 3
  }, (_, i) => String.fromCodePoint(
    i + 'a'.codePointAt(0)
  ));
)); // ["a","b","c"]
amber raptor
#

!e ```python
from dataclasses import dataclass
@dataclass
class Test:
is_user: bool
role: str

a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)```

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

001 | Admin
002 | False
haughty pier
#

CP/M, originally standing for Control Program/Monitor and later Control Program for Microcomputers, is a mass-market operating system created in 1974 for Intel 8080/85-based microcomputers by Gary Kildall of Digital Research, Inc. Initially confined to single-tasking on 8-bit processors and no more than 64 kilobytes of memory, later versions of ...

amber raptor
#

!e ```python
from dataclasses import dataclass
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)

wise cargoBOT
#

@amber raptor :warning: Your eval job has completed with return code 0.

[No output]
amber raptor
#

!e ```python
from dataclasses import dataclass
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a))

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

001 | Admin
002 | False
003 | vc-0
amber raptor
#

!e ```python
from dataclasses import dataclass
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a))```

wise cargoBOT
#

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

001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 |   File "<string>", line 14, in <module>
006 |   File "/usr/local/lib/python3.9/json/__init__.py", line 231, in dumps
007 |     return _default_encoder.encode(obj)
008 |   File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
009 |     chunks = self.iterencode(o, _one_shot=True)
010 |   File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
011 |     return _iterencode(o, 0)
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/yobihuvome.txt?noredirect

rugged root
#

!e

from dataclasses import dataclass
import json
@dataclass
class Test:
  is_user: bool
  role: str
  voice_channel:str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(dict(a)))
wise cargoBOT
#

@rugged root :x: Your eval job has completed with return code 1.

001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 |   File "<string>", line 14, in <module>
006 |   File "/usr/local/lib/python3.9/json/__init__.py", line 231, in dumps
007 |     return _default_encoder.encode(obj)
008 |   File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
009 |     chunks = self.iterencode(o, _one_shot=True)
010 |   File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
011 |     return _iterencode(o, 0)
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/onixupeyun.txt?noredirect

olive hedge
#

!e

from dataclasses import dataclass
import json
@dataclass
class Test:
  is_user: bool
  role: str
  voice_channel:str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a.__dict__))
wise cargoBOT
#

@olive hedge :x: Your eval job has completed with return code 1.

001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 |   File "<string>", line 14, in <module>
006 | AttributeError: 'dict' object has no attribute '__dict__'
woeful salmon
#

any reason to use

__dict__ or vars instead of dataclasses.asdict?
does dataclasses.asdict do anything different o- o

olive hedge
#

I couldnt remember how to do it, this might be the correct way

#

in general you do not want to use the dunder methods directly

rugged root
#

We're dumb

whole bear
olive hedge
#

I realized where I messed up

#

!e

from dataclasses import dataclass, asdict
import json


@dataclass
class Test:
  is_user: bool
  role: str
  voice_channel: str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}

a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a["Hemlock"].__dict__))
wise cargoBOT
#

@olive hedge :white_check_mark: Your eval job has completed with return code 0.

001 | Admin
002 | False
003 | vc-0
004 | {"is_user": false, "role": "Lowly User", "voice_channel": "vc-0"}
olive hedge
#

I didnt read

rugged root
#

Neat

whole bear
amber raptor
#

!e ```python
from dataclasses import dataclass, asdict
import json

@dataclass
class Test:
is_user: bool
role: str
voice_channel: str = 'vc-0'

a = {"Rabbit": Test(True, "Admin")}

a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a.dict))```

wise cargoBOT
#

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

001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 |   File "<string>", line 17, in <module>
006 | AttributeError: 'dict' object has no attribute '__dict__'
amber raptor
#

that still doesn't help fisher

#

I'm talking about building nice big dictionary you can dump to JSON so you can post it

whole bear
amber raptor
#

too much code to read

whole bear
#

kk ima try to figure it out

amber raptor
#

when posting example, post tiny code

#

minimal amount of code to show what you want

sweet lodge
#

!e

import json
from dataclasses import dataclass
from json import JSONEncoder


class MyEncoder(JSONEncoder):
    def default(self, o):
        return o.__dict__


@dataclass
class Test:
    is_user: bool
    role: str
    voice_channel: str = 'vc-0'


a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")

print(json.dumps(a, cls=MyEncoder))
wise cargoBOT
#

@sweet lodge :white_check_mark: Your eval job has completed with return code 0.

{"Rabbit": {"is_user": true, "role": "Admin", "voice_channel": "vc-0"}, "Hemlock": {"is_user": false, "role": "Lowly User", "voice_channel": "vc-0"}}
sweet lodge
amber raptor
#

That works

#

Wait, no

#

that's messy as hell

haughty pier
#
>>> from dataclasses import make_dataclass, field
>>> MC = make_dataclass('MyClass', [('x', int), ('y', str, field(default='bar'))])
>>> MC(0, 'baz')
MyClass(x=0, y='baz')
sweet lodge
#

@rugged root How big is your internal IT department?

sweet lodge
# rugged root Just me

Do you mind giving me the five minute version of what it's like to have internal and external IT?
I've always been curious about what that's like.

limber wyvern
#

anyone here does poisson regressions in pandas?

woeful salmon
#

does anyone of you do your entry points like this btw?

def main() -> int:
    if not working:
        print("err", file=sys.stderr)
        return -1
    return 0

if __name__ == "__main__":
    sys.exit(main())

saw it in source i was reading just now but seems excessive knowing exceptions exist

sweet lodge
amber raptor
#

external IT is generally miserable

amber raptor
haughty pier
#

@amber raptor I wouldn't use this unless I don't know what kind of data I'm getting and I, for some reason, need a dataclass instead of a dynamically generated namedtuple - but I think I'd still prefer the namedtuple.

woeful salmon
honest pier
#

@amber raptor they added a new map, and there's a sight line from one of the capture points directly into one of the spawns

whole bear
#

ok

honest pier
#

war thunder game devs

molten pewter
#

In mathematics, a tuple is a finite ordered list (sequence) of elements. An n-tuple is a sequence (or ordered list) of n elements, where n is a non-negative integer. There is only one 0-tuple, referred to as the empty tuple. An n-tuple is defined inductively using the construction of an ordered pair.
Mathematicians usually write tuples by listi...

sweet lodge
# amber raptor Convert dict with dataclass values into bog standard dict

Forgive my ignorance, but is that not what I(/we) did?

What do you think of this alternative?

import json
from dataclasses import asdict, dataclass


@dataclass
class Test:
    is_user: bool
    role: str
    voice_channel: str = 'vc-0'


a = {"Rabbit": Test(True, "Admin"), 'Hemlock': Test(False, "Lowly User")}

print(json.dumps(a, default=lambda o: asdict(o)))
rugged root
#

Does asdict() walk the whole thing?

#

Like if you have multiple dataclasses nested

sweet lodge
#

Let me review the docs. I'm not too familiar with dataclasses

honest pier
#

!d dataclasses.asdict

wise cargoBOT
#

dataclasses.asdict(instance, *, dict_factory=dict)```
Converts the dataclass `instance` to a dict (by using the factory function `dict_factory`). Each dataclass is converted to a dict of its fields, as `name: value` pairs. dataclasses, dicts, lists, and tuples are recursed into. For example...
honest pier
#

yes

sweet lodge
#

Nevermind. That was quick

rugged root
#

Neat

coarse cape
#

hiya hemlock

#

๐Ÿ‘‹

haughty pier
wise cargoBOT
#

Lib/dataclasses.py line 1211

def asdict(obj, *, dict_factory=dict):```
rugged root
past pawn
#

its half passt 3am mebe i sheld slepe

#

sorry to leave so quick, byeeee

haughty pier
#

Ear worm remover I mentioned earlier: https://www.youtube.com/watch?v=qRZmdzCGLYw

The Best of Achille-Claude Debussy (22 August 1862 -- 25 March 1918)

Pianist: Pascal Rogรฉ

Along with Maurice Ravel, Debussy was one of the most prominent figures associated with Impressionist music, though he himself intensely disliked the term when applied to his compositions. In France, he was made Chevalier of the Legion of Honour in 1903. ...

โ–ถ Play video
minor crow
#

can someone give me an idea for python?

rugged root
#

!projects

wise cargoBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

swift valley
#

Good evening again

#

Uni stuff

noble copper
#

Sup Hemlock!

swift valley
#

Trying to find the motivation though

noble copper
#

nm, working (trying to)

swift valley
#

I slept for like 4 hours this afternoon

#

Now I'm wide awake at 2 AM and having coffee

vivid palm
#

.

amber raptor
#

Chaos?

noble copper
#

trying to understand why a .yml file is being used as a middleman for extracting .env values and struggling to adapt to this convention.

swift valley
vivid palm
#

is this inaccurate?

amber raptor
vivid palm
#

no, it's not inaccurate?

#

no, it is inaccurate?

mortal burrow
#

I'm going to try downgrading my python to 3.8

vivid palm
#

^ @olive hedge when are we starting our podcast?

olive hedge
#

Holy

#

hecc

#

Right now, omg

rugged root
#

I can do it

mortal burrow
#

it worked lol

vivid palm
amber raptor
#

Thatโ€™s small notebook

calm cypress
#

await nuserm.add_roles(nuserm.guild.get_role(839872901326438431))

rugged root
calm cypress
#
@bot.event
async def on_raw_reaction_add(payload):
    print("A")
    if payload.emoji.name == ":white_check_mark:":
        channel = bot.get_channel(payload.channel_id)
        if int(payload.channel_id) == int(884807256724602931):
            message = await channel.fetch_message(payload.message_id)
            reaction = get(message.reactions, emoji=payload.emoji.name)
            users = set()
            for reaction in message.reactions:
                
                async for user in reaction.users():
                    users.add(user)
                    for user in users:
                        if user.id != 882174968375431169:
                            nuserm = user
                            if reaction and reaction.count > 1:
                     
                                await message.remove_reaction(":white_check_mark:", nuserm)

                                
                                await nuserm.add_roles(nuserm.guild.get_role(839872901326438431))```
celest pecan
#

I LOVE

green bone
#

Did you know voice chat works from android? I'm surprised

brave steppe
#

Holy shit what

haughty pier
#

What's the intuition for all the async/await syntax? I think I got it, but I'm not sure...

green bone
#

I wasn't sure if the android browser supported that

haughty pier
#

oh, android browser... I see

celest pecan
#

android is a robot

rugged root
#

I'm going to create an operating system called Wizard of

#

So I can have its full title, Wizard of OS

amber raptor
swift valley
#

I've practically abused my phone's battery but I've yet to see any major degradation in battery life

green bone
swift valley
#

3~4 years now

#

iirc main is already on 3.11

swift valley
#

neat

#

just one more month, yay

rugged root
swift valley
#

Use PureScript @rugged root jupiterdjinn

rugged root
#

True

swift valley
#

We have React bindings

#

I finally got something to statically compile with GHC+Musl

rugged root
#

I have no idea what that means

#

But I'm impressed

noble copper
#

@haughty pier why not study machine learning?

#

if you already have a comp-sci foundation, i don't imagine it to be that hard

swift valley
#

I also have

#

I found assets on a fan site

#

There's quite a lot of decompiled GBA games floating on GitHub

#

Only a matter of time before Nintendo- yeah

haughty pier
#

@noble copper there was a lot of "machine learning" topics in the coursework. I think "MS Statistics" has more academic credibility than "MS Data Science" or "MS Machine Learning".

swift valley
#

Haskell is practically a first-class citizen in Nix land

rugged root
#

That's wild

cerulean ridge
rugged root
severe minnow
#

Hello Guys ๐Ÿ‘‹

rugged root
#

What I think of when I hear Slurm

rugged root
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Voice region: europe
Roles: 90
Member status: status_online 53,529 status_offline 196,891

Members: 250,420

Helpers: 124
Moderation Team: 32
Admins: 14
Owners: 3
Contributors: 43
Leads: 14

Channels: 244

Category: 32
News: 9
Staff: 66
Stage_Voice: 1
Text: 127
Voice: 9

rugged root
#

It happened

#

brb

mortal burrow
#

How do you set up lynx for windows?

rugged root
#

Hopping back on when I get in the van.

brave steppe
#
async def aprint(*args):
    print(*args)
#
async def multi_print():
    await aprint('hello')
    await aprint('world')
    await aprint('goodbye')
haughty pier
brave steppe
#
async def multi_print():
    yield from aprint('hello')
    yield from aprint('world')
    yield from aprint('goodbye')
#
async def multi_print():  # Inlined
    print('hello')
    print('world')
    print('goodbye')
#
async def atime(duration):
    time.sleep(duration)
#

!e I made this yesterday ```py
def wait(sec):
# Wait a little bit
for _ in range(target): # Pretend this is seconds
print('waiting')
yield # Nothing to be done

# The seconds have passed and we're done
return

def lunch_employee(employee):
print(f'{employee} clocking into work')
for _ in range(5):
print(f'{employee} is working')
yield # Let other tasks run
print('Taking a lunch break')
yield from wait()
print('Back to work after our break')
for _ in range(2):
print('I am working, you dont need to ask me about it')
print('See you tomorrow')

def robot_employee(employee):
print('Working with my colleague')
for i in range(20):
print('dig')
yield
print('Going home now as well')

tasks = [robot_employee('Bob'), lunch_employee('Robert')]
while tasks:
for task in tasks:
try:
next(task)
except StopIteration:
# Error from Python that means the generator stopped
tasks.remove(task)

wise cargoBOT
#

@brave steppe :x: Your eval job has completed with return code 1.

001 | Working with my colleague
002 | *dig*
003 | Robert clocking into work
004 | Robert is working
005 | *dig*
006 | Robert is working
007 | *dig*
008 | Robert is working
009 | *dig*
010 | Robert is working
011 | *dig*
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/pacixuginu.txt?noredirect

gloomy vigil
brave steppe
#

Halp I think I crashed IPython with 300 K prints

#

Update: 600 K

molten pewter
#

SQLite (, ) is a relational database management system (RDBMS) contained in a C library. In contrast to many other database management systems, SQLite is not a clientโ€“server database engine. Rather, it is embedded into the end program.
SQLite generally follows PostgreSQL syntax. SQLite uses a dynamically and weakly typed SQL syntax that does not...

brave steppe
haughty pier
woeful salmon
#

i'm just gonna go sleep now 1:40 am gnight ๐Ÿ˜ช

whole bear
#

oi

#

have any of you used threading in pyqt5

alpine path
#

hello

#

they're pretty much just music nodes and then the bot

#

not really micro service

#

pithink what

#

@dense ibex What are you trying to do with shards?

amber raptor
#

Heโ€™s sharding on RabbitMQ

alpine path
#

you do that with manual sharding

#

so basically

#

clustering

#

err

#

so you have a set of listeners

dense ibex
#

mhm

alpine path
#

and you want one discord python instance to connect to x shards and add them to the queue

#

thats manual sharding

#

so you tell discord what process should handle what shards

#

and they get their respective events

#

yes

#

so its just manual sharding

#

well no lib handles sharding to what he wants to do

#

well he has to

#

he's connecting to Discord he has to worry about what shards he's managing

#

but I think what he's saying is that eventually that process will only cope with so many events

#

1

#

2

#

2500

#

set

#

yes and that reduces the load on the listener

#

but there is a limit to what the single process can cope with

#

Rust +Tokio would

#

yeah threading would help

#

yeah it'll remove alot of load

#

๐Ÿ‘Œ

#

bot state store yeah

#

no caching general data

#

e.g. Roles

#

members

#

use keydb

#

just set the buffer pool limit to be more reasonable

#

not 128MB

#

Postgres' default caching config is very very limiting

#

in terms of how much it stores

#

zoomeyes That is a big ass message cache

#

Well if you think about the fact that you'll see thousands of messages a second

#

as you get bigger

#

no no I was referring to Jake's idea of storing a week's set of messages in some store

#

generally

#

postgres would probably be best or scylla / cassandra maybe with lz4 compressing enabled between client and server

#

it would be good if you want to store the messages for a week

dense ibex
#

@haughty pier can you please mute your mic

alpine path
#

because it is aimed at that higher rate of row input and targetted recall

dense ibex
#

We can hear everything lol

alpine path
#

but not really worth if you have other stuff to store

haughty pier
#

@dense ibex oops

#

muted on my hardware

alpine path
#

the queries notlikeduck

#

well spin up isnt that bad

#

but I have a real issue with the queries

#

just because no nested queries and it has a really tiny tolerance of query performance

#

you can set it to auto discover

dense ibex
#

oh ok

alpine path
#

I gotta write distribution stuff for my search engine notlikeduck

dense ibex
#

ooo

alpine path
#

basically

#

Its just faster

#

because Java -> c++

#

and Blocking IO -> async IO

#

Pretty sure they're one of the only DB's that does actual Async disk IO

#

just because its an absolute nightmare to do

#

I mean truly Async Disk IO in combination with Direct IO

#

although I think that's only used on IOuring systems

#

yeah pain

#

although its pretty reasonable

#

because then you have to worry about alignment etc...

#

The only time its pretty useful to do is in DBs to cut back on duplicated caching

#

indexing

#

late at night

#

last time I got bollocked for talking too loud bloblul

#

move to a flat in like 16 days though

dense ibex
alpine path
#

No i work

#

lmao

#

breh

#

no

#

no

#

shattered

#

e.g.

#

sleepy

#

e.g. fucked

whole bear
#

@sinful wharf sorry new to discord

#

@dense ibex any advice to get good at coding

#

yeah i ma

#

am

dense ibex
#

In this Python Beginner Tutorial, we will start with the basics of how to install and setup Python for Mac and Windows. We will also take a look at the interactive prompt, as well as creating and running our first script. Let's get started.

Mac Install: 1:25
Windows Install: 5:44
Installs Complete: 8:37

Watch the full Python Beginner Series he...

โ–ถ Play video
#

!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.

whole bear
#

how long did it take u

#

curious

#

and how many hours do u spends a day?

#

if u are ok for answering

#

u in college?

whole bear
#

hey anyone wanna teach me how to script

#

i cannot get my bot verified bc my age on discord does not match the age on my passport ๐Ÿ˜ญ

#

i am kinda a starter

primal yacht
whole bear
#

thx

#

no no its not a personal bot

#

its in 76 servers tho!

#

question katie

#

why is your name that and you sound like a grown man

#

oop

#

sry

#

lol

#

uhm

#

did you ever create

#

a bot

#

ohh so what have you scripted?

#

oh ok

#

on your phone you can do that

#

wait

#

this whole time

#

i have been sleeping under a rock

old shale
#

any of you know something about ROS/rospy module?

whole bear
#

nahh

old shale
#

:/

whole bear
#

well not me

#

sadly

#

hope fully i get to learn all of those things

old shale
#

ros is for robotics if you're interested

whole bear
#

ok

#

exsplain

#

i wanna know more about it

old shale
#

anyway, how would you recommend stepping up my game in python programming

whole bear
#

idk

old shale
whole bear
#

ask Katie

whole bear
#

is there a algorithim that can convert a number like 78927 to a str like this: 78,927

whole bear
#

yes

#

robot Operating System is an open-source robotics middleware suite. Although ROS is not an operating system but a collection of software frameworks for robot software development, it provides services ...

#

damm

whole bear
#

lol

old shale
#

you can use python to write scripts to control robots

#

the module is rospy

whole bear
#

ohh did you learn some

#

are learn to script robots

old shale
#

yeah, but i wanted to know if someone knew more than me, so i could ask some stuff

#

but I know only the basics

whole bear
#

oohhh

#

i very much know python

#

did yall here about

#

yes

#

the new tesla robot

old shale
#

too much linear algebra for me brain

whole bear
#

lol

old shale
whole bear
#

i was confuse on what is was going to do

#

cause

#

why do we need a robot

#

when we can do the things our self

#

but then

#

when you think about

#

the people in need

#

that dont have legs

#

and cant walk

#

then yh

#

but that will be alot of money

old shale
#

so, robots are pretty much like the ones that can do repetitive tasks o dangerous

#

for example think about a gas leak somewhere

whole bear
#

yh

old shale
#

with risk of explosions

whole bear
#

yh

old shale
#

or a crumbling house with people inside

whole bear
#

ohh ok

#

but

#

you know

old shale
#

it does make sense to have them robots doing those jobs

whole bear
#

your ideas are from movies

#

but

#

in real life

primal yacht
#
import os, sys, json
json.dump(dict(os.environ), sys.stdout, indent = 2)
print(flush=True)
whole bear
#

you dont know what can happen

#

yo hello

whole bear
old shale
#

robots are already automating some task in production lines

whole bear
#

what do we do here

primal yacht
#
%AppData%
%LocalAppData%
whole bear
#

ok

#

where is like the general chat at

#

here you go

#

ohh

#

do this

#

<#

primal yacht
whole bear
#

yh

#

thats it

#

question

#

did

#

yall here

#

that tesla making the bots learn by there self

#

that is hard

primal yacht
#
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
whole bear
#

question

#

how do you do that

#

like this : this

primal yacht
#
import os
print(os.environ['PATHEXT'])
whole bear
#

yh like that

primal yacht
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

whole bear
#

but differnt

old shale
#

how do you make it look cool

#

??

whole bear
#

oh

old shale
#
print('Hello world!')
#

cool

whole bear
#

print('Hello world!')

#

oop

#

!code

#

hm

#

ohh