#voice-chat-text-0

1 messages · Page 224 of 1

odd granite
#

version

#

which one

mystic lily
#

Python (>= 3.8)

#

pip install scikit-learn

odd granite
#

repeat

#

?

#

11

#

downloaded it

#

the Python (>=3.8) thing no work

#

ah

#

louie viton

#

a

#

so i did the pip

#

what now

#

?

#

not being able to talk is turture

#

torture

#

where run button

#

hm

#

so

#

it got rid of 2 issues

#

just need to fix 2

#

mr.louie

#

we go dms?

#

ya

#

||boo||

pine depot
#

anyone ever played SHENZEN I/O

whole bear
#

Sorry

pine depot
#

my girl is asleep

#

lol

#

she will kill me

#

shes the lightest fucking sleeper

#

im in another room with the door closed

#

lol

wind raptor
#

1

somber heath
#

@analog cove 👋

analog cove
#

Hello guys

#

yeah

#

can i be unmuted?

#

how?

somber heath
#

!voice 👇

wind raptor
#

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

analog cove
#

!voice

#

Have messages from three different ten-minute blocks ---- what does it mean?

#

1

#

thganks

#

okay will do that

#

print("Hello world")

somber heath
#

!e print(123)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.

123
pine depot
#

!e

def test(x):
  print(x)
test("this is a test")
wise cargoBOT
#

@pine depot :white_check_mark: Your 3.12 eval job has completed with return code 0.

this is a test
analog cove
#

def destroy(x):

#

No TV tmrw

#

are you guys into deep learning?

#

you are not data scientists?

#

are you software engeneers?

#

kk

somber heath
pine depot
#

im on the swe path

#

check out the shenzen i/o game manual lol

rapid flame
wind raptor
#

!stream 224021428926676995

wise cargoBOT
#

✅ @rapid flame can now stream until <t:1701308290:f>.

pine depot
pine depot
vocal basin
#

we have 20%, iirc

#

and 10% for some stuff

vocal basin
#

we had some Anthrax outbreaks recently
I wonder if that will get worse soon

#

well, yeah, it's also a thing that a lot of countries tried to use as a bioweapon

languid copper
#

hellohello

desert vector
languid copper
#

wat advent ?

desert vector
languid copper
#

:O

#

thanku

heady minnow
#

this is definitely a post

whole bear
#

Hi

#

I'm a ghost

wind raptor
#

I'll be back. Gotta record some stuff for a project

heady minnow
#

Mar 8, 2022 last atom release

desert vector
heady minnow
#

what are the criteria for what you're looking for? didn't hear

heady minnow
#

how easy is it to isolate programs from each other in gpu memory? e.g. say user1 runs a program, user2 tries to steal data from user1 running on the same gpu

#

yeah it looks interesting

#

Each Volta MPS client owns its own GPU address space instead of sharing GPU address space with all other MPS clients.

#

sorry i broke conversation flow

#

hardware?

whole bear
#

so the OS clouds lift the hyper visor weight, which is attached to a very hard ware

heady minnow
#

i love how quantum computers look

#

gn

random falcon
#

progress on slime mold simulation

terse garden
#

yo @wise loom

#

get me some voice perms

#

in dis hoe

#

i been here for a century

#

i mean i tried

wind raptor
#

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

terse garden
#

we could skip some steps

#

and u just give it to me

#

🙂

#

dammit

#

ok what do i do i dont understand

wind raptor
#

!stream 745015733238497330

wise cargoBOT
#

✅ @terse garden can now stream until <t:1701325846:f>.

wind raptor
#

!stream 854646371230285854

wise cargoBOT
#

✅ @random falcon can now stream until <t:1701327658:f>.

wind raptor
#

!stream 745015733238497330

wise cargoBOT
#

✅ @terse garden can now stream until <t:1701327869:f>.

terse garden
#

double N(const double z) {
if (z > 6.0) { return 1.0; }; // this guards against overflow
if (z < -6.0) { return 0.0; };
double b1 = 0.31938153;
double b2 = -0.356563782;
double b3 = 1.781477937;
double b4 = -1.821255978;
double b5 = 1.330274429;
double p = 0.2316419;
double c2 = 0.3989423;
double a = fabs(z);
double t = 1.0 / (1.0 + a * p);
double b = c2 * exp((-z) * (z / 2.0));
double n = ((((b5 * t + b4) * t + b3) * t + b2) * t + b1) * t;
n = 1.0 - b * n;
if (z < 0.0) n = 1.0 - n;
return n;
}

somber heath
#

@lime haven 👋

#

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

lime haven
#

!voiceverify

#

!voice

#

!voiceverify

#

can you accept my fr?

#

@somber heath

#

I need some help with my code

#

I opened a thread but no-one is replying

#

mhm but doesn't fix the problem

#

kinda sucks

#

uh oh ohk

#

sorry to disturb

#

I did

#

see the other screenshot

#

lemme try that

#

lol ok

#

hahahaha

#

true facing the same rn

#

although I have a nice build

#

but ig the ram is lower

#

I have 8 gigs of ram

#

gotta extend it to 16

#

soon

#

Yeah lol

#

yeah fr like if you are into code and game development 32 is what you need

#

like well for the amount of knowledge I have makes 16 gigs fine for my work

#

like overall and it's economical too

#

I'll

#

yeah

#

@cinder bay

#

?messages

#

alr

#

wait

#

60

#

less goo

#

mhm just gotta wait for 3 days

#

yeah

#

mhm

#

Got it

somber heath
#

@nocturne mulch 👋

#

@hot girder 👋

hot girder
#

I have not permission to speak.

somber heath
wise cargoBOT
#
Voice verification

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

junior wing
somber heath
#

@severe lintel 👋

severe lintel
#

@somber heath Hi 😄

