#voice-chat-text-0

1 messages · Page 308 of 1

cerulean ridge
#

just have to use sep, the extra space from print messed things up

somber heath
#

@valid stone 👋

#

@obtuse wasp 👋

willow gate
#

@somber heath Hello

somber heath
#

@whole bear 👋

upper basin
#

!e

import numpy as np

initial_mps = np.zeros((1, 2, 1), dtype=np.complex128)

print(initial_mps)
wise cargoBOT
#

@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | [[[0.+0.j]
002 |   [0.+0.j]]]
whole bear
willow gate
#

@wind raptor which subjects you have this semester?

somber heath
wise cargoBOT
#

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

Possibly.
whole bear
#

and i use matrix

#

[3 4 5]

upper basin
#

!e

import numpy as np

# Initialize the initial MPS
initial_mps = np.zeros((1, 2, 1), dtype=np.complex128)

# Set the first element to 1
initial_mps[0, 0, 0] = 1.0

print(initial_mps)
whole bear
#

[4 6 7]

wise cargoBOT
#

@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | [[[1.+0.j]
002 |   [0.+0.j]]]
wind raptor
upper basin
#

Gettin realll jelly HEHEHEHE.

willow gate
#

tommorow is my pratical exam of it

wind raptor
#

Nice

#

You got this

willow gate
wind raptor
#

It'll be a fun semester

wind raptor
willow gate
willow gate
wind raptor
#

Oh nice!

#

Those sound fun

willow gate
upper basin
#

!e

import numpy as np

num_sites = 3

# Initialize the site tensor
site_tensor = np.zeros((1, 2, 1), dtype=np.complex128)

# Set the first element to 1
site_tensor[0, 0, 0] = 1.0

# Initialize the zero MPS using the default site tensors defined above
zero_mps = [site_tensor for _ in range(num_sites)]

# Set the first and last elements
zero_mps[0] = site_tensor.reshape((1, 2))
zero_mps[-1] = site_tensor.reshape((2, 1))

print(zero_mps)
wind raptor
#

Yeah, but it's probably handy

wise cargoBOT
#

@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | [array([[1.+0.j, 0.+0.j]]), array([[[1.+0.j],
002 |         [0.+0.j]]]), array([[1.+0.j],
003 |        [0.+0.j]])]
whole bear
#

function nodes = create_nodes
nodes(1).x=0;
nodes(1).y=0;
nodes(1).Ux=0;
nodes(1).Uy=0;
nodes(1).O=NaN;
nodes(2).x=3;
nodes(2).y=0;
nodes(2).Ux=NaN;
nodes(2).Uy=0;
nodes(2).O=NaN;
nodes(3).x=6;
nodes(3).y=0;
nodes(3).Ux=NaN;
nodes(3).Uy=0;
nodes(3).O=NaN;
nodes(4).x=1.5;
nodes(4).y=(3sqrt(3))/2;
nodes(4).Ux=NaN;
nodes(4).Uy=NaN;
nodes(4).O=NaN;
nodes(5).x=4.5;
nodes(5).y=(3
sqrt(3))/2;
nodes(5).Ux=NaN;
nodes(5).Uy=NaN;
nodes(5).O=NaN;
nodes(6).x=3;
nodes(6).y=3*sqrt(3);
nodes(6).Ux=NaN;
nodes(6).Uy=NaN;
nodes(6).O=NaN;
end

#

this is matlab

willow gate
whole bear
#

x and y is for coordinates, ux is for movement along x axis, uy along y axis and O is rotation

willow gate
#

@wind raptor had you made any project yet

whole bear
#

yes

#

thats just the beginning

#

because in order to make the matrix you need to introduce the nodes first and length

#

and the area surface of each element

wind raptor
whole bear
#

also this class that im studying is called finite elements method

wind raptor
#

Win forms but for Java instead of C#

willow gate
#

big dev projects like what?

whole bear
#

ok no problem

#

okay no problem

wind raptor
willow gate
whole bear
upper basin
whole bear
#

okay

#

one sec

#

"Here is the structure illustrated in the attached diagram, where the length of all bars is 3m, the cross-section of each bar is 0.3x0.3 m^2, and the modulus of elasticity of each bar is 100 MPa.

Based on the programs developed in the previous practical sessions:
1- Modify the programs create_nodes and create_elements to match the described structure (respecting the numbering).
2- Provide the force vector corresponding to the given loading case.
3- Write an m-file - that reuses the previous programs - to compute nodal displacements and support reactions."

To achieve this, you would first need to define the structure in terms of nodes and elements, then apply the appropriate loading conditions, and finally solve for the nodal displacements and support reactions using the finite element method or another suitable numerical method.

stark river
#

.joke

viscid lagoonBOT
#

What is Benoit B. Mandelbrot's middle name? Benoit B. Mandelbrot.

whole bear
upper basin
whole bear
#

okk

upper basin
#

"Based on the programs developed in the previous practical sessions:"
FYI we don't know what the older programs are, which is apparently important to your homework.

stark river
#

I'm trying to find the list in the repos. It is not in sir lancebot repo

whole bear
#

the older programs start from introducing the nodes and elements to the length

#

