#voice-chat-text-0

1 messages ยท Page 945 of 1

sweet lodge
#

AL

brave steppe
#

AL?

sweet lodge
#

AL replaces C/AL, but AL doesn't have it's own Wikipedia page

#

It's what Microsoft's "new and improved cloud" version of their ERP is built in

#

Only supported in VS Code

stuck furnace
#

Anyone tried Kakoune? ๐Ÿ˜„

sweet lodge
#

Also doesn't work on Linux, build tools are Windows only

amber raptor
#

Stop now

stuck furnace
#

It's honestly great ๐Ÿ˜”

mild agate
#

Whats that

amber raptor
terse needle
stuck furnace
amber raptor
#

No, no, no

terse needle
#

oh god don't get him started /s

stuck furnace
amber raptor
stuck furnace
#

Want a demo?

sweet lodge
#

"modal text editor"

stuck furnace
#

Erm, it's like vim, but different.

sweet lodge
#

AKA vim

terse needle
#

Its like half vim half emacs

#

feels like it anyway

sweet lodge
#

So... emacs evil mode?

amber raptor
#

Damn it

stuck furnace
terse needle
#

just for you LX sudo xbps-install -S kakoune

#

why is there clippy ascii art

amber raptor
#

This is just no

terse needle
stuck furnace
#

That's just my favourite feature. You can pipe selections through any command ๐Ÿ˜„

#

And it has clippy!

amber raptor
#

Just no

stuck furnace
#

Like, say I want to reformat code with Black.

#

Yeah

#

I messed that up...

#

Yep!

#

I also have it set up with language servers, so it pretty much has all the features of other editors.

sweet lodge
#

I see you're writing code - would you like me to go ahead and schedule a therapy appointment for your imposter syndrome?

#

IDK
I tried

stuck furnace
#

What more could you want?

#

!eval ```py
class C:
def foo(self):
print('hello')

for _ in range(100):
class C(C):
...

print(C.mro())

c = C()
c.foo()

#

!eval ```py
class A:
def foo(self):
1+1

B = A

for _ in range(100):
class B(B):
...

from timeit import timeit
print(timeit('x.foo()', 'x = A()', globals=globals()))
print(timeit('x.foo()', 'x = B()', globals=globals()))

#

Ah lemon_pensive

wise cargoBOT
#

@stuck furnace :white_check_mark: Your eval job has completed with return code 0.

001 | 0.07179225794970989
002 | 0.07192551111802459
stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

#

Gotta see how far we can increase 100 now...

#

!eval ```py
class A:
def foo(self):
1+1

B = A

for _ in range(1000):
class B(B):
...

from timeit import timeit
print(timeit('x.foo()', 'x = A()', globals=globals()))
print(timeit('x.foo()', 'x = B()', globals=globals()))

wise cargoBOT
#

@stuck furnace :white_check_mark: Your eval job has completed with return code 0.

001 | 0.07099396409466863
002 | 0.07060016691684723
stuck furnace
#

Although I can't quite figure out how the time doesn't seem to depend on how far up the mro the method is? ๐Ÿค”

#

Ahh right.

brave steppe
stuck furnace
#

Ah, I don't know enough about python internals.

#

I'm going to post it in that channel, and hope someone gets nerd snipped.

#

Hey Fury

wise cargoBOT
#

@prime frost :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     For i in range (5):
003 |     ^^^^^^^^^^^^^^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
mild agate
#

lemon_yawn Good Night everyone!

#

C ya later!

stuck furnace
#

Bye ๐Ÿ‘‹

#

How is Wumpy coming along Blue?

#

Ah

#

I wrote some code to scrape the API endpoint documentation. I can see if I can find it if that helps? ๐Ÿ˜„

#

Back when I considered writing a wrapper.

#

Then saw how much work it would be.

#

Ah, it's on a backup drive somewhere. I switched OS recently.

brave steppe
stuck furnace
#

Wonder if it survived.

#

You already have to be rich to buy the regular wumpus plushie tbh.

#

I did some more investigating into that thing lemon_glass

#

It seems like creating the deeply inherited class is at least n^2 with respect to the depth of the inheritance.

#

If any of that sentence made sense.

#

Cya Rab ๐Ÿ‘‹

#

So like this part: ```py
for _ in range(n):
class B(B):
...

#

Takes O(n^2.3) time.

#

So it's doing something up front, probably to avoid the cost later.

mystic bolt
#

LX could I speak to you privately please

brave steppe
#

You're most likely looking for modmail

stuck furnace
mystic bolt
#

no xd just said that they have not left me alone all day sure wue noy is there anyone on the server that scripts in .py files?

brave steppe
#

I code in Python or what do you mean?

mystic bolt
#

exactly I would like to make a pyrhon script for blender

stuck furnace
#

It is quite a specialist topic, so you are more likely to get help in the Blender server, if there is one.

#

Although there's a chance it doesn't require specialised knowledge, in which case someone may be able to help you here. If you do open a help channel, make sure to post your question up front, and include any relevant information someone might need to understand what you're asking.

#

I am learning about Python packaging right now ๐Ÿ˜„

#

Also doing university work.

#

Ah yeah

#

Yep, I much prefer a declarative configuration.

#

But this kind of stuff is a bit of a weak area for me ๐Ÿ‘€

#

As I haven't really had much need to do any packaging.

#

One sec. Refreshing client.

brave steppe
#

๐Ÿ‘‹

stuck furnace
#

I do need to find a good project to work on actually.

#

Maybe getting more involved with the python bot...

#

Just import * everything.

vivid palm
#

which parts of bot

stuck furnace
#

From every module.

#

๐Ÿค” I like your thinking.

sweet lodge
#

You have an emoji named after yourself?

vivid palm
#

yes

stuck furnace
#

Might be a couple of name clashes.

sweet lodge
#

nice

#

Just a couple

stuck furnace
#

Oh right ๐Ÿค”

sweet lodge
#

What's the worst that could happen?

stuck furnace
#

A lemon version of:

gentle flint
#

๐Ÿ‘Œ

stuck furnace
#

๐Ÿ‘‹

stuck furnace
#