#
from tkinter import *  
from tkinter import messagebox  
  
top = Tk()  
top.geometry("100x100")  
while True:
    messagebox.showerror(":D","I LOVE YOU :D") 

    top.mainloop()  
somber heath
#

@spark compass 👋

spark compass
#

hey @somber heath

severe lintel
#

@spark compass Hi

spark compass
#

hey @severe lintel

severe lintel
#

@spark compassHow are You?

spark compass
#

still going through my voice verification 😅

spark compass
severe lintel
severe lintel
somber heath
#

@fluid flax 👋

fluid flax
#

Hello

spark compass
#

are you using opencv from encryption and decryption? @junior wing

spark compass
#

be back later

#

👋

junior wing
rugged root
#

@limpid ginkgo Yo

limpid ginkgo
#

hi i am sv mute

rugged root
limpid ginkgo
#

oh tnx

rugged root
#

@stark river brb, have to swap out some desktop speakers

#

5 min tops

stark river
#

😂 no worries take ur time man

wind raptor
amber raptor
#

Figures

rugged root
#

@spark ferry If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate. If you've heard this before, my bad

rigid nacelle
#

thats why you got promoted from helper to admin lol

#

@rugged root

rugged root
#

It was mainly because of how involved I've been in policy here

rigid nacelle
#