function nodes = create_nodes
nodes(1).x=0;
nodes(1).y=0;
nodes(1).Ux=0;
nodes(1).Uy=0;
nodes(1).O=NaN;
nodes(2).x=3;
nodes(2).y=0;
nodes(2).Ux=NaN;
nodes(2).Uy=0;
nodes(2).O=NaN;
nodes(3).x=6;
nodes(3).y=0;
nodes(3).Ux=NaN;
nodes(3).Uy=0;
nodes(3).O=NaN;
nodes(4).x=1.5;
nodes(4).y=(3sqrt(3))/2;
nodes(4).Ux=NaN;
nodes(4).Uy=NaN;
nodes(4).O=NaN;
nodes(5).x=4.5;
nodes(5).y=(3sqrt(3))/2;
nodes(5).Ux=NaN;
nodes(5).Uy=NaN;
nodes(5).O=NaN;
nodes(6).x=3;
nodes(6).y=3*sqrt(3);
nodes(6).Ux=NaN;
nodes(6).Uy=NaN;
nodes(6).O=NaN;
end

willow light
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

upper basin
#

Also, it's too long of a code, please paste it in paste bin.

#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

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

whole bear
#

yes yes this one that i sent is modified

#

i modified it

upper basin
#

I feel you're not understanding.

eager tapir
#

👋

whole bear
upper basin
#

Allow me to re-iterate in case I wasn't clear, my apologies if that's the case.

Put your entire code in the paste bin, and send the link. Explain briefly what your question/issue is. This seems like homework, which we cannot do for you.

#

Do not spam your code here please, just send the paste bin link.

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

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

whole bear
#

okk

#

i am sorry for spamming it

upper basin
#

It's fine, it just makes it hard to read the messages.

willow light
#

nothing quite like having to figure out how to get ms teams working on debian in order to have a call with a recruiter

somber heath
#

@winter coyote 👋

winter coyote
#

hello

#

who said british women are tough

whole bear
#

lol

somber heath
winter coyote
#

half british girl here

eager tapir
#

cock knee

winter coyote
#

does that mean im half tough

somber heath
winter coyote
eager tapir
#

my grandfather fought nazis

somber heath
winter coyote
eager tapir
#

fax

somber heath
winter coyote
#

what is this guy yapping about

upper basin
#

Man's about to say Peaky Blinders were good guys because they murdered for a reason.

eager tapir
winter coyote
#

i feel bad that people are called cock knees

#

i got an offer from a uni called sus sex

eager tapir
#

@whole bear have you ever witnessed a shanking?

#

do people say "jog on" there often?

winter coyote
#

kawaii girl uwu is getting bummed

eager tapir
#

Native Englishman

winter coyote
#

finger in back

eager tapir
#

@whole bear Are you Irish?

winter coyote
#

destroyed

eager tapir
#

All me life*

#

All me loif

stark river
#

It's kinda pathetic when the only qualofocation is that "i wuz born ere"

winter coyote
#

did you live there during said history?

eager tapir
#

India bout to get English'd part 2

stark river
#

He's gonna say smthg racist now

winter coyote
#

colonization in "Voice Chat 0"

eager tapir
#

India is this true?

winter coyote
#

how does this help your point cock knee

eager tapir
#

The Times of India

winter coyote
#

The Times in India

eager tapir
#

What is the time in India?

winter coyote
#

that is mental to say

#

britain is part of india because rishi sunak is the prime minister

eager tapir
#

I think that makes England part of India

winter coyote
#

agree

#

is oxford in india?

#

the western views might be indian idk

stark river
#

You call them british. We call them famine makers

left leaf
#

@wind raptor sup

whole bear
#

Lmao

misty monolith
#

,,

#

I don't understand why I have to send 50 messages to get voice verify

#

it's too much

pine depot
#

@misty monolith it’s the rules

misty monolith
#

not hacked

pine depot
#

I’ve been hacked before, there’s just nothing of value on my discord lol

misty monolith
#

ah lmao

#

gg

#

you're lucky

pine depot
#

i did get an account tied to my bank hacked once tho - i got charged 2700$ in the time i took a nap

misty monolith
#

rip

whole bear
#
magic tree
#

ok

somber heath
#

@wraith crypt 👋

wind raptor
#

@wraith crypt We are chatting in here. I don't check my DMs from voice chat

#

!voice

wise cargoBOT
#
Voice verification

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

wind raptor
wind raptor
somber heath
#

@whole bear 👋

whole bear
#

haven't been around enough I suppose I'm a fresh noob

#

wanted to ask where you guys learnt to do python originally

somber heath
#

Corey Schafer

whole bear
#

I suppose I haven't addressed my lack of fundamental computer science knowledge

#

Corey Schafer?

#

I am not a programmer or come from that background, I'm a bookkeeper who is hoping to do a diploma in cloud infrastructure, which includes python in the modules

#

Thank you for the advice

#

So what are you guys personally interested in with regards to python? is it apart of your professional life?

#

So it is mathart?

#

or something else?

somber heath
whole bear
#

The first one reminds me of a watercolour

#

The red blue looking one

#

cloudy

#

Are you Australian?

#

I'm from Queensland

#

hehe

#

I think thongs is better than jandals

#

japanese sandals

#

our neighbours from nen zeed

#

Well anyways I better do some study thank you for the help dude have a good arvo

#

Its rainy here today

#

dark and cold lol

#

for qld that is haha

fast sparrow
somber heath
#

Though I occasionally get people asking me if they can use them as NFTs or if I make NFTs.

#

I tell those people to bugger off.

fast sparrow
somber heath
#

@mild igloo 👋

mild igloo
#

@somber heath 👋

eager tapir
somber heath
eager tapir
#

Yes

somber heath
#

@whole orchid 👋

mild igloo
#

or say you don't know

#

are you talking to me? I only hear a random position and something in English

eager tapir
#

So I fill the grid with random colors first? I missed how we obtain the colors to average after landing on a rando point

#

Or do we fill it after

