#voice-chat-text-0
1 messages Β· Page 1042 of 1
Use the !user command in #bot-commands
ah thanks
No problem!
bye i am going to lunch
"Hey, Hamburglar, do you think you'll ever stop stealing from our customers?"
"Nope. Robble 'em."
"Thanks. You're the best!"
PAYLOAD = dict[str, str | int | list[dict[str, str | int]]]
PARSED_CHANNELS = list[dict[str, str | int]]
We are starting out with a new tutorial series on advanced Python programming. In this first video we talk about magic methods or dunder.
βΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎβΎ
π Programming Books & Merch π
π» The Algorithm Bible Book: https://www.neuralnine.com/books/
π The Python Bible Book: https://www.neuralnine.com/books/
π Programming Merch: https://www.neural...
Markdown in emails π
Emails are typically HTML
And pretty much add as much emphasis as humanly possible
And then add more
Typically?
Do modern emails even still include the backup text version?
They do
Oh right right right
hi
Past a far Ian.
Goosetyping. Instead of clickety clack, "HONK! HONK HONK! HONK! Hnk."
@misty bone If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate system
biocipher
Wax.
#code-jam-2022 @trail dirge You might be better served directing any codejam-related questions here. π
$a = 1
$a.gettype()
$a = 'Hello all'
$a.gettype()
[int32]$b = 2
$b.gettype()
$b = 'Hello Hemlock'
$b.gettype()```
'gm' is an alias of 'Get-Member'. Alias can introduce possible problems and make scripts hard to maintain. Please consider changing alias to its full content.
Please fix
Thanks
Get-Member is a lot like dir (Python)
!eval
print(dir("3"))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
all the things
CreateAsSymbolicLink
create_as_symbolic_link
C:\Drives\Disk3 -> Disk 3
F:
AA:
This type of drive mounting is commonly used for SQL Server/Exchange
because you can quickly script setup stuff
This is what we call the script that does DSC for us.
Digital Security Controls?
Desired State Configuration: https://docs.microsoft.com/en-us/powershell/dsc/getting-started/winGettingStarted?view=dsc-1.1
Hiii!!!
hi
how is your day going
good wby
just wanna make peoples day better
This lady keeps coming back to haunt me....what is life?
Halo
I am both confused and intrigued by this statement
I cant get the "Guac-amole, guac- guac- amole" out of my head
also the "pfft the ketchup, pfft pfft the ketchup"
.....torturous.
@steel drift If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate system
thanks
heyho does one know a bit about lists?
already got a channel there
then your best bet is to just wait
The help system puts new channels at the bottom of the list, and it'll scoot up as old ones are answered and closed. You'll get there
thanks but the general concept is not the problem
i just dont get why i cant pd.concat my dfs Q_Q
That's a troll
my schedule is too full for that
I might be able to fit some exercise into my schedule during some weekends starting in October, but that's about it.
Until then, this borderline obesity ain't going anywhere anytime soon
Too many
And when I'm not in meetings, I'm debugging failed builds
the meetings are in person
If I could, I would
Sure, I'll just give up my paycheck for another several months of job searching just so I can walk around my one bedroom apartment from time to time
No remote option if you were hired before the pandemic started
Welcome to Finance
We're financial tech except when it comes to actually providing the tech side with competitive pay, operating systems that aren't called Windows Vista, and being allowed to use any stack that doesn't involve Java 7.
I'm an SRE
But we do have a very good health plan, and the commute is three minutes.
Very good by american standards, at least. So I'm only paying $550 each month on my medicine instead of the full $600
But at least I have an HSA for that.
Once the recession hits I'm getting a condo (waiting for the housing market to collapse first) that is biking distance so I can get at least some exercise that way.
I think we can all find 20-30 mins a day for workout
As it stands right now, I can only do so if I sacrifice 20-30 minutes of sleep each day
Means you work too much or getting tired a lot
This is america, working ourselves to death is the only way to make enough money to eat.
anyway, I need to go to yet another in-person meeting that probably could've been an email
later
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Nice!
got it
Brb @rugged tundra powertoys updated and forcibly restarted my pc... Now there are some updates to windows also haha
!e ```py
class MyClass:
def function_or_method(self):
pass
mc = MyClass()
a = type(MyClass.function_or_method)
b = type(mc.function_or_method)
print(a)
print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'function'>
002 | <class 'method'>
def blogo_fuzz(a, b, c):
"""Blogofutz-Perrimaker fuzzing algorithm.
Blah blah blah usage instructions.
Maybe a link to some published paper describing it."""
...``````py
>>>help(blogo_fuzz)```
@somber heath rt
rt?
roger that
Oh. Right.
understood
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
class Test:
def __init__(self):
print("hello")
test = Test()
!e
class Test:
def __init__(self):
print("hello")
test = Test()
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
hello
!e
class Test:
name = "This is a test"
def __init__(self, name_2):
self.name_2 = name_2
print(Test.name)
print(Test.name_2)
@wind raptor :x: Your eval job has completed with return code 1.
001 | This is a test
002 | Traceback (most recent call last):
003 | File "<string>", line 9, in <module>
004 | AttributeError: type object 'Test' has no attribute 'name_2'. Did you mean: 'name'?
!e
class Test:
name = "This is a test"
def __init__(self, name_2):
self.name_2 = name_2
test = Test("Chris")
print(test.name)
print(test.name_2)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | This is a test
002 | Chris
hello
hello
wadap
pick a topic
what about it
what?
i heard about a cool project
that tells you about products
on amazon
when there price is low
no
personal project
or may be in future use it to buy something
Amazon, being the largest e-commerce shop in the world, offers more than a million products. Sometimes, instead of going through each page and finding the stuff we want, I just want see everything in a single table. In this in this web scraping Amazon with Python tutorial I'm going to show you how to create a Python program to scrape product lis...
ok
but i'm 10 yrs in the industry, working on a different role
ok
just getting into coding, i can read code but couldnt write
yup
hope so
it will
hello
heya
hello
mind if i ask something to explain
go on
hmmm i dont know how the def function work
In this article, you'll learn about functions, what a function is, the syntax, components, and types of functions. Also, you'll learn to create a function in Python.
you just write a function and you call it afterwards
how to do that?
there a button next to disconnect
just click that
hello
no we can hear it
yes
no i don't have a mic
thanks bro
ok
!cryptography
hello
@wind raptor
going gogod
how aout you
about
are you idle the whole night
on discord
ok
what did yo said
@wind raptor
ok
have you ever used signal microprocessor
lol
πΈ
π
hey guys whats up?
No worries! Have a great one and good luck with your coding!
@magic kiln
yeah you're right @wind raptor
yeah i will come later today @wind raptor
i think i'm only a couple hours off @wind raptor
gotcha
I just started doing python about 3-4 days ago
but i been putting in 13 hour days so my progress is going kinda quickly
yeah it doesn't seem too complex
and yeah the apex discord is nuts
just kids coming in screaming the N word and other profanities its annoying
yeah but in a discord like this i mean i guess people really have no life
if you
would join and do that
but yeah its a lil annoying but understandable
you working on any projects?
i also started working on python cause my college i wanna get into requires a entry code
yeah but they only require you to know the basics so i been buzzing through i still got till august 28th
I figured id use unity and python and try to code maybe a little text based game or something along the lines
just to stand out a little bit and show i got more to offer besides just coding
yeah "just the basics"
yeah
they wanna see a github portfolio
just a bunch of random lines of code
is what i was told
yeah they just wanna make sure u can mostly do functions and define variables and what not
but im trying to learn strings and all and its been a little bit of a headache
ignore not strings i meant list
got confused
yeah i just have trouble understanding the concepts of it
like whats real world applicability
that's the kinda thing that keeps me from fully understanding
okay so basically instead of a=coffee . it would be like a=coffee, water, milk, soda
!e
import random
drinks = ['coffee', 'water', 'milk', 'tea', 'juice']
print(f'Today I will drink {random.choice(drinks)}, tomorrow I will drink {random.choice(drinks)}')
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
Today I will drink tea, tomorrow I will drink coffee
so how does the import random work?
thats kinda straying but i haven't learned that quite yet
!e
drinks = ['coffee', 'water', 'milk', 'tea', 'juice']
for drink in drinks:
print(f'I like {drink}!')
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | I like coffee!
002 | I like water!
003 | I like milk!
004 | I like tea!
005 | I like juice!
so is the main concept its kinda a way to store a bunch of data within a single variable?
gotcha. and how did you get the random to work?>
mm but how does it know how pick randomly without being coded?
is random prebuilt in?
sorry if that sounds stupid
all u said just blew right passed mne
XD
pseudoranom
and the other word
never heard them
ohh so its timing based
like if me and u click at the same second it would produce same result
oh so like how you can seed a map in a game
its technically randomly generated
but you could use a seed to create the same map but off a random choice kinda
gotcha
see learning even more new things
alright
C-- (pronounced C minus minus) is a C-like programming language. Its creators, functional programming researchers Simon Peyton Jones and Norman Ramsey, designed it to be generated mainly by compilers for very high-level languages rather than written by human programmers. Unlike many other intermediate languages, its representation is plain ASCII...
oh damn did i really
Want to become a HACKER? ITProTV has you covered: https://ntck.co/itprotv (30% off FOREVER) *affiliate link
In this video NetworkChuck teamed up with @John Hammond to talk about the NEW and SCARY Microsoft Vulnerability. NetworkChuck and John Hammond are going to teach you about a new dangerous Windows Zero-day vulnerability called βfollinaβ ...
work thing
Talking to some work folks.
Ok, no worries!
A ten times developer is the developer who is ten times more efficient than the average developer on a team.
So it's not a developer that says the same friggin' thing ten times during the same conversation?
close!
but not exactly
L'eagle. It's French for eagle.
Use case. Windows has polish, but ew megacorp information hoovering.
Linux is fine if you're computer literate enough.
Windows does games better mostly by virtue of games targeting it.
Linux does at least Steam games pretty well. Ew, Steam.
Better than frying
Other games have Linux compatible versions, too.
Apple: HOA. Windows: Suburban bliss, built on reclaimed landfill. Linux: Customisable fallout shelter.
If OSes were dwellings.
That's.... actually the best comparison I've seen in a while
We don't get out of life alive.
that is a true
Suggestion for new Discord feature. Pull to talk.
now i'ma just type its easier haha
Ooh. Shake to talk. Actually, that'd probably make people throw their phones.
I'd have to buy Nitro again
"Orient North to talk." Compass-activated.
Yaas
Marxist is any country that doesnβt give citizens assault rifles. π¦
Is Antarctica Marxist or is it 2xist? You decide!
"God, My Coworker" An office sitcom where God is working in the next cubicle to you.
"I'm unable to submit this positive pay to the bank"
"Okay, is it giving you an error or telling you what specific field isn't working?"
"Yes and yes"
Fucking....
WHAT'S THE ERROR
Welcome to desktop support!
Please make sure to pick up your emotional support stressball by the end of the day
"Can you show me the error?" "Yes, I can." *Silence*
I have four.
We here at WeHateU Corp are not liable for any permanent or lasting emotional damage
I think that's a medical condition
"can you please come to my desk"
guys where is voice-chat?
"No."
I'm not sure what you mean.
Unfortunately I get in trouble for bad customer server if I don't go
I swear to god there is going to be a day where I just shake her by the shoulders
Comb Pete, because Pete wants his hair smooth and luxurious.
I have actually done that to someone
It works
But it has to be the right kind of person
Most people would take offense
I'm disappointed that no one enjoyed the nose cancellation joke
I misheard it as "noise cancellation".
I hate QuickBooks
Didn't have eye cancellation.
https://discord.gg/rossmanngroup
Let's get Right to Repair passed! https://gofund.me/1cba2545
I am an idiot and got locked into the Quickbooks system before I was aware that it was awful. Don't be like me.
It is still a thing?
QB is still huge
Quite Big then.
Magical
@mild quartz for work I have to do a presentation on an interesting data science topic - the more interesting the better, regardless of practicality or utility
do you have any recommendations
the most interesting thing I can think of is competitive self-play
competitive self-play is very expensive to train
do you just need to present
or do you need to implement it
no no
literally just 3 minutes talking about it
someone is talking about analogue AI for example
hmmmmmmmmmmmmm
something that is very hype and pretty easy to understand is scaling hypothesis stuff
There's ~10 of these, that one is taken. I'm just trying to find something that is more obscure but still interesting
okok
how about this
this is closer to your original suggestion
that's definitely interesting
another. modern thing is solving games using pure transformer architectures, no reinforcement learning https://arxiv.org/abs/2106.01345
nuclear reactor design with rl? https://www.nature.com/articles/s41586-021-04301-9
that's phenomenal
there are so many fun options lol
music generation? https://arxiv.org/abs/2005.00341
this model is cool because you can give it a clip of music and be like "play this in the style of artist_"
i am a generative model of ml papers
technically correct
this is more data sciency https://huyenchip.com/2022/01/02/real-time-machine-learning-challenges-and-solutions.html
In the last year, Iβve talked to ~30 companies in different industries about their challenges with real-time machine learning. I've also worked with quite a few to find the solutions. This post outlines the solutions for (1) online prediction and (2) continual learning, with step-by-step use cases, considerations, and technologies required for e...
its about having ml models that adapt to users in real time
This is all bullshit, letβs go!
I was on the job market recently, open to suggestions on what I should do next. Iβm deeply thankful to all those who reached out and pitched their companies, and also to people who shared their wisdom of how they wanted to navigate their own careers.
@south bone You've got static coming from your mic again
@rotund scaffold Really sorry, didn't mean to bail. I've been fighting with QuickBooks customer support all morning and still fighting the good fight now
@rugged root No worries dude
@amber raptor https://tools.promostandards.org/
Ah found the actual definitions I'd be standing up
https://tools.promostandards.org/standards/services-api
lmo
:incoming_envelope: :ok_hand: applied mute to @tall geode until <t:1657827266:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
Δ± can't use a class thats so hard
They're very good to learn about. Every object in Python is of a class/type. Classes govern the sort of data those objects represent/hold and how they behave/how we can interact with them and that data.
Python thinks in the language of classes.
So understanding classes, while not mandatory, is essential to understanding Python.
https://github.com/levidomates/snake_game/blob/master/snake_game.py look that one Δ± am not using class it is looking bad
Δ± now the class things but Δ± can't use
hey @somber heath
hey @whole bear
joining = participation trophy
preach
100% correct
same I come here while learning and end up finding a bunch of information I never even knew existed
@somber heath is blowing my mind right now
whats a class?
no
i just started
yeah
i know its stupid
sorry
!e py print(type(5))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<class 'int'>
!e py print(type("Hello, world."))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>
!e py print(dir("$"))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
okay one second
how do these function within the code
yeah its kinda complex
yeah do it idiot level
π
!e ```py
class MyClass:
pass
mc = MyClass()
print(mc)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<__main__.MyClass object at 0x7f41d2365510>
so thats interchangable between that and _
like my_class
yes
confused a little
so is the class kind of like a grouping
a = MyClass()
b = MyClass()```
mmm kinda
!e ```py
class MyClass:
def init(self):
print("Hello, world.")
MyClass()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
!e ```py
class MyClass:
def my_method(self):
print("Hello, world.")
mc = MyClass()
mc.my_method()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
yes but not on an advanced level
just to help with mathematical equations
kinda lost me
yeah im kinda hands on viewing
is it possible to call you in a private call?
!e ```py
def func():
return 5
v = func()
print(v)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5
v = 5```
why would you want extra code to equal the same output?
gotcha so multiple ways to get to the same destination
got it
is class short for classification?
!e ```py
class MyClass:
def init(self, v):
self._v = v
a = MyClass(5)
b = MyClass(10)
print(a._v)
print(b._v)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 5
002 | 10
okay and the instance object refers to the 5 and 10
correct?
never
i don't even know how to use is at all
!e py a = [] b = [] c = a print(a == b) #True. a and b both point to objects that are equal to one another. That is, they are both empty lists. print(a is b) #False . But are not the same list. print(a is c) #True. a points to the same object in memory as c does.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
003 | True
how do you get it to answer true or false is that because you turned it into a bool
ahhhhhhh
gotcha and a variable becomes a string with " "
i think ill need a little more training with clases
classes but i understand (is)
!e ```py
class MyClass:
def get_self(self):
return self
a = MyClass()
b = MyClass()
print(a)
print(a.get_self())
print(b)
print(b.get_self())```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <__main__.MyClass object at 0x7fe0c29cdc00>
002 | <__main__.MyClass object at 0x7fe0c29cdc00>
003 | <__main__.MyClass object at 0x7fe0c29cdbd0>
004 | <__main__.MyClass object at 0x7fe0c29cdbd0>
gotcha
!e py class MyClass: def func(self): return self a = MyClass() print(a is a.func())
@somber heath :white_check_mark: Your eval job has completed with return code 0.
True
gotcha
!e ```py
class MyClass:
def add(self, _):
return "Hello, world."
mc = MyClass()
print(mc + 5)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
!e ```py
class MyClass:
pass
print(MyClass())```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<__main__.MyClass object at 0x7f8c2c9d9120>
!e ```py
class MyClass:
def str(self):
return "Hi"
print(MyClass())```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hi
haha yeah its a bit. trying to learn can be a little difficult
understandable.
so what would you personally recommend for me to learn afterwards
i know a couple things but im kinda stuck at where to progress
i'm trying to fully understand python like get the know all for it.
mmm how did you learn?
i just don't know where to continue i kinda started learning without a text book cookie cutter learning
no i have not
i watched a couple csdojo videos
thats about all i've done
Corey Schafer. Youtuber. Playlist for Python beginners.
would it be good enough to satisfy college entry code
?
i have no idea what any of that is
they told me they wanted me to have basic understanding
then they said it starts in python and ends in java
and those are the only two languages they touch
yeah kinda surprised me too
its the top US school for computer science degree
whats conventions ?
sorry π
insert clueless here
all those things you said i have no idea of
SCREAMING_SNAKE_CASE
no but can u link that
Colorama
i actually was looking for something like that
ANSI escape sequences under the hood
to install do i just follow the page
i've been using visual studios and juypter
oh no im using vs
2022
how do u write lines on there
it seems to run line by line
i can't get it to run multiple lines
on python native terminal
yes
ohhhh
so copy paste
or open the file in python
gotcha yeah im in windows
i cant comprehend linux
too stupid
mmmm understood
but how do you figure out how to install progrrams even
i know how to install the packet managers
but how do i open them
?
sorry that's what i meant π
kinda confused
when i download the files it just gives me a big folder with files
no executable files
which is where i get lost
yes
like downloading steam even
yeah i've had to use terminal to open and install
hmmm maybe i installed the wrong steam
yeah that's what it made me do
exactly what u just said
mmm so i run my own backend
instead of having a front end to rely on
gotcha
hmm.. I feel like i could learn it it just seems like windows is just so much more user friendly
thats what im using
π
yeah tell me about it
my damn phone been driving me nuts
yeah terribly corps man
its like a monopoly
like helping a buddy to backstab him
haha yeah, and when they do everyone by then would forget linux was ever free
they'd find a way to purchase it and profit
oh red hat is free
lol
i found it
sorry tried to paste data from my VM
The Red Hat build of OpenJDK is a free and supportable open source implementation of the Java Platform, Standard Edition (Java SE).
enterprise isnt free
licensing is what they claim is there cost
oh wait nevermind
putting it on ur pc is free
using it cost money
through subscription
yeah but could you imagine getting booted and then all the sudden can't use your data at all
π
like if u needed it for your schools senior project
damn how old are you
20 years ago
so like microsoft gamepass
i thought u were like late 20's like me
I talk to a guy from this server whos 52
i don't think u got that bear
beat
lol
its okay
really
nahhhh
we must do a whos the oldest survey
give them a role
oldest member
π
hey if i was the oldest i wouldn't mind
id just tell people hey i'll probably still have lived longer than u wil;l
will*
lol gotta hit them with the facts when they talk crap
im legit dying over here laughing
gentleman like I like it
chop chop
i haven't laughed this hard in a long time
lol not gonna lie when u said a nazi walked into the bar i laughed like crazy
The parable of why you should always oust Nazis, even the polite ones.
I'll take this moment to take a break.
lol take a breather you deserve it @somber heath
!e ```py
def friendly(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print("Hello, world!")
return C
class MyClass:
pass
MyClass()
print("*")
@friendly
class MyClass:
pass
MyClass()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | *
002 | Hello, world!
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
!timeit
import random
nums = random.sample(range(10), k= 10)
nums.sort()```
@somber heath :white_check_mark: Your timeit job has completed with return code 0.
20000 loops, best of 5: 10.9 usec per loop
@whole bear what were you talking about
Its a double-bubble sort
you can talk in voice chat o
what does that mean
ok
so we should not use it
i guess
do you work with are=duino
arduino
@warped raftno if you send 50 message you can talk voice chat
Lil Doo Doo (Pete Davidson) gets a lesson in rap history from the Soul Crush Crew (Chance the Rapper, Kenan Thompson, Chris Redd). [Season 43, 2017]
#SNL #SNL43
Subscribe to SNL:Β https://goo.gl/tUsXwM
Stream Current Full Episodes:Β http://www.nbc.com/saturday-night-live
Watch Past SNL Seasons:Β
Google Play -Β http://bit.ly/SNLGooglePlayΒ
iTunes...
brb
Episode: The Deep South
LOL!
Insulin blocks hormone sensitive lipase, which allows your body to burn fat as an energy source
Huh, I didn't know it flat out blocked it
when eating too many carbohydrates, insulin is spiked, therefore you can't burn fat for energy, therefore you're moar hunger
@quaint oyster yea, i remember studying it
Man, those poor Ukrainians
your liver cells etc can only have so much insulin before it starts blocking it out, in which case insulin is stored in your fat cells
I bet that shit hurts
βTexas Sunβ from Khruangbin & Leon Bridges collaborative Texas Sun EP, out February 7th, 2020 on Dead Oceans, in partnership with Columbia Records and Night Time Stories Ltd.
Pre-order / Stream: https://ffm.to/texassun
Lyrics:
YOU SAY YOU LIKE THE WIND
BLOWING THROUGH YOUR HAIR
COME ON ROLL WITH ME TIL THE SUN GOES DOWN
THAT TEXAS SUN
SAY ...
!stream 282479920330833920
β @fast umbra can now stream until <t:1657894902:f>.
@rugged root supp
Not much, 'bout you?
@fast umbra what is ops?
Operations
@rugged root π€ i'm like 60% commandline
my editor, git client, github (cli), file explorer (vifm) and so on are all commandline
Sure sure, but I'm saying exclusively
@fast umbra I'd do and instead of or there
Makes it more exciting, I think
πͺ
@fast umbra a very good tool to check grammar/spelling/etc https://www.grammarly.com/
I worked with plenty of H-1B, they always said Java was college language.
it is and unfortunately its not taught very well either
they just throw all the oop terms to you with a book and don't explain anything well alot of times
in my highschool we got a packet of the "big 4 ideas": inheritance, polymorphism, abstraction, encapsulation

Strong experience in Python and/or Python ML stack with an understanding of Software Engineering patterns, Data Structures, and System Architecture
!stream 282479920330833920
β @fast umbra can now stream until <t:1657897278:f>.
the only reason i was able to work with java properly at all afterwords was because i self learnt the whole language from scratch again
and took time actually understanding what all that meant
I have heard of experience being "strong" before.
!e ```py
def birthday(message):
def d(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print(message)
return C
return d
@birthday(message="Hello, world.")
class MyClass:
pass
mc = MyClass()```So I've been writing class decorators lately. Fun with decorators with parameters.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
It looks like a load of jank, but it's kind of how they're written, I think, so whatever.
@faint ermine you're crackling a bit again
basically, github link snippets and github issue embed across 2 different bots why?
https://github.com/python-discord/bot/blob/main/bot/exts/info/code_snippets.py
and
https://github.com/python-discord/sir-lancebot/blob/main/bot/exts/utilities/githubinfo.py
Laundmo thinking there is a great explanation for same feature being in two enterprise applications instead of simple answer of βsomeone forgot it existed and wrote it a second timeβ.
Speaking of - Want to review sir-lancebot#1077 Mr.CoreDev?
rabbit
Β‘Hola!
Hola! Como has estado?
its not about that, i asked if there was a reason for these similar not same features being spread across 2 open source, community run bots. For all i know there might be a obvious technical reason in missing.
@rugged root "estas" = "are you", "estado" = "were you"
"how have you been?"
My high school Spanish teacher's real comments: "you can't take English words, add an 'el' in front and an 'o' at the end and expect it to be Spanish"
watch me
Turns out "El stomacho" and "El Lego" are not valid body parts in my quiz
Estamos aqui a apprender sobre el Pythono
El banko is for bank, though
Still cracks me up
Elelbowo.
banco*
Aren't you.... You took Spanish in India?
I did high school in dubai
Our high school was like one of the posh ones we had like 100 different nationalities in it or something
I think confusion is me calling it Enterprise Project. PyDis source base is open source Enterprise Project. It looks like every Enterprise project I've been part of. Multiple Project Owners, poor documentation at times, inconstant standards and people driving direction depending on who was working on it at the time and monolith applications. I always joke with people if you want to know what working on Enterprise is like, Checkout PyDis Github organization. It's pretty much the same.
The confusion is your insistence of making a big deal out of what could have been a 2 sentece deal.
yo hemlock you know why this is?
no clue, ask in #dev-contrib
done. why make a big deal of out that?
because I expected better of you. Git History indicate that Hemlock was anywhere close to being involved?
git history doesnt show anything about who knows about it, only who contributed. It, and i, have barely any knowledge of internal discussions about these things.
Because when you ask in dev-contrib, that's literally what everyone is going to do. Hmmmm.... when did this get introduce, by who and what PR? Does anyone have a clue
actually, go check it now. nobody dug through the history, instead pinging the responsible person to ask if it should be unified as it seems nobody sees a reason.
you treat every situation like its a enterprise level company behind it, and while the codebase might look like it the organisational structure of the people involved does not.
"expected better of you" ffs
Rabbit, why are you being this much of a dick today?
I mean seriously
I've only ever seen that logo in a "guess the logo" game
@rugged tundra - Whatever you do - Learn Rust first!
Rust is the best language ever
Everyone hates C++
C++ before Rust? Why?
At the end of the day, what language you learn - doesn't matter
Learning a new language teaches you about the concepts, and the better you understand the concepts, the faster you'll be able to pick up a new language
i really recommend these videos to get you in the mood for Rust: https://www.youtube.com/playlist?list=PLZaoyhMXgBzoM9bfb5pyUOT3zjnaDdSEP
theyre short 10 min videos on why Rust, not tutorials
Hi! I'm James Murphy and I make videos about programming and mathematics, mostly including Python and C++.
My goal is to help as many people as possible better their own skills by seeing coding and mathematics through my eyes. I'm a Carnegie Mellon and UT Austin trained mathematics Ph.D., I've worked in quantitative finance in Chicago and New Y...
brb
@quasi condor Why u abandon me
You don't already do that?
;o
I'm going to be deafened for a bit (have to call QuickBooks again), but I'll still be watching chat
Can someone pin that?
I can, but I say it often enough that it's unnecessary
(Very good so others know that its horrible)
Oh ok
no need in that case XD
ye
Why are we talking about proxies? What'd I miss?
LOGS.info(message)
if isinstance(message, pyrogram.types.Message):
for key__, value__ in message.__dict__.items():
LOGS.info(f"Value type: {type(value__)} Value: {value__}, Key type: {type(key__)}, Key val {key__}")
if isinstance(value__, pyrogram.types.object.Object):
message_dict.update(dict((key, value) for key, value in value__.__dict__.items() if
not callable(value__) and not key.startswith('__')))
else:
message_dict.update({key__: value__})
LOGS.info(message_dict)
undeafen π
Can't
Let me give u some context
They are talking about rate limiting in apis for scarping
purchasing APIs to like
or to like
prevent rate limiting
{ "_": "Message", "id": 212, "sender_chat": { "_": "Chat", "id": -7188, "type": "ChatType.CHANNEL", "is_verified": false, "is_restricted": false, "is_creator": true, "is_scam": false, "is_fake": false, "title": "gruppo_test", "has_protected_content": false }, "date": "2022-07-14 01:38:30", "chat": { "_": "Chat", "id": 7188, "type": "ChatType.CHANNEL", "is_verified": false, "is_restricted": false, "is_creator": true, "is_scam": false, "is_fake": false, "title": "gruppo_test", "has_protected_content": false }, "mentioned": false, "scheduled": false, "from_scheduled": false, "media": "MessageMediaType.STICKER", "has_protected_content": false, "sticker": { "_": "Sticker", "file_id": "CAACAgIAAx0EYNM_5AAD1GLRn-v8Rz0Jwh9bBTUnwv_gWzZrAALFAwACnNbnClsqgl__YWWaHgQ", "file_unique_id": "AgADxQMAApzW5wo", "file_name": "sticker.webp", "mime_type": "image/webp", "file_size": 64332, "date": "2018-12-11 13:19:58", "width": 512, "height": 512, "is_animated": false, "is_video": false, "emoji": "π", "set_name": "MrSnoopDogg", "thumbs": [ { "_": "Thumbnail", "file_id": "AAMCAgADHQRg0z_kAAPUYtGf6_xHPQnCH1sFNSfC_-BbNmsAAsUDAAKc1ucKWyqCX_9hZZoACAEAB20ABx4E", "file_unique_id": "AgADxQMAApzW5wo", "width": 128, "height": 128, "file_size": 7650 } ] }, "views": 1, "outgoing": true }
LOL
:kekw
ah yes
Which I'd prefer we don't suggest to users
@ripe raptor
ok
π
Sorry
Hey @ripe raptor!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
was supposed to send that to verbose
π
noice
elif isinstance(value__, pyrogram.client.Client): continue
LOGS.info(message)
if isinstance(message, pyrogram.types.Message):
for key__, value__ in message.__dict__.items():
LOGS.info(f"Value type: {type(value__)} Value: {value__}, Key type: {type(key__)}, Key val {key__}")
if isinstance(value__, pyrogram.types.object.Object):
message_dict.update(dict((key, value) for key, value in value__.__dict__.items() if
not callable(value__) and not key.startswith('__')))
elif isinstance(value__, pyrogram.client.Client):
continue
else:
message_dict.update({key__: value__})
LOGS.info(message_dict)
2022-07-15 19:31:20,064 | INFO | telegram | Value type: <class 'pyrogram.client.Client'> Value: <pyrogram.client.Client object at 0x0000018C7A161100>, Key type: <class 'str'>, Key val _client
Hey @glad sandal!
It looks like you tried to attach file type(s) that we do not allow (.cpp). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
#include <iostream>
#include <Windows.h>
#include <string.h>
using namespace std;
string getActiveWindowTitle()
{
char wnd_title[256];
HWND hwnd=GetForegroundWindow(); // get handle of currently active window
GetWindowText(hwnd,wnd_title,sizeof(wnd_title));
return wnd_title;
}
void startup()
{
}
void clicker(int cps, bool randomize)
{
bool click = false;
while (true)
{
string currentFocusedWindow = getActiveWindowTitle();
if (GetAsyncKeyState('R')) //if R is pressed click = true
{
click = true;
}
if (GetAsyncKeyState('Z')) //if Z is pressed click = false
{
click = false;
}
if(click == true && (currentFocusedWindow.find("Minecraft") != string::npos || currentFocusedWindow.find("Lunar") != string::npos || currentFocusedWindow.find("LiquidBounce") != string::npos)) // if click = true it will press the mouse button down and up really fast
{
if(randomize){
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Sleep(1000 / cps - (rand() % 8) ); // Clicking speed
}
else{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Sleep(1000 / cps); // Clicking speed
}
}
}
}
int main()
{
int cps;
string randomize_input;
cout << "\nPress 'R' to enable and to Z disable AutoClicker\n";
cout << "Enter Cps[example: 12]:";
cin >> cps;
cout << "Would you like to randomize?[yes,no]:";
cin >> randomize_input;
if(randomize_input.compare("yes") == 0){
clicker(cps, true);
}
else{
cout << "Autoclicker will not use any type of randomization.";
clicker(cps, false);
}
return 0;
}
Steal if u want to xd
im fine with it
no licenses or so
but give me credit
if True:
continue
elif True:
do something()
cannot encode object: <pyrogram.client.Client object at 0x000002A61C2A1100>, of type: <class 'pyrogram.client.Client'>
Guys I will be deafened for a few moments, back soon!
# LOGS.info(message)
if isinstance(message, pyrogram.types.Message):
for key__, value__ in message.__dict__.items():
# LOGS.info(f"Value type: {type(value__)} Value: {value__}, Key type: {type(key__)}, Key val {key__}")
if isinstance(value__, pyrogram.client.Client):
LOGS.info("Value is a Client")
elif isinstance(value__, pyrogram.types.object.Object):
message_dict.update(dict((key, value) for key, value in value__.__dict__.items() if
not callable(value__) and not key.startswith('__')))
else:
message_dict.update({key__: value__})
LOGS.info(message_dict)
I need to hop off for a bit. Still dealing with QuickBooks and I also just got incredibly dizzy for no reason
Make sure to sit down and drink lots of water
Don't hurt yourself
Been sitting this whole time and got dizzy
No worries!
Drink some water!
Stand up?
Ginger Tea is always good. I usually mix mine with chamomile and lavender as well.
Also, I think I got the type hints right:
Using Any in the wrapper because the NWS API Schema is a little too complex to convert into a Type.
!paste
https://paste.pythondiscord.com/ifukeyoyap.json
for reference
KRKD 151556Z AUTO 29007KT 10SM CLR 25/13 A3008 RMK AO2 SLP185 T02500133
Gintautas Kazlauskas Generalist Software Engineer with a deep understanding of real time communications, audio/video encoding/decoding and streaming. KlaipΔda, Lithuania +37061875944 gintautaskazlauskas@protonmail.com github.com/gitautas WORK EXPERIENCE Hopin β Software Engineer February...
Now time to figure this one out the very fun way: https://unidata.github.io/MetPy/latest/api/generated/metpy.io.parse_metar_to_dataframe.html
@rugged root how was the tea?
Good
#PiratesoftheCaribbean #PiratesoftheCaribbeanAtWorldsEndοΏΌ #Disney #WaltDisneyοΏΌ #DisneyPiratesοΏΌ
Do You Think He Plans οΏΌIt All Out Or Just Makes It Up As He Goes Along...π€¨
the cloud in the gif is the slightly lower part near the middle of the image, tornadoes can form from them, but not always.
xarray
The Weather Underground was a radical left-wing militant organization first active in 1969, founded on the Ann Arbor campus of the University of Michigan. Originally known as the Weathermen, the group was organized as a faction of Students for a Democratic Society (SDS) national leadership. Officially known as the Weather Underground Organizatio...
@zenith radish if you're working on code, want to stream it?
*chode
@rugged root if he hasn't seen the question, ask him in vc pls
Get in here and ask him yourself
no
I'm ashamed of my tutorial level code
I'd rather not
Parody to Dean Martin's, "That's Amore" written and arranged by Brad Snyder
That's a Moray!
Β©2017 Brad Snyder
Vocals by Christopher Weeks
Backing Band: SessionBand App
Photo Credit - George Grall, National Aquarium
Please visit my YouTube page to find more of my songs.
https://www.youtube.com/channel/UCXhVO4qCkg7BDUCuj2JOGPg/videos
Please ...
async with httpx.AsyncClient() as client:
json = await client.get("http://httpbin.org/get")
I'm tempted to go for the super smiley face with the reason being "The call had @rugged root in it"
hello @autumn forge
hi @warped raft
Coding?
yup
i am coding π
What project?
a project on wescrappign
!e ```py
def birthday(message):
def d(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print(message)
return C
return d
@birthday(message="Hello, world.")
class MyClass:
pass
mc = MyClass()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
!e ```py
def greeter(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print("Hello!")
return C
@greeter
class MyClass:
def init(self):
print("Blah!")
MyClass()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Blah!
002 | Hello!
hello
!voiceverify
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I need to post more I guess =]
damn
yeah ofc
This is python discord, why you always discuss everything but python on Voice? π
Last time guy was livestreaming coding in GO =]
Java is good for what? π€
PIP in python equivalent for NPM
import threading
class _Singleton(type):
""" A metaclass that creates a Singleton base class when called. """
_instances = {}
_lock = threading.Lock()
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
with cls._lock:
if cls not in cls._instances:
cls._instances[cls] = super(_Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class Singleton(_Singleton('SingletonMeta', (object,), {})):
pass
threading is great
in python you have lists instead of arrays,
or just numpy.array()
mylist = ["apple", "banana", "cherry"]
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
unfortunately I do not have a microphone
I'm actively working on migrating UWSGI to ASGI proxy server
!stream 402558845563568128
β @fresh python can now stream until <t:1657974444:f>.
"twisted thing" =]
i use pyenv π
I'm also on vscode/code-oss like Mido
Nest all the things!
I Switched to Fast then I switched to Starlette
Now I regret switching at all! π
pip freeze > /path/to/requirements.txt will save your depencdencies as well
debug=True
export FLASK_ENV=development
dont name folder with upcase
python:
image: python:latest
volumes:
- ./path/to/python_app:/python_app
command: ["python","/python_app/app.py"]
ports:
- 9000:9000
Change configurations to match your machine. @fresh python
@wind raptor ^
π I don't have a microphone
models, not model π
move the app.py into the src directory
well you moved EVERYTHING into src not sure if that will work now
change the src directory name into docker_python
yes
now include all python related stuff in a new src folder
leave the docker-compose out side ther src
The docker-compose will mount the src into the docker environment
just move app.py, config.py and requirements.txt into the src directory
perfect
pycache should be ignored
.venv should later be placed outside your project.. but no worries for now
wait
your python will fail
Modify the docker -compose
right
Delete that new path/to/python_app dir path
volumn not right in docker-compose
yup, should edit it
you see path folder because of not editing in docker compose
Docker created /path/to/python_app when you needed to modify the docker compose
@fresh python
docker exec container and delete path folder from inside docker π
No
He is on his host machine
run docker-compose down to stop all services
open docker-compose.yaml
change .
change . into /src
sorry ./src
That will mount that volume into the python docker container environment
Oh!
Your I thought your docker- compose ymal file was inside the docker-python folder
right
hey sorry to interrupt, is this a flask proj?
no
- Delete that
./docker-python/src
- Move the real
srcup one OR use @autumn forge suggestion
No wait
i don't undrstand your dir structure
hahahah
you are stand in docker_python folder, because docker-compose file in this folder π
you can delete docker_python
and run it again
WaIT!!!!
wait
line 12
revert into ./src in docker-compose
PERFECTO
hhhhh
visit http://localhost:9000
you need to figure out volumn in docker
What port is your python app running on?
no the app.py
π
Wait, Screw the Tutorial
Were in the Dumpster now
hahaha
cool man π
Stop the Tutorial