#voice-chat-text-0

1 messages ยท Page 163 of 1

opaque willow
#

trop bien

vocal basin
#

Flask doesn't support ASGI
you will have severe performance issues once you start serving complex requests (that rely on other services)

opaque willow
#

I am actually working on a network chat with sockets

#

do you hear me ?

whole bear
#

@lunar haven hii

opaque willow
#

sorry guys I went to the toilet

whole bear
#

hello guys

opaque willow
#

hi @whole bear

whole bear
#

hi zera are you fine ?

opaque willow
#

yess !

#

And you ?

unkempt gull
#

Hello!

glad knoll
#

Hello @lunar haven

#

I did say here

#

You were busy

#

I guess

#

No problem

#

What are you doing today?

#

Isn't the debugger in vs irritating

quick orchid
#

hey man, I am fine

glad knoll
#

I like pycharm

#

Haha

#

I have no clue

#

I started w python

#

Pycharm*

#

I googled i guess

cinder dawn
#

vs code is the only option

glad knoll
#

Yes hahaha

#

I do use vs for js

#

I don't know I'm used to pycharm i guess

#

There's a lot of setup needs to be done for vs i guess

#

I love to edit .md in vs tho

cinder dawn
#

keptchup

#

i miss tacos

#

this guy on fiverr asked me to make him a sneaker bot on discord

#

im still doing it

glad knoll
#

Are you running chatgpt in vs?

#

I heard you saying chatgpt so

cinder dawn
glad knoll
#

You should update dict

glad knoll
glad knoll
#

The initialized dict is empty

#

I'm guessing you want to rows of csv as dict?

#

Yes

#

What are you trying to do here?

#

F it's 3AM

#

Byee

#

I don't think so

#

You have to use update function

#

My bad

#

Hi @midnight agate

#

Haha

#

@lunar haven sorry for confusing

#

Why so?

#

Ohh okay

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

bitter salmon
#

sup

sick eagle
#

what are you guys workin' on?

acoustic loom
#

hi all o/

sick eagle
#

sup yoozik

copper ledge
#

its 330am something

#

i can barely read chat

#

im 17, i live with my parents, i live in india, i have asian parents, my life sad, if i use my mic and talk, mom's gonna wakeup and imma get grounded

#

bhai

#

mujhe hindi nahi aati

#

i telugu speak

#

oh shit nvm

#

@lunar haven that

#

scared me

#

um

#

its supposed to open yt or wat ๐Ÿ˜ญ

#

lol

#

indian instructors always why

#

i learned java first

#

then python, now js

#

interesting gofek

sick eagle
#

there are different types of lollypop ๐Ÿ’€

copper ledge
#

๐Ÿค 

#

bollywood lollypop

acoustic loom
#

loooooooooooooooooooooooooooooooooooooooooooooooooooollypop

sick eagle
#

chuppa chups โค๏ธ

copper ledge
#

wa

sick eagle
#

bruuuh that was what i used to eat all day when i was a kid

copper ledge
#

i listen watch js tutorials on spotify

#

pc

#

yes

#

bro i can talk the weirdest shit rn im having a burnout

sick eagle
#

ayo what

#

you listen to the tutorials?

copper ledge
#

yes

sick eagle
#

thats fuckin awesome

copper ledge
#

yk no server is moderated

sick eagle
#

wish i had those abilities lol

copper ledge
#

you can send nsfw to any server

#

literally any

sick eagle
copper ledge
#

hmm

#

look at what am listening to

sick eagle
#

aight send it

copper ledge
#

not gonna send the spot inv lol

#

i can send it

copper ledge
#

ikr

#

also how is

#

that

#

allowed on spotify

#

๐Ÿ’€

#

its a good song bro fr ๐Ÿ˜ญ

spice yew
#

Hey yaa

sick eagle
#

this is actually on spotify...

copper ledge
#

lol

#

does anyone have good experience with react+vite

#

um

#

just webdev?

#

fullstack webdevs

#

hi?

#

oh

#

tkinter

sick eagle
copper ledge
#

but why tkinter

copper ledge
#

oh

#

i feel so tired

#

yes just

sick eagle
#

lmao

copper ledge
#

2more songs and i go

sick eagle
#

working on your own game?

sick eagle
copper ledge
sick eagle
copper ledge
#

i'll sleep at 430 ig

sick eagle
#

same here

sick eagle
#

nope

#

Nope.

#

oh nvm

#

its not the same

copper ledge
sick eagle
#

its actually amazing how the python server is actually alive and people participate in vc's and stuff

copper ledge
#

monkeytype/

sick eagle
copper ledge
#

im filled with regrets and guilts upto the brim

sick eagle
#

but still sleep is essential

copper ledge
#

well 10th grade was cool python101 cp101

copper ledge
sick eagle
sick eagle
#

you need to sleep

copper ledge
#

VERY

#

AND

#

DON'T

#

DO

#

THAT

sick eagle
#

you might consider playing with one hand if you know what i mean lol

copper ledge
#

valorant

sick eagle
copper ledge
#

i'll

#

go to sleep then

sick eagle
#

yea bro get some rest

copper ledge
#

we all have, everyone in the vc les just agree and gn

#

i slep

#

have

#

gud

#

DAY

sick eagle
#

gn bro

#

good night

sick eagle
copper ledge
#

wa

sick eagle
copper ledge
#

wait wait

sick eagle
copper ledge
#

what do you guys think of threads

#