somber heath
somber heath
#

I don't really do tkinter proficiently.

eager tapir
#

But if I start with a colorless canvas first, how do I get the average of the surrounding colors if there were no colors yet?

eager tapir
#

Interesting

#

Do you usually pick a palette of colors beforhand?

still herald
still herald
#

Tell me if it's good

eager tapir
#

I've never seen anybody do these illustations before, have you seen it somewhere before? How did you come up with it?

#

damn\

#

Sure looks like it

#

A little bit of randomness is always good

#

What was the procedure with this one?

#

yes

somber heath
#

@calm bloom 👋

eager tapir
#

HMMMMMMMMMMMMMMM

#

yes i can imagine

#

I definitely missed a few parts in explanation near the end, but for the most part I think I have an idea of how to start.

#

I'll try and see what happens

#

lol

#

Yep

#

Is there a formal name for this kind of art generation?

#

Yeah makes sense

#

Very nice...

#

lol

#

wow

#

Levy C?

#

There are only a limited fractals you can form, right?

#

Yes

#

Do you have a mathematical background?

#

Oh

#

Yeah

#

I love math

#

But failed it

#

few times

#

Well alright

#

I gotta go, im gonna try to do the procedural images later today

#

Ill see what rubbish i come up with

#

thanks

#

and thanks for the explannation

#

👋

somber heath
#

@final laurel If you're talking, I can't hear you.

final laurel
#

im eating atm

#

not sure what you are talking about watching

somber heath
#

The Dark Crystal.

final laurel
#

never heard of that

#

you should try c++ its too good

#

that means no lol

#

no way you said rust

#

no comment

#

oof

#

brb

somber heath
#

@late fog 👋

late fog
#

Hi @somber heath

somber heath
peak depot
dry jasper
gentle flint
left leaf
still herald
left leaf
#

@still herald

#

what ?

somber heath
#

@ionic hill 👋

#

@arctic dome 👋

ionic hill
arctic dome
#

hello!

#

indians

ionic hill
arctic dome
#

me too

#

hello

#

how are you

#

@still herald

ionic hill
#

Good bro what about you

arctic dome
#

i think she is also indian

arctic dome
ionic hill
#

Ok tell about you

ionic hill
arctic dome
#

i dont get it

#

where are you from brother

ionic hill
arctic dome
#

woah

ionic hill
#

You

arctic dome
#

jharkhand

#

@stark river

#

i think he is also indian

stark river
#

yo yo

arctic dome
#

wassup man

somber heath
#

@covert comet 👋

arctic dome
#

what are these guys talking about

somber heath
#

@ancient herald 👋

arctic dome
somber heath
arctic dome
#

hey

#

hello

still herald
#

What

arctic dome
#

hey

#

didi

#

sup

gentle flint
left leaf
ancient herald
stark river
arctic dome
#

sup man

gentle flint
#

was it good

ancient herald
arctic dome
#

version?

stark river
dry jasper
gentle flint
ionic hill
#

I just ate briyani

arctic dome
ancient herald
#

Guys u do Bignner class for New Python programers ?

gentle flint
#

!resources

wise cargoBOT
#
Resources

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

arctic dome
left leaf
arctic dome
#

tuna

left leaf
ancient herald
ionic hill
ancient herald
arctic dome
#

you can find some on YT

ancient herald
# left leaf

Hmmm not attrative i can't kiss that fish or eat it... yert

gentle flint
arctic dome
#

Physics class?

ionic hill
#

In search of gold we lost diamond

arctic dome
#

are those carrots

#

lol

somber heath
ancient herald
#

Time to Eat.. Huhahaha

dry jasper
#

The Feast of the Ascension of Jesus Christ (also called the Solemnity of the Ascension of Jesus Christ, Ascension Day, Ascension Thursday, or sometimes Holy Thursday) commemorates the Christian belief of the bodily Ascension of Jesus into Heaven. It is one of the ecumenical (shared by multiple denominations) feasts of Christian churches, rankin...

stark river
#

"feast of the ascension".. sounds like a video game

somber heath
# stark river never trust technology

I just like to take opportunities to remind programmers that fuckups in programming can be every bit as deadly as fuckups of other engineering projects, like bridges and sosuch.

left leaf
somber heath
#

...or submarines...

left leaf
somber heath
#

@icy crown 👋

#

@vocal geyser 👋

dry jasper
arctic dome
#

why are guys sharing food item's images

#

my mouth is watering

somber heath
#

@quaint jungle 👋

gentle flint
somber heath
#

@bold widget @livid oxide 👋

livid oxide
livid oxide
#

whats the discussion being going on

livid oxide
dry jasper
bold widget
bold widget
somber heath
livid oxide
livid oxide
somber heath
#

@random ridge 👋

livid oxide
dry jasper
livid oxide
dry jasper
#

no

#

germany

#

the origin of the döner kebab

#

xD

somber heath
#

@bronze stump 👋

livid oxide
#