I thought it was cause of the fire sacrifice : (

rugged root
#

HA

#

If only

#

I'd be super admin by now

#

.... I'm not a Pyro

#

I swear

whole bear
#

Hello

#

I only Phish

#

No fish

#

Phishes?

rugged root
uncut meteor
#
Input ← &i "../common.ua" "Input"

&p ⊂"Part 1: " ⍘parse/+×=,↻1.[/parse]Input
&p ⊂"Part 2: " ⍘parse/+×=,↻÷2⊢△..[/parse]Input
#
Common ← &i "../common.ua"
  Input ← Common "Input"
  ¦ ← Common "Split"

∵(parse⊔) ≡(¦@\t⊔)¦@\n Input
&p ⊂"Part 1: " ⍘parse/+⌵-≡(/↥⊔)∶≡(/↧⊔).
rugged root
#
3.times do
  print 'Welcome '
end
#

I do not like that

woeful salmon
nimble thorn
#

IM ALIVR

#

FINALLY

#

ducky_concerned e

#

ducky_concerned e

#

ducky_concerned e

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @nimble thorn until <t:1701360925:f> (10 minutes) (reason: emoji spam - sent 56 emojis).

The <@&831776746206265384> have been alerted for review.

woeful salmon
#

tsoding

feral aurora
#

Andrej Karpathy

rugged root
#

@thorn wharf Suuuuup

thorn wharf
woeful salmon
rugged root
#

HA

#

That's amazing

rugged root
thorn wharf
#

yeah it has, been good same shit different hole

#

just work work and work. i hate ramping up jr's and aws training even more. how about you?

rugged root
#

Same. Work, home, rinse, repeat

stark river
#

wrap it in a while (True) loop

thorn wharf
#

day !== "saturday" && day !== "sunday" ? work() : golf()

tiny socket
woeful salmon
#

for about 1 seconds until my antivirus deleted my server exe again

rugged root
#

Docker container?

#

Maybe it'll keep it hidden away enough

woeful salmon
#

nah i added an exception and it work snow

rugged root
#

Oh cool cool

thorn wharf
woeful salmon
#

now should i delete the server and make a wsgi-compatible webserverpithink

woeful salmon
thorn wharf
#

nah i didnt mean to reply to myself

woeful salmon
#

ah ok

thorn wharf
#

been having a problem with the vscode debug launcher every god damn day for the past year and a half

rugged root
#

@obsidian dragon We could hear you talking in the background, wasn't sure if it was private or not

thorn wharf
#

@rugged tundra

{
"name": "Python Fastapi"
"type": "python"
"request": "launch"
"module": "uvicorn"
"args": ["main:app"]
"console": "integratedTerminal"
}
rugged tundra
gentle flint
rugged root
#

Hard to find sites with notification sounds that aren't obviously just viruses

stark river
#

can't have both values for day at the same time

#

use ||

thorn wharf
#

@stark river it would work, its a not check

woeful salmon
thorn wharf
#

that its not saturday and not sunday

#

then work sadge

#

else golf pog

woeful salmon
#

😄 let me give you my version

haveWork ? work() : golf()
thorn wharf
#

definitely more readable hahahaha

woeful salmon
#

nah

#

i work all days

#

that's why

thorn wharf
#

omg no sundays off is pain

woeful salmon
#

i can take them off but

#

i'd much rather finish more work in the day on sunday and have more time free in evening / night

thorn wharf
#

makes sense, being a football fan makes it hard to do anything else on sundays from september to february

woeful salmon
#

i don't really watcha ny sport or esport just because if i'm watching i'd much rather do the thing myself atleast

#

i don't have much fun watching others do fun stuff rather than doing it myself

#

i will be back in a bit

stark river
#

oh yeah.. 1 AND 0 = 0

peak depot
brazen gazelle
#
    def is_empty(self):
        """
        Check if the linked list is empty.

        Returns:
        - True if the linked list is empty, False otherwise.
        """
        return self.head is None```
#

can someone explain this?

#

return self.head is None?

stark river
#

python is operator

brazen gazelle
#

so will it only return self.head if it is not none?

#

or is it the other way?

stark river
#

is operator returns True or False only

brazen gazelle
#

so if self.head is None it will return True

stark river
#

yes

brazen gazelle
#

nice

#

thanks

stark river
#

is an instance of None to be exact

brazen gazelle
#

@stark river is this the same thing? def is_empty(): if self.head == None: return True else: return False

mild quartz
stark river
stark river
# brazen gazelle <@210695037829251072> is this the same thing? ``` def is_empty(): i...

In Python, operators are special symbols, combinations of symbols, or keywords that designate some type of computation. You can combine objects and operators to build expressions that perform the actual computation. So, operators are the building blocks of expressions.

brazen gazelle
#

oh ok interesting

stark river
#

it will return True but is is a different operator than ==

brazen gazelle
#

yeah I understand the point you are making

#

it would still work but it is just not the right thing to do...

#

correct me if I am wrong

stark river
#

depends on what you want to do.. r u checking for value or r u checking for reference

brazen gazelle
#

referance I guess?

#

it's is just implementing linked lists in python

stark river
#

it is safer to use ==

brazen gazelle
#
    def __init__(self):
        self.head = None


    def is_empty():

        if self.head == None:
            return True

        else:
            return False
#

and before that a node is defined ```
def init(self, data=None):
self.data = data_value
self.next_node = None

stark river
#

btw you don't need else. you can use Early Return Pattern

#

but you can if you want to.. nothing wrong with it

brazen gazelle
#

so I'm rewriting this for my classmates to use to understand

obsidian dragon
#

!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.pythondiscord.com/

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

stark river
#

man i miss python... javascript this giving me trauma... python so clean

brazen gazelle
#

I want to make it as readable as possible

obsidian dragon
#

this is the fiel

acoustic grove
#

import sounddevice as sd
import speech_recognition as sr

def audio_callback(indata, frames, time, status):
if status:
print(status, flush=True)
audio_data.append(indata.copy())

def recognize_audio(audio_data):
recognizer = sr.Recognizer()

audio_data = b''.join(audio_data)
with sr.AudioFile(audio_data) as source:
    audio_text = recognizer.record(source)

try:
    text = recognizer.recognize_google(audio_text)
    print(f"Распознанный текст: {text}")
except sr.UnknownValueError:
    print("Не удалось распознать речь")
except sr.RequestError as e:
    print(f"Ошибка запроса к API распознавания речи: {e}")

duration = 100
samplerate = 44100
channels = 2

audio_data = []

with sd.InputStream(callback=audio_callback, channels=channels, samplerate=samplerate):
sd.sleep(int(duration * 1000))

recognize_audio(audio_data)

guys I don't understand why I have python 3.10.0
I think I downloaded pip install SpeechRecognition

and still I get an error that he doesn’t see it:

Traceback (most recent call last):
File "D:\soft\teech to speech\AudioToTextConverter.py", line 2, in <module>
import speech_recognition as sr
ModuleNotFoundError: No module named 'speech_recognition'

willow light
#

This is actually a major thing around here

gentle flint
#

lac de guerlédan

#

Lake Guerlédan (French pronunciation: [ɡɛʁledɑ̃]; Breton: Lenn Gwerledan) is an artificial lake in the centre of Brittany, France. It extends across the borders of the departments of Morbihan and Côtes-d'Armor, within the communes of Saint-Aignan, Morbihan and Mûr-de-Bretagne. At an elevation of 121 m, its surface area is 4 km². Lake Guerlédan i...

stuck furnace
#

Was drunk while implementing it I reckon

rugged root
#

Yep

#

And I think cocaine?

tiny socket
pine depot
#

cython

rugged root
#

I wonder how up to date that is

whole bear
#

these are the topics coming up

mint lynx
#

What about Django vs Flask?

#

That actually helped, thanks! I used Flask already and was wondering about Django. Much appreciated!

#

I do not know if this is allowed but to help I followed a few of these videos and it gave me some ideas.
https://www.youtube.com/@matthew_berman

verbal zenith
tiny socket
mint lynx
#

I actually started a bit of Dart, null-safe code was a shift from Python. Not sure if I like it.

#

(Alright I need to be on here for 3 days and messages to be verified. Text chat really sucks)

vocal basin
uncut meteor
#

@verbal zenith

short owl
#

i got a few PDF on Linux kernel and OS last night , im now wondering about compilers

#

im trying to fill in the missing pieces of OS bla bla

mint lynx
short owl
#

does 3.12 have a real proclaimed speed up ?

mint lynx
#

Ah right Python is a runtime and Dart is on compile. Sorry took me a moment to remember.

#

I haven't used Python eough to know if 3.12 will be faster.

vocal basin
#

C# before 8.0 suffered more from nullability compared to Python since it had no way at all to denote values as nullable/non-nullable

mint lynx
vocal basin
#

so that makes it ~4 years (September 2015 for Python 3.5 (where typing was added) to September 2019 C# 8.0) where, out of those two, only Python had it in any form

#

on CLR there's also F#

#

which is way earlier than py 3.5

#

it's possible to use F#'s Option in C# but that doesn't really do much to fix the issue of "it might be null anyway", I think

#

unless memory representation of its None is same as null

mint lynx
#

Wait let me google some more of this. I wrote this but didn't really think about it since I was doing Python for work. Now I am curious how C# does this. You have gotten me down the rabbit hole!

vocal basin
whole bear
#

Hi

#

I am a ghost

gentle flint
whole bear
#

I wish

severe lintel
#

@wise loom Hey Bro

wise loom
austere linden
#
def func(param) -> str:
    return param
somber heath
#

@unique anvil 👋

#

@lavish ferry 👋

unique anvil
#

ok

#

@somber heath bro

#

i have a problem how to fix it @somber heath

austere linden
#
def func(param: str) -> str:
    return param
somber heath
#

!e ```py
def func(parameter: str) -> int:
return 123

print(func.annotations)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.

{'parameter': <class 'str'>, 'return': <class 'int'>}
somber heath
#

@proud ferry 👋

proud ferry
#

hello

#

i realised i dont have permission to talk what do i to get

somber heath
#

@unreal otter 👋

wise cargoBOT
#
Voice verification

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

proud ferry
#

ohhh got it

#

i need to send more than 50 messages

#

I can still hear you so hello

#

how proficient are you in python

#

like

#

lol

#

what do you day to day

#

do

#

oooo thats interesting

lavish ferry
#

what up

proud ferry
#

thats funny i try to make bootcamps for html, css and js for my college club and the only thing that motivates them is to show cool websites you can make

#

hello

lavish ferry
#

im new to python

proud ferry
#

im currently working with wxpython to make a GUI for windows and linux

lavish ferry
#

there already is one

muted hinge
#

Hi @lavish ferry please refrain from writing messages exclusively for the purpose of passing our voice gate.

lavish ferry
#

what

#

i thought that was what this chatwas for lmao

proud ferry
#

oh i think that was me trying to do that, but i was still having a proper conversation while trying to reach 50

somber heath
#

@whole bear 👋

whole bear
muted hinge
#

This chat is for people in the VCs already who need to send text as well (maybe to share code).

proud ferry
#

oh okay

somber heath
#

Was there an issue outside this channel?

lavish ferry
#

yes we are in the call

muted hinge
#

⚠️ DO NOT SPAM to meet these requirements, or you will be banned from verifying! ⚠️
The rule is very clear in #voice-verification. Do not spam to meet our voice verification requirements.

proud ferry
#

yea i dont think we spammed anything

#

oh

#

ben whad u do lmao

lavish ferry
#

bro all the rules on a new person to python kind of makes me want quit if the community is this gate keeping lmao

whole bear
#

chat is this real

proud ferry
#

lol

whole bear
#

chat is this fake 😲

muted hinge
proud ferry
#

hey waterlily is there a way to check how many messages ive sent or notified if ive reached 50

muted hinge
whole bear
#

yo waterlily

#

would i get banned for saying the hard r

lavish ferry
#

no

muted hinge
whole bear
#

should i do it chat

proud ferry
#

no

#

dont

#

ples dont

whole bear
#

why

whole bear
#

bro ill do it for the lulz

muted hinge
#

we purposefully set the voice gate to be easy to pass, but it still does a great job at preventing VC abuse

proud ferry
#

dont go by the "the more you f around the more you find out rule" it aint gonna end well

#

ples dont say it lmao

whole bear
#

bro

#

i dont live on a single discord server

lavish ferry
#

i just kinda joined this sever hoping i would be able to talk to people who new stuff on python but all ive been meet with are road blocks

whole bear
#

this aint doing non

proud ferry
#

ben

muted hinge
#

!warn 598607835047133193 Saying the "hard r" even as a joke is never acceptable. Please review our #rules and #code-of-conduct.

proud ferry
#

we here

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @whole bear.

proud ferry
#

hello

#

lmao

#

ben we're nice people here

whole bear
#

das crazy tho

#

im black

proud ferry
#

im new to the server as well

lavish ferry
#

lmao

muted hinge
whole bear
#

they were giving the microphone a blowjob 💀

lavish ferry
#

why do people do it to this sever that so weird

proud ferry
#

yea thats true big servers = more problems

#

no matter what the server is about

lavish ferry
#

i dont evan know how to check my time on this sever

proud ferry
whole bear
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

lavish ferry
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

whole bear
#

im done bro

#

this server lame as hell

lavish ferry
#

i just wanna learn more about python

proud ferry
#

just a few more messages

#

and im free

#

:)