We don't have actual gavels though lemon_pensive

sweet lodge
#

Speak for yourself

stuck furnace
#

Yeah, not very much ๐Ÿ˜„

stuck furnace
#

Also Blue had a great idea for a package.

#

Basically a package that imports everything for you, so you don't have to.

#

Be prepared for all eventualities.

#

By just importing every module in the standard lib.

#

With * no less.

#

Actually, this is a point of disagreement.

#

Nah, last come last serve.

#

Does that make sense? ๐Ÿค”

#

Pick a random order to import the packages in.

#

I've made a start: ```py
import random
import pkgutil

modules = list(pkgutil.itermodules())
random.shuffle(modules)

for module in modules:
...

Profit?

#

Yeah same, I'm pretty bored of the music I listen to.

rugged root
stuck furnace
#

Yeap

#

To be fair.

#

I mean, to give each module a fair chance.

#

Yeah, I mean random error is better than systematic error right?

#

Because you can average out the effects by running your program repeatedly.

rugged root
#

@sweet fern If you're wondering why you can't talk, check out the #voice-verification channel for more information

stuck furnace
#

Should we see if VCO is interested Blue?

#

Mhm

#

Hello ๐Ÿ‘‹

verbal ibex
stuck furnace
#

Sorry what was the problem again? I was distracted.

#

Oh right.

#

Hmm ๐Ÿค”

#

So is this like the code that corresponds to the flow chart?

verbal ibex
#

Yep, to the beginning thereof

#

It should look like this

zinc magnet
#

dawai dawai naliwai

verbal ibex
#

๐Ÿ˜„

stuck furnace
frigid panther
#

hello hello

rugged root
#

How's it goin

stuck furnace
#

o/ โ›„

frigid panther
#

not bad ig

#

how about u guys

frigid panther
verbal ibex
rugged root
#

Eh, doing alright. Nothing special

zinc magnet
#

Eh, doing alright. Nothing special

frigid panther
#

i just reduce the overall system volume

#

I do get it

#

SReaperz#0499

trail mural
#

hi

frigid panther
#

o/

trail mural
#

qtpies

#

walle u good?

#

rip

frigid panther
#

F

#

don't talk then, ig

trail mural
#

walle ate a cucumber whole?

frigid panther
#

sleep

#

hot water

trail mural
#

gargle warm water

#

with salt

frigid panther
#

takes time @whole bear

#

a few days

#

minimum 4 days

trail mural
#

:/

#

๐Ÿค”

frigid panther
#

I mean

#

any sort of cold

#

takes 4 days to fully recover at the minimum

#

atleast

trail mural
#

iceman unmute me pwease uWu

brave steppe
frigid panther
trail mural
frigid panther
#

that means, read what the channel says

trail mural
#

I did ๐Ÿ™‚

zinc magnet
#

#like4like

#

#monday

trail mural
#

noodle has a fancy headset

frigid panther
#

I could play with you but I am really bad at that game

#

@zinc magnet

#

background

#

music

#

I do

trail mural
#

what is chess

frigid panther
#

but has been a long time

#

there has to be a reason

trail mural
#

isnt that like expert mode tic tac toe?

verbal ibex
zinc magnet
#

