#voice-chat-text-0
1 messages ยท Page 1018 of 1
Right
Yeah, the code you have should do that
hi
random but its a cutie emoji
hoii
my audio continuously muted ??!
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Beat me to it
us!!๐ฅฒ
just No sound
not us ๐
The code you have should do it, I'd just tweak it a little
word_string = "it rains in spain no nono no spain"
list_of_words = word_string.split()
count = {}
for word in list_of_words:
if word.lower().startswith("no"):
continue
if word in count:
count[word] = 1
else:
count[word] += 1
print(count)
But beyond that, it's fine
!e
word_string = "it rains in spain no nono no spain"
list_of_words = word_string.split()
count = {}
for word in list_of_words:
if word.lower().startswith("no"):
continue
if word not in count:
count[word] = 1
else:
count[word] += 1
print(count)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
{'it': 1, 'rains': 1, 'in': 1, 'spain': 2}
what was the error?
I had if word in rather than if word not in
So it was trying to add to a key that wasn't there instead of just setting a new one
So I just flipped the logic by accident
Not sure how much I helped
You had all the code there
You had the right stuff
Just had to tweak
This man is an egg in a suit
hi
And then we have Jack Nicholson's joker
@rugged root
Haha love it
But I guess we also don't have one for Windows or Mac
No... no linux emojis in the server
That's why you tape a slinky to your forehead.
Special thanks to Full Sail University for sponsoring this episode!
Find out more about Full Sail University Film Programs โบ https://fullsail.edu/thefilmtheorist
Naruto is an anime staple. It was also a pioneerย for many memes, the most famous of which is arguably the "Naruto Run". You know the one - arms back, forward lean, head down. It's used...
What was his name?
Large enough to take several cars.
Haay
Ooh. That reminds me.
cause they are not ninjas ๐
Olympians are the near ultimate min-maxers of physical effectiveness.
still can't do shadow clone jutsu
If running that way were more effective, that's how we'd see them run.
remember that area 51 thingy... ig, he was riding one that hype train...
nah... different times, area 51 is 2019... he is just click baiting Naruto fandom ig...
yeah, I'm ready @molten pewter
lol "thank you for flying python air" 
For some reason every time I give that explanation, that's how I sound
!e
print(0 == None)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
False
what project r u doing with arduino
anybody know how bash commands work with python in regards to setting a chrome driver location?
for example: ```bash
export CHROMEDRIVER=~/chromedriver
I try to run it but I get this: Exception has occurred: WebDriverException
Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
Bash is creating an environment variable, and Python is checking for the existence of an environment variable.
It's a system level thing, not a bash thing
oh okay. so on windows would I just run it in command prompt?
Windows use environment variables as well, but the command syntax is different
after searching Filipino language, Youtube changed my captions to Filipino
YouTube will default to the first available language if your preferred language is note available
ahh I'm assuming that's why it wasn't working. do you know the proper command for exporting the enviroment variable and also would you know if it should be a user variable or system variable?
powershell
And despite being for Linux, DigitalOcean's explanations are always good:
https://www.digitalocean.com/community/tutorials/how-to-read-and-set-environmental-and-shell-variables-on-linux
I have to go now, but I should be back shortly if you have questions or need help
Thanks for the help, I really appreciate it.
hey @rugged root can u give me some advice
so this is my main function... how can i adding dict outside of the function?
def main():
title_delele = title.replace('*',' ')
for i in soup.find_all(id='cover'):
for j in i.a:
x = j.get('data-src')
a['cover'] = x
a['title'] = title_delele
print(a)
a = {}
main()
what i want :
{'cover': 'https://*/galleries/*/cover.jpg' ,
'title': 'title_name'}
but the result i got "is not defined" can u give me some advice another way?
I like that when Mr Hemlock talks his avatar starts shaking
yea
what is this?
video player ig
next to sublime
OhhHhHHHHhhh
how often do you use it?
k
hmm github desktop
is similar to merge i think
lol
its fine
maybe Sublime will come with a product similar to Postman someday
what color themes do you guys use for vscode
Uhm, one dark pro usually
@peak coppersame, i also use the cli
i usually take .gitignore etc from github
they provide a template for it
maybe there us smth wrong in your settings
hope everyone's having a good day
i use ayu dark bordered its great
@sweet lodge It's functional now
we need it asap
@rugged root
SplinkTech
๐
(name, type_) = next(channel.items())
def payload_builder(config) -> dict[str, str | list[dict[str, str | int]]]:
payload = {
"name": config["name"]
"channels": channel_parser(config["categories"])
"roles": role_parser(config["roles"])
"system_channel_id": 1
}
return payload
def payload_builder(config) -> dict[str, str | list[dict[str, str | int]]]:
return {
"name": config["name"]
"channels": channel_parser(config["categories"])
"roles": role_parser(config["roles"])
"system_channel_id": 1
}
me want za stroopwafel
I do not
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
in #voice-verification this channel
YEAH. A STORY IN THE FORM OF GREENTEXT.
Twitter: https://twitter.com/BrendanielH
Recording Screw-ups: http://bit.ly/1hM4b7K
wtfff
class Madness(Hemlock):
def dostuff(self):
...
Yikes ๐
I mean it's not wrong
I=input;I("".join(f'{a!=b:d}'for a,b in zip(I(),I())))
It doesn't save a character, but it does make it easier to compare the lengths of different solutions ๐
That's not the worst I've seen...
Oh smarrrt.
!e
test="ham";if test=="ham":; print("why");
@rugged root :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | test="ham";if test=="ham":; print("why");
003 | ^^
004 | SyntaxError: invalid syntax
for i, role in enumerate(["everyone"] + roles):
payload.append(
{
"name": role,
"id": i,
}
)
I=input;I("".join(f'{a!=b:d}'for a,b in zip(I(),I())))
I=input;a=I();I(f'{int(a,2)^int(I(),2):0{len(a)}b}')

Ah yeah, I copied and pasted the wrong thing...
I retract my 
I=input;I(f'{int(a:=I(),2)^int(I(),2):0{len(a)}b}')
Today we have a special treat. A conversation with Brian Kernighan! Brianโs been in the software game since the beginning of Unix. Yes, he was there at Bell Labs when it all began. And he is still at it today, writing books and teaching the next generation at Princeton. This is an epic and wide ranging conversation. Yo...
Ohh
print(len("I=input;I(f'{int(a:=I(),2)^int(I(),2):0{len(a)}b}')"))
print(len("I=input;a=I();I(f'{int(a,2)^int(I(),2):0{len(a)}b}')"))
you can just visually compare because it's on the same line ๐
Well yes I see that now
hence the ; instead of newline even though they are the same number of chars
@ashen wyvern #game-development
I think there are a few examples on the PyGame website.
Iโm trying to delete files off a flashdrive and things go dark and blank and then chrome comes up and Iโm not wanting to be on the internet
Shit I don't want to see in my inbox from my co-workers
Yep
Here it is: https://www.pygame.org/tags/all
They have a lot of example games made with pygame.
oh thanks
You can check out the source code.
im dying
Actually, how far are you into your project already @ashen wyvern
As an alternative to PyGame, you might want to check out Arcade.
I just noticed a lot of the links on the pygame website are broken.
PyGame is a much older library.
Arcade is a bit nicer to get started with.
Oh i would say im 60% in the progress. It's a simple multiplayer game based on socket and pygame. And just so you can understand the game layout:
You connect to the game through a client.py script which connects to my server.py script and then it executes a file called network.py which does the connection part to make the user get connected to the server. And then it executes another file called player.py there it basically manages the game itself. Each player that connects gets an square object that they move around, thats like everything i have made so far. What im currently trying to find out is how i could make it able for the players to shoot bullets on each other from their own player objects.
Ah right I see
yeah
so it might be pretty much work to redo everything into the arcade module rn ๐
Nah not rn, i was followed a guide before in order to make the moving blocks and the socket connection but i was trying to continue on developing the game functions to make this shooting function
I found this, maybe it's helpful: https://www.youtube.com/watch?v=DHgj5jhMJKg
In this Python tutorial I code a Scrolling Shooter Game using the PyGame module. I'm going to cover the initial game setup and how to create the player
Code for this video: http://codingwithruss.com/pygame/shooter/player.html
Assets for the game: http://codingwithruss.com/pygame/shooter/files.rar
Alternative link: https://github.com/russs123/S...
Gotta go ๐
muted
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@wintry bough
!voice
seems rly good
for sure
lambda
ec2
cloud watch
AWS
Amazon Web Services
@tulip gyro pleasure knowing you....have to go, though don't wanna interrupt you in the conversation
You're super helpful and easy to talk to you.
Cya guys
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Dwitter is a social network for building and sharing visual javascript demos limited to 140 characters. See the impressive creations crammed into so few characters, and play around with your own code!
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Rainbow
that's really pretty!
Thankyou, i feel so love
@whole bear 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
I thought this business was a joke https://www.knightscope.com/ it is not a joke
Knightscope builds Autonomous Security Robots (ASRs) that are patrolling across the country 24/7/365 helping secure the places you live, work, study, and visit.
I do it all d time
halo halo
Learn about crime-fighting Autonomous Security Robots at www.knightscope.com - Join Us and Be a Force for Good!
Offering Circular: https://bit.ly/31TaND9
Related Risks: https://bit.ly/2HsLWP9
Securities offered through StartEngine Primary LLC, member FINRA/SIPC. This investment is speculative, illiquid, and involves a high degree of risk, incl...
I love how the star is filled :3
schema = ("id", "name")
roles = ["everyone", *roles]
return list(map(lambda x: dict(zip(schema, x)), enumerate(roles)))
schema = ("id", "name")
roles = ["everyone", *roles]
return [dict(zip(schema, role)) for role in enumerate(roles)]
roles = ["everyone", *roles]
return [{"id": i, "name": role} for i, role in enumerate(roles)]
I can neither confirm nor deny
Mmhm
postgres:
image: postgres:14
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: bot
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./pg_data:/var/lib/postgresql/data
ports:
- 5432:5432
Yeah and compile it on the command line
envy
thanks
https://www.youtube.com/watch?v=k53_PziipaA saw this music video, and it was made in Amsterdam @gentle flint
Listen to โKEEP IT UPโ now: https://ROC.lnk.to/KEEPITUP
'WHO CARES?' Out Now: https://roc.lnk.to/WHOCARES
Follow Rex Orange County:
http://www.rexorangecounty.com
http://www.twitter.com/rexorangecounty
http://www.instagram.com/rexorangecounty
http://www.facebook.com/rexorangecounty
https://www.tiktok.com/@rex
Rex Orange County - 'KEEP IT UP' V...
blocked by sme
I giggled at dongle
payload = {}
payload["name"] = config["name"]
payload["channels"] = channel_parser(config["categories"])
payload["roles"] = role_parser(config["roles"])
payload["system_channel_id"] = 1
return payload
return {
"name": config["name"],
"channels": channel_parser(config["categories"]),
"roles": role_parser(config["roles"]),
"system_channel_id": 1,
}
I like monokai
gruvbox
Good job, @rugged root
I really like Tokyo Night
@amber raptor I miss you already
This plugin comes with a bunch of different themes
Yeah - come back!
I need help with Kubernetes!
You're smart - I just need five minutes for a super quick fix

@dense ibex where do you live? ๐ฎ
amurica
ah damn :/ 250 + ping then i can't
how about eu
i usually play on middle east but eu should be around 100 for me too
@rugged root
my neovim now auto installs and updates lsp servers for me o-o
As well as its companion server, Together CNC++.
So good
You can play with whatever you want in your sleep
But keep it off the server
We have children here
Why do you people hate Visual Basic?
It's great for creating GUIs - it's literally in the name
"basic visuals"
@rugged rooti've never used anything i learnt from brainfuck in any other lenguage
๐ฆ
Reminds me of books in Minecraft.
see this give me chills on the spine
BF is actually pretty useful for teaching about execution models.
So's BrainFuck.
BF is an actual programming language huh
Yep ๐
It's quite difficult to use to write real programs, but it doesn't take long to learn.
Brainfuck is a minimal esoteric programming language. It provides a 30K 8-bit array that can be modified with 8 different characters.
#programming #compsci #100SecondsOfCode
๐ Resources
Brainfuck History https://www.muppetlabs.com/~breadbox/bf/
Brainfuck Basics https://gist.github.com/roachhd/dce54bec8ba55fb17d3a
Brainfuck Interpreter https:...
And VBA in FedEx
And various other applications
What's the replacement for VBA?
Lua?
C# or JavaScript
Oh no. Whatever could those asterisks be replacing?
Factorio and WireShark use Lua for scripting
๐ค ig it could be
Excel online uses JavaScript for macros
I think modern office products are Electron?
I can't remember off the top of my head
i use lua for scripting, configuration, and embedding in c to get more runtime changes going and to pass time in roblox studio when i'm bored
So that's why Excel is using all my RAM....
Office Scripts in Excel let you automate your day-to-day tasks. Inside Excel on the web, you can record your actions with the Action Recorder. This creates a TypeScript language script that can be run again any time. You can also create and edit scripts with the Code Editor. Your scripts can then be shared across your organization so your coworkers can also automate their workflows.
@andrewvijay @code @MSEdgeDev No they are not electron apps. They are compiled to native code.
It's now finally one toolchain(#webpack)
It's one codebase and it compiles to:
Web
Android
IOS
MacOS
UWP
WIN32 (only one that uses electron)
268
bit too much empty space but its not that bad
Don't quite understand what that means
It's in reply to https://twitter.com/TheLarkInn/status/1006746626617008128?s=20&t=ynPDvyUpxGFjOaKph6UepA
(Ive never been able to say this yet)
๐Well Actually!๐
All of Office 365 is (almost finished) being completely rewritten in this little scripting language called #JavaScript.
And Skype
And Microsoft Teams
And @Code
And all of @MSEdgeDev Debug Protocol (instead of C++)
4880
2249
And I really hate Twitter
Why
I don't understand how to get around
And it just randomly stops showing replies and tries to show you different tweets
@rugged root linux penguin?
@vernal bridgehttps://theitbros.com/powershell-gui-for-scripts/#:~:text=Building%20PowerShell%20Scripts'%20GUI%20Using%20Visual%20Studio&text=WPF%20is%20a%20part%20of,user%20interfaces%20in%20Windows%20apps.&text=Use%20the%20Windows%20Forms%20element,the%20form%20(with%20drag%26drop).&text=And%20save%20the%20changes%20in%20the%20xaml%20file.
Corpse database?
Don't ask
Ah. Corps.
Carps database.
Seems a bit suspesceious.
A little bit fishy.
La-a. Ladasha.
Well done
I actually found it really great.
It really seems to guess your intent very well.
It feels like you just spend less time typing and more time thinking about the design of your code.
And you can try out different designs more quickly as you don't have to spend ages typing them out.
What's the issue you're having with it?
I'd poke around the #data-science-and-ml channel and pins.
moon light protector
Moonscreen.
1dimension printer
@rugged root
Guys, how to speak?
On which channels can I discuss my questions to get 50 messages?
Hi Keny
Hi Biocipher
Hi LX
Hi Chris
Hi Hemlock
Hi Noodle
๐
A fellow rotmg enjoyer
i love that game to
but now i am just playing dofus
I'll be back in a little while.
lets play rotmg later ?
can't
ok
yes
New England
can anyone heko me out please
move left from the 'p' and the 'l' and u gonna get it
''p ''I
can any admin give me share screen permission please? ๐ฆ
<@&267628507062992896>
hi there, stream perms aren't granted by request like this
if a mod happens to be in vc later you can ask, but it's not guaranteed
don't ping people not in vc
what IDE?
why can't I talk
like pycharm...
wait was it like Multiple cursors and selection ranges?
depends on text editor i guess
rip
@glad sandalyou're still better off than me :x i had people comming to me for 4 years straight whenever they forgot their password
asking me to hack their accounts to get them their password back...
oh no
https://www.youtube.com/watch?v=wlR5gYd6um0&t=284s
@south bone ... maybe this might make it more intuitive...
Chris Toomey talks about mastering the Vim language. Vim's core is the amazing command mappings and text objects that allow for countless combinations to define precise edits. Learn how to master the built-in commands, motions, and text objects, and even how to extend the Vim language for even more power!
Slides: https://ctoomey.com/mastering-t...
๐ or vimtutor
yeah but if you don't use it you forget it
like i half the time forget all the options for autocmd
also with neovim you don't get vimtutor separately but have to type :Tutor inside ov neovim itself
video is for intuition... he talks about the structure of vim binding...
ah true
then i recommend this book https://learnvimscriptthehardway.stevelosh.com/
its alot more detailed
@lavish rover ๐
Char siu
the help thing is weird
it says ... help channels are available but they're just not there
why? @lavish rover
Expand the category
Tap/click on it?
@lavish rover
Maybe you just need some ctrl-r in your life.
no I don't
cause it doesn't work mate
F5?
it won't work with the channels i mean
Show me the available channel section as you see it
Crop a screenshot or something.
now it's finally blue
Blue...Is blue...good?
I mean i can click on the channel in the how to get help channel
I couldn't before
yaay @rugged root is there
variable name is slice and function is slice...
There's the category in the channel list. You don't have to go through the how to get help channel.
i got it now thank you
Mm.
Hey Opal, did you see my ping in #media-processing ?
I can't make it pretty like you and rep, but its very fun
It can take a bit of numpy knowhow.
Not a lot, but enough.
Currently using np.linspace, np.sin and matplotlib.scatter.... lol
Otherwise you're reduced to iteration.
You can plug numpy arrays into matplotlib.pyplot.imshow.
Thats how the mandelbrot creator worked, and was very nice
A transpose of np.mgrid is handy.

!e ```py
import numpy as np
arr = np.mgrid[:5, :5].T
print(arr)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [[[0 0]
002 | [1 0]
003 | [2 0]
004 | [3 0]
005 | [4 0]]
006 |
007 | [[0 1]
008 | [1 1]
009 | [2 1]
010 | [3 1]
011 | [4 1]]
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/pokimilaxi.txt?noredirect
@rugged root can you pls look in #help-orange and help?
i have no allergies i still feel disguisted when i eat too much of anything sweet
might not be the right word for it but idk how else to say it
well people eat dogs too
I wouldn't eat my pets
o- o well i have no particular like / dislike of any animal really so
i would eat it if its tasty and if its not specifically being killed just for me to eat it
Nutmeg is a common household spice sometimes abused for its hallucinogenic properties. This abuse is well reported in the medical literature over the last century. Ingestion of less than one tablespoon can produce symptoms similar to those of an anticholinergic toxic episode. Common presenting compl โฆ
Is it hacky? Yes. Is it pretty? Not quite. Is it fun? I think so lol
Ooh nice
Hippocrit: When a hippo rolls a 20 on an attack roll
Hippo critic: this movie was a disappointment, would not recommend watching
Large gifs make my device sad.
Video is fine.
One of my favourite scenes in Firefly is where River gets startled by Book's hair.
@marble canyon Your jitter is excessive.
Very choppy interwubs
Can't hear you for shit.
@marble canyon It's impossible to understand you at this point
So long as the missile knows both where it is and where it is not.
Schrรถdinger's flea market.
@rugged tundrayou don't wanna... honestly
what you know there is wrong
lol
mostly
@south boneonly online
that doesn't happen in actual schools
Social blunderbuss.
fhttps://www.youtube.com/watch?v=HcqCWiGyDvw
Millions of tons of sugarcane waste, also known as bagasse, is produced every year. And India grows the second-most sugarcane of any country in the world. That's why Yash Pakka's brand Chuk is creating tableware out of the waste that is usually burned for fuel.
MORE BUSINESS INSIDER VIDEOS
What Army Tankers Go Through In Boot Camp | Boot Camp
h...
I was meaning more like a bus driver
No, I meant tactical blunderbuss was probably too similar to social blunderbuss.
also @lavish rover rn if you goto any fast food place in india kfc, burger king, mcdonalds, pizzahut, dominos they all have no plastic straws
paper straws.....
which are kinda shit
Sure but that's just because consumers don't have control over what is served, like if people want something there a ban didn't really do much to stop it other than make it more expensive
true
hello
hhhhh c'est pas comme ca
omelette du fromage
"the fuck"
i have no idea whats going on
but continue
i still have to send 50 or so messages
just so I can participate
I think there is also a spam rule
That's how I did it.
Whats up
I don't have an idea what they're talking about.
How can you disagree where asia is?
I don't either anymore
@peak copperWhat is that your profile picture
Asia starts at the great plains west of russia
@smoky phoenixare you from Russia
Southeast Asia
How do we get roles in here?
are a no
We actually have a channel for that! I'm glad we have that
but I m not 50 messegaa yet
A continent is any of several large landmasses. Generally identified by convention rather than any strict criteria, up to seven geographical regions are commonly regarded as continents. Ordered from largest in area to smallest, these seven regions are: Asia, Africa, North America, South America, Antarctica, Europe, and Australia. Variations wit...
It's just a portable living quarters made of an alloy trying to fool you
Con-tin-tent
Im so sorry, haven't really checked the entire channel listing.
W h a t
OH. Well, thanks for the headsup! hahaha
I'm actually trying to get back to python later this year
"genius"
Wireless charging mousepads
Should be
a thing
MX master masterrace
I don't understand trackballs. Isn't that rather slow to use?
That depends on the user
true I suppose
This mouse is looking not good
hmm
but man has a good arm D: das
@lavish rover how do you come up with those puns lol
Large glasses
Plaid shirt
how about search
are there channels here specific for a particular geolocation?
i.e. southeast asia
1 squared is 1
lamdaemon
CANT UNSEE
I couldn't find the gif I wanted so settle for that
its really weird to not know who's talking
I don't know what you wanna achieve but i still have to process how to feel
lol
@leaden comet congrats on your kid tho
thank you
AHAHAHAHAHAHAAHAHHA
still soring out my feelings towards that gif
Thanks for making me process my feelings
AHAHAHAH
haha np
powernap
Whats a Code Jam?
Any tech/stack in python you can recommend for automation/ML?
Typically we actually add 2 weeks to the amount of time it takes to verify for folks who spam
Wait. Are the audio generated from a script?
Just a heads up, is all
Aight!
WOAH
So Mr. Hemlock I have to chat right ?? to get voice verify
Deep Fake using python with @leaden comet should be a thing
using ai to create animations....talk about impressive
Yep, just participate in the conversations, maybe give or get help in the help channels, check out the topical channels, etc.
thx
It really doesn't
Although it does depend on the algorithm or whatever magic is used
Might be how it works eventually
Just not now
I'll probably give a talk on this when I'm producing interesting output
@leaden comet https://github.com/MrHemlock/auto_guild
NOICE
Also made an explanation for it in #dev-contrib
Still working on documentation, error handling, etc.
But it's fully functional
If had to delete a country, it'd be ||redacted|| because i cant talk yet lmao
DELET
AHAHAHAHAHAAA
Good point
but the territory its deleted ?
What is a self?
self is usual in reference to the current object. Trying to think of how to explain it without a lot of extra
Let me crack out a quick class example to try to explain
@leaden comet portapotty acoustics > Grand theater acoustics
WHAT
WHAT NOW
entomemeology
Latin
because every time you talk, you sound like you're summoning satan
Especially if you add some sort tune to it.
Or add hums to it
!e
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hi! I'm {self.name} and I'm {self.age} years old.")
billy = Student("Billy", 8, "Math")
sally = Student("Sally", 6, "Science")
billy.introduce()
sally.introduce()
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | Hi! I'm Billy and I'm 8 years old.
002 | Hi! I'm Sally and I'm 6 years old.
SO
Here we have a basic class called Student. Got our methods, some attributes, etc.
So if we look at self, we can think of it as what object is calling it.
We can kind of think of the function call as:
billy.introduce()
# is kind of like
Student.introduce(billy)
We pass the object as part of the method call. Methods require you to have self as the first parameter (except in some cases, but in general this is the case)
Question:
Does python have traits?
similar to what PHP has?
I see.
I'll take a look
!e
print("โซmixins are pretty cool")โ
@leaden comet :white_check_mark: Your eval job has completed with return code 0.
โซmixins are pretty cool
What is ("("
is it like an eval error
idk
that's weird
!charinfo print("โซmixins are pretty cool")
\u0070 : LATIN SMALL LETTER P - p
\u0072 : LATIN SMALL LETTER R - r
\u0069 : LATIN SMALL LETTER I - i
\u006e : LATIN SMALL LETTER N - n
\u0074 : LATIN SMALL LETTER T - t
\u0028 : LEFT PARENTHESIS - (
\u0022 : QUOTATION MARK - "
\u202b : RIGHT-TO-LEFT EMBEDDING - โซ
\u006d : LATIN SMALL LETTER M - m
\u0069 : LATIN SMALL LETTER I - i
\u0070\u0072\u0069\u006e\u0074\u0028\u0022\u202b\u006d\u0069\u0078\u0069\u006e\u0073\u0020\u0061\u0072\u0065\u0020\u0070\u0072\u0065\u0074\u0074\u0079\u0020\u0063\u006f\u006f\u006c\u0022\u0029
Yeah that one had me really confused too
!e
\u0070\u0072\u0069\u006e\u0074\u0028\u0022\u202b\u006d\u0069\u0078\u0069\u006e\u0073\u0020\u0061\u0072\u0065\u0020\u0070\u0072\u0065\u0074\u0074\u0079\u0020\u0063\u006f\u006f\u006c\u0022\u0029
WHAT
Is dat news
idk
i think imma go and work. Ciao!
@midnight agate ^
Ah I clicked on maybe later now I regret it
What is it
experience is the best teacher
@woeful salmon
ooh this party mode is fuuuuuuun
i already got all achievements...
๐ lets see what other stuff I could do
lol
@woeful salmon mention me pls ๐ฎ
@frosty star there you go ๐
try getting the click on me for free reward thing you get it from visiting the page 100 times so swap back and forth between tqabs of the setting menu
the reward is noice
i hate you
see i just don't wanna be alone in it
xD
goodluck with the math ones :x specially typing over 2000 letters without nitro (you can do it as i did too)
haha i'll drop an essay somewhere
stop scamming noodle
eggs, bacon, spam = 'What is going on, Marty?'.partition(',')
what is bacon after the following lines are executed?
good morning
import random
random.randint
random1 = random.randint(0,12)
random2 = random.randint(0,12)
examples = ('1) 3 * 2 = _____ \n2) 5 * 6 = _____ \n3) 0 * 7 = _____ ')
f = open('myMultiplicationQuiz.txt' , 'w')
f.write(examples)
print(examples)
for i in range (4,11):
random1 = random.randint(0,12)
random2 = random.randint(0,12)
print (str(i)+ ')' , str(random1) , 'x' , str(random2) , '= _____')
f.write()
f.close()
!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.
import random
random.randint
random1 = random.randint(0,12)
random2 = random.randint(0,12)
examples = ('1) 3 * 2 = \n2) 5 * 6 = \n3) 0 * 7 = ')
f = open('myMultiplicationQuiz.txt' , 'w')
f.write(examples)
print(examples)
for i in range (4,11):
random1 = random.randint(0,12)
random2 = random.randint(0,12)
print (str(i)+ ')' , str(random1) , 'x' , str(random2) , '= ')
f.write()
f.close()
Here you go lol! Only thing i know how to do in coding
Take care you Smart People!
examples = ('1) 3 * 2 = \n2) 5 * 6 = \n3) 0 * 7 = ')
- 3 * 2 = _____
- 5 * 6 = _____
- 0 * 7 = _____
- 2 x 6 = _____
- 1 x 0 = _____
- 12 x 2 = _____
- 2 x 6 = _____
- 11 x 2 = _____
- 11 x 11 = _____
- 0 x 8 = _____
aren't u supposed to use writelines()
print(..., file = f)
!e py name = "Albert" print(f"Hello, {name}.")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, Albert.
!e py age = 300 name = "Methuselah" result = f"Hello, {name}. You are {age} years old." print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, Methuselah. You are 300 years old.
!e py print(f"{6*6}")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
36
!e ```py
def func():
return "Hi!"
print(f"{func()}")```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hi!
damn never knew this is doable
!e
def func():
return "Hi!"
print(f"{func()=}")
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
func()='Hi!'
!e py a = 5 b = 6 print(f"{a = }, {b = }")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
a = 5, b = 6
print (str(i)+ ')' , str(random1) , 'x' , str(random2) , '= _____' , )
!e print(1, 2, 3)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
1 2 3
!e print("1 2 3")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
1 2 3
print (str{i})+ ')' , str{random1} , 'x' , str{random2} , '= _____' , )
!e py i = 8 random1 = 6 random2 = 2 print(f"{i}) {random1} x {random2} = {random1 * random2}")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
8) 6 x 2 = 12
!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.
!e
x = 5
print(f'x = {x}\n\n\noops')
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | x = 5
002 |
003 |
004 | oops
!e py f"{'\n'}"
@somber heath :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | f"{'\n'}"
003 | ^
004 | SyntaxError: f-string expression part cannot include a backslash
!e
f"{'\nhello'}"
@lunar mulch :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | f"{'\nhello'}"
003 | ^
004 | SyntaxError: f-string expression part cannot include a backslash
the string cannot contain escape character
https://paste.pythondiscord.com/qatutopoyi I need some help with figuring out why an undefined variable problem is occurring at line 52 "random is not defined"
from PIL import Image
import numpy as np
img = Image.open(...)
arr = np.array(img)
img_two = Image.fromarray(arr.astype(np.uint8))```
What does the numpy library do?
So it creates a multi-dimensional box to store numbers?
Is it similar to matrices
Ah
I see
Iโm a bit new to python and coding in general
Iโve been working using the tkinter library
Well I was using it as well as sqlite3 to a ui that users can be more interactive with the databases
Im also trying to start learning c as well and maybe rust
Yeah I hear rust is becoming very useful now
what does f do in here ?
oh so itโs like .format()?
!f-strings
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
is main difference between this and .format just the syntax
def __init__(self):
I am confused on what this does
!e ```py
class MyClass:
def init(self):
print(f"Hello! I am {self}.")
MyClass()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello! I am <__main__.MyClass object at 0x7f0e1d875480>.
so to instantiate it you call the class and to instantiate it into memory you assign it to a variable?
so if you move on from the line python will forget about the instance, but the instance is still exists in memory?
!e ```py
class MyClass:
def init(self):
print(self)
mc = MyClass()
print(mc)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <__main__.MyClass object at 0x7fd6928c5480>
002 | <__main__.MyClass object at 0x7fd6928c5480>
what is an object in this context?
what would an example of an object be?
so in print()
print is an object?
!e print(dir(print))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['__call__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__text_signature__']
if you did like
variable = myClass()
variable is now an object?
so variable is the instantiation of the class?
Python Enhancement Proposals (PEPs)
So
def __init__(self):
Creates an instance of a class?
so when you set a variable equal to a class then the init helps with that?
!e py a = [] b = [] c = a print(a == b) #True. The list instance referred to by a is equal to the list instance referred to by b. print(a is b) #False.They are not the same list. print(a is c) #True. The list instance a refers to is the same list instance that c refers to.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
003 | True
Iโm a bit confused on terminology of instance
Here, list is the class, the lists are the class instances.
So an instance is a pointer to something?
Hmm why would first one be true then if they are different lists?
Ohh
So a, b, and c are all instances of objects
Equality vs identity. == vs is
So would [] be an instance of a class?
ohh
So [] is just how you refer to the class list?
Ah
!e py a = [1, 2, 3] print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 3]
So [] uses the class list to create a list an the values inside of it are part of the instance..?
!e py a = [1, 2, 3] b = a a.append(4) print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 3, 4]
[1, 2, 3] is an instance of a list
?
Okay so I think I understand, so an instance is something that.. acts as the original that you can act on
So you use the blueprint (class) to creates the houses and cars (instances)
So in your examples, what would you call the variables that equal the instances?
So they point to the instance?
!e ```py
class MyClass:
def init(self, v):
self.thing = v
def method(self):
print(self.thing)
mca = MyClass("apple")
mcb = MyClass("banana")
mcb.method()
mca.method()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | banana
002 | apple
code
!eval <code>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
!e
print("o-o")
@whole bear :white_check_mark: Your eval job has completed with return code 0.
o-o
I see
!e
for i in range(0,10):
print(i)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
!e
for i in range(0,10):
i = "tomato"
print(i)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | tomato
002 | tomato
003 | tomato
004 | tomato
005 | tomato
006 | tomato
007 | tomato
008 | tomato
009 | tomato
010 | tomato
So you passed apple as the argument which replaces v in the class?
Ah
So itโs passing an argument into a parameter
password = 123456
for i in range(0,1000000):
if i == password:
print(i)
I see I see
password = 123456
for i in range(0,1000000):
if i == password:
print(i)
So what does object oriented programming mean?
!e
password = 123456
for i in range(0,1000000):
if i == password:
print(i)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
123456
I donโt think they are in the voice channel
@whole bear Maybe use the #bot-commands channel.
okay @somber heath
Please and thank you. ๐
mb
Wait so what does that mean again?
I think I need a little clarification on the terms objects am still a bit confused
Ah okay
Thank you for your help
Corey Schafer Youtuber. Python Playlists. Python for beginners.
I see okay
Will definitely check it out
What would a container class mean?
An object could mean like a list or tuple or any data type?
!e py v = [] v.append(v) print(v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[[...]]
So itโs appending itself?
So youโre appending an instance of the same list to itself
Ah
Oh I think I get it
So like v would be referencing the instance of the list and so now you are appending the reference to the actually instance?
I see I see
That is slightly confusing
Okay have a good day!
@rigid wedgetomato
Hellow
Twins?
Everytime in my life, i feel so good
Just one, i must sent than 50 messages in this ch๐ถ
@rigid wedge yuppi
U want yupii?
yes
Yupii is good
I feel so love if i eat yopii
yupi is looking good
Candy
yea but eat slowly because you can finish to fast
nooooo u feel terriable becuase if you want eat yupi you cant find and this is bad
if you eat every day one yuppi it is good
I want more
I have but if ฤฑ eat too much yuppi probly ฤฑ dont like yuppi anymore
Noo i really like yupii
but this is not important think about that every day just yuppi breakfast dinner everything you just have to eat yuppi
it's already good
Cuisine
Yeahhh i really like kebab
you eat before
@rigid wedgeI have to go we can talk later see you friend
I often eat kebab
okay two opinsions your country german or turkey
Okeyy, have a sweet days
thank you
No
In my country have kebab too
@whole bear You're very quiet. As a result, combined with the relative difference in our accents, I find it very difficult to understand you. Try adjusting your microphone gain settings in your operating system or move your microphone closer to your mouth when you speak.
k
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thank you
!voice
!d multiprocessing.get_logger
multiprocessing.get_logger()```
Returns the logger used by [`multiprocessing`](https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing "multiprocessing: Process-based parallelism."). If necessary, a new one
will be created.
When first created the logger has level `logging.NOTSET` and no
default handler. Messages sent to this logger will not by default propagate
to the root logger...
#include <glad/glad.h>
#include <GLFW/glfw3.h>
int main(void)
{
GLFWwindow* window;
/* Initialize the library */
if (!glfwInit())
return -1;
/* Create a windowed mode window and its OpenGL context */
window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
if (!window)
{
glfwTerminate();
return -1;
}
/* Make the window's context current */
glfwMakeContextCurrent(window);
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{
/* Render here */
glClear(GL_COLOR_BUFFER_BIT);
/* Swap front and back buffers */
glfwSwapBuffers(window);
/* Poll for and process events */
glfwPollEvents();
}
glfwTerminate();
return 0;
}
PFNGLACCUMPROC glad_glAccum = NULL;
PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL;
PFNGLALPHAFUNCPROC glad_glAlphaFunc = NULL;
PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident = NULL;
PFNGLARRAYELEMENTPROC glad_glArrayElement = NULL;
PFNGLATTACHSHADERPROC glad_glAttachShader = NULL;
PFNGLBEGINPROC glad_glBegin = NULL;
PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL;
PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL;
PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL;
PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL;
PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL;
PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL;
PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL;
PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL;
PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL;
PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL;
PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL;
PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL;
PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL;
I cant see anyone's name in VC
press control+R
Thank you, that fixed it
!e print(divmod(7, 5))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
(1, 2)
def inverseMod(a, m):
In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and b, also the coefficients of Bรฉzout's identity, which are integers x and y such that
a
x
+
b
...