Döner price increased the lot in the last years : ( in 2022 i bought em for 4,5 Euros now i get döners for 8Euros

verbal wind
#

@somber heath I made a thing

dry jasper
verbal wind
#

It's mine

stark river
#

why not make your own doners

livid oxide
stark river
#

take a knife.. slice ..

livid oxide
#

bruh its just different xD

stark river
#

it's the same action the meat vendor is doing

verbal wind
#

I hate Electron because of the underlying V8 engine's DevTool being shit

livid oxide
livid oxide
dry jasper
stark river
livid oxide
twin pond
verbal wind
gentle flint
#

@dusk raven this is what I meant with postwar architecture in Rotterdam

dusk raven
#

i see

gentle flint
#

<@&831776746206265384> @heady shoal has joined and left about 40 times in the past minute

#

could you please address this

verbal wind
#

<@&831776746206265384> Modmail, and @heady shoal rapidly connecting and disconnecting VC0

peak siren
#

!voicemute 724916739741057064 spamming chat, muting.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @heady shoal permanently.

verbal wind
#

thank you

thorn gale
#

Cant speak

wind raptor
thorn gale
#

Yeah having less than 50 messages

#

Hi how you doing

#

Im doing great

#

Where are you from?

#

Great 👍

bold widget
somber heath
#

@jaunty ridge 👋

stark river
#

@wind raptor how do you make a smoothie? as in do you add anything extra as a personal touch?

wind raptor
gentle flint
stark river
somber heath
#

@lone horizon 👋

lone horizon
#

@somber heath Sup

somber heath
#

@warm night 👋

stark river
#

yeah vanilla beans seem like very very expensive...
i wonder if i can grow some

gentle flint
somber heath
#

🎩
🍰☂️

gentle flint
scarlet halo
#

hiya!

somber heath
#

@carmine cosmos 👋

carmine cosmos
#

hi

#

i needhelp

scarlet halo
#

aw man i have to wait for opencv2 to compile until i can test my project.

carmine cosmos
#

with my custom tkinter

whole bear
#

I got u

carmine cosmos
#

ok

scarlet halo
carmine cosmos
#

i will dm you

#

@whole bear

whole bear
#

What’s your tk

#

Post it here

#

Maybe other people can help too

carmine cosmos
#

ok

#

i will send as a file

whole bear
#

Nah

carmine cosmos
#

text?

whole bear
#

Yeah bro what’s the question

carmine cosmos
#

so iam trying to do a calculator

scarlet halo
#

why do you need a custom tk to make a calculator?

carmine cosmos
#

but there is something happening

whole bear
#

Okay what is happening

carmine cosmos
#

so when i press a button

#

it enters 2 numbers instead of 1

scarlet halo
#

oh

#

is there a mouse down event specifically?

carmine cosmos
#

no

whole bear
#

Can you show when you make your button and also the function the button press is bound to

carmine cosmos
#

i didnt bind buttons

whole bear
#

Okay show code when you create the button object

scarlet halo
#

then how do the buttons do stuff?

carmine cosmos
#

ok

#

btn1 = CTkButton(tk,text="1"
,corner_radius=32
,width=5
,command=lambda:add_to_calculation(1)
,hover_color="#00FFFF"
,fg_color="black"
,font=("Arial",48))
btn1.grid(row=1,column=1,sticky=W+E)

#

so the command is a func i created

scarlet halo
#

what is the add_to_calculation function?

carmine cosmos
#

calculation = ""

def add_to_calculation(symbol):
global calculation
calculation += str(symbol)
textbox.delete(1,"end")
textbox.insert(1,calculation)

whole bear
#

Why are you using CTkButton instead of tk.button or whatever

scarlet halo
#

wha

carmine cosmos
#

i dont have much experience

gentle flint
whole bear
#

If you don’t have much experience you should use the simplest version of a tkinter button

scarlet halo
whole bear
#

Don’t use globals

carmine cosmos
#

ok

whole bear
#

U don’t need that

scarlet halo
#

i feel ignored 😔

carmine cosmos
#

so ithink the problem has something related to the .delete and .insert funcs

whole bear
carmine cosmos
#

ok

#

so the "textbox" is a variable to the CTkEntry()

#

did i answer it correctly

#

?

still herald
whole bear
#

I think what spelis said is you don’t have to use insert and delete you can just set the textbox variable

scarlet halo
#

textentry.configure(textvariable=calculation) @carmine cosmos

carmine cosmos
#

ah ok

#

i will try and then return:)

scarlet halo
carmine cosmos
#

ok thanks 🙂

scarlet halo
#

does it work panther?

carmine cosmos
#

no

#

;

#