lavish ferry
#

its time from time i do

whole bear
#

chat

#

is this real

lavish ferry
#

there is but i dont know how to format it

whole bear
#

ishowspeed

#

chat is this real

proud ferry
#

my first thing i learnt to do in python was discordpy making bots and it was pretty fun if you wanna try it

whole bear
#

im freed from the slavehouse

muted hinge
#

!tempban 598607835047133193 14d Said the "hard r" again despite being warned to not do so. This conduct cannot continue. Please review our rules and code of conduct before you return to our community.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @visual girder until <t:1702615176:f> (14 days).

somber heath
#

@snow trout 👋

proud ferry
#

oof

#

lmao

#

gg

snow trout
#

Hi @somber heath

vocal basin
#

what do you mean by "real"? what do you mean by "this"?
reminded of "what do you mean 'do'? what do you mean 'you'? what do you mean..."

somber heath
#

@ashen silo 👋

vocal basin
wise cargoBOT
#

Source code: Lib/datetime.py

The datetime module supplies classes for manipulating dates and times.

While date and time arithmetic is supported, the focus of the implementation is on efficient attribute extraction for output formatting and manipulation.

Tip

Skip to the format codes.

muted hinge
#

I forgot to mention that to you

vocal basin
#

discord.py, at the time I started, seemed simpler than now (because it did some things wrong)

#

but also I had already been using Python for ~15 months

lavish ferry
#

i am makeing a text based game and i use if statemant to figure out what happens next like for example i might write loc = input("which way would you wanna go (w)(e)(n)(s)")
if loc == w:
print("there a forrest of at the distance")
if loc == s:
print("there a house of a the distance")
if loc == n:
print("there a hill in the distance")
if loc == e:
print("tehre nothing at all")

#

but

#

i dont know how to countuine this game after this

#

beaucse i would have to write four more if statment each time based of the prevouis answer

#

is there a fix

somber heath
lavish ferry
#

im still a bit new

#

so i dont quite understand

vocal basin
#

you can also create a simple DSL that may look something like this

location
  choice -> location
  choice -> location
  choice -> location

location
  choice -> location
  choice -> location
#

domain-specific language, but it's not as difficult as the name suggests

lavish rover
vocal basin
#

yes

lavish ferry
#

do you think my code is good

#

ive been working f str

lavish rover
#

You can probably just make separate functions for each scenario you have planned, and then call them from the if statements