i laughed so hard using it

sick eagle
copper ledge
#

no the

#

mark's twitter

#

lizardboy things

sick eagle
#

who's mark?

#

who's lizardboy?

copper ledge
#

mark zuckerberg?

sick eagle
#

ohhhhhhh

copper ledge
#

๐Ÿ’€ nvm

sick eagle
#

lmao i understand lizardman now ๐Ÿคฃ

copper ledge
#

no offence bro if you guys like

#

worship him or smth ๐Ÿ’€

sick eagle
#

nah that guy in the illuminati ๐Ÿ’€

copper ledge
#

lmao

sick eagle
#

but fr tho what's with these lizards?

copper ledge
#

man bought instagram, snatch the stories from snap, put the reels like in tiktok making it tiktok v0.5 now he has his own twitter

#

and owns whatsapp

#

social media hell

sick eagle
#

lets hope its for the good...

copper ledge
#

active linkedin users are from different world

#

i like em

sick eagle
#

lol

#

ayo is gofek alive?

copper ledge
#

@lunar haven

#

ok bye i slep

sick eagle
#

aight bro gn ๐Ÿ˜ด

#

did he actually go to buy lollypop? ๐Ÿ’€

#

not seeing anything bad :/

#

lmao they drownin'

#

cya man

#

ayo @glacial dragon no mic?

#

nope

#

still the same

#

meh

#

a lil bit better now

#

but still not hearable

#

bro this is the inventory?

#

no art and stuff?

#

just plain buttons?

#

dont give up yet lol

#

oof

#

why would you use tkinter for games anyways?

#

like you got pygame bro

#

oh so you just used tkinter for the inventory

#

what module then did you use

#

oh cool

#

for rendering, visuals, audio and stuff

#

ok that explains

#

but switching from such amazing game art into this save editor is a big bruh moment lol no offense tho

#

nah but guessing it has good art

#

well if it wasn't a game why would it have a save editor anyways

#

ay thats cool

#

why...just why ๐Ÿ˜

#

oh, think it's not worth the time?

#

sheeesh

#

ooof

#

barely even work with GUI

#

not at all actually

#

yea but i use UI mostly

#

make*

#

um not sure if I can call them the same

#

if its UI its basically the texts, the images

#

if its GUI its the buttons, the links and stuff

#

when its GUI the user can make interaction

#

yea you can say its like an HUD

#

for example in a game you will have the player's icon, the player's health that would be UI

#

the pause button, the play button and stuff would be GUI

#

so HUD can have both UI and GUI i tihnk

#

ohhhhhh like games?

#

used to work with web development

#

not sure if i have them now

#

but let me look

#

its been a while tho

#

yea i used to get so fucking irritated when working with web dev

#

i would have to manually code the positions

#

of each single fucking element

#

but i could have made things easier

#

just didn't know :/

#

now im trying to work on game dev

#

mixing Python with Lua maybe

#

bro im sure you want me dead

#

yea but cpp is just a bit steep

#

not saying its impossible to learn

#

hmmm

#

like what features

#

๐Ÿ’€

#

did you make this?

#

yeah i think it's cool as well

#

btw

#

have you ever tried using panda3d

#

alright what about pyopengl?

#

oh so you must know lua if you are a modder

#

lua is like the top most used for modding

#

oh

#

like what

#

thats pretty amazing

#

and you used python for all of these?

#

yes please

#

whats' your github?

#

you got +1 follower now ;))

#

lmao these are some decent repo names XD

#

yea can totally relate

#

so you know JS?

#

C, C#?

#

but you made an SDK for psp as i see here

#

oh it was forked...

#

btw which one is better for SDL C or C++

#

or maybe SFML as well

#

ow k

#

you can't use c++?

#

cool

#

yea but its easier to use c++ than using c right...

#

cause c++ has more features than c

#

yep

#