(

#

but i have realised that it is related with th index

#

the*

#

textbox.delete(1,"end")
textbox.insert(1,calculation)

#

the first parameters inthe funcs are supposed to be the first index

somber heath
#

@whole bear I'm guessing you said grad school, but I heard drag school.

carmine cosmos
#

@whole bear ?

still herald
#

There's too much socializing

#

I can talk alot but i can't have a constant happy mood

#

No one's gonna talk with me ?

rugged root
#

Winter, chill

still herald
#

Hmm

#

God

#

I don't think I'll get to talk today

#

That's fine

#

I'm gonna sit quiet

#

Today

#

🙂

#

I'm here too

#

Hi guys

scarlet halo
#

help what does this even mean 😭

g++ main.cpp -o main -Wall `pkg-config --libs --cflags opencv`
/usr/bin/ld: /tmp/cc8CY6yH.o: in function `getTotalFrames(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
main.cpp:(.text+0x52): undefined reference to `avformat_open_input(AVFormatContext**, char const*, AVInputFormat const*, AVDictionary**)'
/usr/bin/ld: main.cpp:(.text+0x133): undefined reference to `avformat_close_input(AVFormatContext**)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:3: all] Error 1
still herald
#

No one's letting me talk

#

Guys I'm here I wanna talk too

#

🙂

#

Am i blocked or something

#

Have you guys muted me?

#

<@&831776746206265384>

#

Am i muted?

wind raptor
#

You are not muted

still herald
#

Then why no one is listening to me?

wind raptor
#

Are you looking to add something to the existing conversation?

still herald
#

No I wanna add something else

still herald
wind raptor
#

Yeah... there is a topic already being discussed

still herald
#

Ugh

#

So I have to wait

wind raptor
#

you can't just hijack a conversation whenever you are present

still herald
#

So if the conversation never ends I won't be able to start what I wanna talk ever?

#

I'll leave instead

ivory stump
somber heath
#

@upper basin Dishwalking and dogwashing.

upper basin
still herald
upper basin
#

I would happily do it if it covers the costs and gives me like 5 or 6 hours to study and sleep.

somber heath
wind raptor
#

@upper basin You are right that you can apply for citizenship after spending 3/5 years in Canada

still herald
#

I guess I'm not important enough to be heard

#

I get it

upper basin
somber heath
#

@steady grail @safe solstice @slender sierra 👋

safe solstice
still herald
#

No one's asking me to talk, cuz if i would just start to talk no one would like that either

wind raptor
still herald
#

@amber raptor
Can you quite for a while

#

It's my turn now

#

Rabbit

#

I'm losing my patience

peak depot
upper basin
peak depot
#

like not nursing but a person who spends time, helps with eating and walking, assisntance thing

upper basin
#

I'll try to find it again.

peak depot
#

yeah, cos we have those too. not needed to be a nurse for those

still herald
#

I'll just take 2 mins

#

I promise

#

😭

somber heath
#

I understand that getting a word in is sometimes difficult when there's an existing conversation. I find it frustrating, myself.

It's one of those things you have to come to terms with. If you cannot, then you do have my sympathies, but you don't get to demand everyone to stop an existing conversation so you can redirect it. That's not typically a reasonable thing to expect under most circumstances.

still herald
peak depot
#

@upper basin I can help you look at them at some point if u want to

still herald
upper basin
arctic dome
#

Sup

peak depot
#

hi Hemlock

arctic dome
#

sup CJ

rugged root
#

Who?

upper basin
#

It's this one if I recall correctly.

somber heath
#

@near niche Cough drop?

safe solstice
#

@still herald since you are interested in data analytics i think you can apply for subject matter experts job too, they'd appreciate your knowledge much more

still herald
#

Subject matter expert job?

somber heath
#

@near niche "Hccchunan."

whole orchid
safe solstice
still herald
#

I'm an recent engineer graduate

#

Who wants to work in data analysis

safe solstice
safe solstice
#

subject matter experts are the people who work in a particular department of a particular subject in an institution

somber heath
#

Milly Anne.

still herald
#

Oh

peak depot
#

Milién

still herald
#

Forget it, I'll go

#

No one would let me talk

rugged root
#

This is what happens with conversations in a large group like this. Don't take it personally

whole bear
#

everyone! Discord will revamp user profile again soon!

#

make it look more cooler or fancier if u will

peak depot
#

Kitty laptop case

rugged root
wind raptor
vivid palm
#

hallo

rugged root
#

A brumby is a free-roaming feral horse in Australia. Although found in many areas around the country, the best-known brumbies are found in the Australian Alps region. Today, most of them are found in the Northern Territory, with the second largest population in Queensland. A group of brumbies is known as a "mob" or "band".
Brumbies are the desce...

upper basin
#

"Hello 911, I just witnessed a murder. They were quite menacing. I feel a murder coming my way."

somber heath
#

@fierce lagoon 👋

whole bear
somber heath
oblique ridge
somber heath
gentle flint
rugged root
#

@oblique ridge You would not be able to hide a fart in that room

stark river
#

the unnamed plus clipboard is so buggy compared to the * X11 clipboard

peak depot
vivid palm
#

i gave my neighbor a stick of butter recently

stark river
#

i calculate my monthly rations and purchase accordingly so i don't have that much stuff lying around to give away

peak depot
oblique ridge
short owl
#

do you know , neuro-sama , AI bot @upper basin

oblique ridge
somber heath
#

Bear metal.

#

"A grizzly bear playing heavy metal music with a band on a concert stage with pyrotechnics."

ebon mist
gentle flint
oblique ridge
rugged root
#

!stream 514088128315785216

wise cargoBOT
#

✅ @silk dust can now stream until <t:1715272715:f>.

gentle flint
rugged root
#

So handy

oblique ridge
plucky mica
#

i am creating a languages curently i am in the parser stage, i was asking you which is the best way to represent the generic in my language.

I am not in vs there fore plz type.

# different ways to represent Generics

class MyList [T, ..., GT: int, ...] (parent_class) {
    ...
}

class MyList [T, ..., GT: int, ...] <- parent_class {
    ...
}

class MyList (T, ..., GT: int, ...) <- parent_class {
    ...
}

class MyList (T, ..., GT: int, ...) : parent_class {
    ...
}

class MyList [T, ..., GT: int, ...] : parent_class {
    ...
}

def MyList [T, GT: int] (param1, param2, ...) -> output_type{
    ...
}

def MyList ([T, GT: int], param1, param2, ...) -> output_type{
    ...
}
rugged root
#
class MyList(ParentClass) [T, ..., GT: int, ...] {
}

Maybe?

#

And I wouldn't think the class would have the output type listed, that'd be implied to be an object of the class

#

But honestly it's what you'd prefer

whole bear
#

Dang @still herald I just saw all this my bad

rugged root
#

Actually one sec

#
class MyList<T, ..., int>(ParentClass) {}
#

I think the angle brackets are more common for denoting generic types

#

But I also may just be doing too much Rust right now

#

Although I don't typically see generic type definition on class definitions themselves? But my knowledge is a bit limited

plucky mica
#

i want to make a language not c++ there fore i was asking.

#

But what do you think which is best

rugged root
#

I mean I'm biased and like my last one

plucky mica
#

ok

#

is it easy to read.

class MyList (T, ..., GT: int, ...) : parent_class {
    ...
}
rugged root
plucky mica
#

Chat GPT website fucked up.

#

an error occured

rugged root
plucky mica
#

is using : looks good or <- for inheratence

#

fist thing first i do not want to make the c++ by mistakenly.

#

thats why i am taking opinion.

rugged root
earnest crag
#

@rugged root

bold widget
#

can anyone helps me to create a telegram bot /

#

using ytdlp module

rugged root
#

!ytdl

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

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

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

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

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

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

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

Kraftwerk was right , we are the robots...

peak siren
short owl
#

have you heard of , YMO - yellow magic orchestra

#

@peak siren

peak siren
#

No? Looking it up

short owl
#

I only found them a few years ago by accident , Japans version of Kraftwerk , been around a long time

peak siren
#

Interesting, I think I heard once before but will queue up for late night coding

short owl
#

also Depeche Mode remixes good

peak siren
#

Ever listen to Alan Parsons project?

short owl
#

yes , my uncle introduced me to them ...

#

coffee and techno music ...

willow light
#

coffee and techno music are a good combo, but I'd say it's even better when LOUD

#

only way I can focus

alpine crow
#

true but trance maybe

#

idk abt focusing w rave music

rugged root
#

!e

from pathlib import Path

print(Path.home())
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.

home
rugged root
#

!e

from pathlib import Path

folder = Path.home() / "Downloads" / "data" / "other stuff"
print(folder)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.

home/Downloads/data/other stuff
rugged root
alpine crow
#

!e ```py
from pathlib import Path
folder = Path.cwd() / "test" / "123" / "wow.py"
print(folder)

wise cargoBOT
#

@alpine crow :white_check_mark: Your 3.12 eval job has completed with return code 0.

/home/test/123/wow.py
dry jasper
#

def is_prime(num):
if num <= 1:
return False
for i in range(2, int(num**0.5) + 1):
if num % i == 0:
return False

alpine crow
#

!e ```py
import math
def is_prime(n):
if n <= 1:
return False
for i in range(2, int(math.sqrt(n)) + 1):
if n % i == 0:
return False
return True
print(is_prime(23))
print(is_prime(21))
print(is_prime(19))
print(is_prime(15))

wise cargoBOT
#

@alpine crow :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | True
002 | False
003 | True
004 | False
scarlet halo
#

a specific ai tool that i like is so stupid that it thinks "metal" ends with "sh"

alpine crow
#

!e ```py
def generate_user_id(start=23):
count = start
while True:
yield f'user{count}'
count += 1

user_id_generator = generate_user_id()

def create_user(name):
user_id = next(user_id_generator)
new_user = {"name":name, "id":user_id}
return new_user

for i in range(5):
print(create_user("testName" + str(i)))

scarlet halo
#

hey hemlock

wise cargoBOT
#

@alpine crow :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | {'name': 'testName0', 'id': 'user23'}
002 | {'name': 'testName1', 'id': 'user24'}
003 | {'name': 'testName2', 'id': 'user25'}
004 | {'name': 'testName3', 'id': 'user26'}
005 | {'name': 'testName4', 'id': 'user27'}
rugged root
#

!timeit

def add_2(num):
  return num + 2

numbers = list(range(10000))
incremented = list(map(add_2, numbers))
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 timeit job has completed with return code 0.

500 loops, best of 5: 595 usec per loop
rugged root
#

!timeit

def add_2(num):
  return num + 2

numbers = list(range(10000))
incremented = tuple(map(add_2, numbers))
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 timeit job has completed with return code 0.

500 loops, best of 5: 605 usec per loop
rugged root
#

!timeit

numbers = list(range(10000))
incremented = [i + 2 for i in numbers]
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 timeit job has completed with return code 0.

1000 loops, best of 5: 351 usec per loop
rugged root
#

@obsidian tundra Yo

obsidian tundra
#

hello

rugged root
#

!timeit

incremented = [i + 2 for i in range(10_000)]
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 timeit job has completed with return code 0.

500 loops, best of 5: 478 usec per loop
quartz beacon
#

hi

#

sent messages to wrong chat

#

hello hemlock, whatcha up to

#

i can hear you dw

rugged root
#

Just futzing around with timeit, and now back to futzing around with Rust

quartz beacon
#

i have a rabbit named Hemlock

#

he's a cute lil guy

rugged root
#

HA, that's awesome

quartz beacon
#

i could show him on offtop

#

but i don't like posting them on public spaces

rugged root
#

That's fair

quartz beacon
#

hehe

rugged root
quartz beacon
#

nice store

#

so, you can't get VC help until you're 3 days on the server?

#

"fuckin' around with rust"
a quote you hear from Chemists and Programmers

rugged root
quartz beacon
rugged root
#

I mean what's your question or what do you need help with?

quartz beacon
rugged root
#

Ah, gotcha. Yeah unfortunately I'm not super solid on Django

left leaf
stark river
quartz beacon
quartz beacon
quartz beacon
left leaf
#

i don't have too sadly

#

try chatgpt

quartz beacon
#

did, it gave me the current code

#

and doesn't know how to fix the image issue

scarlet halo
#

i like this :)