#

To avoid having a lot of nested conditions

lavish ferry
#

i dont know what a function is lol

#

i havent made it that far in my laering course

vocal basin
lavish ferry
#

idk what a function is

lavish rover
#

Not a bad time to learn

somber heath
#
Story story story. Sword from the stone, but, oh no, thousands of geese attack. Do you...?
<Decision>
    <1>Attack
        <goto> ref4346
    <2>Flee
        <goto> ref4347```
lavish ferry
#

im just doing fun project

#

for practice

lavish rover
#

Any real project you will ever write will have functions

lavish ferry
#

i dont expect to make a game till along time later

lavish rover
#

One of the most fundamental things in python

lavish ferry
#

visaul stuido code

lavish rover
#

Even if it's for a fun project you should spend some time to learn about them

lavish ferry
#

thats what i use

somber heath
#

@noble rose 👋

lavish ferry
#

i like vs code but i hate the color sceme

noble rose
lavish ferry
#

how

noble rose
#

i personally use vs code

vocal basin
#

@proud ferry

#

it might filter out keyboard and mouse noises

#

and whatever else

noble rose
#

@somber heath ok

somber heath
#

@ebon cave 👋

vocal basin
#

makes development faster

#

(for some people)

#

and prevents some issues

#

@austere linden depends

#

FastAPI uses type annotations

#

to parse data and provide dependency injection

vocal basin
#

simplifies reading code (though not for everyone) -- less time spent figuring out how to use it (including code you yourself wrote)

vocal basin
#

reasons for both of those speeding up the process are hard to explain, very hard

noble rose
#

whaat

#

i thought he was from us

vocal basin
#

would have two different notions of "day" anyway

#

(probably)

verbal zenith
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

vocal basin
#

"just don't sleep"

tepid edge
#

advent of code day 1 part 2 ||```py
from aocd import get_data, submit

data = get_data()

print(data)

res = 0

words = [
"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"
]
lines = data.splitlines()
tracked = {}
for num, line in enumerate(lines):
for i, word in enumerate(words):
if word in line:
line = line.replace(word, str(i + 1))

line = "".join(char for char in line if char.isdigit())

to_add = int(line[0] + line[-1])
tracked[lines[num]] = line, to_add

print(res)

vocal basin
#

||```py
print(5)
```||

tepid edge
vocal basin
#

what does ||fiveight|| count as?

#

~~strikethrough~~

#