:(

#

yehor

#

aye

frigid panther
#

for what @rugged root ?

#

ah

trail mural
#

@verbal ibex yehor how do I watch?

stuck furnace
#

Ah bye @brave steppe, didn't see you go ๐Ÿ‘‹

verbal ibex
#

just follow the link

brave steppe
#

Cya!

#

Gonna play some games

stuck furnace
#

No worries!

trail mural
#

oof

stuck furnace
#

Off to eat ๐Ÿ‘‹

trail mural
#

LX how much vbucks for unmute?

stuck furnace
#

Maybe not actually, I don't know what that is ๐Ÿ˜„

#

Maybe it's like the Zimbabwean dollar.

trail mural
#

its the currency of the future generation...

#

bye

stuck furnace
#

!otn add tim curry the inventor of haskell

wise cargoBOT
#

:ok_hand: Added tim-curry-the-inventor-of-haskell to the names list.

somber heath
#

I used to watch that a fair bit.

#

I believe I last watched it approximately eight years ago.

#

!voice @sullen bramble

wise cargoBOT
#

Voice verification

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

sullen bramble
trail mural
#

hi @somber heath

#

I've been here less than 3 days so it wont let me talk D:

#

I start class soon! ๐Ÿ™‚

#

yes sir!

#

you are my teacher

#

context is hard with text

#

I got programming class in 10 mins!

trail mural
#

how are you doing today?

#

I get that

#

when its warm

#

hi @wind knoll

#

nvm

#

yes

#

class is a bit of python but specialism will be java

somber heath
#

!pep8

wise cargoBOT
#

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
โ€ข PEP 8 document
โ€ข Our PEP 8 song! :notes:

trail mural
#

nice

#

thanks you

somber heath
#

Naming conventions.

trail mural
#

xD

somber heath
#

camelCase

trail mural
#

I do that

#

yes sir!

#

how come

#

streaming_Snake_Case

#

I like your Bio ๐Ÿ™‚

somber heath
#

Constant: SCREAMING_SNAKE_CASE
Class: PascalCase
Variable/function: snake_case

trail mural
#

I'm laughing!!

#

fortunately teachers are super progressive

#

xD

#

I understand why now

#

and I understand why this is good practice

#

Thank you for teaching me this Sensei, Arigato!

#

I hope we cross paths again! take care!

normal vapor
#

Hello! I am stuck in an exercise where I have to plot a graph of a ball which is thrown vertically. The calculation of the ball's movement is done by eulers method

#

It is an inelastic collision with the ground so we have to multiply the position and velocity by 0.9

#

this is the my code so far, but it doesn't do what it's supposed to and I am desperate

#

for j in range(N):
# here are THE calculations:
t = t + dt
x = (x + v * dt)*0.9
v = (v - g * dt)*0.9
# And here we put those calculations in the arrays to plot later:
time = np.append(time,t)
height = np.append(height,x)
velocity = np.append(velocity,v)

#

pls help ๐Ÿ™‚

somber heath
#

@frozen jetty ๐Ÿ‘‹

frozen jetty
somber heath
#

Programming courses love to teach people about linked lists. Indeed, they can be a helpful construct to know about. My preference is doubly linked lists. I don't think I've ever had a practical use for them with what I do.

#

So to answer the question...yes.

#

That being said, Python's lists and collections.Deque mean that you might not need to do a whole lot of making them, yourself.

#

Anything you can do with linked lists and whatnot you can do with Python natively in nicer ways.

frozen jetty
somber heath
#

It would be a weird restriction.

frozen jetty
somber heath
#

To not allow them.

#

Yes.

frozen jetty
# somber heath Yes.

where does Linked List help?
In my lesson , he touched me but I didn't get the usage.

somber heath
#

The thing is, it's a bit of a lower-level concept. Courses like to teach you about lower-level concepts while getting you to do it in a higher-level language.

#

Your teacher touched on the subject?

#

Well, I guess you could look at how you use a for loop to iterate over a list.

frozen jetty
somber heath
#

To do a similar operation, all you'd need to do is look at the head node, grab its value, then follow that node's "next node" pointer.

frosty star
#

good evening

somber heath
#

Yahoy

frozen jetty
somber heath
#

Hajaa, you have students, right?

frosty star
#

yup

#

i did

#

not at the moment

#

whats up?

somber heath
#

What's your take on...linked lists? ๐ŸŒฉ๏ธ

frosty star
#

well... I guess sometiems it's helpful to know low level things to develop more efficient applications

somber heath
#

Verbiage in the house.

whole bear
#

aha

#

whatsup everyone by the way

somber heath
#

Gas.

frozen jetty
#

So after all I understand it's not necessary but it's good to learn. True?

somber heath
#

In Python, you might not have a use for it, but it's good to know how to do it in case called upon to do so.

frozen jetty
somber heath
#

If, later, you start learning another language, such knowledge of linked lists may help.

somber heath
#

I think I can hear a pair of tawny frogmouths calling.

frozen jetty
frosty star
frozen jetty
#

Oh , my Google keyboard suggests me all I want!!!
My English is better with this ๐Ÿ˜‚

frozen jetty
whole bear
#

why vc so quite

#

i m so intimidated by this vc tbh

whole bear
#

the host is responsible

frosty star
somber heath
somber heath
#

Much is possible.

whole bear
#

who is the host for this here in the voice channel

#

nvm

#

wanna play tetris?

#

hmm

somber heath
whole bear
#

lmao

whole bear
somber heath
#

Serverwise?

#

Like...vc region?

#

Well, if it hasn't been set statically to a region, I was in here first this session.

#

So it could be Australia.

#

If it hasn't autoadjusted to something else.

#

Hm. Says Rotterdam.

rugged root
#

Should be Europe by default

#

At least that's what I set it to

somber heath
#

Oh, we're in 1verboof's backyard, I think.

#

Like, maybe step outside on his balcony and be able to see the server building.

rugged root
#

He is the server

#

I'll be on in a bit, taking care of some stuff and feeling sick to my stomach. Think it might be some kind of stomach bug going around

somber heath
#

๐Ÿ˜ฆ

rugged root
#

I just want to make sure I don't vom while in vc

somber heath
#

Today's stomach bug: Tomorrow's lower intestinal adventures!

rugged root
#

Tune in next time for 8 wonderful facts about the colon!

gentle flint
somber heath
#

@molten pewterI love you.

#

The virus.

#

ILOVEYOU, sometimes referred to as Love Bug or Love Letter for you, is a computer worm that infected over ten million Windows personal computers on and after 5 May 2000 when it started spreading as an email message with the subject line "ILOVEYOU" and the attachment "LOVE-LETTER-FOR-YOU.TXT.vbs". The latter file extension ('vbs', a type of inter...

frozen jetty
#

41!๐Ÿคฏ

frosty star
# whole bear oh sure

well I tried to activate yeast with warm milk and sugar and the yeast won't bloom but I mized it with the flour mix anyway, and now my dough won't rise. So instead of putting it in the oven, I stuffed it with yesterday's chicken and potato and press it in frying pan... so that's the story

gentle flint
#

I tried to activate yeast with warm milk and sugar and the yeast won't bloom
how warm was your milk and how long did you leave it

somber heath
#

It can take a while.

gentle flint
#

I usually have it at 40 or colder

frosty star
#

colder?

gentle flint
#

if it's too hot it kills the yeast

frosty star
#

๐Ÿ˜ฆ 5 degrees surplus kills yeast?

gentle flint
#

probably not

whole bear
#

has anyone seen the eyebros of Jack Black while playing Sax a boom ๐Ÿ˜†

frosty star
#

right?.... maybe the yeast already died

gentle flint
#

maybe

#

how long did you let it stand

frosty star
#

10 minutes

gentle flint
#

interesting

frosty star
#

I also used milk powder+water instead of fresh milk i wonder if that has to do with anything

somber heath
#

Right? "Hurdurr net zero by 2050" Yeah. Bullshit. Like they're going to even hit that. Start pushing for negative ASAP.

gentle flint
somber heath
#

Even at zero...the momentum of the effects is going to continue.

#

It's like pushing a heavy cart and once it's got all that momentum, we stop pushing and go "Oh, well, we've done all we can do."

#

Meanwhile it keeps rolling along and will keep rolling along

#

and it's on a slight decline

frosty star
gentle flint
#

alright

frosty star
#

ayo ayo

somber heath
#

@woeful salmonYour mic's stuck open. No noise, though.

#

It looks right, now.

woeful salmon
gentle flint
#

books arrived

frosty star
mild agate
frosty star
#

wchu get

molten pewter
#

can not -> can't

#

I am -> I'm

somber heath
#

@rugged root Are you working?

frosty star
#

what is a stomach bug

somber heath
#

.xkcd 1471

viscid lagoonBOT
#

I know it seems unpleasant, but of the two ways we typically transfer them, I promise this is the one you want.

frosty star
#

ah ... i see

#

not food poisoning?

#

oh. okay I got it.

woeful salmon
#

what i just ate (except i didn't take a picture ofo it so this is from google)

woeful salmon
#

yes

#

the dish is called paw bhaji
๐Ÿ™‚ its delicious

rugged root
#

One sec

molten pewter
#

.xkcd 2422

viscid lagoonBOT
#

You know what they say: mRNA-1273 before tozinameran, you'll have to slay a banshee in a catamaran.

somber heath
#

I had mine the other week.

#

Faster than the first two times, too. Really in and out of the place.

#

Still had to wait 15 minutes after before I could go, but...

#

I was almost the only one getting one done at the time aside from maybe one of the staff.

#

First was the busiest. Second was less busy.

#

They might not know.

#

I mean, there might be ideas.

#

Apparent trends.

frosty star
#

I got Pfizer.... but tbh i didn't really care what I got as long as I'm vaccinated

#

wow

somber heath
#

@keen skyI mean...it's only plagiarism if you're a student.

frosty star
#

and from textbooks sometimes

#

cya

somber heath
#

"Alright kids, time to turn off your cybernetic implants."

#

"But Miss! Miss! Mine keeps me alive!"

#

"Are you a cheater, Sally?"

#

"...No?"

#

"Off it goes, then."

frosty star
#

there's also a matter of resources. if the questions are highly subjective, you're gonna have to invest more on paying the people to grade them.

#

fair fair

somber heath
#

Children for the children mincing machine.

frosty star
#

In a sense standardized testing tests a person's ability to learn things even though the stuff we learn aren't really applicable later in life?

rugged root
#

Right, it tests rote learning

#

Not problem solving or troubleshooting

frosty star
#

true ๐Ÿค”

#

intuition!

rugged root
frosty star
#

I think the main barrier to designing a better education system is rooted in the complexity of managing a huge number of people in a society. But we're improving for sure.

#

true

rugged root
molten pewter
frosty star
# somber heath I envy your optimism.

I mean... back in the days in some countries you had to memorizes a bunch of scriptures to get a job in government and civilizations invested more on philosophy rather than science... but now we get to learn math and physics in school alongside other subjects... so I could see that as an improvement.

molten pewter
somber heath
#

We're entering an age of regression.

#

Science marches on, but, increasingly, people are going, "Nope. Don't like that."

frosty star
#

ah.. i guess you have point there. it's a shame really

molten pewter
woeful salmon
mild agate
#

lolz

rugged root
#

One sec

wintry pier
#

Question :
- how to request a user id from models (django) by username ?

frosty star
#

i din know ms universe is going on now

somber heath
#

Oh, congratulations to India for winning Miss Universe. Not @woeful salmon.

mild agate
#

u mean the new MISS UNIVERSE! From india!

#

Noice

frosty star
#

hah

#

not inclusive enough?

somber heath
#

@sleek brookAdmin fiat.

mild agate
#

@sleek brook U may ask to LX for it!

frosty star
#

i should sleep

#

bye guys cya

mild agate
#

bye!

#

btw anyone here who knows abt PyQt5

somber heath
#

Because the duct tape fairy has been by.

mild agate
#

ahh nice

somber heath
#

Charon.

mild agate
#

he was charon 4

somber heath
#

Nobody was saying much.

#

Whoever this nobody is, we should hunt him down and destroy him for being such a blabbermouth.

somber heath
#

Won't you take me to Funkytown?

#

"Nah, it's a bit whiffy."

mild agate
#

Btw what d ya all think abt android dev with kivy?

#

ig it sucks

#

in my case

somber heath
#

I think if all you code in is Python, it's a thing that works.

mild agate
#

yep imma running into problems when dealing with camera..

somber heath
#

How are you running your code?

#

Compiled to APK?

#

Or using the Kivy Launcher app?

mild agate
#

launcher

somber heath
#

Yeah, the launcher app doesn't have cam permissions iirc.

mild agate
#

hm

somber heath
#

For anything that would require a specific permission not included in the launcher app, you'll need to use Buildozer to pack your app up into an APK, and you'll also need to specify said permissions.

somber heath
#

But first, you have to wrangle together your Buildozer environment.

#

Which is a pain in the arse.

mild agate
#

๐Ÿ˜†

somber heath
#

Be prepared to go searching for unlisted missing dependencies and error message diving to see what gets complained about.

mild agate
#

hmmm...

#

btw thanks sir..

somber heath
#

Ears are on.

rugged root
#

Dude I can't catch a break

#

Back later

mild agate
rugged root
#

Thankfully not that

#

One of our programs is borked

mild agate
#

lolz

#

so wassup furry!

molten pewter
somber heath
#

The votes may not matter.

#

Next election, R legislatures will just say "Nope, fraud. We're sending the electors we choose."

#

SCOTUS now will be all "Well, the constitution says that states can send who they want."

peak copper
somber heath
#

Even for the local elections. "Oh, you mean our opponent got more votes? Nope. You're wrong because we say you're wrong. Even if you're right, there are rules, the ones we wrote that say we still won."

#

and it'll be a slow drift to a one party system

#

Unless there's some rather large jolt to the system to knock the momentum to the other direction.

#

@sullen bramble What do you need?

sullen bramble
#

hi

#

i want to share my screen as i face one issue in pycharm

#

here I am unable to talk

#

in the voice channel

somber heath
#

If you have a problem, you're best off grabbing your own help channel and asking for assistance, detailing the problem.

sullen bramble
#

is there any way to talk to you, if you are not busy

somber heath
#

I'm not making myself available in that capacity at the present moment.

sullen bramble
#

okay

keen sky
#
item == ['x',44], hash('x') == 15
silver valley
#

@limber helm Here we you can share you screen if you want

woeful salmon
#

@limber helmhttps://www.youtube.com/watch?v=5rn_MAspYFM

Confused about AOT vs JIT vs Interpretation? Look no further. We'll explore these different compilation processes and get to the bottom of what it all means and how it all fits together.

Hope you enjoyed the video!

Check out this code here:
https://github.com/engineer-man/youtube-code/tree/master/104

Join my Discord server to chat with...

โ–ถ Play video
woeful salmon
#

@keen skyhttps://www.youtube.com/watch?v=SC8O3nMO5T4

by Flavien Raynaud

At: FOSDEM 2017

When writing Python code, you might find yourself using lists and dictionariespretty often. But do you really know how they work? Fortunately, theirimplementation as well as their history are (really) well documented. In thispresentation, we will dive into CPython 3.6 internals, explain how these datastructur...

โ–ถ Play video
keen sky
#

idiom

half flare
#

hey can anyone explain me the pickle dump and load function

woeful salmon
#

!e

class Person:
    def __init__(self, name):
        self.name=name
        print("initializing object")
    def get_name(self):
        return self.name

p1 = Person("jpen")
print(p1.name)
print(p1.get_name())

@keen sky

wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | initializing object
002 | jpen
003 | jpen
woeful salmon
#

!e

d = [[['z',33]],[],[],[['x',44],['y',33]]]
index = 3
for item in d[index]:
    if item[0] == "x":
        print(item)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

['x', 44]
woeful salmon
#

!e

foo = ["hello", "world"]
for i, value in enumerate(foo):
    print(i, value)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | 0 hello
002 | 1 world
woeful salmon
#

d = [[['z',33]],[],[],[['x',44],['y',33]]] <- data
[['x',44],['y',33]] <- list_ref
['x',44] <- (index of this in the list_ref is the index)

keen sky
#

_find(self,key) : internal helper. Returns (list_ref, index) with the list
and index for the given key. If the key doesnโ€™t exist, returns (list_ref,None)
where list_ref is the list which should contain the corresponding item.

#
        index = key%16 - 1
        for item in self.data[index]:
            if item[0] == key:
                return (self.data[index], index)
woeful salmon
#

@limber helm btw here

#

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

#

:incoming_envelope: :ok_hand: applied mute to @keen sky until <t:1639514917:f> (9 minutes and 59 seconds) (reason: newlines rule: sent 111 newlines in 10s).

stuck furnace
#

!unmute 116307597413318657

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @keen sky.

keen sky
#

Traceback (most recent call last):
File "c:\Users\jackp\Desktop\cs repo\C200-Assignments-jpenczek\Final\final.py", line 73, in <module>
print(d[1])
File "c:\Users\jackp\Desktop\cs repo\C200-Assignments-jpenczek\Final\final.py", line 24, in getitem
raise KeyError(key)
KeyError: 1

woeful salmon
#

@keen sky d['b']

verbal hemlock
#

@runic forum u there sir?

#

๐Ÿ‘€

runic forum
#

no

verbal hemlock
#

oh

#

sorry, I thought Omar was here

runic forum
#

on your profile, you're saying, that you're currently studying, but what exactly?

verbal hemlock
#

programming.

runic forum
#

what language?

verbal hemlock
#

everything

runic forum
#

nani??

verbal hemlock
#

ikr

#

so

runic forum
#

how come?

#

you're studying every possible language out there?

#

shouldn't you be studying just one programming language at a time?

verbal hemlock
#

we get educated to become full stock front end of back end web devs.

At the same time we have another subject were in we learn other languages such as Python, C# as a popular language to expand our knowledge in programming.

runic forum
#

and not like gazillion of them?

verbal hemlock
#

The web dev part also comes with subject about data bases, php and so on.

runic forum
#

ok

verbal hemlock
#

It is really amusing

#

except the programming subject

runic forum
#

and you're also studying assembly language, correct?

verbal hemlock
#

assembly language?

runic forum
#

yeh

verbal hemlock
#

why dont we just talk

runic forum
#

low level language

verbal hemlock
#

i hate msg

#

lol

#

ur in legit vc

#

xd

south current
#

they haven't given me voice verification

runic forum
#

same here

south current
#

so can't talk

runic forum
#

or rather it was taken from me

south current
#

i can't spam here for 50 msgs

verbal hemlock
#

!whois @runic forum

#

hmm

south current
#

otherwise I would have gotten it by now

verbal hemlock
#
while True:

    # Hoeveel kinderen?
    kinderen = 0
    try:
        while kinderen <= 0:
            kinderen = int(input("Hoeveel kinderen?\n"))
    except ValueError:
        print("DAT IS GEEN GETAL!")
        while ValueError == True:
            kinderen = int(input("Hoeveel kinderen?\n"))```
#

help!!!

south current
#

what is the error?

#

i think the exception is stopping the program

verbal hemlock
#

ValueError: invalid literal for int() with base 10: 'a'

south current
#

you can just pass

#

try pass

#

instead of print and while inside except block

jovial nexus
#

@sturdy panther you talk funny

south current
#
while True:

    # Hoeveel kinderen?
    kinderen = 0
    try:
        while kinderen <= 0:
            kinderen = int(input("Hoeveel kinderen?\n"))
    except ValueError:
        print("Not the right type")
#

try this it worked on my system

topaz thistle
#

good night folks

verbal hemlock
#

@south current yes, i hve already done this. But i needed help with looping. So while its not number it says "please write aa nummer"

#

Hey Alexander

broken moss
#

hllllo

red vessel
red vessel
#

tell me here then

somber heath
#

What does this code achieve?

#

What's the context?

#

This may be less a Python question and more an operating system scheduling system question.

red vessel
#

like i havent created it yet but i want to msg me in discord every 12 hours

somber heath
#

I think you'd be better off talking to someone who does Discord bots. I do not.

red vessel
#

ohkk

somber heath
#

@whole bearWrong room, broman.

whole bear
#

sorry

somber heath
#

But also hey.

whole bear
#

i am dumb

somber heath
#

@whole bearPretty display image.

whole bear
#

Lll

#

@willow lynx dumb

#

๐Ÿ˜‚

willow lynx
somber heath
#

@trim remnant@gloomy vigil๐Ÿ‘‹

gloomy vigil
#

hi

somber heath
#

@whole bearHoy hi.

whole bear
#

^^

somber heath
#

@broken aspen๐Ÿ‘‹

broken aspen
#

hi

#

no one is talking there

somber heath
#

I'm going to get whacked on the head by the bot at this rate.

#

I am capable, but I'm keeping quiet for reasons.

trim remnant
somber heath
#

I do talk, just less where I am at this time.

whole bear
#

hey, I need to go, see yall later

somber heath
#

For waving to people over and over

#

Ears are on, though.

gloomy vigil
somber heath
#

Alas, I don't use Django.

broken aspen
#

no one is replying there ๐Ÿ˜ฆ

somber heath
#

@gloomy vigilYour audio is atrocious and weak.

#

Improved.

woeful salmon
#

nice

gloomy vigil
woeful salmon
#

well when someone is in there t o talk to

#

xD

gloomy vigil
woeful salmon
#

its a trillion

somber heath
#

Details.

#

I am not.

#

I understand many of the problems rely on understanding preceding problems.

#

Before.

#

Things that come before.

#

There's a story?

#

It's not a lot.

#

You're fine.

#

Hajaja ๐Ÿ‘‹

frosty star
#

ayyyyyyyyyyo

#

it went kdsahdjsk

#

its more of a zzzzzrzrzrrzzr

whole bear
#

oh

#

letme see

#

is it fine

frosty star
#

still the same

#

but less severe

#

i spose

whole bear
#

is it bearable

somber heath
#

I do not.

frosty star
#

yea i can hear u

#

no

whole bear
#

i am not speaking

somber heath
#

The mute may have something to do with that, too.

#

Just maybe.

whole bear
#

just check guys is it good

#

which one

woeful salmon
somber heath
#

I can see you guys lighting up.

#

I can't hear you talking. May be on my end.

#

Ah, it says RTC connecting.

#

Restarting client!

#

Yay, now I can hear you.

#

I made the mistake of making an exponentially expansive list.

woeful salmon
somber heath
#

Let's see.

#

Javascript?

woeful salmon
#

yep

somber heath
#

I don't do Javascript.

#

Nor do I take much interest in esolang stuff.

#

Which, while impressive...it's a bit...

#

Self congratulatory.

#

To put it in less colourful terms.

#

Dave.

#

I have nothing to say at the present moment.

#

Maybe bury it beneath the other things.

#

I expect there would be some competitive programming competitions that do esolang.

#

@spring bloom๐Ÿ‘‹

#

Also hello, @sudden venture.

spring bloom
#

hey

somber heath
#

No, but if the focus was eso.

spring bloom
#

Thats why I don't want to learn assembly

#

Okay, not that complicated, but still

somber heath
#

Like, you have 10 minutes to write eso code of your choosing. Your opponent will them have 30 minutes in which to reverse engineer your code into plain. Round two will be the reverse. The team that reverse engineers their opponent's code correctly the fastest, wins.

#

Maybe it's not practical.

#

I don't know.

#

Okay, but I'm thinking like in person ones.

#

Proctored.

#

@whole bear๐Ÿ‘‹

#

Hoy hi

#

Ears are on.@gentle flint

#

You haven't missed a whole heap.

frosty star
#

@gentle flint i tested it the yeast is definitely dead

#

what r u guys talking abt

somber heath
#

Have you heard of these things called newlines?

gentle flint
sturdy panther
#

Not sure wha tyou mean. Backwards slash n.

somber heath
#

There's something to be said for breaking up clauses into separate variables.

#

Descriptively named variables.

sturdy panther
#

Oh hey, a tuple key. Neat.

#

Speaking of types, seeing type hint in that code made me happy.

#

Wow!

#

Amazing!

#

Where do I apply?!

#

๐Ÿ˜ข

gentle flint
frosty star
#

wow

#

did u use baking soda

#

a what and a kitchen paper

gentle flint
#

brasso

frosty star
#

whats that

#

oh its a brand

gentle flint
#

yes

frosty star
#

it's not really popular i guess

#

i haven;t really seen it

#

but it's on shopee and it's sold locally

#

as in shipped from kuala lumpur but I really hadnt seen it on the shelves

gentle flint
#

ah

frosty star
#

but. it just so happens that I've been looking for sth like this for my pans :^D

#

I guess i'll order it

#

boni

#

it's fine... i'll probably do like a once a year cleaning kind of thing

somber heath
#

Much

frosty star
#

stainless steel

somber heath
#

"Are your pants made of copper, then?"

frosty star
#

oh

#

well my pans need their spa day

#

the point is

#

aesthetic

#

i just want them to look shiny

#

they don't?

#

I actually just had mine for a couple of months so I don't really know how stainless steel behaves

#

haha

gentle flint
frosty star
#

never been brassoed huh

#

ok i supposed i won't need brasso then

#

i just thought It would be fun

#

hah

gentle flint
frosty star
#

byee

somber heath
#

It's Farcebook. The less we all have to do with it, the better.

#

I accidentally made a rabbit.

frosty star
#

yo yo

somber heath
#

Yeah, that's always the thing. Python gets an upgrade, a flood of people come here "Why doesn't so-and-so library work with Python 3.x???"

#

Theoretically, upgrading Python versions ought not break things.

#

But it does.

#

There's something to be said for being patient.

#

At least it's not petitioning to undo the version.

#

...

#

Actually, that gives me an idea.

#

"Dear PSF. Match cases are stupid and don't belong in Python. Yours, Disgruntled."

#

I half kid.

#

I'm sure they're fine.

#

What framework?

#

You've got a few options. People like PyQt5.

#

There's tkinter.

#

There's pygame.

#

There's Kivy.

#

But it does to have comparisons.

#

I think Beeware's another mobile one, alongside Kivy.

scenic wind
#
import sys
from PySide2.QtWidgets import QApplication, QLabel

app = QApplication(sys.argv)
#label = QLabel("Hello World!")
label = QLabel("<font color=red size=40>Hello World!</font>")
label.show()
app.exec_()
somber heath
#

Flask or Django could give you a web-based UI.

#

A lot of things are going web, these days.

#

tkinter has the advantage of being standard library

#

I know.

#

It's...ordinary looking.

#

Ah, yes. Retro.

somber heath
#

Perhaps a more polite term.

gloomy vigil
#

use pyside6

scenic wind
scenic wind
somber heath
#

If you know EXACTLY what you want and how it's all supposed to behave...

frosty star
#

it went shshshshshsh

gloomy vigil
#

from PySide6 import QtWidgets, QtCore, QtGui


class Main(QtWidgets.QMainWindow):
    def __init__(self):
        super(Main, self).__init__()

if __name__ == "__main__":
    app = QtWidgets.QApplication([])

    app.setApplicationName("test")
    window = Main()

    app.exec()
sturdy panther
#

Need window.show() before exec, I think.

gloomy vigil
#

yea

woeful salmon
somber heath
#

super lets you call a parent's method, here __init__, as if it were the current, child class', ordinarily complicated by having a def __init__ in the child class.

sturdy panther
#

FYI, latest PySide6 is breaking Pylint.

somber heath
#

Beg pardon?

#

Yes.

woeful salmon
stuck sky
#

can any1 help me deploy my django application on a vps hosting

#

pilij

#

@scenic wind lemon_angrysad

scenic wind
scenic wind
gloomy vigil
rugged root
sweet lodge
#

๐Ÿ‘‹

frosty star
#

haaaaaaaaaaaaaaaaaay

somber heath
#

No, Opal. Your computer doesn't like to think about several rather large arrays at once.

#

But who was phone?

#

Size hinted?

#

Position hinted?

#

Layouts with the above.

uncut meteor
scenic wind
#

Traceback (most recent call last):
File "C:\Users\legga\PycharmProjects\TombolaGui\main.py", line 11, in <module>
PySide6.QtWidgets.QWidget.setFixedSize(1920, 1080)
TypeError: descriptor 'setFixedSize' for 'PySide6.QtWidgets.QWidget' objects doesn't apply to a 'int' object

somber heath
#

Red snow. That's...evocative.

scenic wind
#
import PySide6
from PySide6 import QtWidgets, QtCore, QtGui

class Main(QtWidgets.QMainWindow):
    def __init__(self):
        super(Main, self).__init__()


if __name__ == "__main__":
    app = QtWidgets.QApplication([])
    PySide6.QtWidgets.QWidget.setFixedSize(1920, 1080)

    app.setApplicationName("test")
    window = Main()

    window.show()
    app.exec()
somber heath
#

@rugged root Speaking of sick... ???

rugged root
#

I'm good, Joi is still feeling like crap

stuck sky
#

uuf

scenic wind
somber heath
#

So you can do "If the person makes this move, make this move"?

rugged root
#

Yep

#

Since you get to a point where there aren't a lot of possible moves, or possible good moves

woeful salmon
#

but apparently you can just tell it move like this when its my turn

scenic wind
sweet lodge
#

Re: Thursday

Printer tech will be here within the hour.
Vendor has not given us local admin to install the printer driver on their computers

Vendor wants us to get the printer "completely set up" before they share any more information about the system itself.
The other system of theirs that we have requires a special integration for the printer
I'm afraid that the tech is just going to plug in the printer and leave, and then the vendor's going to share the rest of the project requirements, including some other special printer integration, and ask us why we didn't set this up when we said we completed all printer setup

scenic wind
sturdy panther
#

test_QtWidgets.py Fatal Python error: Segmentation fault
Debugging segfaults are always kinda painiful :S

somber heath
#

The thing is, I don't understand why updating Python would cause problems. I know it does, so...you know, whatever...

sturdy panther
#

You know a Python version has been out for a while if it is in Debian!

somber heath
#

I'm still on 3.8 for distro repo reasons.

#

ehe format?

gentle flint
gentle flint
#

not that old

somber heath
#

Mint's.

#

I'm content.

#

I'm not chomping at the bit for the new stuff.

frozen jetty
#

@scenic wind
Did it

somber heath
#

Programmers and chess.

frozen jetty
#

its one of my errors running my program.
I changed it from py to exe using auto-py-to-exe

somber heath
#

Take three.

#

@rugged root What were you trying to say?

#

Ah.

rugged root
#

!stream 128363483828977664

wise cargoBOT
#

โœ… @woeful salmon can now stream until <t:1639580691:f>.

somber heath
#

"I'm not saying you were one of the reasons..."

gloomy vigil
sturdy panther
#

Oh. Is it that time of the day to bring up Vim already?

somber heath
#

Bytes even on dialup are negligible.

#

If it's just a handfull.

sturdy panther
#

Hemlock is slowly getting Vimpressed. It is only a matter of time now!

scenic wind
#
class Main(QtWidgets.QMainWindow):
sinful igloo
#

Wassup poeple

#

How you doing

sturdy panther
#

What was the question? Opening two windows?

sinful igloo
#

Merry Christmas

somber heath
#

We haven't made it, yet.

sinful igloo
#

Wait

#

Let me get my ear phones iPod i can talk

gentle flint
#

this colleague has a suspicious amount of permissions

sturdy panther
#

Is it... you?

gloomy vigil
#
class Settings(QtWidgets.QWidget):
    ...


class Main(QtWidgets.QWidget):
  def __init__(...):
    ...
    self.settings_window = Settings()
    self.setCentralWidget(self.settings_window)
rugged root
#

!stream 589497499174043800

wise cargoBOT
#

โœ… @scenic wind can now stream until <t:1639581606:f>.

gentle flint
somber heath
#

I was surprised it could animate things.

gentle flint
#

my colleague

somber heath
#

Like full on movements and everything.

gentle flint
#

this is me @sturdy panther

sinful igloo
#

What is the project

#

Noodle

fresh pulsar
#

this is Python??

#

the language...being coded in? no right?

sturdy panther
somber heath
fresh pulsar
#

thanks

somber heath
#

Word origami.

#

"Our servers have been tornado-free for _3_ days."

#

Crucifix?

#

"Might we interest you in Python-based alternatives for your business?"

#

The one thing about the SOAP protocol...it's clean.

rugged root
#

@scenic wind @woeful salmon Can you two hop off stream for a bit? I've got to attend to some things here at work

#

And I'd rather not have folks streaming when there isn't a mod around (enforcing current policy)

#

Actually I have to go now, so sorry in advance

scenic wind
#

oh its ok

#

sorry i didnt see your message

rugged root
#

All good

woeful salmon
#

no flex or grid

#

with flex or grid

rugged root
#

That'll tell you what you need to know about our voice gate system

#

.wa s 10 c to f

somber heath
#

Eval's up.

woeful salmon
gentle flint
#

@rugged root feeling better today?

gloomy vigil
rugged root
#

Yeah, I'm doing fine. Wife is still feeling less than great, though

gentle flint
#

glad you're better, and hope she gets well soon

mild agate
#

Hey!

#

wassup

#

Ima fine

#

nice

#

just studying

mild agate
#

๐Ÿ˜…

wind raptor
#

@rugged root

fairy dust mop
emotionally charged battery
nervous energy drink
paper trail mix
buffalo bill of rights
mild agate
#

LOlz

rugged root
#
Wiki basket๐Ÿ› 
One-ended rope
Nicotine eye patch
Loading bar
Murphy's lawbook
Thin blue lime
โ€œWeapons R Usโ€ gift card
Spark of genius
Remorse code
Old piece of equipment
Stale pizza
Folder N666
Flip side
Intravenous flytrap
Braille โ€œDo Not Touch!โ€ sign
Jaw droppings
Lava lampshade
Quest-a-day calendar
Magic hate ball
Gift horse mouthwash
Emotional support
mild agate
#

Bwhahaa

rugged root
#
Weapon: Blade of infinite dullness
Shield: Loading screen
Head: Double eye patch
Body: Armor geddon
Arms: Bad mood ring
Legs: Breeches of etiquette
Talisman: Holy crap
somber heath
rugged root
gloomy vigil
#

@woeful salmon

woeful salmon
whole bear
#

thxx

rugged root
#

No worries! Sorry we couldn't be of more help

whole bear
#

i hope i will find the solution

gloomy vigil
#

json.dumps(data, indent=2).encode('utf-8')

whole bear
#

thatโ€™s for me?

gloomy vigil
#

just discussing among ourselves

whole bear
#

๐Ÿคฃ ok

gloomy vigil
#
>>> dat = {"Name" : "Tim", "test": 3}
>>> dat = json.dumps(dat, indent=2).encode('utf-8')
>>> dat
b'{\n  "Name": "Tim",\n  "test": 3\n}'
>>> json.loads(dat)
{'Name': 'Tim', 'test': 3}
>>> 

kinda works i guess

terse needle
#
+------------------------------+------------------------------------+
|       Intel Code             |      AT&T Code                     |
+------------------------------+------------------------------------+
| mov     eax,1                |  movl    $1,%eax                   |   
| mov     ebx,0ffh             |  movl    $0xff,%ebx                |   
| int     80h                  |  int     $0x80                     |   
| mov     ebx, eax             |  movl    %eax, %ebx                |
| mov     eax,[ecx]            |  movl    (%ecx),%eax               |
| mov     eax,[ebx+3]          |  movl    3(%ebx),%eax              | 
| mov     eax,[ebx+20h]        |  movl    0x20(%ebx),%eax           |
| add     eax,[ebx+ecx*2h]     |  addl    (%ebx,%ecx,0x2),%eax      |
| lea     eax,[ebx+ecx]        |  leal    (%ebx,%ecx),%eax          |
| sub     eax,[ebx+ecx*4h-20h] |  subl    -0x20(%ebx,%ecx,0x4),%eax |
+------------------------------+------------------------------------+
swift valley
#

yeah nah I'll stay far, far away from ASM

#

also Hem it's me lol

#

I wrote a type checker

#

a toy language in OCaml, just to study the fundamentals

#

frankly I don't think I should be touching these as a freshman but hey, I have two courses right now so I have too much free time

#

yeah, one's practically free and another is just physical education

#

OCaml is quite nice

#

Much much simpler, also crazy fast

#

I think Reason/ReScript maintains compatibility with OCaml syntax

#

The former two produces more idiomatic JavaScript code so about as performant as something like Elm; the JS compiler for OCaml js_of_ocaml is based on bytecode so there's some overhead in there.

#

Stolen graph, but the fact that JS is faster than OCaml bytecode is woah

rugged root
#

Wait is it?

#

What's ocamlopt

swift valley
#

ocamlopt is native, ocamlc is bytecode

gloomy vigil
#

like this @woeful salmon

rugged root
#

Gooootcha

#

Wait, I could swear there was native reason

#

Jesus the fib one

woeful salmon
rugged root
#

Oh huh, yeah it does seem to have dune and esy for native Reason compilation

#

Granted I don't know what those two are

swift valley
#

Both are build tools, but yeah Reason can be compiled to native, it's really just OCaml with extra syntax

#

yikes, a tweet blew up

#

Now I have ten more folks to subject to my feed of Twitter likes

rugged root
gentle flint
mystic bolt
#

I joined the blender server and some do not help me and others do not know
๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ ๐Ÿ˜ซ

haughty idol
swift valley
#

I really want to read Dune but all the shops are sold out on the first book

#

maybe next year

mystic bolt
#

I don't exactly want to make a python script for blender

mystic bolt
haughty idol
mystic bolt
#

have since this server know python language I want to make a plugin for blender with python to import files

haughty idol
#

https://www.youtube.com/watch?v=5wRVyP9zteA

Man, I love this game ๐Ÿ˜† Most hilarious one for sure

All the best Twitch content in one place. Clips of funny, embarrassing, awkward, fails, wins etc from the livestreamer DarkViperAU.
MY LONG VIDEOS: https://www.youtube.com/darkviperau
MY STREAM: https://www.Twitch.tv/darkviperau

Please do not reproduce any of my videos or put them into compilations. Feel free to use them as memes though. Than...

โ–ถ Play video
mystic bolt
rugged root
mystic bolt
#

On this server?

swift valley
#

Is AWS borked

vivid palm
#

is msft365 also affected?

rugged root
#

You know I'm not sure

swift valley
#

I'll be right back

gentle flint
#

me every evening

trail mural
#

@woeful salmon hi

#

@rugged root hi

rugged root
woeful salmon
trail mural
#

I can't find replit dark mode pls help my eyes hurt

woeful salmon
sturdy panther
#

?naem uoy od tahW

woeful salmon
rugged root