#voice-chat-text-0
1 messages Ā· Page 643 of 1
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@crystal fox @royal epoch
@tough panther I don't think that should be a debate in a coding server
Hey @tough panther!
It looks like you tried to attach file type(s) that we do not allow (). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
hey @somber heath sup?
hoy hi
so there is some intresting stff goin on š
x-y/1-y
@somber heath thanks alot
I mean, when I mute and unmute, usually it's because I'm passing gas.
one
two
three four five
everybody in the car
so come on let's ride to the
liquor store around the corner to get
some silly juice but i really don't wanna
a firkin is 9 imperial gallons
"It's like some idiot just showed up to America in 1600, drew a square on a map and said "Yep! That's an acre!".
Instagram: https://www.instagram.com/mattsgoofsandgags (for shorter videos and extra content)
Yes, I know that Liberia and Myanmar also use the imperial system, th...
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Join the challenge or watch the game here.
https://www.kaggle.com/c/nlp-getting-started @young jay
Blood for the blood bot
typerace
ok
who joined?
@somber heath can u help?
gg @gentle flint
ewww css
yeah
Alas, css is not something I know.
okie
everybody gangsta till the seals start vibin š³
song: https://www.youtube.com/watch?v=4hdKXr8wGrk
original video: https://youtu.be/WUCFnpbQtPE
twitter: https://twitter.com/tmgisbad
IDLE
@somber heath how are you doing man
It is a mystery.
u guys on github?
lol
just got my profile photo from the video you shared.. lmao! @hushed elm
lols
i gotta do some stuff guys, but much love russia and germany!
love you guys no homo!
How can I answer phone numbers written in a file separately in the list?
def add(...):
total = 0
for value in Ellipsis:
total += value
print(total)
def add(*args):
total = 0
for value in args:
total += value
print(total)
In the french course (openclassroom), I have this example, with ... as a parameter to get unlimited number of values, from what I understood
print(value, ..., sep=' ', end='\n', file=sys.stdout)
!resources @whole bear
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
print(value, *, sep=' ', end='\n', file=sys.stdout)
Does this make sens for you def add(value, ...): for unlimited parameters, or is it totally incorrect
That's probably just an informal notation.
Yeah, I think that's just their way of saying "any number of arguments"
But it's not valid Python.
There is an ellipsis in python, but it's only used in type-annotations I think.
Ok, thank you XD
E.g. def func(nums: Tuple[int, ...]):
I was struggling a lot just for a " note " XD
Used for type-annotation as well as in NumPy
!server
Server information
Created: 3 years, 8 months and 24 days ago
Voice region: europe
Features: PARTNERED, COMMUNITY, INVITE_SPLASH, VIP_REGIONS, PREVIEW_ENABLED, WELCOME_SCREEN_ENABLED, ANIMATED_ICON, VANITY_URL, DISCOVERABLE, BANNER, NEWS, RELAY_ENABLED
Channel counts
Category channels: 35
News channels: 7
Text channels: 198
Voice channels: 74
Staff channels: 67
Member counts
Members: 92,715
Staff members: 80
Roles: 124
Member statuses
11,785
5,068
5,057
70,805
Javascript literally has features in its specification that were originally implementation bugs.
But even IDEs can be complicated to use.
Even now when I open up something like PyCharm it makes my head spin.
It's like stepping into an airplane cockpit. So many buttons š
Evening folks
When I was at university they made us learn Haskell first š
Yeah
I think it's kind of a tradition to teach a functional language first
A lot of universities do it.
MIT used to teach scheme.
Cambridge teach ML I think, which is like Haskell.
Yes 
Oh dear god
Prolog will turn your brain inside out.
I'm still sane
@whole bear Wait till you see single-letter variable names in Haskell
x:xs
Haskell really makes you appreciate a good static type system.
It's pretty much impossible to write code in Haskell that is syntactically valid but not semantically valid.
Usually, once your code compiles, it's correct.
Wait till you see single-letter variable names in Haskell
Personal favorite of mine
tttttttttttttttttttttttttttttttttttttt
a torus in this context is basically just a 2d matrix that wraps around
@rugged root Exactly (to the pacman remark)
Be right back in a 20 minutes
Hey, so I want to help out with the code-reviews, but I haven't learned asyncio yet.
Join Typeracer
@whole bear there are tonnes of resources online for ML
@stuck furnace https://realpython.com/async-io-python/
ya bit they confusimg
Also, Artificial Intelligence, a Modern Approach by Russell and Norvig is a really excellent AI textbook.
It covers pretty much the whole field of AI, including machine learning.
Apparently you can theoretically see the summit of Mount Everest from 300km away š
vvvvvvvv3
hellow
C#
Alright, I'm going to read that article. See ya!
bye
Ų¹ŁŪ
@stuck furnace Don't forget that we have an #async-and-concurrency channel if you need additional clarification
Ų¹ŁŪ
@still isleThis is Ali in Arabic/Urdu
ali where are you from?
iran
good to see you
goood too
i am going to eat be back soon and I may talk after
bye
and have a nice day/night
thanks!