(if that's what -thing- was about)

#

tilde not -

austere linden
#

@vocal basin if you don't mind, do add me as friend on here 🙂

vocal basin
austere linden
#

Until we meet again then😉
Thanks a lot for the help!
Also @somber heath and @verbal zenith🙂
See y'all later 👋🏾

obsidian dragon
vocal basin
#

basically anything Sync done not before app.listen is bad

#

that whole operation looks too expensive to do on each request

swift cedar
#

Hello

whole bear
#

so if I have:

node = (0, 0)
for node in nodes:
  # process node
#

node will never be updated, it will still be (0, 0)?

#

(wrong chat)

vocal basin
vocal basin
#

(unless nodes is empty)

somber heath
#

@dim gazelle 👋

dim gazelle
#

hello there

#

aren't you the guy

#

the programmatically made graphics photos guy

#

nice to meet

#

why are you always in the voice chat

#

hm?

#

perhaps

#

hey why would you use a "_" for a variable name

somber heath
#

@whole bear 👋

whole bear
#

hey

somber heath
#

@fathom jolt 👋

gentle flint
#

@twin pond

#

here

twin pond
#

ooo

#

alr alr cool

#

this was the call chat

fathom jolt
somber heath
#

@hollow flame @radiant wharf 👋

#

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

radiant wharf
#

!voice

#

aint no way 3 days bfr we can speak?

somber heath
#

The voice gate is a regrettable but effective measure against voice griefers.

radiant wharf
#

I'm just trying to talk about advent of code lol

#

can someone bypass me?

somber heath
#

That's not how things usually work.

radiant wharf
#

ok thanks, just thought I'd ask anyways no biggie

somber heath
#

bbl

gentle flint
#

brazilian butt lift?

somber heath
twin pond
#

lol what

somber heath
#

@lusty pawn 👋

lusty pawn
#

Yeah

somber heath
#

@tough sand

#

👋

stark river
#

🤨

somber heath
#

@north vigil 👋

north vigil
#

hi ✋

obsidian dragon
#

from datetime import datetime, timedelta

def evaluate_account_age(accounts):
    current_date = datetime.now()

    for account, registration_date in accounts.items():
        age = current_date - registration_date

        if age.days > 30:
            accounts[account] = 'blue'
        else:
            accounts[account] = 'yellow'

    return accounts

# Example usage
account_registration_dates = {
    'user1': datetime(2023, 1, 1),  # Replace with actual registration dates
    'user2': datetime(2023, 2, 15),
    'user3': datetime(2023, 3, 10),
}

result = evaluate_account_age(account_registration_dates)

# Print the result
for account, team in result.items():
    print(f"Account: {account}, Team: {team}")

rapid chasm
#
raid_joins = []

if account_age.days >= 30:
    raid_joins.append((member, 'yellow'))
else:
    raid_joins.append((member, 'blue'))

yellow_users = sum(1 for _, user_type in raid_joins if user_type == 'blue')

        if yellow_users >= 5:
            # Kick only yellow users
            for member, user_type in raid_joins:
                if user_type == 'blue':
                    await member.kick(reason="Goodbye")```
sturdy panther
#

Any idea how you might handle disconnects?

somber heath
#

@mossy lagoon 👋

#

@wind patio 👋

wind patio
#

suppresed

#

hi guys

somber heath
#

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

obsidian dragon
somber heath
#

@wide rain 👋

#

@tiny nebula 👋

tiny nebula
#

how are u

wind patio
#

You are not currently eligible to use voice inside Python Discord for the following reasons:

You have sent less than 50 messages.

Do i send 50 messages here?

#

if send 50 messages here, wiil it work?

tiny nebula
obsidian dragon
wind patio
#

1

#

2

#

3

#

4

#

5

#

6

tiny nebula
#

no no

#

.d

wind patio
#

7

somber heath
#

@keen briar 👋

wind patio
#

8

tiny nebula
#

bro this is spam

wind patio
#

9

#

10

#

11

#

yeah lol

tiny nebula
#

:/

wind patio
#

I am doing some fastapi stuffs lately

obsidian dragon
somber heath
#

@stuck knot 👋

stark river
#

🤨 _ what are your intentions with my python_

wind patio
tiny nebula
#

C++ ❤️

wind patio
#

yesterday i used scipy for anova test lol
some stats too

obsidian dragon
tiny nebula
#

where are u from guys?

wind patio
#

oh it is exposing api where you send prompt , text and it extracts some entity from text and returns as response

obsidian dragon
tiny nebula
#

I can't hear you

tiny nebula
#

.d

somber heath
#

@hushed kettle 👋

wind patio
#

@obsidian dragon what do you do with python?

stark river
#

mars

obsidian dragon
#

@somber heath

wind patio
#

@obsidian dragon

obsidian dragon
wind patio
#

what do you do with python?

#

what are your intentions with python

#

?

rapid chasm
#
   if raid_joins or new_users:

        total_user_count = len(raid_joins) + len(new_users)

        if total_user_count >= 5:
            for member in raid_joins:
                await member.kick(reason="Goodbye.")
tiny nebula
wind patio
#

there is

#

or operator

random falcon
#

@somber heath i have some good progress on slime mold simulation

stark river
#

why not || and &&

wind patio
#

if raid_joins or new_users:
the top level if statement, is it necessary?

somber heath
#

🛏️

wind patio
#

lol

#

it's personal preference guys lol

obsidian dragon
#

also python ::1

wind patio
#

@stark river yes exactly, or is more readable than ||

#

guys guess what?

#

???
l

stark river
#

does python use bitwise operators >>

woeful salmon
#

and they are the same

#

its also | for bitwise or xD

#

foo = 1 | 0 is bitwise or
foo: int | float = 0 is a typehint xD

#

fun stuff

stark river
#

can't have type hinting without mypy

sturdy panther
#

How do they tell whether someone else kicked them by accident?

#

Does the message matter? If they want to rejoin, they will regardless of the message.

obsidian dragon
#

You've been kicked out of the Python Discord server because of some questionable actions. The suspicion is that you might be using a user bot. If this isn't accurate, please come back to the server.

#
<div class="container">
    <header class="major">
        <h2>Welcome back, osyra42!</h2>
        <p>Please see below for all of your orders.</p>
    </header>

    <!-- Content -->
    <section id="content">
        <?php
            $directories = [
                "191201A",
                "230402A",
                "230914A",
                "230914B",
                "230914C",
                "230914D",
                "230914F"
            ];

            foreach ($directories as $directory) {
                $path = "../\$DATABASE/ORDERS/$directory/index.php";
                include($path);
            }
        ?>
    </section>
</div>

tiny nebula
#

@rugged tundra tate is my best basketball player 🤫

#

just joke

tiny nebula
somber heath
#

@simple skiff 👋

tiny nebula
#

@somber heath 👋

#

welcome back

oblique ridge
#

oh what browser is that?

simple skiff
#

yes sir

oblique ridge
#

osyra got a HUGE head

tiny nebula
#

@obsidian dragon thats great

#

hi @waxen aspen

#

@waxen aspen Turkey

#

@dry jasper hi

#

@obsidian dragon he is dont like pool

oblique ridge
#

there are so many OSRS bots 😩

#

@dry jasper

#

let the venezuelans make their money

dry jasper
obsidian dragon
tiny nebula
#

I'm sorry

shadow quarry
#

who knows when to unlock gpt 4?

cobalt cloak
#

how are you animmo?

shadow quarry
#

/voice

#

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

tiny nebula
#

!voice

oblique ridge
#

oh shit i've been here 6 months too wtf

#

oh shit i gotta do aoc

#

people's favor of christmas music is how you know who's been in retail

#

there is

scarlet halo
#

going snowboarding tmrw 😎

rugged root
#

There's also this

oblique ridge
#

bro i've been installing tex live for 1.5h

tiny nebula
#

I'm so tiredd

rugged root
rugged root
oblique ridge
#

@pure token instagram is a webapp
they actually use django (their own fork of it)

#

yeah usually written in react and react native for ezpz porting

#

well your backend can be whatever you want

#

like you can make a android or iphone app with django

#

but the front needs to be able to interface with the device you want to port it to

#

oh idk much about next js

rugged root
#

@leaden comet Haaaaaaaaaiiiii omgomgomg I'm your biggest fan!!~~~

oblique ridge
#

lol

#

also, you don't gotta worry too much about speed when it comes to simple web apps anyway

#

everything is sufficiently fast until you have to worry about scaling

rugged root
#

For sho

oblique ridge
#

because most of the time sink comes from requests being sent anyway

#

(i hate that mentality but it's true)

rugged root
#

I/O is time expensive

amber raptor
oblique ridge
#

absolutely

brisk bridge
#

Hi

oblique ridge
#

it's stil HELLA python, but like it's not entirely django obviously

#

they're 100% using their own fork of it and stuff without it as well

amber raptor
#

I bet there is a ton of Not Python as well

tiny nebula
amber raptor
#

I'd look at their programming jobs but nothing is posted so I can't

oblique ridge
#

lol i love when people argue framework vs library for react

#

surprised we didn't get a "it's a library" opinion outta the question

oblique ridge
stark river
#

a framework is when you fit the code according to the framework
a library is when the module fits according to the code
in that sense react is a framework

oblique ridge
#

i kinda wanna get into fucking around with laravel and vue

stark river
#

and react is overrated

amber raptor
#

Javascript frameworks are always so popcornfrog

rapid chasm
#

@rugged root How can I prevent duplicates? By using set() instead of list?

raid_joins = []

@client.event
async def on_member_join(member):
    raid_joins.append(member)

@tasks.loop(seconds=60)
async def check_raid():

    # Count the total number of users
    total_user_count = len(raid_joins)

    if total_user_count >= 5:
        # Kick users from raid_joins list
        for member in raid_joins:

            # Kick the member
            await member.kick(reason="[Auto] Anti-Join Raid.")

    # Clear list
    raid_joins.clear()```
oblique ridge
#

so @pure token react js is a library for js
it abstracts how the front-end of a site is built
rather than writing raw js in your html or raw scripts that do things, you can write jsx and that gets transformed into a script that does what you hoped when you wrote

stark river
#

javascipt devs aren't the brightest

#

they're trying to be php... but pretending not to be

rugged root
#

Could yeah. Like I said, I can't really help at the moment

oblique ridge
#

the backend is what runs on the server

#

so the front will communicate with the server anyway

#

anyway, react is dope
like the main problem i have with it is that many devs end up only learning how to use react and not how to program

rapid chasm
rugged root
#

More just that I'm taking care of some things here at work

oblique ridge
amber raptor
#

I will say in 2023, Python is fine......... but there is plenty of other languages that will performant kill it

oblique ridge
#

i heard this one a while back and it resonates quite well with me

python is the second best tool for basically every job

oblique ridge
#

also ye the speed up is getting nice
still not there yet, but so much better

#

development time and effort and updating and security

amber raptor
oblique ridge
#

my company is also a shit ton of python

#

which was cool for our webapps

#

but it's not cool when the development tools were custom written in it
it's so fucking slow for that

#

actually stupid ass idea for that
idk why that was ever brought up as an idea

oblique ridge
#

like we have a ton of in-house windows applications built entirely with python 3.9

#

@amber raptor i'm remembering the dude angry at toml files lol

oblique ridge
#

where tools already exist for it but we can't interface with it because the system has now become so dependent on itself

fallen flint
#

i mean what is this 50 messages requirement for new members ??

rugged root
#

It's to prevent what I call hit and run trolls

fallen flint
#

can you just get in a conversation with me ? :)))