alpine crow
stark river
quartz beacon
#

thought you meant the other one

#

GPT told me that the image needs to be with other HTML files, but reading about it online reveals i've been lied to by the evil Generative Pretrained Technology

#

where should i house the image relative to my main folder

alpine crow
#

u can put the image anywhere lol

#

could leave it in ur downloads if u include the path

quartz beacon
#

it's with HTML templates

alpine crow
#

idk there is not too much info

quartz beacon
#

the current path is <img src="cafe_banner.jpg" alt="Cafe Banner">

alpine crow
#

yeah

#

is there an image called cafe_banner.jpg

#

in the same folder?

quartz beacon
#

in the same folder as HTML files

#

should it be in main?

alpine crow
#

prolly main if this is a component

#

bc it puts this html into the main pg

#

but u can use an absolute path also and not worry abt it

quartz beacon
#

i put it in main and it still doesn't display

quartz beacon
alpine crow
#

maybe try ./cafe_banner.jpg

stark river
#

idk if python does relative path lookups or absolute

#

normally i put images in the assets dir

alpine crow
#

I c tho

quartz beacon
#

HTML actually shows the image

alpine crow
#

did absolute path work tho

quartz beacon
alpine crow
#

dam n what error r u getting

#

or it just shows alt

quartz beacon
#