have you tried modding for fnf(friday night funkin')?

#

alright

#

you got itch account?

#

bro are you fr?

#

no game jams and stuff?

#

oh yea... my memory problems...

#

thats a long name for a file

#

sheesh

#

should i go ez ?

#

what i mean is ez for you to make the mod in that game

#

alright nice

#

hmmmmm

#

does it have to be sth that no one has made a mod for it

#

alright bet

#

aight

#

mc has voice chat right?

#

yea

#

no the official doesnt have

#

but i think there are mods

#

so leave that

#

hmmmm

#

alright this is gonna get you really busy

#

imma get you out of your comfort zone

#

i was thinking but yeah?

#

risky's revenge... is that a game?

#

so you are trying to add levels into it?

#

the game doesnt have?

#

is it story mode?

#

ohhhhh

#

wait

#

make a new world lol

#

like for minecraft there is nether and end

#

make a new world in risky's revenge

#

yes fr fr

#

we gon' see

#

better be a piece of cake

#

or not tbh

#

to the backrooms we go lol

#

pointer?

#

c or c++

#

its gonna be fun then ๐Ÿ˜…

#

so what you say?

#

or should i make it a bit easier

#

aight imma make it easier then

#

so that's a yes?

#

aight bro

#

gn

#

aight

#

byeee

whole plank
#

@hot torrent kammy what happened!?

toxic arch
#

cute puppy!

hot torrent
#

There ya go, be satisfied.

cosmic bison
#

I did it, I added generics to my language!

cosmic bison
#

In any case, this goofiness is also valid code lol

somber heath
#

@slate pasture ๐Ÿ‘‹

#

@forest egret ๐Ÿ‘‹

forest egret
#

sorry my microphone were supressed

#

i think i don't really active on python discord

#

they require 50 words to unlock

#

yeah

#

how long have you been working on python?

#

wow, i just start from scratch

#

i want to learn for cybersecurity

#

and help me with routine job

#

yea

#

what did you do with python?

#

ai development?

#

not machine learning?

#

software engineering is it?

#

really?

#

i will be right back

stoic chasm
#

dereference as as is nnice

#

define is a bit wordy and so is public...

#

i like it

vocal basin
fossil anvil
#

who here is really familiar with the openpyxl module

gentle flint
#

really familiar
now that's rather a lot to ask

#

how really does really familiar have to be @fossil anvil ?

fossil anvil
gentle flint
#

but good enough for what?

#

this is why you should just ask your question itself right away, using the help system #1035199133436354600 , not asking in random voice text channels if someone is familiar with your specific library

#

so I suggest you go and do that

#

you'll probably get better help there

whole plank
fossil anvil
vocal basin
#

when next attempt at solving rustlings?

echo garden
#

@whole bearHey there i have so many fond memories,

echo garden
whole bear
echo garden
#

yup

echo garden
whole bear
#

the oldest software i used to frequent is probably msn

echo garden
#

or basic?

whole bear
#

i dont know what those are

echo garden
vocal basin
#

might be better to start over rather than continue from last solved

whole bear
#

when microsoft word used to have that animated paperclip

echo garden
whole bear
echo garden
whole bear
#

nitro money spotted

echo garden
#

wait, what?

#

where did this conversation go now?

whole bear
#

don't you need nitro to use stickers

echo garden
#

ummmmm.... sure?

#

that was a sticker?

whole bear
#

i dont know maybe im wrong you dont need nitro to use stickers

echo garden
#

ok

#

what is nitro?

#

a form of pament ? a digital currency? what?

#

nope

#

no money neccessary here

whole bear
#

it is basically discord premium

#

think spotify premium youtube premium

echo garden
#

which is a promotional shot?

#

i don't beleive we do that here.

vocal basin
#

you need nitro to use external stickers, i.e. from other servers

whole bear
#

thank makes sense

vocal basin
#

unlike with animated emojis, which are always paid

echo garden
rugged root
rugged root
willow gate
#

@rugged root Hello

rugged root
#

@willow ruin Talk in here. Makes it easier on my lazy old ways

dry jasper
willow ruin
#

oh

#

@somber heath wbu

rugged root
worldly roost
#

hi

somber heath
#

Sorry, I was afk.

willow ruin
somber heath
#

bbl

willow ruin
frozen owl
#

sshhhhh

#

shhhhhhh

#

oh lol

#

ohmagawd so cool though

jolly terrace
frozen owl
#

that's why i need my pro computer to do it

#

i live abroad so

#

i need to use some sort of way to remotely run it

jolly terrace
#

oh

rugged root
#

Why not use something like GoToMyPC

jolly terrace
#

and i have a multiperceptron there too

vocal basin
jolly terrace
#

tmate too

#

i think

frozen owl
jolly terrace
rugged root
frozen owl
#

sorry if my bg was noisy

#

my mom just came back

rugged root
#

@tidal shard Suuuuuup

#

@gentle flint Suuuuuup

#

Back in a moment, going to quickly skim through this video

frozen owl
tidal shard
rugged root
#

Excel Power Query

#

And I'm good, you?

tidal shard
rugged root
#

Good

frozen owl
ivory flower
#

https://pypi.org/project/python-pdf/
this ?
but I am not sure whether the package is still maintained, last update was Nov 2021.
it is safe to look for another option.

reef oriole
#

@ Mr. Hemlock ___ Thank You for the Welcome. Voice still suppressed. Listening.

tidal shard
#

brb

devout bloom
rugged tundra
#

Put all of this in notepad (update each time for new template and new method)

3x templates
3x methods
(Based on previous templates and methods)
new template = x
create new method with x template

devout bloom
#

class PDFView(APIView):
def post(self, request, sifaris_id, *args, **kwargs):
from .models import GenerateTemplate
template = GenerateTemplate.objects.all()
template.content.replace("{{palika}}")
user_detail = User.objects.get(id=request.user.id)
organization = AdminOrganization.objects.all().first()
ward_detail = Ward.objects.get(id=user_detail.ward.id)
sifarish = Sifaarish.objects.get(id=sifaris_id)
active_fiscal_year = FiscalYear.objects.get(status=True)
my_data = "jpt"
context = {
'ward_number': ward_detail.ward_number,
'ward_address': ward_detail.ward_address,
'org_name_np': organization.name_np,
'org_address': organization.address,
'org_logo': organization.logo_image,
'active_fiscal_year': active_fiscal_year.name,
}

    # Render the HTML template to a string
    template = get_template('sifarishpage_one.html')
    html_string = template.render(context)

    # Generate the PDF from the HTML string
    pdf_file = HTML(string=html_string).write_pdf()

    # Create the HTTP response with PDF content
    response = HttpResponse(pdf_file, content_type='application/pdf')
    response['Content-Disposition'] = 'attachment; filename="output.pdf"'
    return response
rugged root
#

!stream 533226806686384128

wise cargoBOT
#

โœ… @devout bloom can now stream until <t:1689005059:f>.

gentle flint
cosmic bison
#

I can test it when i get done mowing the lawn

cosmic bison
#

Easier to know you have it correct

uncut meteor
#

doggie

#

doggie

#

hi doggie

vocal basin
#

there's a gap between weaker type systems which don't care and stronger type systems which allow higher order generics in a reliable way;
and that gap contains quite a lot of popular languages

cosmic bison
#

I made my generics in a possibly dumb way idk. I did it as simple as i could

reef oriole
#

rep... no, DITTO

vocal basin
vocal basin
#

iirc, last time higher-order generics were re-introduced, it was just a check getting removed

cosmic bison
#

Huh

#

Neet

#

Alr, i gotta go for like 30min-1 hour

willow light
#

Gluten? Hail Seitan!

reef oriole
#

Apply for a Grant and get paid to find out...Hampster vs. Electricity Study

lucid blade
willow light
#

flashback to the air force hoisting an unshielded nuclear reactor fifty feet above a forest in georgia to test the environmental impact of nuclear airplanes

lucid blade
#

LOL @willow light

rugged root
#

@lucid jolt Can you mute your mic or turn on noise reduction? We're getting all kinds of background noise from you like chewing

lucid blade
#

have you ever seen one of the engines @willow light ?

willow light
#

I'm sitting here with an assigned story this sprint: "Create a Dockerfile for Development Environment as Code"

None of the stakeholders have been able to adequately answer my first question: "But why?"

willow light
lucid blade
#

yerp

#

๐Ÿ˜‰

#

they're massive

willow light
#

My uncle worked on EBR-1. I got quite the tour.

amber raptor
#

There is a ton of cool energy things but again, being better then current system is generally huge.

lucid blade
reef oriole
#

Be Well, Good Day.

somber heath
#
if __name__ == '__maine__':
    ...```
willow light
rugged root
#

Not to be confused with another foundation, "Preppers On Our Planet"

lucid blade
#

The great storm of 1987 was a violent extratropical cyclone that occurred on the night of 15โ€“16 October, with hurricane-force winds causing casualties in the United Kingdom, France, and the Channel Islands as a severe depression in the Bay of Biscay moved northeast. Among the most damaged areas were Greater London, Kent, the East Anglian coast, ...

willow light
#

2017 counts for tropical cyclone hitting Scotland, a tropical depression

lucid blade
#

A sting jet is a meteorological phenomenon which has been postulated to cause some of the most damaging winds in extratropical cyclones, developing according to the Shapiro-Keyser model (though perhaps not exclusively) of oceanic cyclones.

willow light
#

The Braer Storm was the most intense extratropical cyclone ever recorded over the northern Atlantic Ocean. Developing as a weak frontal wave on 8 January 1993, the system moved rapidly northeast. The combination of the absorption of a second low-pressure area to its southeast, a stronger than normal sea surface temperature differential along its...

willow light
#

Incineration of organic waste in Erta Ale Volcanoes lava lake as simulation of what would happen if a person would fall into the lava lake (since both are organic and contain water and would thus be expected to trigger similar response).
It is frequently discussed whether it is possible to sink in lava. Due to its high density, a person would g...

โ–ถ Play video
#

!e

x = 2
print(x.__sizeof__())
wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

28
#

@willow light :white_check_mark: Your 3.11 eval job has completed with return code 0.

28
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

72
willow light
#
GOTO ur mom
#

Why does it exist?

Why not?

#

Temple OS has entered the chat.

#
float Q_rsqrt( float number )
{
 long i;
 float x2, y;
 const float threehalfs = 1.5F;

 x2 = number * 0.5F;
 y  = number;
 i  = * ( long * ) &y;                       // evil floating point bit level hacking
 i  = 0x5f3759df - ( i >> 1 );               // what the fuck?
 y  = * ( float * ) &i;
 y  = y * ( threehalfs - ( x2 * y * y ) );   // 1st iteration
// y  = y * ( threehalfs - ( x2 * y * y ) );   // 2nd iteration, this can be removed

 return y;
}
cosmic bison
#

Imma join the vc in another 20 minutes or so btw

willow light
#

some madlad rewrote it in c++

# include <bit>
# include <limits>
# include <cstdint>

constexpr float Q_rsqrt(float number) noexcept
{
 static_assert(std::numeric_limits<float>::is_iec559); // (enable only on IEEE 754)

 float const y = std::bit_cast<float>(
  0x5f3759df - (std::bit_cast<std::uint32_t>(number) >> 1));
 return y * (1.5f - (number * 0.5f * y * y));
}

and it seems to work better

#

the only flakes I know about involve flake8

#

@gentle flint o/

gentle flint
#

o/

willow light
#

I showed vim to my father and asked him to try to exit it.

He pressed and held the power button for eight seconds.

"There, I exited."

brazen tiger
#

heloooo

rugged root
#

@ancient scarab Would you mind changing your nickname to something more appropriate for the server? I'd appreciate it

willow light
#

and the bio too

whole bear
#

@rocky yewdude im mute can u help me?

willow light
wise cargoBOT
#
Voice verification

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

gentle flint
willow light
whole bear
willow light
#

Sounds about right

rocky yew
gentle flint
#

@tender shore

#

this has a patch

somber heath
#

Abcdefghijklmnopqrstuvwxz.

raven mural
#

@tender shore

#

We get it

#

You like linux

#

Noone cares you dislike ubuntu

fleet citrus
#

Wait you can post custom stickers here

gentle flint
#

yeah

raven mural
#

@tender shore you should learn object oriented programming

#

It is the most advanced paradigm

#

It reduces boilerplate

#

Its easy to read

somber heath
#

@gentle flint Just remember, when you go, don't use the keys.

raven mural
#

@tender shore you should learn java

#

No you dont

rugged root
raven mural
#

lmao

#

@tender shore you should learn arm

#

@tender shore did you know that F# was the first imperative language released in 86โ€™?

dim dock
#

what is vim?

rugged root
#

A text/code editor

raven mural
#

Virtual interactive mcdonalds

dim dock
#

share a link to use it

raven mural
#

Linux was a mainframe related piece of software

copper ledge
#

im indian

gentle flint
lucid blade
gentle flint
orchid mauve
gentle flint
#

no, it's not mosquitoes @lunar haven

#

it's hogweed

cosmic bison
#

Anyone know why this would happen

lto1: fatal error: bytecode stream in file โ€˜assembly.oโ€™ generated with LTO version 12.0 instead of the expected 13.0
compilation terminated```
gentle flint
somber heath
#

Sir Vers.

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'Austin': 91185, 'Portland': 110123, 'Dallas': 89123, 'Atlanta': 112000}
#
zip

zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.

Example:

```py
>>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
...     print(item)
...
(1, 'sugar')
(2, 'spice')
(3, 'everything nice')
```...
fossil anvil
#

it seems to me that my code is too long to post on python help what do i do

raven mural
#

@lunar haven

#

Whats up crazy ass

#

we should convince him to use nvim

robust bone
#

hey

civic osprey
#

?

scarlet halo
#

!e ```python
stringlol = 'abcdefg'
if 'bcd' in stringlol:
print(True)
else:
print(False)

wise cargoBOT
#

@scarlet halo :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
scarlet halo
#

!e ```python
coollist = ['a','b','c']
if 'b' in coollist:
print(coollist.index('b'))
else:
print(False)

wise cargoBOT
#

@scarlet halo :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
upper arch
cosmic bison
#

async def filter_message():

upper arch
cosmic bison
#

'some string' in message.content

whole bear
#

@lunar haven

cosmic bison
#

[(wordone)(wordtwo)]

#
for item in my_list:
    print(item)
#

range(10)

#
if message_module:
    for word in filter_words:
        # your logic here
upper arch
scarlet halo
#

is it just me or does it feel like discord is constantly updating

upper arch
glad knoll
#

Hellooo @lunar haven

upper arch
glad knoll
#

Doing good, how about you?

