#voice-chat-text-0
1 messages · Page 308 of 1
@somber heath Hello
@whole bear 👋
!e
import numpy as np
initial_mps = np.zeros((1, 2, 1), dtype=np.complex128)
print(initial_mps)
@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[[0.+0.j]
002 | [0.+0.j]]]
hello can you help me with my homework using python?
@wind raptor which subjects you have this semester?
!e py print('Possibly.')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
Possibly.
okay so i am doing civil engineering i need to make a code for a structure with nodes and bars
and i use matrix
[3 4 5]
!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)
[4 6 7]
@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[[1.+0.j]
002 | [0.+0.j]]]
I'm on my summer break now. But my next semester will have a development project, entrepreneuship, enterprise application development, API engineering and cloud computing, software security, and data warehousing and predictive analytics.
I'm jelly now.
Gettin realll jelly HEHEHEHE.
nice, i have cloud computing this sem
tommorow is my pratical exam of it
?
It'll be a fun semester
Your exam
yes in sem 6 sub (ethical hacking, data science , cc , cyber law, information iretrieval)
yes just i not like that law
!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)
Yeah, but it's probably handy
@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]])]
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
this is matlab
yep , cc is quite easy one
x and y is for coordinates, ux is for movement along x axis, uy along y axis and O is rotation
also have a finial year project submission
@wind raptor had you made any project yet
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
Nothing too crazy. Some web pages using react, Android apps, Java Swing and Win Form GUIs. The big dev projects are all in my next year.
also this class that im studying is called finite elements method
nice,Java Swing?
Win forms but for Java instead of C#
big dev projects like what?
Seems like you are in the same boat haha
What's your issue?
lol
i want to make matrices code with python but i need someone who also has knowledge in civil engineering
I can show you how to use numpy, but you need to explain your problem properly.
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.
.joke
What is Benoit B. Mandelbrot's middle name? Benoit B. Mandelbrot.
do u get it?
This is basically a list of coordinate pairs and their elasticity weight. You would have a list [point1, point2, elasticity] to represent the data structure.
okk
"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.
I'm trying to find the list in the repos. It is not in sir lancebot repo
i just sent the first one
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
!code
It's literally asking to modify existing programs from prior sessions.
Also, it's too long of a code, please paste it in paste bin.
!paste
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.
I feel you're not understanding.
👋
how so
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.
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.
It's fine, it just makes it hard to read the messages.
nothing quite like having to figure out how to get ms teams working on debian in order to have a call with a recruiter
@winter coyote 👋
lol
kawaii
half british girl here
cock knee
does that mean im half tough
What's the other half?
complicated
my grandfather fought nazis
Is complicated tough?
wouldn't know, im hearing tough as a descriptor of race for the first time
fax
Yes, it is a bit of a slightly smelly concept.
what is this guy yapping about
Man's about to say Peaky Blinders were good guys because they murdered for a reason.
cock knees
i feel bad that people are called cock knees
i got an offer from a uni called sus sex
kawaii girl uwu is getting bummed
Native Englishman
finger in back
@whole bear Are you Irish?
It's kinda pathetic when the only qualofocation is that "i wuz born ere"
did you live there during said history?
India bout to get English'd part 2
He's gonna say smthg racist now
colonization in "Voice Chat 0"
India is this true?
how does this help your point cock knee
The Times of India
The Times in India
What is the time in India?
that is mental to say
britain is part of india because rishi sunak is the prime minister
I think that makes England part of India
You call them british. We call them famine makers
@wind raptor sup
Lmao
,,
I don't understand why I have to send 50 messages to get voice verify
it's too much
you're the first discord account from 2015 I see in 7 years on discord x)
not hacked
I’ve been hacked before, there’s just nothing of value on my discord lol
i did get an account tied to my bank hacked once tho - i got charged 2700$ in the time i took a nap
rip
ok
@wraith crypt 👋
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
https://www.behance.net/galleries/ui-ux?tracking_source=nav20
This one is great too if you are looking for ideas
Thks mate 💯
I saw the relevant documentation thank you
haven't been around enough I suppose I'm a fresh noob
wanted to ask where you guys learnt to do python originally
Corey Schafer
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?
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
Wow, these are so beautiful. Can I download those as wallpapers?
I'd have added an ugly imposing watermark if I minded people using them in that way.
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.

