#voice-chat-text-0
1 messages · Page 256 of 1
i think it was apache echarts
definitely had apache in the name
def __init__(self, a, b, c):
super().__init__(a, b)
self.c = c
So if Person had favorite_name as a parameter, then we would do that
But because it doesn't, we need to assign it in Student
self is implicitly passed
Bingo
super().__init__() is just running the parent's __init__ method
class Person:
def __init__(self, name):
self.name = name
class Student(Person):
def __init__(self, name, favorite_class):
super().__init__(name)
self.favorite_class = favorite_class
This is same as
class Person:
def __init__(self, name):
self.name = name
class Student(Person):
def __init__(self, name, favorite_class):
self.name = name
self.favorite_class = favorite_class
Right
.
Correct
yes .. that might be the one .. iirc.. if you find D3.js a bit too verbose checkout https://github.com/apache/echarts?tab=readme-ov-file
You'll be fine
Ask the ones you're not sure of, and tell me what you think they are
I mean with the terms as well
Yep, I'm happy to guide
Nope
Terminology is important
You need to be able to talk with other programmers
And if you use the wrong terms, it'll be confusing
Like methods are just functions that are a part of a class and its objects
Stuff like that
Practice practice practice
Something that's helpful, try and teach someone how to do something
Teaching is one of the best ways to solidify your knowledge
@terse needle Suuuuuuuuup
Shoot
UML
It's a general flow chart for programs
Sort of
UMLs are specifically for program flow
In UML?
It is
Oh wait wait
The unified modeling language (UML) is a general-purpose visual modeling language that is intended to provide a standard way to visualize the design of a system.UML provides a standard notation for many types of diagrams which can be roughly divided into three main groups: behavior diagrams, interaction diagrams, and structure diagrams.
The cre...
The biggest pain in my backside in CS is the fact that they have a specification for psuedo code
super() is a function
おh、、、
And you use super() when you're inheriting from another class
Function
It's one of the built in functions like print()
Not a method
PlantUML is such a wonderful thing. Makes it much easier to keep my software development notes portable.
I just got these new headphones and not being able to hear myself talk is really odd
You can set up a monitor for that
def __str__
Are you talking to me?
I have the PlantUML plugin for obsidian so I can have visual uml diagrams and sequence diagrams defined with code.
Yes
whats a monitor
e.g. this is the uml for the project I'm working on right now
@startuml
class Item {
+String name
+int quantity
+Category category
}
class Recipe {
+String name
+String description
+List<Ingredient> ingredients
+canBeMade(inventory: List<Item>): boolean
+makeRecipe()
}
class Ingredient {
+Item item
+float quantityNeeded
}
class Category {
}
Item "0..*" -- "1" Category
Recipe "0..*" -- "0..*" Ingredient : contains >
Ingredient "1" -- "1" Item : is >
@enduml
It's a setting where it will relay sound input from your mic to your output
There's one in Windows, not sure where it would be in your distro
my headphones have an ambient mode but it picks up quite a bit of white noise when the room is so quiet
I'll probably look into this though
I'm sure I have seen monitor somewhere on pulseaudio
Ohhhh yeah it's tedious with pulse
i'm half tempted to work with someone building a viz software
Just give me a GUI
Gotta love chrome's tendency to open new instances with every tab. As the IT desk at work calls it: Kage Bunshin no Bullshit
I really hope that lancebot thing is only for february
So we have one for Weasel Stomping Day?
The file keeps getting worse. The admin credentials are hardcoded in plaintext.
That'd be crazy
This is one hell of a code review session I'm leading
def analyzeUrl(url):
global PATHS
for path in PATHS:
global response
response = requests.get(f"https://{url+path}", timeout=999, verify=False)
if response.status_code != "200":
sys.stdout.write(f"URL: https://{url+path} Status Code: ConnectionError\n")
sys.stdout.flush()
WTF
And yes, that is how it was formatted in the repo
You don't get to say python is a bad language if you write it like that.
<sarcasm>Exception handling? What's that?!?</sarcasm>
@near smelt Yeah I can
from abc import ABC, abstractmethod
class Animal(ABC):
@abstractmethod
def make_sound(self):
pass
class Dog(Animal):
def make_sound(self):
return "Bark"
if name == "main":
d1 = Dog()
print(d1.make_sound())
So ABC is short for Abstract Base Class. It essentially specifies a framework for any classes that inherit from that class. Anything that inherits an ABC class means that it NEEDS to define its own method of the same name
Like what you have in your code snippit
class Dog(Animal):
def makesound(self):
print("Bark")
pass in this case means that you're not detailing any functionality for that method, because you're expecting anyone inheriting that class to define that functionality
Ask and I'll explain
Don't hesitate to ask
So pass tells Python, "Hey, I'm going to leave this code block blank, so you can carry on."
Hey Bot
.
!e
from abc import ABC, abstractmethod
class Animal(ABC):
@abstractmethod
def make_sound(self):
pass
class Dog(Animal):
def make_sound(self):
print("Bark")
class Cat(Animal):
def make_sound(self):
print("Meow")
dog = Dog()
dog.make_sound()
cat = Cat()
cat.make_sound()
animal = Animal()
animal.make_sound()
@rugged root :x: Your 3.12 eval job has completed with return code 1.
001 | Bark
002 | Meow
003 | Traceback (most recent call last):
004 | File "/home/main.py", line 22, in <module>
005 | animal = Animal()
006 | ^^^^^^^^
007 | TypeError: Can't instantiate abstract class Animal without an implementation for abstract method 'make_sound'
y
!e Also, if we didn't have pass in the make_sound() method...
from abc import ABC, abstractmethod
class Animal(ABC):
@abstractmethod
def make_sound(self):
class Dog(Animal):
def make_sound(self):
print("Bark")
@rugged root :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 8
002 | class Dog(Animal):
003 | IndentationError: expected an indented block after function definition on line 5
Good ol' error
Bingo
Yeah you got it, @near smelt
Also, just a terminology thing, if it's defined in a class, it's a method
class Dog(Animal):
def method(self):
print("Bark")
def function():
...
Take it easy
likewise
No no, @upper basin
It was to him
You're fine
Hmm?
@dark swan What's new with you?
@stark river Whatcha up to?
Yeah
You're steaming good code content
You're fine
unfortunately nothing.. facing intermittent power outages here 😦
Yikes. Is that common there?
it is .. but today was election day .. so .. these are of the corruption kind
My condolences
my idea is that politicians should just write their manifesto in a readme and post it on github where people can read it
no need to speak into a mic
i'd prefer to read their plans instead of long boring speeches that are ephemeral
I know about Perl, just never heard if referred to as perl script.
You sound like you're in your 20s or mid-30s
Called it
@dark swan I'm typing in here
Co-worker is back here with me
So I try not to talk
For sure
You been well?
My condolences, that's always tough
The loss of 0% interest rate has been hurting folks from what I'm hearing
I offer $20 and a pizza
Frozen pizza
What was the bid?
Sure sure
That's a fairly healthy amount
What does your company do again?
you know what else is fairly healthy amount @rugged root ... your words
microwaved pizza, and some flip flops. Last offer.
In fairness, not all start ups do
*ignored
That pizza would have been a good offer then
mental ignore is the worse to be in
someone willingly ignores my words for the sake of hilarity, and i will admit its funny
whines in spoiled.
IBM is woke how?
No genuinely
I'm curious what you mean
True
Dude, you said it
Most of thier income is support contracts, as far as I know
Mainframes
like nearly 50 years right?
More I think
@gentle flint Sup
Are they? I haven't seen anything from them that imply that to me
More likely that I just haven't been paying attention to that area
Maybe.
But like...
I don't really like them.
in MY field, again, they do a lot of stuff.
They're more focused on politics and marketing than actual research and development.
Are they?
Like smaller companies with much less budget and man power are outdoing them.
They are.
Fair enough
Very political.
They don't even allow certain nationalities to apply to the jobs, even if you are living somewhere that NATO is good with.
@upper basin thats cause they are using brain power instead of marketing mayhem
It's government contracts
i was talking about how smaller companies are out doing the bigger badder ones
Not all of them. Some of them are their own initiatives.
Woke is a term that's typically meant as an insult to folks who are more progressive or liberal. Support for LBGTQ+ rights for example
That's why I was confused by the use of woke
It's a right wing slur
Well
Owning a company is politics
Your decision to not be acquired was a political move. Making sure that your name is still known
"A man is not dead while his name is still spoken" I think is the phrase?
Everywhere is screwed up
Just depends on the flavor you want
i always thought woke is seeing beyond that social norms and understanding brain washing and that sorta thing
ah so we twist the term now get chaos
"Awoken to the truth"
It's not a younger age word
It's usually said on political news shows complaining about the left
Exactly
Which is why it hasn't crossed you
Sure sure
I don't blame you
in the 90's woke ment something different to me
You're fine, ACE
It's just why I was asking for clarification
Not going to boot you for anything
Within reason
So long as it stays civil
Right, which is fair
We're good, we're on the same page now
Let's move on
Fair enough
oh hidden material
?
subliminal @rugged root
hehe
i heard Ray
rayhound
BACKGROUD
Moved you to AFK until you get that figured out
I am
Whenever my co-worker is done for the day
I'm always on the office when I'm on here
I don't get on Discord when I'm at home
That's my chill out and play video games time
And spend time with wife
In PyDis? Very
I have to be "on" if that makes sense
34
god i feel old
More my knees
mine feels like its 45
When I crouch then stand back up it sounds like I'm walking on gravel
Used to
Retail, grocery, stocking, etc.
Allllll knees
Like Rice Krispies
Depends on my mood
Currently playing "Like a Dragon: Infinite Wealth"
It's the latest in the Yakuza series
Great games
It's hard for me to recommend this one unless you've played some of the older ones, though
There's a LOT of referring to the old games
Like
There's an entire couple chapters dedicated to it
Well it is Sega
Well
Actually they did Virtua Fighter not Tekken
Oh the campaign is fun
I have not
MW 2019
I think the last one I played was modern warfare
COD 4
Nope, I'm not an Xbox boy
That's why
I'm prefer Playstation
No different than Football and Basketball
Weird
Open sores
Yarp
HA
Carousels
Back in a bit
"October 13th, I witnessed my brethren get massacred by the malicious mammal. I could not closeth my eyes, perhaps I could not-th."
"Ocobter 14th, I survived the great massacre. "Thou must carryth our legacy.", said my father as he was torn limb from limb like a KFC 10 piece. I shall honor my father."
"October 20th, I have begun a spiritual journey of healing and acceptance. Though my kin has moved to the next plane, I will carry our sacred way of living."
"October 25th, the humans are smothering me with attention. Perhaps, to amend their incompetence to care for our kin. Today they bestowed upon me their sacred and worshipped supper, I believe they call it "Tak-O Bill"."
"Ohh SHIIII-"
weird
@stray blade @stoic quartz @errant depot 👋
yoyo
im just doing some exercises in https://exercism.org,
That's a good one
I like them
bye bye, imma go lay down and read a book! 👋
best time for me is 23:00 -> 02:00 at night everyone sleeps
sfc /scannow; dism /online /cleanup-image /restorehealth; sfc /scannow
@whole bear
MDN Web Docs
The flexible box layout module, usually referred to as flexbox, was designed as a one-dimensional layout model, and as a method that could offer space distribution between items in an interface and powerful alignment capabilities. This article gives an outline of the main features of flexbox, which we will be exploring in more detail in the rest...
remember mobile first
@copper wolf 👋
@somber heath @somber heath thanks
i have simple comparison operator but i dont understand what im doing wrong
if the operator is is use == instead
def value_of_ace(card_one, card_two):
"""Calculate the most advantageous value for the ace card.
:param card_one, card_two: str - card dealt. See below for values.
 int - either 1 or 11 value of the upcoming ace card.
1. 'J', 'Q', or 'K' (otherwise known as "face cards") = 10
2. 'A' (ace card) = 11 (if already in hand)
3. '2' - '10' = numerical value.
"""
value_one = value_of_card(card_one)
value_two = value_of_card(card_two)
total_value = value_one + value_two
total_value + 11 <= 21:
return 11
return 1 problem is if card_one or card_two is 'A' it must return 11
xD i had to add this line
if card_one == 'A' or card_two == 'A':
return 1
if total...
today i learned
if card_one == 'A' or card_two == 'A':
...```
```py
if 'A' in (card_one, card_two):
...```
cool ty
Ignore the one I deleted.
@feral sky There was some small improvement.
Now it is poor.
I told you. Your microphone quality is poor.
The accent barrier is also a contributing factor.
hello! i guess i cannot talk lol
yes, i just joined so i guess i have to sit out a few more days! but it was great to talk to you for a few seconds.
there isnt much more I can do im afraid haha
@somber heath Can't you hear me??
You are not in the voice chat, so, no.
I can not hear you.
Yes, I'm sure saying that to someone always achieves its worded purpose.
I am calm. I'm curious as to why you would suggest otherwise.
That may help.
I can be not calm.
@kindred hinge 👋
But I think my voice comes out louder on the other microphone.
@feral sky You are entirely indistinct.
@heady basalt 👋
Hi
@feral sky It's still difficult for me to hear you. I just happened to hear and understand your suggestion.
It's currently half past two in the afternoon.
1428
I don't travel.
Why not?
Travel without reason does not appeal to me.
Nor does it appeal in general.
@whole bear 👋
Additionally, there are reasons why it would be a very bad idea for me to travel.
Reasons I will not go into with you.
I can't speak ;-;
Has your microphone gone to God?
@latent atlas 👋
Hi
Is it possible that you changed a setting?
Are you listening now?
I was always listening. I was occasionally hearing. I was frequently not understanding.
We are.
All the time looking for me
@sweet sorrel 👋
Yooo
There are days in life when we think we won't make it
hello sorry I am new so I cant speak quite yet
I cant I already tried
Why is this guy actin like a robot
deep
who is?
Is that an autism thing? I’m autistic and could totally see it as an autism thing
Like a clock that says ten till 5
By why robotic
Beil I understand u
Ah
One more day and I have vc
Wooo
@mighty gyro 👋
when in drought find the difference between tuple and list
Hi
Hey @somber heath remind me in 10 mins to turn off the stove
hello
Hey @somber heath play Despacito
I’m going back to Alexa @native hazel @somber heath
Why is there so many opals
Opal
Can I show you my first python project?
Life my first time ever coding project I finished this week
Ok
!code
Add me so I can dm you it.
If not it’s cool
It’s in production, I was wanting to show you the bot I made
apparently dota2 uses Lua
Roblox does too
I made a discord server with many discord servers inside, and each server has its own ban list, moderators and everything is cross referenced via a database
I still don’t know what a function is
I’m going to turn it into a dnd thing so each dungeon master can have their own server without having to make one separately
between Luau and Lua
Is a function the Def line?
mainly performance
Gameplay Performance?
maybe
i dont really know stuff about how luau works, i just use it
Is def anything other than functions
!e ```py
def func():
print('Hello, world.')
func()
func()
func()```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
im 100% sure that lua is slower than luau
!e ```py
def func(obj):
print(obj)
func('argument')```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
argument
For a discord bot, would
def command add ()
be a functi
!e ```py
def func():
return 123
print(func())```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
123
So functions do something within its Column until you mark it with a exit / output
print(123)```
Everything that’s tabbed in
I got you.
Returning is printer to terminal or doing an action.
can you add me
is lamda a fuction ?
#bot-commands
Does VC work by hour or just the actual date once it hits midnight
We are about to find out
!e py data = [5, 1, 2, 3, 7, 10] data.sort() print(data)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
[1, 2, 3, 5, 7, 10]
See you in 51 mins
!e ```py
def func(v):
return abs(v - 5)
data = [5, 1, 2, 3, 7, 10]
data.sort(key=func)
print(data)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
[5, 3, 7, 2, 1, 10]
!e ```py
def func(v):
print(v)
return abs(v - 5)
data = [5, 1, 2, 3, 7, 10]
data.sort(key=func)
print(data)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 5
002 | 1
003 | 2
004 | 3
005 | 7
006 | 10
007 | [5, 3, 7, 2, 1, 10]
!e py data = [5, 1, 2, 3, 7, 10] data.sort(key=lambda v: abs(v - 5)) print(data)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
[5, 3, 7, 2, 1, 10]
QTpy
!e py a = lambda n: [i for i in range(n)] # Avoid assigning variables to lambdas. It annoys the purists. print(a(3))
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
[0, 1, 2]
@void crane 👋
!e py lambda (a, b): (a, b)
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | lambda (a, b): (a, b)
003 | ^^^^^^
004 | SyntaxError: Lambda expression parameters cannot be parenthesized
!e py a = lambda v: None a(v = 1)
@somber heath :warning: Your 3.12 eval job has completed with return code 0.
[No output]
!e
a = {
'first': lambda n: [i for i in range(n)],
'second': lambda b: [i for i in range(b)]
}
print(a['first'](3))
print(a['second'](4))
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
Hi, unfortunately i cannot speak in the voice channels i dont have permisisons
Mhm. I see the conversation in #python-discussion.
yeah, i dont know any python, i usually learn by speak and wathcing others
typing in discusisons when your a beginner is quite pointless cause i dont know what to discuss lol
I commonly recommend Corey Schafer's YouTube playlist, Python for Beginners.
!resources
Resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@lofty valve 👋
@somber heath 👋🏿
👋
Naknak Nak. Naknak nak? Naknak naknak Naknak naknak Naknak naknaknak Nananak Nak Naknak Nanananak Naknak Nak. Naknak Nanak Naknaknak Nak? Naknak Naknaknak Naknaknak Nak Naknaknak Nak? Nananak Nak Naknak Naknak. Nananak Nak Naknak nanak Naknak nak. Naknak naknaknak Naknaknak Naknaknak Nananak Nak Naknaknak Nak? Naknak Nak. Naknak Nanak Naknaknak Nak? Nananak Nak Naknaknak Naknak. Naknak naknaknak Naknaknak nak? Nananak Nak Naknak Nanak Naknaknak Nananak Naknak nak? Nananak Nak Naknak nak. Naknak naknaknak Naknaknak Nak? Nananak Nak Naknaknak Nananak Naknak nak? Naknak Nanak Naknak naknak Nananak Nak Naknak Naknak. Naknak nak. Naknaknak Nak? Naknak nak? Naknak naknak Naknak naknak Naknak Naknak. Naknak Naknaknak Naknak nak? Naknak nak. Naknak Nanananak Naknak nak? Nananak Nak Naknak Nanak Naknak nak. Naknak Nak? Nananak Nak Naknaknak Naknak. Naknak naknaknak Naknaknak nak? Nananak Nak Naknaknak Nak Naknaknak Nananak Naknak nak? Naknaknak Nak? Naknak nak? Naknak nak. Naknak Nak? Nananak Nak Naknaknak Nak? Naknak naknaknak Nananak Nak Naknak nanak Naknak nak. Naknak naknaknak Naknaknak Naknaknak Nananak Nak Naknaknak Nak? Naknak Nak. Naknak Naknak. Naknak nak. Naknak Naknaknak Naknaknak Nanananak
hello chatgpt i know that you are not real intelligence and you pretend to know things
Na, k.
nak = 1
" " = 0
hii everyone!!
@fresh patio 👋
Did you know that a variable prefixed with an _underscore has to be considered "protected" (the C++ protected), even if you can access it from outside the class?
This naming convention signals to other programmers that the variable or method should not be accessed from outside the class, module, or function in which it is defined, except by a subclass.
But... Python does not have the same strict access control mechanisms as C++ or Java. In Python, all attributes are technically public, and underscore prefixes are just a way to indicate to other developers that certain parts of the API are intended for internal use and should be treated as private or protected.
While the docstring is explicit about the internal usage of the variable, it is unlikely that any user would see it quickly. Underscore prefixes make it much more apparent to users and developers that a variable or method is intended for internal use and not part of the public API.
Unlike docstrings, which require a developer to read through the documentation or look at the source code to understand the intended use and stability of a component, underscore prefixes serve as a quick and universally understood visual cue.
Don't forget that your IDE is probably also aware of this convention, as well as your linter.
class MyClass:
def __init__(self):
self.__value = ...```
!e ```py
class MyClass:
def init(self):
self.__value = 'Hello, world.'
def say(self):
print(self.__value)
instance = MyClass()
instance.say()
print(instance.__value)```
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | Hello, world.
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 9, in <module>
004 | print(instance.__value)
005 | ^^^^^^^^^^^^^^^^
006 | AttributeError: 'MyClass' object has no attribute '__value'
Name mangling.
!e ```py
class MyClass:
def init(self):
self.__value = 'Hello, world.'
def say(self):
print(self.__value)
instance = MyClass()
print(dir(instance))```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
['_MyClass__value', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'say']
!e ```py
class MyClass:
def init(self):
self.__value = 'Hello, world.'
def say(self):
print(self.__value)
instance = MyClass()
print(instance._MyClass__value)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello, world.
!zen
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Here’s the plan: when someone uses a feature you don’t understand, simply shoot
them. This is easier than learning something new, and before too long the only living
coders will be writing in an easily understood, tiny subset of Python 0.9.6 <wink>.1
—Tim Peters, legendary core developer and author of The Zen of Python
@pallid peak👋
325 -> 3 dimensional vector, with each dimension describing a power of 10.
[3, 2, 5]
0.2358
[2, 3, 5, 8]
@digital ermine 👋
hey buddy
am i in the correct voice chat?
i don't mind tho
Opal's voice is so soothing
i might go to bed now
10:05pm
@somber heath hi
@whole bear 👋
hmm
im about to go sleep
but maybe not
i might just do some orac
and get scolded by my parents for sleeping so late
@vivid quarry 👋
i'm still gonna get told off
@slender sierra 👋
Hi😊
Ew.
ASMR session with @austere hornet
Hurp.
You are.
AUSTRALIA??!!
umm
imma try whispering
maybe
my mic is shitty tho
bruh
a bayonet?
im just breathing into my mic 😭
Intentionally?
Fair
soft-spoken asmr then?
I hate whisper asmr stuff.
Sources & further reading: https://sites.google.com/view/sources-cancervsimmune/
This video was partially financed by Gates Ventures.
If you want to support this channel and get something nice in return check out our shop: https://kgs.link/shop-176
Somewhere in your body, your immune system just quietly killed one of your own cells, stopping i...
I'm going to have to be a little quiet. The boss that isn't super keen on me being on Discord is in earshot
ohh no
God damn it. STOP RESTRICTING MAX CHARACTERS
my essay is due on mon
11 characters = mobile number
+xy abcdefghi
🤓 quantum computing uses quantum mechanics 🤓 🤓 🤓
It's so painful
Chat GPT created the following password
rJ9$u6&Z#tP@2vQ
This password includes a mix of uppercase letters, lowercase letters, numbers, and special characters, making it difficult to guess. Make sure to keep it safe and don't share it with anyone you don't trust. Additionally, consider using a password manager to securely store and manage your passwords.
Hold on, gonna write that down to use for one of mine later
4fdat33w@531o:sa'eg,.d.£◊
·°‡‹⁄‹·°€‡⁄‚·°‹‡›‚·°‡€‹°€ÒÔÓψŒ¨Œ‹·¥‰¨ŒW
eek
Two very good passwords.
iW4nn4qu1tth15j0b69
what is irc?
IRC stands for Internet Relay Chat. It's a protocol used for real-time text-based communication over the internet. IRC allows users to connect to a network of servers where they can join channels (chat rooms) and engage in conversations with other users.
so says Chat GPT
it's fine
ah thanks for explaining. I don't think i came across it.
ohh hang on i think i remember it...
like a node that died
neurons which wire together firetogether
synaptic plasticity in Neuroscience
just don't use your phone. yuk
got to go guys and dolls. Really nice listening in. take care.
Catch you later
cute
かわよ
connection...
接続の悪さよ
I have no idea what they are saying, but I enjoy listening to them speak English.
anata wa jp?
i am japanese
⭐_⭐