wintry pier
#

return should be under for or message.delete

upper arch
wintry pier
#

if you want it to check it once place it under message.delete()

glad knoll
whole bear
#

@lunar haven pydis_snake

upper arch
wintry pier
#

you need params

cosmic bison
#

await

#

await filter_message(message)

glad knoll
#

Gtg

#

Byeee

upper arch
#

Why is it not putting in the log that the message was deleted

#

lol

#

kek

#

@wintry pier help?

fallen quartz
#

hi theree

viscid lagoonBOT
#

winged monster with the head of an eagle and the body of a lion

copper bolt
#

hi

#

Replit?

#

saw it in preview

#

playing a game: replit

#

voice chat 0

#

oh it's Pregamer

#

Replit W

#

ok i gtg i just saw replit and had to join

fleet sedge
#

hey

#

yea, atlast

#

what are u guys upto

#

can you explain recursion?

#

explain me like iam 5 years

#

yea

#

while True:

#

print()

#

hahaha

#

i can

wise cargoBOT
#

@lunar haven :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).

001 | sugar
002 | sugar
003 | sugar
004 | sugar
005 | sugar
006 | sugar
007 | sugar
008 | sugar
009 | sugar
010 | sugar
011 | sugar
... (truncated - too many lines)

Full output: too long to upload

fleet sedge
#

limit

#

how many time it will run

#

True

#

I get what recursion is, but can u show some handy tips, like most times my codes goes hammm

#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

#

@fleet sedge :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     def r(a):
003 | IndentationError: expected an indented block after function definition on line 1
fleet sedge
#

how to I write code?

#
    print()
    R()
#

thx man

wise cargoBOT
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
fleet sedge
#

!e ```py
def p()
print()
p()

p()```

wise cargoBOT
#

@fleet sedge :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     def p()
003 | IndentationError: unexpected indent
#

@lunar haven :x: Your 3.11 eval job has completed with return code 1.

001 | sugar
002 | sugar
003 | sugar
004 | sugar
005 | sugar
006 | sugar
007 | sugar
008 | sugar
009 | sugar
010 | sugar
011 | sugar
... (truncated - too many lines)

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

fleet sedge
#

ok, get it base case, any good practices when writing recursion

#

one line???

viscid lagoonBOT
#
Wikipedia Search Results

Fibonacci
Fibonacci (/หŒfษชbษ™หˆnษ‘หtสƒi/; also US: /หŒfiหb-/, Italian:ย [fiboหˆnattสƒi]; c.โ€‰1170 โ€“ c.โ€‰1240โ€“50), also known as Leonardo Bonacci, Leonardo of Pisa, or Leonardo

Fibonacci sequence
mathematics, the Fibonacci sequence is a sequence in which each number is the sum of the two preceding ones. Numbers that are part of the Fibonacci sequence are

fleet sedge
#

!e py def fib(a,b): print(a,b) fib(a+b,a+2b) fib(1,1)

wise cargoBOT
#