amber raptor
#

I think the complaints about TOML is lack of being able to transmit it over the wire

#

like people use JSON/XML/YAML for config files because they probably already need those libraries for their app

fallen flint
#

what are most of discussions in here about ?

oblique ridge
#

yeah but like, that's not why people are even using toml lmao
it's so good for config and so many people have adapted it
the hate for it is silly

amber raptor
#

hate for it is always "Why do we need this vs JSON?"

#

Which I get as SRE, there is always people like "We need to be able to use vim to edit our config file" and it's always "why?"

fallen flint
#

bro i don't have any information about TOML, but what is your problem with its alternatives like JSON ?

#

or YAML

amber raptor
#

Like if you need to edit your config file outside of IDE is likely good indication that you have ops problem

oblique ridge
amber raptor
oblique ridge
#

there it is lmfao

#

like i would understand if it was using json

amber raptor
#

Go team being like "We love YAML" was worst idea

oblique ridge
#

but like they're already using yaml
might as well use something better

fallen flint
#

i mean i didn't have problem with it for not long config files

amber raptor
#

since Kubernetes started using it and since everything revolves around Kubernetes, YAML became the thing

fallen flint
#

ofcourse that's a strong reason

#

but what are the problems that you see in it ?

amber raptor
rugged root
#

YAML has some inherent issues with how it converts types. The Norway problem - yeah, Rab's got it

fallen flint
#

i mean I don't know

#

the

  • 07
  • 08

Results in

[ 7, "08" ]

is really funny :))))

oblique ridge
fallen flint
#

but as far as i know

oblique ridge
#

that's why spam and eggs @spice fractal
wrong ping oops

#

fuck race condition

fallen flint
#

kubernetes configs can be written or shown easily with json

oblique ridge
#

@rugged root

#

i get it tho focus lol
take steps

rugged root
#

That and the whole Monty Python Spam sketch

#

That's why you see those used in the Python docs for example

oblique ridge
rugged root
#

Nigh Little Pony

signal monolith
#

Hi I am new with coding

formal rover
#

Xup Guys Just started on Python here hope to get help here ..!

formal rover
signal monolith
#

Yup same

fallen flint
oblique ridge
#

chat gpt 😎

#

hallucinates more than ever for me nowadays

signal monolith
fallen flint
#

what is the problem ?

oblique ridge
#

i get consistently wrong info
maybe my problems are too complex 🤷

pure token
oblique ridge
#

it's pretty nice at explaining some of its stuff

rugged root
#

True dat

oblique ridge
#

reading ftw

#

@rapid chasm if order doesn't matter for you and if you're using a lot more data

fallen flint
#

@rapid chasm it's ok for iterating but you lose the order of it, the order is not garaunteed

oblique ridge
#

afk real quick

rapid chasm
#
raid_joins = []

@client.event
async def on_member_join(member):
    raid_joins.append(member)

@tasks.loop(seconds=60)
async def check_raid():

    # Count the total number of users
    total_user_count = len(raid_joins)

    if total_user_count >= 5:
        # Kick users from raid_joins list
        for member in raid_joins:

            # Kick the member
            await member.kick(reason="[Auto] Anti-Join Raid.")

    # Clear list
    raid_joins.clear()