just shows alt

#

<img src="D:\WebsiteForCafe\Cafe\main\cafe_banner.jpg" alt="Cafe Banner">

#

here's the absolute path

stark river
#

wtf

quartz beacon
#

unless i somehow wrote it wrong

alpine crow
#

what does ur src look like

#

if u f12

#

is that from it?

#

oh so ig u should put it in ur assets folder

#

I havent used django much but weird its doing that if u use absolute path lol

stark river
#

called it

quartz beacon
#

wait

#

here

#

even with absolute

alpine crow
#

aight makes sense

#

what if u click that link

#

I mean if that doesnt open something is wrong w the path

quartz beacon
#

it's not a link

alpine crow
#

u should be able to paste it into the browser

#

iirc

stark river
quartz beacon
alpine crow
#

u would have to do that

#

or u can just move it to assets

#

and do what u were doing b4

#

bc that must just b the directory it uses when u have a relative path

#

u could prolly makes subfolders too

quartz beacon
#

i made assets folder just right now btw

#

it wasn't there before

alpine crow
#

yeah but that og sc u sent

#

either way nvm

#

its just weird to me

quartz beacon
#

same

alpine crow
#

img tag not displaying when the source opens an image

#

once its in ur browser django shouldnt matter

alpine crow
left leaf
#

11.22.63

quartz beacon
#

oh, my b

left leaf
#

sorry

#

my bad for interrupting

dry jasper
#

The rifle alone – without the scope – was priced at $12.78.

alpine crow
#

Oswald wrote in his diary in January 1961: "I am starting to reconsider my desire about staying. The work is drab, the money I get has nowhere to be spent. No nightclubs or bowling alleys, no places of recreation except the trade union dances. I have had enough.

alpine crow
quartz beacon
#

it's fun for shits and giggles

#

but i've tried making punk rock in it

left leaf
#

CHARD ED15 ACOUSTIC CUTAWAY E

quartz beacon
#

it melts on the slightest mention of Anti-authoritarianism

alpine crow
#

iphone is only like 10 years old 👀 and we were on flip phones b4 that

#

technology advances fast

dry jasper
#

ukulele

alpine crow
left leaf
alpine crow
dry jasper
alpine crow
#

`THAT WASNT ME ON THE TV SHOW

WHICH BRINGS UP A POINT ABOUT ME

I AM NOT AFRAID OF THE GAS CHAMBER

BECAUSE IT WILL SEND ME TO PARADICE ALL THE SOONER

BECAUSE I NOW HAVE ENOUGH SLAVES TO WORK FOR ME

WHERE EVERYONE ELSE HAS NOTHING WHEN THEY REACH PARADICE

SO THEY ARE AFRAID OF DEATH

I AM NOT AFRAID BECAUSE I KNOW THAT MY NEW LIFE IS

LIFE WILL BE AN EASY ONE IN PARADICE DEATH`

left leaf
alpine crow
#

chinese govt when u mention taiwan

quartz beacon
#

solved the image issue

rugged root
#

Niiiice

alpine crow
#

The five-year plans for the development of the national economy of the Union of Soviet Socialist Republics (USSR) (Russian: Пятилетние планы развития народного хозяйства СССР, Pyatiletniye plany razvitiya narodnogo khozyaystva SSSR) consisted of a series of nationwide centralized economic plans in the Soviet Union, beginning in the late 1920s. T...

rugged root
#

I wasn't specifically saying for the nukes part

#

The carpet bomb was more what I was reacting to

quartz beacon
#

hey, regarding Suno

#

i'm a bit late haha

scarlet halo
#

alr i gtg

#

goodnight!

alpine crow
amber raptor
alpine crow
#
  • Utilitarianism relies on predicting the consequences of actions to determine their morality. Critics argue that this approach is inherently uncertain and may lead to moral relativism, as the assessment of consequences can vary depending on individual perspectives and biases.
  • Critics argue that utilitarianism may justify actions that violate individual rights or moral duties if those actions lead to the greatest overall happiness. For example, utilitarianism might justify sacrificing the rights of a minority group if it benefits the majority, which deontologists find unacceptable.
  • Utilitarianism treats individuals as means to an end, focusing solely on maximizing overall utility without sufficient regard for the intrinsic value of each person. Deontologists argue that this instrumentalization of individuals is morally objectionable and fails to respect their inherent worth and dignity.
  • Deontologists emphasize the importance of moral integrity and consistency in ethical decision-making. They argue that utilitarianism may require individuals to act in ways that compromise their moral integrity or violate their deeply held principles in pursuit of the greatest happiness.
  • Deontologists advocate for rule-based ethics, where actions are judged based on adherence to universal moral principles or duties, rather than the specific consequences of each action. They argue that this approach provides a more stable and consistent foundation for ethical decision-making compared to utilitarianism's focus on consequences.