@fleet sedge :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 3
002 |     fib(a+b,a+2b)
003 |               ^
004 | SyntaxError: invalid decimal literal
fleet sedge
#

what happend?

#

!e py def fib(a,b): print(a,',',b) fib(a+b,a+2*b) fib(1,1)

wise cargoBOT
#

@fleet sedge :x: Your 3.11 eval job has completed with return code 1.

001 | 1 , 1
002 | 2 , 3
003 | 5 , 8
004 | 13 , 21
005 | 34 , 55
006 | 89 , 144
007 | 233 , 377
008 | 610 , 987
009 | 1597 , 2584
010 | 4181 , 6765
011 | 10946 , 17711
... (truncated - too many lines)

Full output: too long to upload

fleet sedge
#

did it work?

#

how?

#

only one line code?

#

!e```py
def fib(n):
if n < 3:
return 1
return fib(n-1) +fib(n-2)
fib(4)

wise cargoBOT
#

@fleet sedge :warning: Your 3.11 eval job has completed with return code 0.

[No output]
fleet sedge
#

one line?

#

!e py def fib(n): if n < 3: return 1 return fib(n-1) +fib(n-2) print(fib(4))

wise cargoBOT
#

@fleet sedge :x: Your 3.11 eval job has completed with return code 1.

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

@lunar haven are you afk ?

#

okey

fleet sedge
#
def fib(n):
  if n < 3:
    return 1
  return fib(n-1) +fib(n-2)
print(fib(4))```
#

!e ```py
def fib(n):
if n < 3:
return 1
return fib(n-1) +fib(n-2)
print(fib(4))

wise cargoBOT
#

@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.

3
fleet sedge
#

would ya lick like a cat then

opaque willow
#

are you speaking about code ?

fleet sedge
#

na our butt

opaque willow
fleet sedge
#

u should get a agronomic chair

viscid lagoonBOT
opaque willow
#

that is agronomic chair for stay 16H a day

viscid lagoonBOT
#

the branch of engineering science in which biological science is used to study the relation between workers and their environments

fleet sedge
#
def fib(n):
  return 1 if n < 3 else fib(n-1) +fib(n-2)
print(fib(4))
#

!e ```py
def fib(n):
return 1 if n < 3 else fib(n-1) +fib(n-2)
print(fib(4))

wise cargoBOT
#

@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.

3
fleet sedge
#

so the series first n=1 is 0?

opaque willow
#

this is the challenge of codewars ?

#

Because on codewars there is also a fibonacci challenge

fleet sedge
#

!e ```py
def fib(n):
return 1 if n < 2 else fib(n-1) +fib(n-2)

print([fib(i) for i in range(10)])

wise cargoBOT
#

@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.

[1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
fleet sedge
#

do you also want the zero?

#

if you want different conditions foe the two base cases (n=1, = 1, n=2, = 1) then it will be not 1 line

#

i dont know that

#

<=

#

?

opaque willow
#

๐Ÿฅณ

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | The Zen of Python, by Tim Peters
002 | 
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)

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

fleet sedge
#

thats the same as (< 3) == ( <= 2)

#

eurekaaa!!!!

#

nahh ur code, it can do it in one line

#

this works

#

!e ```py
def fib(n):
return n if n <= 1 else fib(n-1)
print([fib(i) for i in range(10)])

wise cargoBOT
#

@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 1, 1, 1, 1, 1, 1, 1, 1]
fleet sedge
#

ohh silly me

#

