#voice-chat-text-0
1 messages ยท Page 257 of 1
just joking
Let's just clear up all the threading vs multiprocessing confusion, shall we? Let's jump in!
Hope you enjoyed the video!
Check out this code here:
https://github.com/ebrian/engineerman/tree/master/036
Join my Discord server to chat with me:
https://discord.gg/k5VcqDP
Check out some code on my GitHub:
https://github.com/ebrian/engineerman
Tw...
oh yeah.lol
that must be where the async fetch and fs read async go
my god.
Wait you're older than me?
Oh derp
Right
See I am getting old, my hearing is already going
You do not
i just turned 18
hello uncle .
๐ ๐
Much cheaper
And yeah, the quality is great
Jesus, ~$8.43
That's insane
Krisp is doing a hell of a job
Oh well....
Fair enough
Do you have a link to the model?
I haaaaaate power bricks that have slightly loose plugs
HA
That would bug the absolute shit out of me
I still think you're handsome
yooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Can't speak out loud since I have a co-worker back here with me
ohhh
shall miss your remarks
That headset light is abysmal
Yeah I was thinking painting
Noooooooooooooooooo
Don't do that
It's a trap
It'll be weird
More having fun with you folks.
@molten pewter Suuuuup
Yeeeeeeeeeeeeaaassss
cant you just take out the light?
HEHEHE
It's like a comic about teenagers where they get a zit and they think it's the most obvious thing
@mild quartz Yoooo
๐
yo i saw you are doing some prep for interviewing or something?
yo yo
Me? Not really
o
Not yet
what is that course you are taking
Yeah. Have to get through some of the early lesson stuff. But they've got "empowerment calls" that talk about how to make good portfolios and acquiring freelance or career jobs. (I'm mainly focusing on freelance)
Good luck!
anxious I get, embarrassed?
hmmm
Well I just feel like I should have been able to figure this crap out already for myself, gotten the freelance work. Embarrassed that I couldn't stick it out in college and get the degree. Embarrassed that I can't properly provide since Joi is sick and have to ask family for help
Just lots of stuff
All just BS depression thinking
This
But it's still there
will reassurance help?
Probably not, although always appreciated. I just need to keep moving forward, as I have been
The fact that I'm even taking these steps is more than I'd been doing
in that case the best approach is to zone out and just do
you're doing good
So much of the early stuff is soooooooo tedious
Make a blog page only using HTML so that we can style it later with CSS in the next module kind of stuff
I'm just being a butt, but it reminds me why I hated homework
It's all webstack stuff, which is fine
Or you get a new grill and suddenly you want to grill everything
"Grilled rice anyone?"
I get you
maybe put a thing on the grill
True, they do have little griddles you can use
or just use like a stove-top grill
Probably should have used cereal as the example
put the stove top grill on the propane grill so that you get grill marks AND flavor
im gonna try this
Let me know it goes
wilco
Something tells me you're just going to get rice krispies
hmmmm maybe? Im thinking of fried rice
@mild quartz In fairness, your pedantry is educational
True, but that usually have oil or butter to fall back on
Guys. Do you know any good reading about block-chain?
The company I applied to seems to be using this technology for some of its own purposes.
But all of the content on youtube is popular. Like... For people.
Not for programmers. It's all centered around cryptocurrency and is with that stupid business style animations.
Without actually explaining anything. :(
I was just taking a poke at a friend
He knows I love him
Not sure on the crypto front
@violet blaze They're talking about uses of Abstract Base Classes
I hate Canon and their printer installers
I shouldn't have to be a local account admin to install the damn thing
Network level admin should be good enough
But nnOOOOoo
HAVE to be local admin
Bite me, installer
I'm good now
lolNotImplemented
Yo, Alex
sup
Hanging in there. You?
Yeah not bad
Errr
types.NotImplementedType?
From the types module.
It's the type of NotImplemented
I've actually never seen __subclasshook__ before. Didn't know that was a thing.
Huh, same
Oh right, so it can return True, False, or NotImplemented, and the last one is basically "dunno".
File with just type annotations, not implementations.
typing.Protocol is pretty cool too ๐
!d typing.Protocol
class typing.Protocol(Generic)```
Base class for protocol classes.
Protocol classes are defined like this:
```py
class Proto(Protocol):
def meth(self) -> int:
...
``` Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing), for example...
Ohhhhh forgot about that one
@narrow salmon So what's new in your neck of the woods? Job hunting?
master's admissions mostly
@mild quartz What do you mean?
Can't really work while I'm here (by here I mean in my country)
?
The something only things tagged with abstract method
Consider in what way
Gooooootcha
Might be something in the __dict__
In our hearts and minds
@sturdy panther Yooooooooooooooooooooooooooooooo
When do you get to escape?
Every time I hear you folks talk about tokens I just think about old arcades
The ones that required you to convert your quarters to tokens
haha I will find out by march or july of this year
Yep yep
There's so many things scattered across the standard lib
It's crazy
I'm just happy I knew to check the __dict__
alright. Gonna head off. Have a good one everybody!
Later!
It's really efficient in Python at least
Oh that's slick, I didn't see that it was a frozen set
Wait, what are we doing with those?
Sure
But why are we needing to hunt those down
The Python should complain if you don't implement it
@mild quartz It's not being lazy, it's LEARNING
Got a meeting, I'll be back shortly
"I have stopped entire apocalypses"
"Attack ships on fire off the shoulder of Orion"
"I have killed more men than you will meet in your lifetime. We are not alike."
HEHEHE
I imagine anime weebs should have some interesting dreams
I only dream if I wake up and go back to sleep ๐ค
Hi.
I have 8 years of experience in AI and ML and also data science.
If you have question for me, please dm me.
ok
Your dms are closed
I wanna know what the difference between precision and recall
!e py for letter in 'abc': print(letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py for i in range(len('abc')): print(i)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
!e py i = -1 for letter in 'abc': i += 1 print(i, letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0 a
002 | 1 b
003 | 2 c
!e py for iletter in enumerate('abc'): print(iletter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | (0, 'a')
002 | (1, 'b')
003 | (2, 'c')
!e py for i, letter in enumerate('abc'): print(i, letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0 a
002 | 1 b
003 | 2 c
!e py for i, letter in enumerate('abc', start=100): print(i, letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 100 a
002 | 101 b
003 | 102 c
!e py abc = 'abc' for i in range(len(abc)): print(i, abc[i])
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0 a
002 | 1 b
003 | 2 c
@quick robin ๐
Hello @somber heath
!pep8
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:
.bm
@acoustic grove, please enable your DMs to receive the bookmark.
Name conventions.
A while loop is a "compound statement", so don't forget its colon.
@burnt jetty ๐
๐
Why kissy face emoji?
It's the culture of the Japanese Internet. Never mind.
@reef schooner ๐
how to verify
im not really allowed to talk rn...
oh because?
may or may not be in meeting rn
oh i see
ew
well honestly i dont have much to talk about anyway
im like, completely new to coding and such
im not new, but it still feels like it
thats an understandable feeling
i wish i took coding classes while i was still in school or something
im still in school
high school
yes
@whole bear ๐
Hi, I can't talk.
I don't have the requirements, but anyway.
How are you guys?
how long time have you been coding?
Dude, I just started
I like this discipline.
I haven't been coding.
I've been focussing on mathematics.
Will you start?
Interesting, are you a student?
yeah
yes
i have started
@copper flame ๐
๐
@ruby sand ๐
A songification of that most holiest of Python Enhancement Proposals, the PEP 8.
Based on an idea by Daniel "Mr. Hemlock" Brown.
Written and performed by Leon Sandรธy, A.K.A. lemonsaurus.
Music and melody from Mad World by Roland Orzabal. This version was inspired by the version released by Gary Jules.
๐ Website: https://pythondiscord.com/ โ
๐ฌ ...
PEP8 " Tabs or Spaces?
Spaces are the preferred indentation method.
Tabs should be used solely to remain consistent with code that is already indented with tabs.
Python disallows mixing tabs and spaces for indentation."
what spaces are preferred smh
"camelCase is not for Python"
Except when writing to an API endpoint or existing codebase that uses it, etc.
But otherwise, yes, please don't.
good to know
Natural Language Processing (NLP)
hi
can you help me with fastapi?
i am using email, username, password for auth in fastapi but HTTPBasicCredentials doesn't show me email on it, how can i add email to it? should i subclass the HTTPBasic() and add email or just use username and password?
bhai tere name me kya likha hai
@charred abyss ๐
:incoming_envelope: :ok_hand: applied timeout to @charred abyss until <t:1707572924:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
its in punjabi
pav bhaji
no
why?
because you cannot type ligma
is that a joke?
Is anyone an developer?
nah
not sure what answer you were expecting to that question
did they just leave lol
Morbius vs Mobius.
Love it
Hie
Hey @plush flax ๐
hi
how are you?
Great, how about yourself?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
i havent sent less than 50 messages:(
@fallen heron you have apple vision pro?
i go, bye
Have a good one ๐
Using the latest build of Windows 10 and Docker for Windows 19.03.13, I cannot specify image versions in my images using WSL2 and Ubuntu 18. If I have the line FROM centos:7 in my Dockerfile, I get and error message saying failed to solve with frontend dockerfile.v0: failed to build LLB: failed to load cache key: rpc error: code = Unknown d...
Hey @frozen owl
it works on browser eg google meet
also
my video perm was gone
mr hemlock gave me vid perm before on christmas
now its gone 
yeah
but i didnt stream at all
ohhhhhh
may i have the "trial perm" pls
i can stream myself coding up a cache system for alphazero
!stream 717749310518722691
โ @whole bear can now stream until <t:1707581612:f>.
mindful may i have the perm please? it's not on my profile
Do you accept help with the puzzles?
And he sacrifices THE QUEEENNNN
Pawn takes and promotes it's checkmate
you have a pin
I'm sorry a fork*
nice
Something like h4 to remove the pawn might win the knight later on
Doing well, thank you for asking!
pin it
nooo
Kc2 was alright, there you lose the biship
take w the rook
A lot of partners would respect the mile you're going to be protected; It sends a message that you're careful, thinking of everything
I have to run, thanks everyone of the company! I wish you all a good dayy!
@wind raptor i can hear you
Dev may I proceed?
stubgen
Strict pyright, strict mypy, ruff with `select = ["ALL"]
@upper basin
Oh wow it really does stay hopping on the weekend
This pleases the Hemlock
Not getting on call, just had to take care of something on my laptop and decided to see who all was here
YouTube Link for the server: https://www.youtube.com/@PythonDiscord
I think this is their dedicated YT channel or maybe there are others, I am not sure...
Hopefully if I am wrong, <@&267628507062992896> can correct me.
Yep, that's ours
Icewind Dale is a role-playing video game developed by Black Isle Studios and originally published by Interplay Entertainment for Windows in 2000 and by MacPlay for the Macintosh in 2002 (both the Classic Mac OS and OS X). The game takes place in the Dungeons & Dragons Forgotten Realms campaign setting and the region of Icewind Dale, and uses th...
What are you doing here on weekends?
@muted hinge Can I get stream perms?
sorry, a little busy, will be back in a few
@ivory stump Help
!stream 717749310518722691
โ @whole bear can now stream until <t:1707592908:f>.
I hate my wireless adapter so much
@muted hinge can i stream rdr2 for 15min?
โ @peak depot can now stream until <t:1707593325:f>.
Not today, heh :)
Uh lily
let's be careful
Yo
.coinflip
@muted hinge flipped tails.
.coinflip
@normal trout flipped heads.
.coinflip
@whole bear flipped heads.
Rich help
yes?
im more rich
richer
Stream perms
!stream 717749310518722691
โ @whole bear can now stream until <t:1707594212:f>.
yeah Im more rich which means richer
I'm coding while I sit in and moderate the VC ๐ป
what do you code
Lily, pleasure meetings your kind acquaintance! Guys, I will be hopping off. Thank you for your company everyone.
Farewell!
I have nothing yet, but I think I'm going to write my own quick and dirty python install/environment manager
JK JK
I saw that ๐
๐
.wiki black noise
Colors of noise
of noise or noise spectrum refers to the power spectrum of a noise signal (a signal produced by a stochastic process). Different colors of noise have
Black Noise
Black Noise may refer to: Black noise, a type of noise consisting of mostly silence Black Noise (group), a hip-hop crew from Cape Town, South Africa Black
Black Noise for Studying, Sleeping & Relaxation masks low-frequency ambient noise, helping you concentrate to avoid distractions, study for exams, immerse yourself in thought, do homework, meditate, relax, or fall asleep faster.
Black noise can help people with ADHD, misophonia, insomnia, or tinnitus get relief.
This type of noise has an envol...
can i see your dotfiles repo? i wanna see how to setup the python configs for vim/neovim.. i mean how do i get it to detect the interpreter in the virt env
I don't have a .dotfiles repository and I have almost nothing for python in my vimrc
https://paste.pythondiscord.com/P4GQ here's my vimrc anyway
i use conda for ML and virtualenv for web dev
but detecting the correct interpreter in the virtual env requires a bit of tweaking
I have no idea how to do that unfortunately :/
I use syntastic for linting, no idea how it does executable lookup
i only need to look at how to setup the lsp tweaking and debug adapter for python.. no idea how you're coding without an lsp
Hiya
hello :D
fr
wyd
๐
lmao
Im playing fortnite
my device doesn't support ๐ฆ
@normal trout you're on thin ice, be mindful of what you're doing.
We have logs, you know.
oh I forgot lol, sry
zenbook pro duo but uh... no windows
Chris?!
i have a vivobook although for some reason asus's device registration calls it an expertbook
Haha okay
I love ur song
but you know whats better @muted hinge ?
@muted hinge (plz listen to this)
A motivational speech is not what I need right now, but it sounds nice
Do it whenever u need, but just do it
I'm literally coding something right now
Then do it tomorrow in the morning, just listen to it
Can I get streaming privileges?
Hi
This Sudoku solver tutorial uses python and the backtracking algorithm to find a solution to any solvable sudoku board. In this part of the tutorial I explain how backtracking works and how we will use it to accomplish our goal of finding a solution.
Source Code: https://techwithtim.net/tutorials/python-programming/sudoku-solver-backtracking/
...
๐ฌ Mastering Dynamic Programming: An Introduction ๐ฌ
Are you ready to unravel the secrets of dynamic programming? ๐ค Dive into the world of efficient problem-solving with this comprehensive introduction to dynamic programming. Whether you're a budding programmer or an algorithm aficionado, this video is your gateway to understanding the magic behi...
i have a question
i started learning python, a few weeks ago
i think i have learned the basics
what's the next step
i mean I learned the basic concepts like variables, lists , if statement , while and for loops and ect
i can make simple games
but then what
what should i learn next
Just build something
and maybe codewars
give me some ideas
wtf scared the shit out of me
Do this thing right here.
me?
it will be challenging
but I'll try to build that
thank you
Yeah
not that bad
it's just in python
i probs am doing something alr much harder
im have made a successful alphazero implementation but now im trying to push on performance and innovate on RL techniques
but to no avail (as of now)
i am in the process of implementing a caching system
You're a pro
Alpha zero is AI tho
it's just a project by google deepmind and it is famous due to a massive publicity stunt from their predecessor AlphaGo Lee
Oh
sure
Teach me
Let's goo you got it
What programming language is this?
@frozen owl
rust
Heard about it
ah this stupid thing in school
!e py print((lambda: (a := 123))()) print(a)
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | 123
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 2, in <module>
004 | print(a)
005 | ^
006 | NameError: name 'a' is not defined
!e py a = [123] print((lambda: a[0] := 456)()) print(a[0])
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | print((lambda: a[0] := 456)())
003 | ^^^^^^^^^^^^
004 | SyntaxError: cannot use assignment expressions with lambda
!e py import random random.seed(16362319) letters = 'abcdr' result = ''.join(random.choices(letters, k=11)) print(result)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
abracadabra
@loud orbit ๐
hi
Create a cloud of burning flour. This is an experiment about chemical reactions and fire. Instructions and more experiments are found here: https://www.experimentarchive.com/experiments/dust-explosion/
fire
@somber heath Hi
yes
hello
sorry cant talk
but i can hear
@somber heath
coffee!!!!!
its about what 11pm where you're at
waiting for mr hemlock?
ohhhj sunday
thats right
mindful come in on the weekend?
Now im on a keyboard
well the court date is getting closer, its up to the judge...
i figured if they would have want me in prison id be on my way
@somber heath
anyhow was you week?
oh pizza
my heartach of choice
heartattack
thanks
@karmic obsidian i think that would happen only for literal strings
i dont think that happens at runtime though
that would be too slow
or maybe not if you use a hashmap
hmm
if hashing is faster than allocating memory then its a optimization
!e py a = 'abc' b = 'abc' print(a is b)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e py print('abc' is 'abc')
yep
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | /home/main.py:1: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
002 | print('abc' is 'abc')
003 | True
are these examples?
!e
a = "a"
b = "b"
c = a + b
d = a + b
print(c is d)
@whole bear :white_check_mark: Your 3.12 eval job has completed with return code 0.
False
but just doing += on a string im sure the interpreter is smart enough to reuse the allocation
and that happen's at O(1)
you mean the interpreter is programmed with that in mind
i dont think its O(1)
should be atleast O(n)
how are things down under @somber heath
i mean the land not your pants
im waiting for my lady friend to get to stirring
you mean the concat?
yep
hey thanks for sharing this m8