Benefit of Scratch is it teaches you the logic of programming
it's great because it's good filter
if people have issues with operators and variable
further languages will result in issues
Also, don't underestimate the utility of browser only
as much as I hate being locked in browser, getting stuff installed on School computers can be difficult
and MANY MANY schools use Chromebooks
Scratch doesn't really have the most overviewable or readable code though
Good lord
sure, it's got some downsides
I'm back
voice needs a !shhh
I made an issue for it
It's days like this where I really wish we had a smaller channel size
!source
Mmm.... Smoothie King...
Has automatically adding voice channels as others overflow been suggested before?
probably
I think biggest issue with voice has it's exploded and bot doesn't have framework for decent control
The tests get worse
Yeah, the VC's used to be empty all the time but they got really active recently
It's because I join
What is this for? @swift valley
Like, literally as soon as I join like 3 people join
BS, I'm claiming my charm brings all programmers to the yard
Just a test for a janky string parser I made with pyparsing
Could you teach me?
People just join to tell me that I'm Linus Tech Tips and then leave š¦
The project is a LISP interpreter
I have no clue what you mean
Ohh, good luck^^ Thought it was something like that
"I would have to charge"
I failed bad
It's all good
It's pretty much impossible to write code in Haskell that is syntactically valid but not semantically valid.
@stuck furnace You can actually, through the power of compiler extensions
Looks like my old schools website
Looks like my old schools website
@whole bear lol made this cuz i have nothing to do \
But yeah, I like it š
This compiles, but it messes up once you try and pattern match against T'
Ī» :set -XGADTs
Ī» :{
| data T a where
| T' :: Int -> T Float
| :}
^^ Naively anyways
@amber raptor I would love a Drunky Ducky
Don't talk to me, talk to our resident graphic person, kutiekatj
urgh, how do I figure out which domain provider a domain is registered with?
huh
Research domain ownership with Whois Lookup: Get ownership info, IP address history, rank, traffic, SEO & more. Find available domains & domains for sale.
Thanks
apparently they disabled HTTPS redirect
well, I'm in a predicament. I'm trying to renew a domain. I don't know who the domain provider is, but I do know the company we use for whois privacy.
DM me the domain
oof
Hm?
I asked Joe for the name change to reflect the channel is more "Off Topic" then "Python General"
extends KinematicBody2D
#player variables
var jump = 240
var gravity = 800
var speed = 50
onready var sprite : Sprite = get_node("Sprite")
func _physics_process(_delta: float) -> void:
var motion = Vector2()
if Input.is_action_pressed("left"):
motion.x-= speed
sprite.set_flip_h(true)
if Input.is_action_pressed("right"):
motion.x+= speed
sprite.set_flip_h(false)
if Input.is_action_pressed("up"):
motion.y -= speed
if Input.is_action_pressed("down"):
motion.y += speed
if Input.is_action_pressed("ui_left"):
motion.x-= speed
sprite.set_flip_h(true)
if Input.is_action_pressed("ui_right"):
motion.x+= speed
sprite.set_flip_h(false)
if Input.is_action_pressed("ui_up"):
motion.y -= speed
if Input.is_action_pressed("ui_down"):
motion.y += speed
motion = motion.normalized()
motion = move_and_slide(motion* speed)```
Hemlock, do you have Discord Nitro?
YT tutorials are bad for discord.py
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
As concise as the discord.py docs are I'd really prefer if each attribute shows what object it's a member of
Note that Discord.py requires you understand OOP well and async well
it's more complex in parts then it needs to be
yes also it would be helpful if also understand decorators
I just want to search stuff just fine
just had a mental fucking hour arguing with an email customer about why it's not our fault they didn't renew their domain name
and it's killed all their emails
I wish it was easier to monitor domain names
Well depends on your provider, doesn't it?
Press ctrl + shift + P
Ew, yeah
Install package manager
okay so when someone creates a wordpress site on wordpress.com, they are the owner of the domain
and only they can renew it
the website was set up by a guy ages ago and it's just been autorenewing for years
but he cancelled auto renew and apparently the company and this guy who set it up had a falling out and shit
so he's just had to go back to the dude like "oh, hey uhhh.... you own my domain name and it's expired knocking my entire business offline. could you renew that?"
@olive night nice bg
o/
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Writing tests was fun, I said to myself a month back
Little did I know I was lying to myself
i hate writing tests
same
im actully writing tests now for @wise cargo, figuring it out
I swear I'm gonna end up with 500+ tests once I start writing the builtins for this project
"Die Alone" by FINNEAS from the Blood Harmony EP: https://finneas.lnk.to/bloodharmony
Follow FINNEAS:
Facebook: https://www.facebook.com/FINNEASOFFICIAL
Instagram: https://www.instagram.com/FINNEAS
Twitter: https://twitter.com/FINNEAS
YouTube: https://www.youtube.com/FINNEASO...
oh lol
I could try
if it affects your pc u dont have to
@swift valley we can hear you
I dont think that was pure
uhh
ye lol
that wasn't me haha
whoops 
it was dan i guess
I thought I saw the green circle around your pfp go off while I heard that
ohh, contributors can stream?
em i muted
no
??
we just cant hear u
Is that blender? 
Yep
It is, Harbys is helping me with the glitch effect
Noiiiice
only 25 people allowed in vc
You are not allowed to use that command here. Please use the #bot-commands channel instead.
when i am joining code help
@rugged root
u know why?
oh w8 i got it
the channel is 5/5
sry for the ping
No worries
@whole bear mongodb is nosql
nice
sorry for the mention
I wasn't sure it was the right chat
good
you?
linux and sound issues right
yeah
I have microphone issues
I thought it was sarcastic yes
PEBCAK
4
hey y'all
Sup
class is starting in 3 mins š
Which one?
Neat
ĀÆ_(ć)_/ĀÆ
Code/Help?
@subtle orchid I just got back in
@lean parrot
No problem! I appreciate you appreciating it
hey I got mic issues ima leave an hope back on aight
Sounds good
@rugged root there is problem which is getting me annoyed i forget spellings of even simplest words and it hurts my brain and confidence is it common or a bad symbol any tips to prevent
Do you mean like Python or programming terms?
Because I forget those so friggin' much
I mean the fact that you know another language is impressive. I don't think you should worry too much. You'll remember more as you practice more. And you can always describe what you're thinking of and we can work it out together
but my cringe asian aksent.......š
I mean you're understandable
Good thing about helping out here is that I've gotten used to all kinds of accents
@steep panther nice pfp
Thanks to HP for sponsoring this video!
Check out the laptops here: Probook x360 at the HP Store: https://bit.ly/33eGLe4
Preorder the Elitebook 845 at CDW: https://bit.ly/3ndfoZQ
Order the Probook 445 at B&H Photo: https://bit.ly/33kXHzk
The Aero will be available soon: ht...
Michael Reeves pisscup is working. World record soldering. If the otv crew would like me to take this down please dm me on twitter
Follow me on twitter:
https://twitter.com/ReeechuMichael
Go support Michael Reeves:
https://www.youtube.com/channel/UCtHaxi4GTYDpJgMSGy7AeSw
ht...
Aight GN fellas
bye
I feel like im listening to a podcast about random things and i like it
It's the first thing I thought of as soon as he said "share the load"
@subtle orchid What's up?
@rugged root how old phyton discord is?
!server
Server information
Created: 3 years, 8 months and 24 days ago
Voice region: europe
Features: BANNER, WELCOME_SCREEN_ENABLED, PARTNERED, VANITY_URL, INVITE_SPLASH, RELAY_ENABLED, DISCOVERABLE, ANIMATED_ICON, COMMUNITY, NEWS, PREVIEW_ENABLED, VIP_REGIONS
Channel counts
Category channels: 35
News channels: 7
Text channels: 193
Voice channels: 74
Staff channels: 62
Member counts
Members: 92,788
Staff members: 80
Roles: 124
Member statuses
10,093
4,063
4,095
74,537
cities = %w[ London
Oslo
Paris
Amsterdam
Berlin ]
visited = %w[Berlin Oslo]
puts "I still need " +
"to visit the " +
"following cities:",
cities - visited
Like that feels really REALLY weird to me
Yeah just... Ruby feels weird
Sorry had to drop our randomly guys, had a call, it was fun chatting tho! thank you all
sphinx looks like pokemon tbh
nice cat
!tempmute 494508091283603462 7d please stop trolling this voice chat
:incoming_envelope: :ok_hand: applied mute to @faint pivot until 2020-10-09 18:57 (6 days and 23 hours).
!tempmute 291006960122331136 7d Yelling into the mic and telling people to shut the fuck up really REALLY isn't appropriate.
:incoming_envelope: :ok_hand: applied mute to @mystic kelp until 2020-10-09 18:58 (6 days and 23 hours).
!warn 82578210453192704 Random comments about wanting a blowjob are incredibly unacceptable.
:incoming_envelope: :ok_hand: applied warning to @zenith radish.
ol' faithful
indeed
The Gods of AFK has claimed Hemlock š
š
I'm back
yay! ig
@cursive mason I muted you because your mic was giving off some nasty feedback.
If you mute yourself I'll unmute you
whyy
@leaden comet heya, am I missing something fun in the vc?
Not really
eh, alright
Typing at up to 217 words per minute on 10fastfingers.com
LTT store.com
pog
best I can do tonight
smh my h
aww
https://www.youtube.com/watch?v=8XO3q6MA668 @chilly locust
For 10% off your first purchase, go to
http://www.squarespace.com/austinmcconnell
PATREON: http://patreon.com/austinmcconnell
TWITTER: http://twitter.com/austinmcconnell
VENV
If PyCharm is not recognizing your installed packages, chances are it has created a venv¹ for you.
To use the system Python version:
⢠Open PyCharm settings (ctrl + alt + s)
⢠Choose Project: <project name>
⢠Choose Project Interpreter
At the top there is a drop-down menu for different Python versions.
Choose the correct Python version. Common paths include:
C:\PythonXY
C:\Users\<username>\AppData\Local\Programs\Python\PythonXY
If this menu does not list your system Python installation, click the cog to the right of it, and click add.
Choose the System Interpreter option. If your Python installation is not in this drop-down either, you will manually have to find its installation location and add it there.
After adding your System interpreter follow the steps above to choose it as your project interpreter.
seems like my internet issue
gtg byeee
@magic orchid so I plugged it in and there is an update for it so we shall see after it has installed
@whole bear nice, maybe the drivers are getting installed!! š
I went into setting and I changed the adapter so it was set on the right one and I'm just rebooting now
š¦
Gentlemen as I said I am very sleepy I am going to sleep take care of yourself and see you later @magic orchid
I could say the sentence correctly
@hallow warren Any particular reason for the link?
Yeah we were talking about it
as per voice, it's the flood control project for Hale Creek above the Mountain View, California Shoreline Regional Tax District
Fair enough. Just seemed weird to randomly link- ah okay, that makes sense then. Without that context it just seemed weird to have a map link
Carry on
including like Google, Intuit, a bunch of CIA stuff neither of us have ever heard of, the Computer History Museum, which still needs a tickertape transmitter..... Thank you!
Oh god, Intuit.... the bane of my life at work
why does Pelosi look so young in this picture?
@magic orchid
lol
Scary pumpkin
O(2^n) 
while ord(character) > 122:
character = chr(ord(character)-26)
while ord(character) < 97:
character = chr(ord(character)+26)``` Or something.
Probably not quite that. It's pretty naive and assumes other stuff is well-behaved.
Also, formulae. https://en.wikipedia.org/wiki/Ellipse
chr(70) == 'F'
chr(-1) raises a ValueError
| Inappropriate argument value (of correct type).```
str.lower str.upper
'aPpLe'.lower() == 'apple'
i = 0 #Initialise i with 0
i += 1 #Add 1 to i
i == 1 #i is now 1
i += 2 #Add 2 to i
i == 3 #i is now 3```
vs
i = 0
i = i+1```
str.maketrans
trans = str.maketrans('ac', 'ca')
'cornucopia'.translate(trans) == 'aornuaopic'
text = 'apple'
for i,v in enumerate(text):
print(text[i:]+text[:i])```
@dire folio @torpid crag @wind crescent @leaden comet i need help
<@&267628507062992896> people repeating the n-word in voice channel
yes, please.
this isnt acceptable.
So Iām having trouble adding listeners to my file that stops raids could you add the listeners for me and see why it breaks
Nvm mr 0tro doesnt cuss
Hes honestly an amazing man
So Im having trouble running this go lang nuker and also having a trouble adding commands to a js script.
Yo sdot I like this version of you @whole bear very intellectual
If anyone can help me? What does the word Pimpin mean?
Sdot i love that name!
Maybe try breaking your code down into parts and making sure each part runs the way you intend and only the way you intend.
<@&267629731250176001> This isnt accpetable they keep repeating the n word
Then see if other parts play with other parts they way you intend.
Then build it up.
yeah i just dont want u to get in trouble for helping
does anyone knows what this mean?
!ban 650458730051272751 n-word in the vc
:incoming_envelope: :ok_hand: applied ban to @lofty cedar permanently.
@sly jolt
u dont know what this mean?
So Iām having trouble adding listeners to my file that stops raids could you add the listeners for me and see why it breaks
@whole bear
who think they can remove mongo db frm a file
!ban 761822795923456021 n-word in the vc
:incoming_envelope: :ok_hand: applied ban to @novel spear permanently.
You all are too enthusiastic, I'm afraid. I can't concentrate on shit.
!ban 524017868157747201 n-word in the vc
:incoming_envelope: :ok_hand: applied ban to @main wadi permanently.
For debugging stuff, break your code down into its elementary parts. Build it back up, making sure it all works as you intend and only as you intend as you go.
Avoid spaghetti code.
!ban 760363544256184331 n-word
!ban 760363544256184331 n-word spam in the vc
:x: User is already permanently banned (#13258).
:incoming_envelope: :ok_hand: applied ban to @worldly thistle permanently.
!unban 524017868157747201
:ok_hand: pardoned infraction ban for @main wadi.
mr @sly jolt
ye
I think you banned christian by mistake.
lol
You see hes ghetto, sir it jus slips out
@sly jolt sir you know what mongo database is?
Im sorry for what he has said.
Jus please unban my friend
plus hes black..
?
?whois
May you please lower the music ? @still iron
You know why.
But hes clearly ghetto it slips out.
jus please give him another chance
Everyone not perfect
š
Fab's volume is fine
keep in mind each user has control over their local output of a person
you can right click and turn them down if it's too much for you
keep in mind each user has control over their local output of a person
@proud tangle
?av @proud tangle
Do anyone know how to remove mongo db from a file
I need help removing mongo
yo xitherius
!ban 743685889913389066 racism
:ok_hand: applied ban to @zinc shore permanently.
Oh wow .
pls snipe
we have a filter system
Do you want guys see that ?
Lol
!ban 665735950827257876 selfbot usage
:incoming_envelope: :ok_hand: applied ban to @daring siren permanently.
@whole bear please dont post random gifs
lemon
I can't talk because I don't have a functioning mic
Stop posting images
?
May you guys please stop cursing
why cant i post this?
no guns or anything
Not cool, to whoever is saying that in the voice channel.
its all odd that so many of these accounts that are saying and doing this stuff say there new accounts hmmmmmm.....
@whole bear we don't allow people to stream.
ik but a majority is
!ban 756957825317732473 saying the nword in the vc
:incoming_envelope: :ok_hand: applied ban to @thorny quartz permanently.
LAMO
@undone patrol cut it out, thanks.
!ban 683091126848454707
:incoming_envelope: :ok_hand: applied ban to @median token permanently.
LMAO
Nice early supporter badge š @proud tangle
!ban 490193707744755712 alt of @thorny quartz
:incoming_envelope: :ok_hand: applied ban to @spiral root permanently.
@quasi mist
!ban 262078653272293386 alt of @thorny quartz
:incoming_envelope: :ok_hand: applied ban to @quasi mist permanently.
knew it
Tro is legit a clan.
he literally started yelling the nword
People do recommend Python books, however, the internet does have a LOT of good sources for self learning.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
free stuff
even some decent free ones as well
Python Crash Course, 2nd Edition teaches beginners the basics of programming in Python, with a focus on real projects.
The downloadable docs on python.org. There's a zip archive of pdf files. library.pdf is, in my view, the bible of python.
Covers all of core python and its native modules and has examples.
Leg joints packaged in soundproofed boxes. Niche items.
@somber heath Thank you for the ping. Your contributions to the server are very much appreciated.
Wasn't I.
ah I guess it wasn't
either way, thank you for your large amount of work on the server.
Kivy
Yeah, django has sooo many parts
Yeah lol
You'll end up doing the ORM by yourself
and basically rebuilding django
I had to deal with a huge wordpress site for a client
never again
html headers injected into json api responses, etc
oh
that
it has its own language
yeah
its.. interesting
yep
o/
Heyo @verbal oasis
need help with something?
@uneven urchin Nah! man thanks for asking.
š
BTW @uneven urchin are you good in c++?
helo
not particularly, but I can probably spot a bug if you need eyes
I'm making lots of typos tonight
hello
oooouuuh!
o/
doot
doot
o/
i need to go too, talk to you later
can someone help me out with my college project?
@hushed elm Mosaicish.
yess @somber heath pretty
poisson(s) = fish
poisson distribution = fish distribution?
Fünfundachtzig - Eightyfive
@fickle orbit hop into code/help VC
def rotate(self):
if self.rotation != 90:
angle = math.radians(self.rotation)
cos = math.cos(angle)
sin = math.sin(angle)
xaxis = self.center[0]
yaxis = self.center[1]
nvertices = []
for x, y in self.vertices:
y -= yaxis
x -= xaxis
rotate_x = x * cos - y * sin
rotate_y = x * sin + y * cos
nvertices.append([rotate_x+xaxis, rotate_y+yaxis])
return nvertices
else:
return self.vertices
self.vertices = self.rotate()
y_vertices = []
x_vertices = []
for vertice in self.vertices:
y_vertices.append(vertice[1])
x_vertices.append(vertice[0])
max_y = max(y_vertices)
min_y = min(y_vertices)
max_x = max(x_vertices)
min_x = min(x_vertices)
self.end = [max_x, max_y]
self.start = [min_x, min_y]
self.x_vertices = x_vertices
self.y_vertices = y_vertices
self.x = self.start[0]
self.y = self.start[1]
self.w = self.end[0]-self.x
self.h = self.end[1]-self.y
self.center = ((self.x+self.w)-(self.w/2), (self.y+self.h)-(self.h/2))
Text to ASCII art converter
~f Hello World
import pyfiglet
import json
def figlateIt(msg):
msgs = msg.split(" ")
if msgs[0] != "~f":
return 0
msg = msg.replace("~f", "")
msg = msg[1:]
result = pyfiglet.figlet_format(msg)
print(msg)
print(result)
return result
class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as {0}!'.format(self.user))
async def on_message(self, message):
# print(message)
print('Message from {0.author}: {0.content}'.format(message))
msg = message.content
if message.content.startswith('~f'):
figlate = figlateIt(msg)
await message.channel.send(figlate)
client = MyClient()
_
| ) | |
| \ / | |
| |) | () | |
|__/ _/ _|
What I'm getting
What I want
@chilly kiln https://www.youtube.com/watch?v=9rmBqIFeHN8
"THERE'S FOUR NUMBERS, FOR JUST ONE NUMBER"
SCHOOL FRIENDLY VERSION:
https://youtu.be/vx2Ru0J6I9Q
Cool Camera Guy: https://www.youtube.com/user/TriTwiceEv
lols
@tall latch Issues with your mic/internet?
well internet
numba's jit
import time
t1 = time.time()
t2 = 0
i = 0
while t2-t1 < 1:
t2 = time.time()
i += 1
print(i)
def goto(xy, y=None):
if y is None:
x,y = xy
elif y is not None:
x,y = xy,y```
def __init__(self, position: tuple or list, scale: tuple or list, rotation: int or float = 90) -> None:
goto(20,10)
#equivalent to
goto((20,10))```
windows + Shift +S launches a snip and sketch tool which eases a lot of work in these cases
@storm field
yes
:arrow_up_small:
Gear, video & voice settings, auto sensitivity off, adjust horizontal slider for sensitivity.
it will be helpful if you give screenshots also
I'm on my phone, but...
me
i did not have option auto sensitivity
but i couldn't find that noise cancelation button desktop
yap sensitivity is there
@storm field It might not be called auto sensitivity on the desktop/web app.
I think the Noise cancellation is the feature added in the recent discord update......try updating or installing new discord version
yeah I think so
i am in web app
But the idea is to turn the auto sensitivity off so the manual slider can be set to an appropriate position.
Yes. it's not available on the web app
So it takes more loudness before it starts sending sound into voice chat.
I'm also using mobile
Yeah. Move the slider much further right.
Okay wait. let me check my linux discord client
We are trying to help you. š
anything here have to change
Turning those off can make your audio clearer.
But more background noise can come through.
In stripping out extraneous noise, you can lose some quality.
They may or may not be appropriate, depending on your local noise conditions.
For you, I'd say leave them on.
see this
u know push to talk isn't available for browser
š
is it still noise from my side @somber heath
ye and My discord application does not want to open at all
@storm field You're fine right now.
okay
that's a batter option
Hey guys.
I know everyone here knows decent amount of coding.
I am just starting python. Can anyone guide me how i should gow about pure python and then the standard libraries?
There are two many resources available online and it is difficult to focus.
Any help will be highly appreciated
So if you have imaginary files, does that mean there are complex directories?
if it is imagenary how do u know it even exists
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@whole bear
It is still too much of resources
@whole bear The docs on python.org are your authoritative source for info. There are downloadable versions. I go for the pdf collection. In that, library.pdf is your bible.
@whole bear make some crazy function
https://www.programiz.com/ I can recommended
Learn to code in Python, C/C++, Java, and other popular programming languages with our easy to follow tutorials, examples, online compiler and references.
Work through the docs. Learn the concepts as you go.
Well , thanks
you should really look into coming up with ur idea of a project, and then execute it practically @whole bear
Small projects, starting out.
and if u get stuck then u should seek online documents or ppl on this server
Don't overwhelm yourself.
The beginning is nightmare
Stick to just python then the native libraries a bit later on. Avoid branching out into third-party libraries until you've got your foundational knowledge with which to interpret and handle them.
Indendation, objects, for and while loops, variables, operators, strings, lists, tuples, sets, dictionaries, keywords, integers, operators, assignment, equality, booleans, functions, classes.
Then import
&&
(True and True) is True (True and False) is False
Thanks @somber heath
if True and True: #(True and True) being True, so if goes, yep, let's run this
print('The truthiness is out there.')```
~f Hw
if True:
print('Doing the thing.')```
Text to ASCII art converter
import os
import discord
from discord.ext import commands
import re
import pyfiglet
import json
def figlateIt(msg):
msgs = msg.split(" ")
if msgs[0] != "~f":
return 0
msg = msg.replace("~f", "")
msg = msg[1:]
result = pyfiglet.figlet_format(msg)
print(msg)
print(result)
return result
class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as {0}!'.format(self.user))
async def on_message(self, message):
# print(message)
print('Message from {0.author}: {0.content}'.format(message))
msg = message.content
if message.content.startswith('~f'):
figlate = figlateIt(msg)
await message.channel.send(figlate)
client = MyClient()
if name == "main":
token = str(os.environ.get('bot_token'))
client.run(token)
_
| ) | |
| \ / | |
| |) | () | |
|__/ _/ _|
@solid marten Go to this
~f Foo
get the python file in my discord server
link: https://discord.gg/e9yYn75
!code
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
⢠These are backticks, not quotes. Backticks can usually be found on the tilde key.
⢠You can also use py as the language instead of python
⢠The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
#import
from random import *
#liste caractĆØres
characters=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
#longueur
length=int (input('choose the length of your password :'))
#generation
def mdp (length):
mdp = str()
shuffle (characters)
for x in range (length) :
mdp+=characters[x]
print(mdp)
input()
list('abcdefg')
mdp = ""
#import
from random import *
#liste caractĆØres
characters=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
#longueur
length = int(input('choose the length of your password :'))
#generation
def mdp (length):
mdp = ""
shuffle(characters)
for x in range (length) :
mdp+=characters[x]
print(mdp)
input()
``` what about this ?
print(string.ascii_lowercase)```
where is the shuffle method ?
random module
Your input call is not passing its result to anything. It's not doing something like myFunction(int(input())) or var = int(input()) then myFunction(var).
!e ```py
#import
from random import *
#liste caractĆØres
characters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
#longueur
length = int(input('choose the length of your password :'))
#generation
def mdp (length):
mdp_pass = ""
charr = random.choice(characters)
for x in range (length) :
mdp_pass += charr
print(mdp_pass)
mdp(lenght)
def mdp_func (length):
mdp = ""
shuffle(characters)
for x in range (length) :
mdp+=characters[x]
print(mdp)
mdp_func(10)
why mdp_func (10)
@whole bear
why
mdp_func (10)
@whole bear there shouldn't be any space between the function name(mdp_func) and(10)
yeah there shouldn't be any space. I have made the edit.
def mdp_func (length):
mdp = ""
shuffle(characters)
for x in range (length) :
mdp+=characters[x]
print(mdp)
length = int(input('Enter the length:'))
mdp_func(length)
Windows Sandbox is a new lightweight desktop environment tailored for safely running applications in isolation. Ā How many times have you downloaded an executable file, but were afraid to run it? Have you ever been in a situation which required a clean installation of Windows,...
Okay, I'm deeply sorry, but I just used an API to generate random jokes and this one got me: Chuck Norris's database has only one table, 'Kick', which he DROPs frequently.
An extensive tutorial explaining how to configure DirectX 9.0c in Linux using Wine, including a Tropico 3 game demonstration
'
"
An extensive tutorial explaining how to configure DirectX 9.0c in Linux using Wine, including a Tropico 3 game demonstration
wine gaming, gaming on linux, linux gaming, wine linux, wine games, dxvk, linux, wine, dx11, vulkan, game performance
I am leaving, thank you OpalMist!
with open(jsonName, "w") as fh:
json["users"][str(message.author.id)] = {
"point": 0,
"level": 0
}
fh.seek(0)
json.dump(json, fh)
fh.close()```
In this tutorial, you will learn to parse, read and write JSON in Python with the help of examples. Also, you will learn to convert JSON to dict and pretty print it.
`import json
with open('path_to_file/person.json') as f:
data = json.load(f)
Output: {'name': 'Bob', 'languages': ['English', 'Fench']}
print(data)`
I usually do this.
with open('json.json', 'r') as file:
data = json.loads(file.read())```
add = json.load(fh)
File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json__init__.py", line 293, in load
return loads(fp.read(),
io.UnsupportedOperation: not readable```
Traceback (most recent call last):
File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\client.py", line 333, in _run_event
await coro(*args, **kwargs)
File "Bot1.py", line 11, in on_message
data = json.load(file)
File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\JERSON\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
_list = [1,2,3]
with open('file.json', 'w') as file:
file.write(json.dumps(_list))
with open('file.json', 'r') as file:
data = json.loads(file.read())
print(data)```
Lesson of the day: Avoid writing JSON by hand if you can avoid it. If you choose to not avoid it, know what it's supposed to look like and save it with the right encoding.
Maybe. I don't know. I'm making educated guesses.
with open(jsonName, "w") as fh:
add = json.loads(fh.read())
add["users"][str(message.author.id)] = {
"point": 0,
"level": 0
}
fh.seek(0)
json.dump(json, fh)
fh.close()```
with open(jsonName, 'r') as fh:
add = json.loads(fh.read())
add["users"][str(message.author.id)] = {"point": 0, "level": 0}
with open(jsonName, 'w') as fh:
file.write(json.dumps(add))```
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
thanks mate
with open(jsonName, "w") as fh:
newlevel = json["users"][str(message.author.id)]["level"]
if points > 0 and level == 0:
level += 1
elif points == level * 11:
level += 1
json.dump(json, fh)```
import json
file = open('file.json', 'r')
json = json.loads(file.read()) #Overwriting the json module with a dict
json['apple'] = 'red'
file.write(json.dumps(json)) #json was overwritten, so you're trying to use dict.dumps, which doesn't exist
#let's assume that worked despite it being wrong
file.close()```
list = list('abc')
list == ['a', 'b', 'c']
list = list('abc') #Same as above? Think again. This is trying to do list = ['a', 'b', 'c']('abc')
#Above line raises an exception, because a list instance is not a callable function```
Better to write _list = list('abc')
Overwiting builtin objects or modules is evil and is to be avoided.
opal it is not working still
the data is not updating
with open(jsonName, "r") as fh:
mod = json.load(fh)
newlevel = mod["users"][str(message.author.id)]["level"]
newPoints = mod["users"][str(message.author.id)]["point"]
newPoints += 2
if points > 0 and level == 0:
level += 1
elif points == level * 11:
level += 1
with open(jsonName, "w") as fh:
json.dump(mod, fh)```
Don't nest your withs
it aint nested
I'm looking right at it.
with open(jsonName, "r") as fh:
mod = json.load(fh)
newlevel = mod["users"][str(message.author.id)]["level"]
newPoints = mod["users"][str(message.author.id)]["point"]
newPoints += 2
if points > 0 and level == 0:
level += 1
elif points == level * 11:
level += 1
with open(jsonName, "w") as fh:
json.dump(mod, fh)```
how is it nested lol
Fix your indents so it appears correctly on discord.
You really haven't.
Send a screenshot.
mod["users"][str(message.author.id)]["point"] += 2
its almost 4 am here
@tall latch I can't hear a word you're saying.
Your network is distorting you baaaad.
Maybe give voice chat a rest for now.
@tall latch Suggestion: Mute yourself. Listen, but type in here.
mm?
Backslashes in f-strings are a no-no. Use str.format instead, or multiline strings.
Backslashes in f-strings are a no-no. Use
str.formatinstead.
@somber heath maybe but it works
u can speak
Oh, well, if it's not complaining, okay.
opal
Maybe I don't feel like talking.
I would say that's your issue.
Muuute
Ciao ciao
hello
What is that
my desktop
In high school is there coding classes?
yea
apparently, these guys are super lucky
for electives
yea
what is HTML for
web
is that the thing where i press inspect on my pc and that code that is HTML
Gold digger jkjk
JKJKJK
Be like Bill gates
be a rich gal
ye
The goal is to learn on the job then ditch the company and start a start up
yall can be like warren buffet and invest in stocks
Yeah
I heard that as well
wot
wow
your mad
wow
what does def do in python
function
ok
so
can you give me a example of it
def foo(n, k):
return n * k
bye
hi
im back boys
teamRoster = ['Nathan', 'Toby']
print('Welcome to the Team Manager!')
def mainMenu():
print('===========Main Menu===========')
print('1. Display Team Roster.')
print('2. Add Member.')
print('3. Remove Member.')
print('4. Edit Member.')
print('9. Exit Program.')
return
def menuSelection():
selection = int(input('Selection: '))
return selection
def displayRoster():
print(teamRoster)
return
def addMember(name):
selection = input("Enter new member's name: ")
teamRoster.append(name)
return selection
def removeMember(name):
selection = input("Enter member name to be removed: ")
teamRoster.remove(name)
return selection
def foo(x, y):
return x + y