fallen flint
#

@rapid chasm if you want to use set, you should provide __hash__, __eq__ for member class

#

@rapid chasm you can also boost the speed by using asyncio.gather to implement the for loop

pine depot
#

oldman hemlock

fallen flint
#

I think it will be something like:
await asyncio.gather(member.kick(reason="[Auto] Anti-Join Raid.") for member in members)

rugged root
#

In fairness, the pain started back when I was like... 25?

fallen flint
#

check if that works

oblique ridge
oblique ridge
#

yup

#

it's likely overkill af

#

but if you're already using it and for other stuff it's nice

#

yeah, you'd have to run a redis server
not worth it

#

though check out cacheing in python
feels perfect for this

fallen flint
#

@pine depot it's not benefit, it's a necessity to be able to throw our class objects into a set. Our class needs to be hashable and comparable to be able to perform correctly in a set or a dictionary

#

you're welcome

#

bro i just mistyped

#

i meant "raid_joins"

#

oh broo

#

you're so pessimist

#

i don't know about your situation

#

i assume that you're like at most 20

#

it's your responsibility to check the correctness

#

you don't copy any text into your codebase

#

this is what i said:
"I think it will be something like"

#

so it says that i'm not sure

#

oh man people

#

@rapid chasm i mean you even don't have any members variable in your code :)))))) that's really funny which you making me the guilty one

#

really funny

oblique ridge
#

lol i think this is unwarranted
people make mistakes
at least from what i'm hearing

rugged root
#

!stream 854646371230285854

wise cargoBOT
#

✅ @random falcon can now stream until <t:1701447973:f>.

fallen flint
#

I wish that wrong personal reports would have penalty too so that people like this guy just get out of places like this where people are gathered to help each other

#

bro what's your problem ? @random falcon maybe i can help

rugged root
#

There are some GUI stuff

#

Doesn't seem like it's a whole lot, though

stark spruce
#

why i cant spech😭

pine depot
rugged root
oblique ridge
#

only took me >2 hourse to install tex live 😎

fallen flint
#

!voiceverify

rugged root
fallen flint
#

i did it

rugged root
#

Still working on improving the system...

fallen flint
#

i am qualified

rugged root
#

Messages in #bot-commands don't count towards the total

fallen flint
#

bot commands ?

#

i messaged all in here

rugged root
#

Say one more thing

fallen flint
#

one more

rugged root
#

Okay now try

fallen flint
#

!voiceverify

rugged root
#

No no

fallen flint
#

ok

#

sry

rugged root
#

All good!

oblique ridge
#

@rugged root it's a bad time complexity
but it's also in C and not python
so it still happens to be stupid fast for smaller numbers

#

and if you're iterating, might as well do a set and check it

#

best move is to benchmark it

whole bear
#

Hello This is ghost of christmas past

fallen flint
#

i doubt if iterating on set and list does have any meaningful difference, the builtin set may have proper implementation to do iterations as good as arrays

rugged root
oblique ridge
#

hemcock 😩

rugged root
oblique ridge
#

lol my boy we can't help you here

#

have you checked their server?

rugged root
#

@sharp idol

oblique ridge
#

lol @rapid chasm either one or the other way can be a symptom of it
it's not a requirement

#

anecdotal evidence is ass af anyway

#

@pine depot do it anyway
it's great for resume then dip cause the job's ass

dense ibex
rugged root
#

Uhhhh

#

What did you do?

dense ibex
#

kafka and zookeeper ig

oblique ridge
#

it doesn't add @rapid chasm

#

like it's already there, so nothing happens

dense ibex
oblique ridge
#

how sets work is they hash the value you wanna add
then that gets put into the set

#

you can't have dupes

oblique ridge
#

looks like sets are the way to go af
it's fast for even size 10

pine depot
#

reiki

oblique ridge
#

List of 1: 28,300 ns
btw forgot to mention 1000 iterations of checking something in the thingy

dense ibex
#
 => [worker builder 6/7] RUN mkdir __pypackages__ && pdm sync --prod --no-editable 168.6s
#

168.6s

oblique ridge
#

like the serb drink

#

rakija

#

it is cyrillic

oblique ridge
oblique ridge
#

keep yourself safe? @rugged root

oblique ridge
#

it's basically serbian moonshine

#

but tastes more like cognac iirc

rugged root
#

Huh

#

That's impressive

oblique ridge
#

you know what else tastes like christmas?

#

fireball whiskey

#

:)

#

people hate on fireball

#

but like, great way to start the night

#

2 shots of that then you're good to drink whatever else you want

#

TIL they make jack and coke 0 cans

#

seems a little coke heavy though

#

i would imagine like 10% would be more like an actual jack and coke

#

the having no income sucks but the having no work is great

#

i totally get it

oblique ridge
#

sets don't gaf about order cause it just hashes then jumps to that address and then would have to iterate in the case of a collision

#

it's not crazy but i do avoid my computer at home after working

#

yeah i apply a filter on my pcs and i have my lamp can go from cool white to warm

#

i keep it cool while working from home then warm end of day

#

the end of year, it's even number

#

12*

#

this was a toughie for me
but i'm also trash

#

lmfao hemlock

#

hell yeah

#

fireball is the shit

#

wym it's delicious

#

it's HELLA sugar

#

lemme go down a mountain on my snowboard and pop like 2-3 shooters on the lift

#

yeah i quit drinking @alpine moon

#

yeungling ftw @pine depot

#

no

#

it's american af

#

the japanese beer i loved was sapporo

#

don't think i've had chinese beer

rapid chasm
sweet lodge
#

Don't drink alone

#

At least not when you're struggling

#

Is dangerous

oblique ridge
#

yeah thankfully i haven't drank alone since like college
but even for a while recently now, i've only ever had a few drinks ever few months