thanks, Opal!
@mild igloo 👋
@somber heath 👋
do you know how to adjust widgets to window size in custom tkinter, i want fix this:
Wow! Could you share the code (or procedure)?
I'm happy to describe it.
@whole orchid 👋
Answer please
or say you don't know
are you talking to me? I only hear a random position and something in English
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
can you help me?
I don't really do tkinter proficiently.
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?
ok
The HP Pavilion Laptop works hard and plays even harder. Breeze through daily tasks with a powerful Intel® Processor[1]. Compute on the go with a compact design and long-lasting battery life. Enjoy epic entertainment with Audio by B&O and a flicker-free[2], micro-edge screen. Made with the planet...
I'm buying this laptop guy's
Tell me if it's good
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
@calm bloom 👋
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
👋
@final laurel If you're talking, I can't hear you.
The Dark Crystal.
never heard of that
you should try c++ its too good
that means no lol
no way you said rust
no comment
oof
brb
@late fog 👋
Hi @somber heath
►►Get CD/DOWNLOAD/STREAM: https://byurecords.lnk.to/MusicVideoHitsVol1ID?utm_source=youtube_description_lf&utm_medium=cpm&utm_campaign=vp_nearer-my-god_mvhits1&utm_content=51 ►Free SHEET MUSIC download (TTBB & SATB): https://www.byumusicstore.com/nearer-my-god-to-thee-arr-by-james-l-stevens-ttbb-a-cappella-pdf-sheet-music/?utm_source=youtube_de...
Piotr Illitch Tchaikovsky (25/04/1840 - 25/10/1893)
Orchestra : The USSR Ministry Of Culture Chamber Choir
Conductor : Valery Polyansky
Album : V/A - Sacred Treasures - Choral Masterworks From Russia
Label : Hearts Of Space - 1998
Provided to YouTube by WM Finland
Sylvian joululaulu · Jarkko Ahola
Ave Maria - Joulun klassikot
℗ 2012 Warner Music Finland
Arranger: Janne Huttunen
Composer: Karl Collan
Lyricist: Martti Korpilahti
Arranger: Pessi Levanto
Lyricist: Sakari Topelius
Auto-generated by YouTube.
[Credits, References, and More]
https://www.lemmi.no/p/the-unbreakable-kryptos-code
Become a channel member or join my Patreon with the links below. Both offer the same perks. YouTube members also get unique badges that highlight their comments and gain access to custom emojis.
YouTube Membership: https://www.youtube.com/channel/UCRcgy6GzDeccI...
Hi
I am Indian too
Good bro what about you
i think she is also indian
im good
Ok tell about you
Yeah I think so what the topic is about
Tamilnadu
woah
You
yo yo
wassup man
@covert comet 👋
what are these guys talking about
@ancient herald 👋
where are you from?
Australia.
What
i had a chocolate version of this at a party yesterday
sup man
yeah you said
was it good
Bro.. u making me Hungry 😦
version?
surprisingly yes
in the netherlands this get s eaten for special days
git tag "chocolate" -a
I just ate briyani
lol
Guys u do Bignner class for New Python programers ?
what?
no
but check out the resources page which lists several
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
you mean tutorials?
tuna
oh okay thanks bro !
Yes
you can find some on YT
barramundi I think
Physics class?
Time to Eat.. Huhahaha
never trust technology
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...
"feast of the ascension".. sounds like a video game
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.
...or submarines...
@quaint jungle 👋
@bold widget @livid oxide 👋
hello buddy
hey
whats the discussion being going on
wait u here?
what do yo mean i am here??
i mean u friend of sagar
can one eat them?
@random ridge 👋
i love döner kebabs.
same
r u from turkey?
@bronze stump 👋
oh i live in Karlsruhe
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
@somber heath I made a thing
yes its crazy, back in the days it was 2.50 euro
why not make your own doners
its hard to get shaved meat
true
take a knife.. slice ..
bruh its just different xD
it's the same action the meat vendor is doing
I hate Electron because of the underlying V8 engine's DevTool being shit
Scholz wird auf die aktuellen Dönerpreise angesprochen!
use Tauri
i mean they add layers of meat with some stuff and then its rolled
people are requesting olaf scholz for reducing the price of doeners xD
yeah back to 4 euros xD
you can do that yourself too
ya maybe
r u a rust person?
shawarmaaaa
Firefox
@dusk raven this is what I meant with postwar architecture in Rotterdam
i see
<@&831776746206265384> @heady shoal has joined and left about 40 times in the past minute
could you please address this
<@&831776746206265384> Modmail, and @heady shoal rapidly connecting and disconnecting VC0
!voicemute 724916739741057064 spamming chat, muting.
:incoming_envelope: :ok_hand: applied voice mute to @heady shoal permanently.
Cant speak
Yeah having less than 50 messages
Hi how you doing
Im doing great
Where are you from?
Great 👍
ohhk
@jaunty ridge 👋
@wind raptor how do you make a smoothie? as in do you add anything extra as a personal touch?
some vanilla extract and a pinch of salt
.
i'll need vanilla beans to make the extract and online search tells me they are expensive
@lone horizon 👋
@somber heath Sup
@warm night 👋
yeah vanilla beans seem like very very expensive...
i wonder if i can grow some
🎩
🍰☂️
hiya!
@carmine cosmos 👋
aw man i have to wait for opencv2 to compile until i can test my project.
with my custom tkinter
I got u
ok
Nah
text?
Yeah bro what’s the question
so iam trying to do a calculator
why do you need a custom tk to make a calculator?
but there is something happening
Okay what is happening
did you bind it?
oh
is there a mouse down event specifically?
no
Can you show when you make your button and also the function the button press is bound to
i didnt bind buttons
Okay show code when you create the button object
then how do the buttons do stuff?
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
what is the add_to_calculation function?
calculation = ""
def add_to_calculation(symbol):
global calculation
calculation += str(symbol)
textbox.delete(1,"end")
textbox.insert(1,calculation)
Why are you using CTkButton instead of tk.button or whatever
wha
i dont have much experience
If you don’t have much experience you should use the simplest version of a tkinter button
cant you just explicitly set the textbox to a value
Don’t use globals
ok
U don’t need that
i feel ignored 😔
so ithink the problem has something related to the .delete and .insert funcs
Answer Spelis question @carmine cosmos
ok
so the "textbox" is a variable to the CTkEntry()
did i answer it correctly
?
Should I really not do it?
I think what spelis said is you don’t have to use insert and delete you can just set the textbox variable
textentry.configure(textvariable=calculation) @carmine cosmos
https://github.com/TomSchimansky/CustomTkinter/wiki/CTkEntry#methods
heres the wiki page
ok thanks 🙂
does it work panther?
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
@whole bear I'm guessing you said grad school, but I heard drag school.
@whole bear ?
Guys tell me
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 ?
Winter, chill
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
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
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?
You are not muted
Then why no one is listening to me?
Are you looking to add something to the existing conversation?
No I wanna add something else
Is it important to do that?
Yeah... there is a topic already being discussed
you can't just hijack a conversation whenever you are present
So if the conversation never ends I won't be able to start what I wanna talk ever?
I'll leave instead
On the flip side, would you be okay with someone else interrupting your X important topic if people are discussing it?
@upper basin Dishwalking and dogwashing.
I would, just the hours is the issue.
People always interrupt when I talk
I would happily do it if it covers the costs and gives me like 5 or 6 hours to study and sleep.
As opposed to dishwashing and dog walking.
@upper basin You are right that you can apply for citizenship after spending 3/5 years in Canada
Oh nice, glad I remembered sth right.
@steady grail @safe solstice @slender sierra 👋
just talk we listening
hey!
hey
No one's asking me to talk, cuz if i would just start to talk no one would like that either
Just be patient and listen to these wonderful people or come back later if you cannot do that.
@amber raptor
Can you quite for a while
It's my turn now
Rabbit
I'm losing my patience
@upper basin these seem to only require First aid and cpr certf. https://www.workopolis.com/search?q=elderly+care&l=canada
So, the one I saw needed cardiac sth sth certificate and some other certificates?
like not nursing but a person who spends time, helps with eating and walking, assisntance thing
I'll try to find it again.
I'd be fine with that.
yeah, cos we have those too. not needed to be a nurse for those
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.
.
@upper basin I can help you look at them at some point if u want to
I'll try to find it again, thank you so much Millie!
Sup
hi Hemlock
sup CJ
Who?
Hey friend 🙂
It's this one if I recall correctly.
@near niche Cough drop?
@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
Subject matter expert job?
@near niche "Hccchunan."
Hii
what's your background like, which field are you from?
Have you studied Mathematics, you must have done maybe probability and stats etc.
Yup
yeah so if you are desperate for a job, you rather choose teaching positions where you can use your knowledge of these subjects and the job would be stable too
subject matter experts are the people who work in a particular department of a particular subject in an institution
Milly Anne.
Oh
Oh
Milién
This is what happens with conversations in a large group like this. Don't take it personally
everyone! Discord will revamp user profile again soon!
make it look more cooler or fancier if u will
I used to watch this movie all the time
hallo
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...
"Hello 911, I just witnessed a murder. They were quite menacing. I feel a murder coming my way."
@fierce lagoon 👋
Provided to YouTube by Universal Music Group
Cheek To Cheek · Tony Bennett · Lady Gaga
Cheek To Cheek
℗ 2014 Columbia Records, a division of Sony Music Entertainment /Interscope Records, a division of UMG Recordings, Inc.
Released on: 2014-09-19
Producer: Dae Bennett
Composer Lyricist: Irving Berlin
Auto-generated by YouTube.
requiem for a dream
ASS TO ASS EXTENDED: https://vimeo.com/741909550 ((because YT staff thought it was porn)
ASS TO ASS LOOP: https://youtube.com/watch?v=dS2QwKRhnds
@peak depot
He's making this #voice-chat-text-0 message
@oblique ridge You would not be able to hide a fart in that room
the unnamed plus clipboard is so buggy compared to the * X11 clipboard
Heston creates the ultimate Christmas feast including tasty edible snow!
Subscribe to 4Food for more: https://bit.ly/30W3g38
Watch the FULL SERIES on All 4: https://bit.ly/2RkaMUf
#Christmas #HestonsFeasts #Channel4 #4Food
i gave my neighbor a stick of butter recently
i calculate my monthly rations and purchase accordingly so i don't have that much stuff lying around to give away
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu
@peak nacelle
do you know , neuro-sama , AI bot @upper basin
Bear metal.
This is an AI Image Generator. It creates an image from scratch from a text description.
"A grizzly bear playing heavy metal music with a band on a concert stage with pyrotechnics."
!stream 514088128315785216
✅ @silk dust can now stream until <t:1715272715:f>.
Cloud servers starting at € 3.79. A little money gets you lots of cloud. Our flexible billing model and clever interface make it easy to use our cloud servers for all your IT needs.
I just love that Keeper gives you a personal account along with your business or enterprise license https://docs.keeper.io/en/v/user-guides/enterprise-end-user-setup-sso#create-a-personal-vault-via-business-or-enterprise-account
So handy
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{
...
}
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
Dang @still herald I just saw all this my bad
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
i want to make a language not c++ there fore i was asking.
But what do you think which is best
I mean I'm biased and like my last one
@sleek summit https://www.twilio.com/docs
Reference documentation for all Twilio products. Code snippets, tutorials, and sample apps for common use cases and communications solutions.
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
ENERGY STAR makes it easy for consumers and businesses to save money and protect the environment.
!ytdl
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)
Kraftwerk was right , we are the robots...
Now that's a reference I haven't heard in a long time.
No? Looking it up
I only found them a few years ago by accident , Japans version of Kraftwerk , been around a long time
Interesting, I think I heard once before but will queue up for late night coding
also Depeche Mode remixes good
Ever listen to Alan Parsons project?
coffee and techno music are a good combo, but I'd say it's even better when LOUD
only way I can focus
!e
from pathlib import Path
print(Path.home())
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
home
!e
from pathlib import Path
folder = Path.home() / "Downloads" / "data" / "other stuff"
print(folder)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
home/Downloads/data/other stuff
!e ```py
from pathlib import Path
folder = Path.cwd() / "test" / "123" / "wow.py"
print(folder)
@alpine crow :white_check_mark: Your 3.12 eval job has completed with return code 0.
/home/test/123/wow.py
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
!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))
@alpine crow :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | True
002 | False
003 | True
004 | False
a specific ai tool that i like is so stupid that it thinks "metal" ends with "sh"
!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)))
hey hemlock
@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'}
!timeit
def add_2(num):
return num + 2
numbers = list(range(10000))
incremented = list(map(add_2, numbers))
@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
!timeit
def add_2(num):
return num + 2
numbers = list(range(10000))
incremented = tuple(map(add_2, numbers))
@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
!timeit
numbers = list(range(10000))
incremented = [i + 2 for i in numbers]
@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
@obsidian tundra Yo
hello
!timeit
incremented = [i + 2 for i in range(10_000)]
@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
Just futzing around with timeit, and now back to futzing around with Rust
HA, that's awesome
That's fair
hehe
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
You can get help, just not speak
gotcha, well, gonna go and wait for someone
I mean what's your question or what do you need help with?
i posted to #1035199133436354600 and no one replied yet, but it's 2 issues regarding Django
image ain't loading on my Homepage and when i send POST i get a full JSON page showing me the total
Ah, gotcha. Yeah unfortunately I'm not super solid on Django
Your reliable AI software engineer
what are headers showing in the response?
either the error or total sum
thanks
need to be granted access to it
i like this :)
is the path to the image correct? check in dev testing first
oh, the image
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
u can put the image anywhere lol
could leave it in ur downloads if u include the path
it's with HTML templates
idk there is not too much info
the current path is <img src="cafe_banner.jpg" alt="Cafe Banner">
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
i put it in main and it still doesn't display
yeah, i should
maybe try ./cafe_banner.jpg
idk if python does relative path lookups or absolute
normally i put images in the assets dir
I thought hes just using html lol
I c tho
they, and yeah, i'm on django
HTML actually shows the image
did absolute path work tho
nope
just shows alt
<img src="D:\WebsiteForCafe\Cafe\main\cafe_banner.jpg" alt="Cafe Banner">
here's the absolute path
wtf
unless i somehow wrote it wrong
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
called it
aight makes sense
what if u click that link
I mean if that doesnt open something is wrong w the path
it's not a link
ok, from browser it opens the image
lemme try
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
same
img tag not displaying when the source opens an image
once its in ur browser django shouldnt matter
for this
11.22.63
The rifle alone – without the scope – was priced at $12.78.
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.
as a musician, this tool isn't gonna replace us anytime soon
it's fun for shits and giggles
but i've tried making punk rock in it
CHARD ED15 ACOUSTIC CUTAWAY E
it melts on the slightest mention of Anti-authoritarianism
iphone is only like 10 years old 👀 and we were on flip phones b4 that
technology advances fast
ukulele
[Credits, References, and More]
https://www.lemmi.no/p/cicada-3301
Become a channel member or join my Patreon with the links below. Both offer the same perks. YouTube members also get unique badges that highlight their comments and gain access to custom emojis.
YouTube Membership: https://www.youtube.com/channel/UCRcgy6GzDeccI7dkbbBna3Q/join
P...
The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
`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`
@dry jasper
chinese govt when u mention taiwan
solved the image issue
Niiiice
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...
I wasn't specifically saying for the nukes part
The carpet bomb was more what I was reacting to
FLORIDA MAN GOES INTERNATIONAL: https://www.cnn.com/2024/05/09/europe/missing-woman-henao-spain-husband-arrest-cec/index.html
- 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.
I checked need to be like 3 days old
import random
input('Rock, paper or scissors? >')
result = random.choice(['win', 'lose', 'draw'])
print(f'You {result}.')```
@ancient herald 👋
Online market place for buying and selling out of home ad space. Post your ads for free.
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
@chrome bluff 👋
no speak perms :(
@lusty ermine 👋
Universities in the US had the same riots last week
except they were beaten and arrested 😭
@sly spire 👋
@lusty ermine https://en.m.wikipedia.org/wiki/The_Fallen_Angel_(painting) Your display picture reminds me of this painting.
@fringe wasp 👋
Subscribe my channel https://s.yam.com/ycnZp
Games Physics, NPC AI, Logics, Graphics, Details, Bugs, Glitches, Facts, Weapon, Comparisons and Showcase.
hi 😄
ciao bella
pizza language
🇮🇹
@charred terrace 👋
@ember jewel 👋
Hey! I was wondering if I could get some explanation on this basic python code im new
!code
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
👋
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)
@solid sky 👋
#folkmusic #music #irish #tinwhistle #irishmusic #pennywhistle
Here is a tune I wrote a few years ago after a trip to Tahiti with the Irish music and dance show Celtic Legends. The tune is called Island Hopping.
Check out my album Spanish Point on Spotify for more music!
Instagram :
https://www.instagram.com/kevinmeehanwhistle?igsh=eDZyY2Nu...
@astral pine 👋
Rust From The Storm was inspired by the famous shipwreck on Inis Oirr.
Featuring Tom Keenan on guitar, Robbie Walsh on bodhrán and Trevor Hutchinson on double bass.
Recorded and mixed by Alex Borwick.
Video filmed by Brian O'Keefe.
Instagram - https://www.instagram.com/kevinmeehanwhistle/?hl=en
Tik Tok - https://www.tiktok.com/@kevinmeehan...
3:35
Hi Opal
First choral performance with reconstructed aulos of reconstructed ancient scores of Athenaeus Paean (127 BC) and Euripides Orestes chorus (408 BC), with the evidence presented and explained by Professor Armand D'Angour, Jesus College Oxford.
Callum Armstrong aulos solo here: https://www.youtube.com/watch?v=6JFa8BZt2B0
Some of the research ba...
@upbeat timber 👋
I see u somewhere
I am often around.
Why only you 2 can speak
Ooh
Now disconnect from voice then reconnect.
@pulsar shale👋
Hi
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
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
Wait you got told that here in the server?
yeah, it's fine tho
It's not, that's something we actively try to keep from happening.
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
it's on #web-development if you want to look into it
Looking at it now