genki desu ka
yes
🤔 \
I know very little Python, but I participate in VC this way because it is interesting to hear English. My specialty is only C++.
I am using a translation, so please let me know if I am doing something wrong.
Or rather, why don't I have a say in this?
Are you using an english translator?
Ok, please check out this channel. #voice-verification
oh no...
!pastebin
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.
Or use this paste bin if your code is too large.
!code
import os
entries = os.listdir()
for entry in entries:
print(entries)
What is the issue?
I just made a mistake.
I am asking what is the issue you are having with your code.
import os
entries = os.listdir()
for entry in entries:
print(entry) #print one at a time
No particular problem. I just pasted it here by mistake.
@azure pagoda ^ channel for discussing career related things
The only language I can do is C++, so I am trying to make a Python module in C++, but Python already has a full range of modules, and there is no room for me. I want to cry.
reinventing the wheel for the sake of pure learning is never a bad thing
The key there is for the sake of learning
reinventing a wheel where the wheel is broken or not durable enough is sometimes required anyways tho xD i had to remake some neovim utils using treesitter for cpp for ease of use with my game engine recently
dont' it just say this is filler text
and no the things i implemented for neovim there are not features you can get easily in vscode or something (you can in clion) so its not a neovim problem
how about lorem picsum? 😮
https://cdn.discordapp.com/attachments/747547220307345490/1205265178082414643/image.png?ex=65d7bdab&is=65c548ab&hm=235e25e19b3bfdb2fdee06eff973b823b2afbbe672b13dfb73e2abdd9bdddb40&
https://cdn.discordapp.com/attachments/747547220307345490/1205265178405634108/image.png?ex=65d7bdab&is=65c548ab&hm=d1bf9d3dbc77cec899fe6aa00b6c91497629652e6c918130b2160ca16d286a8b&
I doubled down on using lorem ipsum for one of the assignments I had to do
It's in there somewhere
how to prevent these things from splitting in the middle
<a href="mailto:NightWolfBusinessproton.me">
<i style="color:#8A90C7" <i class="fa-solid fa-envelope"></i>Email</a>
feels like something is not closed there
pretty sure he means after so much time not so many times@obsidian dragon xD so not stalker i think
@upper basin you have to have party in iran actually.
what are you talking about
that was when he said that the google employee he knows doesn't reply after so many times because he is busy and i think you said stalker
@rugged root do you know what's the name of the VSCode extension that does type checking?
It like redlines the variables that are not consistent with the type annotation, like saying you return an int, and then returning a float.
the python extension supports it by default but you can also make it use mypy or add mypy as an extension
@rugged rootnot minor it has none / basic / strict typechecking
strict is actually stricter than default mypy
need rest..
I also recommend getting one for ruff
@azure pagoda Your connection is cutting in and out really bad
@azure pagoda It's really bad dude
We're getting a word ever 2 seconds
@pulsar island ❤️
Have to stop talking now since a co-worker is back here
Always happy to see you, brother
Have you done the tutorial?
@rugged root how does this look so far?
https://osyra42.github.io
It's getting there. The paragraph block feels a bit stretched
But I'd say finish your general layout and tweak from there
try mobile
@pulsar island I honestly phased out
Works got me pinned a bit
Tax season
Later Fal
@upper basin
idk if it helps but all extensions i use on vscode for python when i do use vscode are these
Python
Pylance
Mypy Type Checker
Black Formatter
Python Debugger
Flake8
isort
quality of life extensions not made by microsoft
autoDocstring - Python Docstring Generator
Indent Rainbow
some bonus ones which are pretty nice to have but are not python specific
Better Comments
Error Lens
Or just saying Office Worker
anyone with some experience willing to help me with a few questions, I just finished the harvard intro to python course and i have some experience with quickbasic in highschool - i get the logic but i need to help set up my environment and ask questions to a human instead of gpt to understand what/why
im super new
Wazzzup? How is it going in the hood?
Eh
but basically, i dont understand why when i type hello.py in my terminal it doesnt* execute
I'm conscious, that's about all I can ask for
So you have to tell the computer that you want to use python to run it
Yep
is there a way to make it so i dont have too?
.py files are just text files with python code not executables so you cannot execute them, instead you give the file's path to the python executable which then interprets that code as instructions and does whatever your code is supposed to do
Uno momento
^ just to be clear this is a simplified explanation its not as simple as just reading code as instructions under the hood but that is not something you need to think about for a long while
@upper basin If you want to stream I'll take a look
Trying to figure out the type hinting thing
One moment
@azure pagoda if you don't want to stream right now then its not that useful as the stream perms are not permanent as we cannot control what people stream while noone is moderating
Remove the Pylance one
It should be in the regular Python install already
@woeful salmon ^
Either?
Hold on
Let me double check....
His type hinting is weird is what he's saying
Same
Cheers
Wait say again?
@civic chasm You have my curiosity
How.... classy
foo: str = 2
@limber oar Yo
Why do I keep forgetting you can do inline in Python
Fair enough, I am indeed wrong
The base Python install (VS Code extension) does not have the type checking
Interesting
it pylance does
Right, but I thought the base DID install PyLance
it does
Then...
Something's amiss
its off by default
Hello.
Yo Arsen. How've you been
That's my bad then
I lead him wrong
You can
Uhhhhhh one sec
You have to put type before the variable name
So like
type Vector = list[float]
You can do that as well
Which?
You can
Wait wait
Anyone familiar with simple TTS module for existing wav files not like pyttsx3?
i completely forgot about that cuz i never use them xD ^
Oh the type stubs
Uhhhh
I don't think they're strictly necessary
It won't affect runtime speed
It's purely for your editor or type checker being faster at checking stuff while you're coding
Fun fact, there are things that let you auto gen the .pyi files
@upper basin charge your laptop
!e
import numpy as np
from collections.abc import Iterable
a = np.array([1, 2, 3])
print(isinstance(a, Iterable))
@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
True
I've been phased out
Sorry
Maybe if you're making a library
Exactly
Then yeah, might as well
It's especially beneficial if it's a large lib
Yep
Yep
Helper methods that are meant to be private or used internally to process stuff, not as much
But I'd still document them
Actually do auto doc generators let you filter out helper methods and what not?
Doesn't need to be ai
That
Yeah
No no
I'm not saying for the doc strings
I'm saying things that take doc strings and make documentation from that
Sphinx for example
Not sure what np.pad() returns
That's not messing with it
I don't think anyway...
Although it's worth trying
It's square
Yeah
That's why I'm here
yeahhh
Wait
Is pad in place?
Does it just modify data?
Oh right
Hmm
May be too deep of a recursion
Wait wait wait
Actually no, I'm wrong on that
Try typing that variable
NO no
Not that
As in adding the type hint to that variable
^^^
Adding the NDArray to the variable
It's uncommon
colon
:
Da fuq?
Hold on
I'm looking at the docs
That's weeeeeeird
Oh I'm sure it will....
I don't think it's a PyLance issue
And you'd be committing to PyRight
Fair point
Oh huh
There's some specific stuff for numpy typing
Didn't know that
It's possible to mutate the dtype of an array at runtime
Yeah that'd complicate things...
It'd throw an error rather than return None
Wait, did you install the MyPy plugin?
Because it looks like there's a setting
@woeful salmon
Or rather did we have him do it
Oh okay
My b
Nah nah
Was just curious
Wait really?
Yeah the thing that everything has
Oh it will
If you don't have anything defined.
@upper basin find and replace?
Hiii everyone
would be faster than finding each type individually
Underwhelming?
Describe what feelings are coming to you now that you have fame
@woeful salmon
its a snakepit like i expect it to be
reddit is reddit afterall :3
Internet is what internet does
start snake farming
@odd lynx Yo
in 1800s, delhi had a snake infestation
british govt decided to give a snake bounty
so people started farming snakes and then getting paid on the dead snakes they delivered
People will always game the system
How goes it
Doing well, slav?
Cool cool
Jesus, what kind?
Fuck that
The hell it is
Interesting, I thought in most religions that snakes were bad omens
Fair
Holy shit
big words
The population of Dehli is over 5x larger than the population than the entire state of Missouri
still smaller than karachi
Highly dense areas
Hi @whole bear
Hi
the Return of the Coworker
Wait why would they hate your post?
Actually, one sec
There we go, now I can hear
@whole bear What's got you stuck?
basically i posted a way to improve rng
but ppl are complaining that its still rng
yeah but apparently they still wanna say my post is bad cuz its not 100% definitive increase in drops
lol
Fluent Python is amazing
Yep. All thanks to dunders
And meta methods
But more often than not, dunder
One sec, have to grab some copy paper
c struct
collections is great. itertools is cool as well
Counter is my bread and butter
Love that
?
!d collections
Source code: Lib/collections/__init__.py
This module implements specialized container datatypes providing alternatives to Python’s general purpose built-in containers, dict, list, set, and tuple.
This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.
The module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an “iterator algebra” making it possible to construct specialized tools succinctly and efficiently in pure Python.
For instance, SML provides a tabulation tool: tabulate(f) which produces a sequence f(0), f(1), .... The same effect can be achieved in Python by combining map() and count() to form map(f, count()).
Similar names: 2to3fixer.itertools
!d functools
Source code: Lib/functools.py
The functools module is for higher-order functions: functions that act on or return other functions. In general, any callable object can be treated as a function for the purposes of this module.
The functools module defines the following functions:
That's amazing
I do like the term dictionary more than hashmap
True, the underlying part
Because like JS objects aren't hashmaps, right? Even though they kind of meet that format
True
Whyyyyyy
I guess the LSP's do cover your ass most of the time anymore
True
Yeah that's fair
Fair
Some
There are some minor ones
Right
I was thinking about minor optimization
During the TS to JS part
Yeah
That's more what I was thinking
Sure sure
It's an itty bitty part
Always async
Does it do that with promises?
Gotcha
What do you mean, cal?
Hemlock is my fav admin
Cause he's the one I talk to the most
NodeJS is single-threaded, but can make use of multi-core systems with Cluster module.
From what I'm seeing anyway
is there like a website I can download these kinds of fonts from
Not yet
Correct
That's a thing now
That sounds right
I'll look at the changes, but I'm pretty sure you're right
Ah yep
Ok bye everyone
!pep 684
We all have at least once
Ohhhhhhhhhhhhhhh
Okay that makes more sense
@upper basin Just use triple quotes
"""
string
on
multi
line
yo
daw
"""
Node.js runs JavaScript code in a single thread, which means that your code can only do one task at a time. However, Node.js itself is multithreaded and provides hidden threads through the libuv library, which handles I/O operations like reading files from a disk or network requests. Through the use of hidden threads, Node.js provides asynchronous methods that allow your code to make I/O requests without blocking the main thread.
Although Node.js has hidden threads, you cannot use them to offload CPU-intensive tasks, such as complex calculations, image resizing, or video compression. Since JavaScript is single-threaded when a CPU-intensive task runs, it blocks the main thread and no other code executes until the task completes. Without using other threads, the only way to speed up a CPU-bound task is to increase the processor speed.
@stark river
Interesting that they're "hidden"
@grand pulsar Yo. If you're wondering why you can't talk, check out the #voice-verification
That'll tell you what you need to know about the voice gate
@upper basin plug out your charge cable now.
We're what sorry?