!e ```py
def fib(n):
return n if n <= 1 else fib(n-1) + fib(n-2)
print([fib(i) for i in range(10)])

wise cargoBOT
#

@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
fleet sedge
#

lets go!!!!!!

#

thats all for today

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
fleet sedge
#

nahh, forgot that

#

lamda always seems complicated to me, never use it, use it but chatgpt does that for me

#

ever or odd?

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | The Zen of Python, by Tim Peters
002 | 
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)

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

vocal basin
fleet sedge
#

thats all for today!!! thanks guyz, see ya later

vocal basin
wise cargoBOT
#

@whole bear :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

184553472
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

8
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

4096
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     print(int('0x001000',2))
004 |           ^^^^^^^^^^^^^^^^^
005 | ValueError: invalid literal for int() with base 2: '0x001000'
bleak sphinx
#

Hi everyone

#

to each their own tbh

#

what's the stream about?

#

Hi there!

#

Oh, the core basics; cool

#

it's a way to express you support/agree with something in english (e.g someone says something in chat and you're like "this, yes")

#

yep

#

where's the class at?

#

lol

#

data types?

empty obsidian
#

yea

#

can i get some help

#

i need to uninstall all my python interpreters from my mac

finite topaz
#

hi

bleak sphinx
#

what? data types is a thing in CS in general, what are you talking about

finite topaz
#

What are u doing here?

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'type'>
bleak sphinx
#

I was reffering back to this

empty obsidian
#

I just need one of them for which I can easily pip install <packages> and run my python files

#

bruh

#

the libraries doesn't work with that

#

all except 3.10.6 64-bit

#

yea ik

#

but also idk

empty obsidian
empty obsidian
#

im talking about this

#

aight

bleak sphinx
#

@lunar haven so what are you going to screenshare btw?

empty obsidian
#

still didn't work for me

#

oh

#

ok

#

no

#

huh

bleak sphinx
#

PEACEEEEEEEEEEE

empty obsidian
#

how?

#

still showing an error

#

u meant like in the terminal?

#

it says no module found matplotlib

#

named*

#

this

#

but the other one is just working fine with all modules

vocal basin
empty obsidian
vocal basin
#

this?

/usr/local/bin/python3 -m pip install matplotlib
empty obsidian
#

that's the VScode's terminal cuz im running it on VScode

#

ok

#

ran successfully

#

the error's gone

vocal basin
#

there's another way how you can ensure you run the right pip command:
run it from inside python itself

#

!e

from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "list"], text=True))
wise cargoBOT
#

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

001 | Package           Version
002 | ----------------- ------------
003 | anyio             3.7.0
004 | arrow             1.2.3
005 | async-generator   1.10
006 | attrs             22.2.0
007 | beautifulsoup4    4.12.2
008 | contourpy         1.0.7
009 | cycler            0.11.0
010 | einspect          0.5.16
011 | fishhook          0.2.8.post10
... (truncated - too many lines)

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

empty obsidian
#

and now the question arises

#

if that's the one working fine

#

then how do I delete the others

vocal basin
# empty obsidian

the right way seems to be:
select recommended
restart terminal
run pip install matplotlib

empty obsidian
#

ok

vocal basin
#

this should make it use venv

#

after restarting terminal it should show (.venv)

empty obsidian
#

it did not

vocal basin
#

did you run pip install after restarting the terminal?
(just using pip without python path)

empty obsidian
#

yea

#

i did

#

pip install for all of them

vocal basin
#

can you show the output it produced?

#

(including the command itself)

empty obsidian
#

in my macOS terminal it's showing satisfied

empty obsidian
vocal basin
#

it must be ran from VS Code terminal not external terminal

#

i.e. type pip install matplotlib here

empty obsidian
#

damn ok

vocal basin
#

well, that looks quite odd

#

does python -m pip install matplotlib show the same?

#

very unusual if it shows that

empty obsidian
vocal basin
#

same

#

the problem is it doesn't recognise venv for some reason

empty obsidian
#

i use the control+option+n

vocal basin
#

in order of insertion

#

!d collections.OrderedDict

wise cargoBOT
#

class collections.OrderedDict([items])```
Return an instance of a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass that has methods specialized for rearranging dictionary order.

New in version 3.1.
vocal basin
#

and this one is the proper ordered dictionary

vocal basin
# empty obsidian

tl;dr:
what's shown on this screenshot shouldn't happen
idk why it happens at all

empty obsidian
#

so venv?

viscid lagoonBOT
#
Wikipedia Search Results

Pomodoro Technique
The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. It uses a kitchen timer to break work into intervals

Pomodoro
Pomodoro (Italian for "tomato") may refer to: Arnaldo Pomodoro (born 1926), Italian sculptor Giรฒ Pomodoro (1930โ€“2002), Arnaldo's brother, another sculptor

#
Wikipedia Search Results