You are not wrong @somber heath
oh thats a funny meme
ah
got one hell of an aim
my toes are freezing dang it
ive been up for nearly 3 hours
its almost 8 so yea 3 hours
my significant other is laying in bed all tranqual and i want to
@somber heath he works for a 3 letter organization
we just don't know which one
remember i have a better idea then most
out of country, speaks english..... cia
and one of them is CIA ?
maybe that's the reason he doesn't want to talk about his employment ๐
@karmic obsidian you think he does? im not arguing this point just confirming that i noticed it
@karmic obsidian just remember its all rumor
yes
@somber heath remembering they day you allowed your personal life revealed, i bask in the joy of this... but remembering you only human after all.
@oak zinc ๐
thanks for you answers @somber heath gtg
all i know is that you work for an organization that brings joy to people at times... you are more important then your realize. but you're human is what people skip over when learning things they shouldn't know.
o
hey if i know too much then i want witness protection @somber heath
oh thats what i know, not what most assume
oh thats funny and nice loop
@vague fulcrum ๐
i was like how do you know
im here
hey guys hello
I'm not permitted to use voice in any voice chat , can anyone tell what's the reason ?
#voice-verification look there
someone sleeping i cant talk
Hey @dry jasper
there are alot of problems to solve in life
@dry jasper im watching
@dry jasper i like the commercials when they are good
What freedom
last time i checked freedom wasn't free and its sad how we treat the people who try to protect it
!py
!py print(1+1)
!py
print(1+1)
@dry jasper :white_check_mark: Your 3.12 eval job has completed with return code 0.
2
!e set('ABCD') - set('ABC')
@wise loom :warning: Your 3.12 eval job has completed with return code 0.
[No output]
!e print( set('ABCD') - set('ABC') )
@wise loom :white_check_mark: Your 3.12 eval job has completed with return code 0.
{'D'}
thx
@ivory stump Are you available?
@low minnow ๐
!rule 9
oh
perfect!
of course
basically, I printed three pdfs, increasing.pdf, decreasing.pdf, and random.pdf using insertion and selection sorts
the problem is that my code only shows selection_sorts data, not insertion so it isnt printing to the graphs
yea
from matplotlib.backends.backend_pdf import PdfPages
yea LOL
would it be easier if you saw my code?
its just 2 files
!code
Hi Hix
how do i show the other file?
in paste bin
alrighty, they are pasted in pastebin
hold on im trying to find it lol
import os
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
def execute_sort(array_size, orientation):
# Clear the contents of Sort.cover before each execution
open("Sort.cover", "w").close()
os.system(
f"python Sort.py {array_size} {orientation.lower()}")
def extract_counts(file_path):
insertion_counts, selection_counts = {}, {}
with open(file_path, "r") as file:
for line in file:
parts = line.strip().split()
if 'Insertion Sort Comparisons' in line:
insertion_counts[int(parts[0])] = int(parts[-1])
elif 'Selection Sort Comparisons' in line:
selection_counts[int(parts[0])] = int(parts[-1])
return insertion_counts, selection_counts
def main():
orientations = ["increasing", "decreasing", "random"]
array_sizes = [10000, 12500, 15000, 17500, 20000, 22500, 25000, 27500, 30000, 35000, 40000, 45000, 50000]
for orientation in orientations:
plt.figure(figsize=(10, 5))
insertion_totals, selection_totals = [], []
for array_size in array_sizes:
execute_sort(array_size, orientation)
insertion_counts, selection_counts = extract_counts("Sort.cover")
print(f"Array Size: {array_size}, Insertion Counts: {insertion_counts}, Selection Counts: {selection_counts}")
insertion_totals.append(insertion_counts.get(array_size, 0))
selection_totals.append(selection_counts.get(array_size, 0))
plt.plot(array_sizes, insertion_totals, 'o-', label="Insertion Sort")
plt.plot(array_sizes, selection_totals, 's-', label="Selection Sort")
plt.xlabel("Array Size")
plt.ylabel("Total Execution Count")
plt.title(f"Execution Counts for {orientation.capitalize()} Data")
plt.legend()
plt.tight_layout()
plt.savefig(f"{orientation}_counts.pdf")
plt.close()
if name == "main":
main()
import os
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
def execute_sort(array_size, orientation):
# Clear the contents of Sort.cover before each execution
open("Sort.cover", "w").close()
os.system(
f"python Sort.py {array_size} {orientation.lower()}")
def extract_counts(file_path):
insertion_counts, selection_counts = {}, {}
with open(file_path, "r") as file:
for line in file:
parts = line.strip().split()
if 'Insertion Sort Comparisons' in line:
insertion_counts[int(parts[0])] = int(parts[-1])
elif 'Selection Sort Comparisons' in line:
selection_counts[int(parts[0])] = int(parts[-1])
return insertion_counts, selection_counts
def main():
orientations = ["increasing", "decreasing", "random"]
array_sizes = [10000, 12500, 15000, 17500, 20000, 22500, 25000, 27500, 30000, 35000, 40000, 45000, 50000]
for orientation in orientations:
plt.figure(figsize=(10, 5))
insertion_totals, selection_totals = [], []
for array_size in array_sizes:
execute_sort(array_size, orientation)
insertion_counts, selection_counts = extract_counts("Sort.cover")
print(f"Array Size: {array_size}, Insertion Counts: {insertion_counts}, Selection Counts: {selection_counts}")
insertion_totals.append(insertion_counts.get(array_size, 0))
selection_totals.append(selection_counts.get(array_size, 0))
plt.plot(array_sizes, insertion_totals, 'o-', label="Insertion Sort")
plt.plot(array_sizes, selection_totals, 's-', label="Selection Sort")
plt.xlabel("Array Size")
plt.ylabel("Total Execution Count")
plt.title(f"Execution Counts for {orientation.capitalize()} Data")
plt.legend()
plt.tight_layout()
plt.savefig(f"{orientation}counts.pdf")
plt.close()
if name == "_main":
main()```
ur so nice
Thank you
Do you wanna chess after?
I muted
if __name__ == '__main__':
main()```
it looks like that alr
do you know what the sort.py file looks like
your good lol
this assignment takes a lot of big ass arrays
thats my issue
@hollow salmon ๐
it takes SO LONG to run
at least in terminal
yes
all three
they are labelled correctly
just the data isnt correct in them / it isnt even displayed
like its supposed to only have 2 types of data (intertion_sort and selections_sort data)
the directions are long thats why idk if u want them
so pluck pdf pages out of my bonus.py file?
like its there but do i need it?
do u have email? i can just send everything through there for you to see
it has everything and i already have 95% of the work done
its just hard wrapping it all together yk?
@somber heath
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.pyplot as plt
# Initialize:
with PdfPages('foo.pdf') as pdf:
# As many times as you like, create a figure fig and save it:
fig = plt.figure()
pdf.savefig(fig)
# When no figure is specified the current figure is saved
pdf.savefig()```
so this is pdf pages but liike an alternatiev?
would you like the directions and other file so u can understand what ur looking for
yea i just have three pdfs. they are labelled increasing.pdf, decreasing.pdf, and random.pdf
LOL @somber heath
im not sure
its just taking data this command: python Bonus.py
i think the code includes the array sizes in the plot as the x-axis values,
39 PDFS?!?!
i need 3 ๐ญ
so what is the fix im sorry
adding it now 1 sec
plt.savefig(f'{array_size}{orientation}.pdf')```
the prob is, i have a bunch of array sizes, i only want 3 pdf's
im implementing what you said right now
its running lmao
i appreciate it again, do you need the directions?
I suspect you might need something likepy for orientation in orientations: with PdfPages(f'{orientation}.pdf') as pdf: for array_size in array_sizes: 'Add figure to pdf'
its still running lmao
it is taking so much data
it has to go through all the way for the pdf's to display
my prof said it will take much longer than most coding assignments
because it is sorting through so many data structures and algorithsms
yes, 20 mins give or take
yea...
here is a screenshot of my folder for refrence
here is it still running....
does it work on ur end?>
oh
so it is logical, as in it should work in theory
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
Selection sort completed.
Insertion Sort Comparisons for array size 10000: 0
Selection Sort Comparisons for array size 10000: 49995000
Writing comparison counts to file...
Comparison counts written to file.
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
Selection sort completed.
Insertion Sort Comparisons for array size 20000: 0
Selection Sort Comparisons for array size 20000: 199990000
Writing comparison counts to file...
Comparison counts written to file.
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
Selection sort completed.
Insertion Sort Comparisons for array size 30000: 0
Selection Sort Comparisons for array size 30000: 449985000
Writing comparison counts to file...
Comparison counts written to file.
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
Selection sort completed.
Insertion Sort Comparisons for array size 40000: 0
Selection Sort Comparisons for array size 40000: 799980000
Writing comparison counts to file...
Comparison counts written to file.
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
Selection sort completed.
Insertion Sort Comparisons for array size 50000: 0
Selection Sort Comparisons for array size 50000: 1249975000
Writing comparison counts to file...
Comparison counts written to file.
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
Selection sort completed.
Insertion Sort Comparisons for array size 10000: 49995000
Selection Sort Comparisons for array size 10000: 49995000
Writing comparison counts to file...
Comparison counts written to file.
Generating array...
Array generated.
Performing sorting operations...
Performing selection sort...
this is in terminal
right now
OH
I have another question, if i need to put a paragraph describing the graph in the pdf, in the same pdf in the graph how do i write a paragraph about that graph?
@somber heath
ye
@whole bear ๐
๐
alll good
@pastel prism ๐
interaction_hamiltonian : NDArray = hamiltonian[interaction]
!d numpy.ndarray
class numpy.ndarray(shape, dtype=float, buffer=None, offset=0, strides=None, order=None)```
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.)
Arrays should be constructed using [`array`](https://numpy.org/devdocs/reference/generated/numpy.array.html#numpy.array), [`zeros`](https://numpy.org/devdocs/reference/generated/numpy.zeros.html#numpy.zeros) or [`empty`](https://numpy.org/devdocs/reference/generated/numpy.empty.html#numpy.empty) (refer to the See Also section below). The parameters given here refer to a low-level method (*ndarray(โฆ)*) for instantiating an array.
For more information, refer to the [`numpy`](https://numpy.org/devdocs/reference/index.html#module-numpy) module and examine the methods and attributes of an array.
Yo sorry I needa go
@mental seal ๐
yo
@wicked relic ๐
yo anyone know what I tablet I should get for taking notes when im in class?
im not sure what to get
Is this a question about Ritalin, or...?
@waxen barn https://www.gsmarena.com/search.php3?mode=tablet I used this site to find my current phone.
no its an unrelated question just for my personal use if that wording makes sense
yea im honestly not sure what type of specs would even suit what im using to for
all im going to be using it for is taking digital ntoes with a pen of smth and probably watching yt but I do want one with a camera
Hello
hi
hi :D
my mic isnt working
for some strange reason
like it works on literally any other interface (eg google meet)
you see
it works
but then it doesnt if i wanna call
strange
lol imma reboot
cya
ughhhHHHHH
i just rebooted
still no
Hello
I was making a joke, sorry. ๐
@mighty gyro ๐
@mighty gyro what are you refering to
I was talking about cat videos
k
I hope you understand that cats are the superior pet of choise
@somber heath hey man ...let's say i have a map (from the top) of a home / room / building ... how can i dynamically generate a wayppoint from one location to another
what do you mean dynamicaly
let's say i have different room ..and i told ...ok createa pathway from room A to room B ...again like room D to room B ..like that
Look at maze solving algorithms.
like do you need something like A*?
tbh i am really neewb in algo ...have to look into it
A* (pronounced "A-star") is a graph traversal and pathfinding algorithm, which is used in many fields of computer science due to its completeness, optimality, and optimal efficiency. Given a weighted graph, a source node and a goal node, the algorithm finds the shortest path (with respect to the given weights) from source to goal.
One major prac...
like how it will know "here's a wall it can't cross a wall"
@safe forum ๐
let's say i give image like this
You may be knocking at the door to computer vision.
Unless you manually remove traversable elements.
like in maze algo .. they also have to like know ..."a wall is here ...don't crash"
mineflayer
It'd be easier if you manually defined waypoints.
Centers of rooms, doorways, points outside doors in hallways, etc. Line of sight to line of sight, etc.
Hello there.
https://www.youtube.com/watch?v=lpSzbxpGzSY
related to the conversation
I am working on a project with my friends and I want to push my new branch to our Github repository.
What git command is best for it?
Defining points you can move to from each point.
https://docs.nvidia.com/isaac/doc/extensions/waypoint_graph_generator/doc/index.html
is this relatable
These documents provide information regarding the current NVIDIA Isaac release.
def lcu_list_to_x(lcu_list,
shape_structure):
x = []
for ten, shape in zip(lcu_list, shape_structure):
for ele in ten.numpy().flatten():
x.append(ele)
x = np.array(x, dtype=np.float64)
return x
def lcu_list_to_x(lcu_list):
x = []
for ten in lcu_list:
for ele in ten.numpy().flatten():
x.append(ele)
x = np.array(x, dtype=np.float64)
return x
!e py help(list.extend)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Help on method_descriptor:
002 |
003 | extend(self, iterable, /)
004 | Extend list by appending elements from the iterable.
def lcu_list_to_x(lcu_list: List[NDArray[np.float64]]) -> NDArray[np.float64]:
# Concatenate all tensors along the last axis and then flatten the result
return np.concatenate([tensor.flatten() for tensor in lcu_list]).astype(np.float64)
Tried to push the new branch, got this
git push -u origin dev_test
unable to access <the repository link>: The requested URL returned error: 403
@nimble kernel ๐
hi
Oh hey, im new to the server so I think im muted for 3 days so I just left the voice call.
There's an activity component to the requirements, too.
We're not talking much right now, anyway.
You aren't missing out.
yea... I just saw that
@long cypress Yo
Good, you?
Has anyone here seen the MIT computer science/electrical engineering lectures on YouTube?
Iโm confused to what abstraction means
So is C more complex?
I see now
Thank you
Yeah
I had to google what systems meant and Iโm pretty sure itโs just instructions lol
Like just say instructions
Using python to create complex systems
Right
that's the point of abstraction
normally just some sort of layer that represents the same thing but simpler
with an emphasis on that simplification 1) being correct 2) allowing to build correct systems on top of it
Yeah coding is like blood vessels or legos like you said
The power point slides look so bland lol
In general sense lol
I see what you mean
well, it can be worse (pdf slides)
The worst is manuals
lurks
I like the information too
Sup man
Just not very colorful or exciting on the page
chillin but will try and hop on voice sometime ๐
Like terms of service lol
@twin patrol Yo
Hi ๐
Yeah that makes sense
The trying to screw you part reminds me of that South Park episode lol
The human centipede
Where Kyle doesnโt read the apple terms of service
"in Oracle-made docs, there's nothing but legal statements"
Oh right right
their hello world example is just peak Oracle
> giant license statement
> useless comment on what the code does
> missing comma
Oh I have to see this
What kind of manuals would you read?
big single-page piece of docs
https://ziglang.org/documentation/master/
so unusual to see nothing in dev tools network tab except for page itself
(it's 142 kB not 436 B, that was just redirects being weird)
222 pages when printed without margins
I just checked my notes and the professor said abstraction is classes?
classes is one of the things that provide abstraction
there are also abstract classes -- that is a specific language-dependent term
Python's notion of abstract classes is different from Java's
Take it easy, dude
I think I only pay, like, 4%
[Rosenkranz 2002, S. 40-42]
[Hatten/Rosenthal 1999, S. 296/299]
[Becker et al. 2005, S. 30]
[Becker et al. 2005, S. 30]; [Hatten/Rosenthal 1999, S. 296/299]
normally they have the actual thing written somewhere else
so those look like what is in text
no bibliography section at the end of the paper?
(BibTeX, I think, autogenerates it)
yoo
@rugged root who are you talking to? I can only hear you
I'm talking to BOTNET
beyond that I need to do more complex legal stuff
!stream 598252815613165619
โ @lone flame can now stream until <t:1707755287:f>.
!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.
hi @gentle flint
hi
I built a new PC on Saturday ๐
$3000CAD
cant hear anything
Yeah
(myenv) myberrypi@raspberrypi:~/Documents/ThermalCamera $ python thermaltest1.py
ImportError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/myberrypi/Documents/ThermalCamera/thermaltest1.py", line 6, in <module>
import time,board,busio
File "/home/myberrypi/myenv/lib/python3.11/site-packages/board.py", line 50, in <module>
from adafruit_blinka.board.raspberrypi.raspi_5b import *
File "/home/myberrypi/myenv/lib/python3.11/site-packages/adafruit_blinka/board/raspberrypi/raspi_5b.py", line 6, in <module>
from adafruit_blinka.microcontroller.bcm2712 import pin
File "/home/myberrypi/myenv/lib/python3.11/site-packages/adafruit_blinka/microcontroller/bcm2712/pin.py", line 5, in <module>
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
File "/home/myberrypi/myenv/lib/python3.11/site-packages/adafruit_blinka/microcontroller/generic_linux/libgpiod_pin.py", line 8, in <module>
raise ImportError(
ImportError: libgpiod Python bindings not found, please install and try again! See https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/main/libgpiod.py
https://stackoverflow.com/questions/11686720/is-there-a-numpy-builtin-to-reject-outliers-from-a-list @peak depot
@gentle flint you mentioned something a tool to be used to debug Github Actions, can you please link me?
pancakes!
he made the batter too?! wow.. impressive
I never did this myself
this is the recipe
https://cuisine.journaldesfemmes.fr/recette/333415-recette-de-crepes-la-meilleure-recette-rapide
Dรฉcouvrez cette recette facile de crรชpes, trรจs rapide ร prรฉparer. Une recette simple qui, grรขce ร sa quantitรฉ d'ลufs, ne nรฉcessite aucun repos de la pรขte (vous pouvez adapter le volume des ingrรฉdients selon le nombre d'ลufs que vous avez, les crรชpes seront aussi parfaites avec 1ย ลuf, ou 2ย ลufs). ร prรฉparer ร la Chandeleur, pour un brunch ou ร to...
it's in french tho
but you can use translate
you guise in Netherlands do that double-double, English and French, that bilingual lifestyle
I will, thanks
and Dutch
most don't know French
German is more common
Provided to YouTube by N.E.W.S. NV
Rednak ยท Trio Dhoore
August
โ Trio Dhoore & Trad Records
Released on: 2019-11-01
Artist: Trio Dhoore
Auto-generated by YouTube.
The soloists are Plas Johnson on sax, Gus Bivona and Bill Green on flute, and Frank Capp on Drums. Pete and Conte Candoli, John Audino, Carl Fontana, Med Flory Sax, Bill Berry Coronet, Slyde Hyde also on Trombone,
etc... It is the Terry Gibbs Band with of course Henry
Mancini on the piano....
another walentines day another solo day
@civic chasm https://docs.netlify.com/site-deploys/overview/
BadWolf is a minimalist and privacy-oriented WebKitGTK+ browser. I've been looking for a good minimal web browser for a long time now. And BadWolf might be the best one that I've tried. BadWolf is available on Linux and BSD (not available for Windows and Mac).
REFERENCED:
โบ https://hacktivis.me/projects/badwolf - BadWolf Site
โบ https://hackt...
badwolf, for the bad boys and bad girls out there, the baddies
I advocate for the extinction of Desktops and the adoption of Laptops 
well, have fun with 3d animation and gaming
hi
<form>
@errant warren Sup
@obsidian dragon We're getting echo from your mic
@ripe nest Sup
@rugged root i was playing raft with some friends yesterday*, some of the friends couldn't join so we caught a llama and a goat, put them in a fence on the raft and put nametags on them with names of the friends who couldn't join and continued playing xD
hey is there a tool out there for checking if the BIOS checksum against a database of valid manufacturer checksums?
this would help with auditing a bunch of laptops if they've been tampered with or not.
I've found a few things but nothing that's exactly like what I'm asking..
In music, solfรจge (, French: [sษlfษส]) or solfeggio (; Italian: [solหfeddสo]), also called sol-fa, solfa, solfeo, among many names, is a music education method used to teach aural skills, pitch and sight-reading of Western music. Solfรจge is a form of solmization, though the two terms are sometimes used interchangeably.
Syllables are assigned to ...
spring = 3
summer = 6
autumn = 9
winter = 12
month = today.month```
!e
spring = 3
summer = 6
autumn = 9
winter = 12
month = today.month
@obsidian dragon :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 6, in <module>
003 | month = today.month
004 | ^^^^^
005 | NameError: name 'today' is not defined
df = pd.Series(["2011-06-07",
"2011-08-23",
"2011-08-27",
"2011-09-01",
"2011-09-05",
"2011-09-06",
"2011-09-08",
"2011-12-25"])
df = pd.to_datetime(df)
season = (df.dt.month - 1) // 3
!e
print(-1//3)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
-1
Pi Python coming soon โข๏ธ
@whole bear https://docs.python.org/3.13/whatsnew/3.13.html
Actual:
3.13 development begins: Monday, 2023-05-22
3.13.0 alpha 1: Friday, 2023-10-13
3.13.0 alpha 2: Wednesday, 2023-11-22
3.13.0 alpha 3: Wednesday, 2024-01-17
Expected:
3.13.0 alpha 4: Tuesday, 2024-02-13
3.13.0 alpha 5: Tuesday, 2024-03-12
3.13.0 alpha 6: Tuesday, 2024-04-09
3.13.0 beta 1: Tuesday, 2024-05-07 (No new features beyond this point.)
3.13.0 beta 2: Tuesday, 2024-05-28
3.13.0 beta 3: Tuesday, 2024-06-18
3.13.0 beta 4: Tuesday, 2024-07-16
3.13.0 candidate 1: Tuesday, 2024-07-30
3.13.0 candidate 2: Tuesday, 2024-09-03
3.13.0 final: Tuesday, 2024-10-01
Subsequent bugfix releases every two months.
here's what I've been up to since last month