somber heath
#

@digital hound 👋

#

@jovial rapids 👋

jovial rapids
#

I can't speak 😭

#

Im to newb

somber heath
jovial rapids
#

I checked need to be like 3 days old

somber heath
#
import random
input('Rock, paper or scissors? >')
result = random.choice(['win', 'lose', 'draw'])
print(f'You {result}.')```
somber heath
#

@ancient herald 👋

iron gyro
ancient herald
#

Yep !

iron gyro
ancient herald
#

I need to wait 2 days to use my mic lol

#

wish i can talk but sadly i'm Suppressed

somber heath
#

@sharp pine 👋

ancient herald
#

Oooo ! that amazing i'm still Beginner Level in Coading Area. I'll do my best to remember !

#

@somber heath u can start buying some stock if u have spare Money one day it can change your life 🚀

#

idk whats Blockchain lol

#

LMao hahahaha BeerHunter

#

@rapid chasm Boi U need some Sleep

#

I belive u have Drank too much Beer

#

@somber heath then u gotta Wait like 10 years 2035 somthing

#

U saw Ready Player Movie it's amazing

#

It's the Gamers Dream lol

#

I'll come later see ya guys later Have a Fun

#

Take care guys BYE

#

u to @iron gyro

#

LMao

#

Bye ! here it's rainning lol

#

gg

somber heath
#

@chrome bluff 👋

chrome bluff
#

no speak perms :(

somber heath
peak depot
gentle flint
somber heath
#

@lusty ermine 👋

eager tapir
#

Universities in the US had the same riots last week

#

except they were beaten and arrested 😭

stark river
somber heath
#

@sly spire 👋

sly spire
#

hi

#

how are you ?

#

mine ?

#

@somber heath ?

somber heath
sly spire
#

oh

#

sorry my bad

#

😄

#

hello @dry jasper

#

😔

somber heath
#

@fringe wasp 👋

dry jasper
dry jasper
sly spire
#

hi

#

bye 😄

dry jasper
sly spire
#

what

#

what language ?

dry jasper
#

pizza language

sly spire
#

💀

#

😛

#

lol

dry jasper
#

🇮🇹

sly spire
#

OH

#

lmao

somber heath
#

@charred terrace 👋

sly spire
#

bro made my day

#

😛

#

🙂

somber heath
#

@ember jewel 👋

ember jewel
#

Hey! I was wondering if I could get some explanation on this basic python code im new

somber heath
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

ember jewel
#
import random

def hangman():
    words = ['Apple', 'Bannana', 'Grapes', 'Kiwi', 'Watermelon'] 
    chosen_word = random.choice(words)
    guessed_letters = set()
    lives = 6 

    print("Welcome to Hangman!")
    
    while lives > 0:
        # Display current status of the word with guessed letters
        word_to_display = ''.join(letter if letter in guessed_letters else '.' for letter in chosen_word)
        print(f"Word: {word_to_display}")

        if word_to_display == chosen_word:
            print("Congratulations! You guessed the word correctly.")
            break
        
        guess = input("Guess a letter: ").lower()  # Prompt user to guess a letter
        guessed_letters.add(guess)  # Add guessed letter to the set of guessed letters

        if guess not in chosen_word:
            lives -= 1
            print(f"Incorrect guess! Lives left: {lives}")

    if lives == 0:
        print(f"Out of lives! The word was: {chosen_word}")

# Run the hangman game
hangman()
#

Yep I was just confused on word_to_display = ''.join(letter if letter in guessed_letters else '.' for letter in chosen_word)

#

I'm good with all loops related to python I understand the .join function just not how they display . for every letter in the word

#

Yeah I understand that

#

Oh ok yeah just better to hear it from someone else

#

Ok I understand that now

#

Appreciate it!

#

Have a good one

somber heath
#

@upper crane 👋

#

@clear atlas 👋

clear atlas
#

👋

vocal basin
#

discord for some reason decided to use the phone speaker instead of headphones

#

weird

#

discord has an option to choose
and apparently fails to do it

#

(I'm not using bluetooth)

stark river
#

what phone do you have

#

option switch works fine on my phone

somber heath
#

@solid sky 👋

gentle flint
somber heath
#

@astral pine 👋

gentle flint
#

3:35

fervent zinc
gentle flint
somber heath
#

@upbeat timber 👋

upbeat timber
somber heath
upbeat timber
#

Why only you 2 can speak

somber heath
upbeat timber
#

Ooh

somber heath
#

Now disconnect from voice then reconnect.

upbeat timber
#

Right now I m in college bus going home

#

I will rejoin after reaching home

somber heath
#

@pulsar shale👋

pulsar shale
#

Hi

vocal basin
#

I'll be home in ~3 days
(visiting less safe regions of the country during holidays)

#

helping some people film stuff because they don't have any camera that's better than my phone

#

(they're making a promo for their music album)

#

I rarely see clouds like this where I normally live

quartz beacon
#

hiii

#

i'm still dealing with the same stupid issue i caused

#

asked for help here, but instead was told to "go read the tutorial". cool

rugged root
quartz beacon
rugged root
#

It's not, that's something we actively try to keep from happening.

quartz beacon
#

well, i don't really want to get into it because it usually ends with me being scolded, so i don't even report anything but blatant bigotry nowadays

rugged root
#

Looking at it now