SS-N-3 Shaddock
eight-wheel truck (ZIL-135KM) as coastal defense missiles. These were designated SPU-35V "Redut" or NATO "SSC-1 Sepal". Length: 10.20 m (a/b) or 11.75 m (model

Soraya Phomla
Runner-Up, with SPU Volleyball Club 2016 CH7 Championship 2016 - Champion, with SPU Volleyball Club 2017 CH7 Championship 2017 - Runner-Up, with SPU Volleyball

vocal basin
#

originally it was a CPython implementation detail
then it got standardised

#

generally, hashmaps are unordered

empty obsidian
#

im pain

vocal basin
# empty obsidian

if you don't really care about venv => select interpreter you had selected before;
if you need venv => call all python executables by their full/relative path (./venv/bin/python -m pip, for example) or call pip from python, as mentioned before;

for some reason venv doesn't get properly activated;
I have no idea if it's because of zsh or because of VSC or something else;

empty obsidian
#

ok

#

imma use the 3.11.2

#

don't I like need to remove the other interpreters?

vocal basin
#

unless you're extremely low on disk space, probably not yet

empty obsidian
vocal basin
#

if you're not using venv, you can remove it safely

empty obsidian
#

how

vocal basin
#

rm -rf .venv, I'd guess

empty obsidian
#

in VSC or in my main terminal?

vocal basin
#

wherever

#

just make sure you're in the right working directory

#

as for other interpreters, there might be something relying on them (so you need to check what's running on your system before removing);
with near 100% probability, default python 3.9 and 3.10 are not safe to delete

empty obsidian
#

It removed the one which was working fine

#

oh no

#

nvm

#

it did remove the venv thing

empty obsidian
#

doesn't macOS already has it's pre-installed python?

#

anyways

#

thanks a lot

vocal basin
#

why is it highlighting it like that

#

it might be confusing it as a docstring

#

regular Jupyter highlights all the same
(as it is simpler generally)

#

fun fact:
jupyterlab has almost the same exact colours for light and dark theme

#

(for demonstration)

#

I totally forgot I added this to the plugin

#

one day I decided that 2 second response time isn't justified by 2 second preview generation time

#

I don't like how string colour gets rendered with Gitea's dark theme

#

but too lazy to change that now

vocal basin
#

different parsing of in is triggered by for

#

yes, list.__contains__ seems to have linear complexity

#

!d operator.contains

wise cargoBOT
#

operator.contains(a, b)``````py

operator.__contains__(a, b)```
Return the outcome of the test `b in a`. Note the reversed operands.
vocal basin
#

whereas for-in calls __iter__+__next__

#

yes, in as part of for construct isn't an operator in normal sense

#

iirc, in Rust, even for is extremely context-dependent

#

at least three separate meanings

#

impl Trait for
for<'a>
for _ in

#

there are too many "fundamentals";
you will have to specialise, and quite early on

#

for Python (and many other languages) there's many packages outside of the standard library which are definitely more "fundamental" for real programming experience, compared to certain parts of the standard library itself

wise cargoBOT
#

@lunar haven :x: Your 3.11 eval job has completed with return code 1.

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

!e

None | int
wise cargoBOT
#

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

[No output]
vocal basin
#

!e

print(None | int)
print(type(None | int))
wise cargoBOT
#

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

001 | None | int
002 | <class 'types.UnionType'>
vocal basin
#

union of types

#

!e

print({1, 2, 3} | {3, 4, 5})
wise cargoBOT
#

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

{1, 2, 3, 4, 5}
vocal basin
#

also union of sets

#

!e

print({1, 2, 3} & {3, 4, 5})
wise cargoBOT
#

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

{3}
vocal basin
#

!e

print({1, 2, 3} ^ {3, 4, 5})
wise cargoBOT
#

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

{1, 2, 4, 5}
vocal basin
vocal basin
#

union\intersection

#

!e

print(({1, 2, 3} | {3, 4, 5}) - ({1, 2, 3} & {3, 4, 5}))
wise cargoBOT
#

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

{1, 2, 4, 5}
vocal basin
#

union - intersection

#

top right

#

!e

print({5, 4, 3, 2, 1})
print({1, 2, 3, 4, 5})
print({-1, -2})
print({-2, -1})
wise cargoBOT
#

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

001 | {1, 2, 3, 4, 5}
002 | {1, 2, 3, 4, 5}
003 | {-1, -2}
004 | {-2, -1}
vocal basin
#

first two are same order

#

last two aren't

#

reason:
most of small integers have hash(x)==x

#

except for -1

#

!e

print(hash(0))
print(hash(-1))
print(hash(-2))
print(hash(-3))
print(hash(-4))
wise cargoBOT
#

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

001 | 0
002 | -2
003 | -2
004 | -3
005 | -4
vocal basin
#

@undone frost well, for some dialects you might need a course

#

something broken like Oracle's one

#

extensions are where the difficulties are

#

of which there are a lot

#

postgres
mysql/mariadb
oracle
microsoft

vocal basin
#

!d set

wise cargoBOT
#
set

class set([iterable])``````py

class frozenset([iterable])```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset "frozenset") objects. If *iterable* is not specified, a new empty set is returned.

Sets can be created by several means:

โ€ข Use a comma-separated list of elements within braces: `{'jack', 'sjoerd'}`

โ€ข Use a set comprehension: `{c for c in 'abracadabra' if c not in 'abc'}`

โ€ข Use the type constructor: `set()`, `set('foobar')`, `set(['a', 'b', 'foo'])`...
vocal basin
#

relational databases aren't dealing exactly with sets, they use some sort of more difficult algebra/whatever

#

should be unique

#

first normal form, iirc

#

no

#

not first

#

I don't remember

#

one of two things implied by first normal form

#

!d uuid

wise cargoBOT
vocal basin
#

@undone frost usually they just use ids not uuids

#

theoretically, there might not be any numeric id at all
primary key itself might be enough

#

but for performance/other reasons, numeric ids are often associated with rows anyway

#

"is IndexedDB front-end or back-end?"

#

JavaScript is fast now

#

Copilot and others propagate existing frequent code issues
unlike "making programmers lazy", this is an actual problem

#

same with normalising boilerplate and repetitive code

#

the problem isn't that programmers find a solution to writing repetitive code
the problem is programmers having to write repetitive code in the first place
(which is quite systemic, there's no "cure" to this)

#

"google until pulling the thing out of memory is faster than googling it"

#

you can memorise it as a result of googling
i.e. without memorising intentionally

wise cargoBOT
#

@lunar haven :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

120
vocal basin
#

it actually has rich display for last expression in the cell

#

beyond what print can do

whole bear
#

hello

vocal basin
#

pandas tables, for example

whole bear
#

I'm just watching you stream

#

tbh

#

its pretty nice

vocal basin
#

!e

from functools import reduce
from operator import mul

print(reduce(mul, range(1, 5 + 1), 1))
whole bear
#

you're welcome lol

#

just think it through

#

you'll get there

wise cargoBOT
#

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

120
whole bear
#

@rapid flame practice is better than study and they're probably more experienced that's most likely why they'll know more

whole bear
vocal basin
#

I already got it working

whole bear
#

ok

vocal basin
#

works without keyword argument too

whole bear
#

I like this call

#

very chill people

#

I never tried github co pilot what engine or what generator does their machine work on @undone frost @rapid flame

#

I only heard about it

#

rarely use openai tbh

#

its kinda trashy

viscid lagoonBOT
#
Wikipedia Search Results

Factorial
the factorial of a non-negative integer n n , denoted by n ! n! , is the product of all positive integers less than or equal to n n . The factorial of

Double factorial
In mathematics, the double factorial of a number n, denoted by nโ€ผ, is the product of all the positive integers up to n that have the same parity (odd

vocal basin
#

but that's an idealistic "done well" world

whole bear
#

be careful of what botnet you use!! @rapid flame

#

they sometime sell your data to somewhere u would not want it to be

vocal basin
#

always instead of sometimes, I'd expect

whole bear
#

not all of them tbh