#voice-chat-text-0
1 messages Β· Page 947 of 1
I actually read about that without knowing what they were talking about
That's great
sieve theory
Definitely not. I know as much as calc 1 and I have yet to commit my interest to something like mathematics
|2| 3 4 5 6 7 8 9 10
|2| |3| 5 7 9 11 13 15 17 19 21
|2| |3| 5 7 11 13 17 19
283695
2 3 4 5 6 7 8 9 10... 21
2
2*2 2*3 2*4
3
3*2 3*3 ...
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|2| 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
2*2 2*3, *4, *5,
2*11
|2| 3 5 7 9 11 13 15 17 19 21
|2| |3| 5 7 9 11 13 15 17 19 21
3*3, 3*5, 3*7, 3*9
I see
Thats cool
hm
bye
of course
lol
Sure
@willow lynx how's the morning btway
Chilled
Uhu , 7degrees here few hours ago
You in Delhi?
No in Jammu
That's why perhaps. You get snow over there?
No snow tho only hails sometimes
if any one have have free time can any one explain class topic of python please help and don't give me link please help
@ripe salmonπ
hello
@wide cypressHoya hi. π
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Ah.
i don't have it, my family members don't have it
all others i don't care
lol
jk
its not too bad in delhi atleast
i started with lua and java
xD
python i learnt later cuz was ez
nope
i tried making something for roblox just a few days ago for fun but
before that i used lua for macro scripts and embedded use in Cpp
^
ahahahaha
I got you
man
ahahah
okok
he lies
I did it on purpose because I don't care
no
man
This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.
If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.
@stuck skyhttps://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/modwsgi/
just noticed that mr hemlock looks alot like the prime minister of the netherlands!
@rugged root
π©
hemlock's less active than the prime minister
i python file handling write and writelines are different or same?
@unkempt remnant can you tell?
please

its diffrent sir
Ok thank you
wtf
hey hey
def check_output(expected_output_file, actual_output_file):
try:
file_a = open(expected_output_file)
except:
print(False)
content_a = file_a.read()
file_a.close()
try:
file_b = open(actual_output_file)
except:
print(False)
content_b = file_b.read()
file_b.close()
if content_a == content_b:
print("true")
else:
print("false")
check_output('demo1.txt','demo2.txt')
what am i doing wrong
file_a = open(expected_output_file)
#try:
file_a = open(expected_output_file)
#except:
print(False)
<a href="#wellcom" target="_blanck" title="this is this page">this page</a>
can I use (') instead of (")
@deft idol Research "python bare except"
the question is this b part
I'll come back in minutes
z
def check_output(expected_output_file, actual_output_file):
try:
file_a = open(expected_output_file)
content_a = file_a.read()
print('file a is present')
except:
print(False)
print('file a is missing')
##############################################
try:
file_b = open(actual_output_file)
content_b = file_b.read()
print('file b is present')
except:
print(False)
print('file b is missing')
##############################################
# what is do if both file are missing #
if content_a == content_b:
print("true")
else:
print("false")
check_output('demo11.txt','demo22.txt')
i corrected it and it runs fine now but i have to add one more condition
if both file are missing
how i do it
I'm at the end of the day, so my brain is not at its peak. Maybe pick up a help room. #βο½how-to-get-help
'with open()' closes it for you automatically, ya?
Mhm.
grep 'except:' < source || echo "Stop it!" 1>&2
Everything in that with's codeblock, the file is open. Everything outside of it, it's not yet opened or is closed.
Global Regular Expression Print
GREP
try:
open(expected_output_file, "x")
except FileNotFoundError:
content_a = None
else:
file_a = open(expected_output_file)
content_a = file_a.read()
print('file a is present')
if content_a is None:
...
π how about something like that
def check_output(expected_output_file, actual_output_file):
exists_a = True
exists_b = True
try:
file_a = open(expected_output_file)
content_a = file_a.read()
print('file a is present')
except:
exists_a = False
print(False)
print('file a is missing')
##############################################
try:
file_b = open(actual_output_file)
content_b = file_b.read()
print('file b is present')
except:
exists_b = False
print(False)
print('file b is missing')
##############################################
# what is do if both file are missing #
if exists_a and exists_b == False:
print("neither file exists")
elif content_a == content_b:
print("files are the same")
else:
print("files are not the same")
check_output('demo11.txt','demo22.txt')
your solution is also wrong bro
i gave me the same error which i was getting earlier
but Boni's method worked
it doesnot show any error if one of the file is missing
Bare except
Not yet
I'm using Tk now.
Nice nice
have you ever had issues with frezzing screen because of spaming the same button or
Yes
Brian playing his Low Eb MacNeil whistle at boxwood festival 2008.
French Guiana ( or ; French: Guyane [Ι‘Ι₯ijan] (listen)) is an overseas department/region and single territorial collectivity of France on the northern Atlantic coast of South America in the Guianas. It borders Brazil to the east and south and Suriname to the west.
With a land area of 83,534 km2 (32,253 sq mi), French Guiana is the second-largest ...
For normal HTML, it allows one OR the other (but surround it with the same).
You can also use " to escape " inside of it.
I got , thanks.
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
okay so i need to write 50 messages... nice
it makes sence
true
so im just writing messagess i guess
aye, that tha' art
'Tis I. 'Tis leg.
The loco crew were enjoying the drive out of Melbourne on a nice hot day when confronted by a buckled rail. It was a rough ride for a few moments but the loco and train stayed on and the crew were as James Bond would say " shaken not stirred". The clip belongs to Driver Bernie Baker as denoted by the Β© watermark. There is no sound by request of ...
that would be pointless
you'd simply be voice banned for two weeks
after which you'd have to restart
so i need to write 50 messages without writting 50 messages
Why canβt I talk?
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@opaque egret now you can explain to infinity, lol
Too slow.
nou
Do i need to be online in 310 minute blocks or is 130min okay?
uh what
Look at #voice-verification
I think 3Γ10 minutes
I wouldn't get caught up in overthinking it.
^
If you just have a bit of a chat here and there, it'll go by before you know it.
Send 50 text to speak
so i stay 5 minutes more and then i go for 30 min come back 10 min go 30 min and then come back 10 min and then i need to chat and then i can talk
ne
No* its ALL of the criteria
I think they can also be back-to-back
basically today youre maybe not speaking
so just 30 consecutive minutes is also fine
Primarily, the 3x10 rule is basically preventing you from getting there by spamming. I think.
as are all the others
Anyone knows priority queue implementation? I got query related to that.
okay im going for 2 min so that its a "block"
Ignore the technicalities. Just have conversations.
Also, I don't think it works like that.
its tooooo long
EchtJetzt means "ReallyNow"
in germany
yes i have
but i dont know how to say it in english
i nearly did it
just the 50 messages are not full
doesnt voice chat count?
@frozen jetty whats going on in your background ;P
nice
oh noooo
thats my jam
haha
lol
37/50
nice
i forgot how much 50 messages are
too much
but it's a cool way to protect
43
its so dumb i just wanna talk, i dont even have something to say
why
germany?
its not soo nice here
nooo its not THAAAT good
the people are 75% bad and 20% okay and 5% good
its like you're summoning a snake
50/50!
did you born in GERMANY?
yes
@whole bear
export PATH = $PATH:<path-to-rust-analyzer>
export PATH=$PATH:/home/ayoush/.local/bin/rust-analyzer
Hi all
export PATH=$PATH:/home/ayoush/.local/bin/
π
I hate it when I don't have enough flan. @woeful salmon
You said something like "When I don't have enough flan..."
Ah.
Won't be around much the next couple days. I've got the holiday deliveries thing, so I'll be in the van most of the time
http = requests.get(url)
json = (http.json())
print(json)
print(dict(tuple(json.items())[0]))```
π have a nice trip
i'm not a kid but shall i be expecting to see you in my chimney for christmas mr.holiday delivery man
{'success': False, 'error': {'code': 104, 'type': 'usage_limit_reached', 'info': 'Your monthly usage limit has been reached. Please upgrade your Subscription Plan.'}}
lol
[0]
!e
foo = {'success': False, 'error': {'code': 104, 'type': 'usage_limit_reached', 'info': 'Your monthly usage limit has been reached. Please upgrade your Subscription Plan.'}}
print(foo["success"])
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
False
@cosmic nova hey, please don't spam join/leave the vc. if you want to know why you can't talk, check the steps in #voice-verification
why are you pinging?
!mute 922472236697399346
:x: According to my records, this user already has a mute infraction. See infraction #57274.
!mute 922472236697399346 3d don't spam ping roles
:x: According to my records, this user already has a mute infraction. See infraction #57274.
HA
if json["success"] == "False":
print("heellll yeah")
if not json["success"]:
print("heellll yeah")
i will be back
if str(json["success"]) == "False":
print("heellll yeah")
Not unless you're a client of ours and expect cheese or chocolate
π’ aww
@west lion somewhat both
ohom
you will thing good at that time. but you have learn new things as the come
but the fundamentals as most are the same
Noooo
High IQ
only
π i get it ...
@woeful salmon they have 2 week pay system
Mumbai
nooo
π
π π π π
that is this the point
not it hub
*IT
27
you tell
π
freezing
come to mumbai
@west lion where are you from?
city?
ohh
shiraz
Register domain names at Namecheap. Buy cheap domain names and enjoy 24/7 support. With over 13 million domains under management, you know youβre in good hands.
π π π π π π
@woeful salmon have u find it
hmm thanks
u200b unicode
Most editor won't show this by default but if in code. Code will fail to run
vsc can do that ez and vim also has a plugin for that (tho you can also do it without any plugin)
@tropic harness hello
Hello.
Has anybody used python for IoT projects with like Paho MQTT before by chance?
I didn't want to ask in the help channels directly.
But today I have wrapping my head around MQTT on my plate, and anyone with some experience that could verify my understandings or correct my misunderstandings would be great.
Contribute to Zman350x/OldBlockGame-BadCode development by creating an account on GitHub.
Becuase y'all wanted github
good job
lol
now add travis ci and containerize it
nice mic
lol
Sambal is a chilli sauce or paste, typically made from a mixture of a variety of chilli peppers with secondary ingredients such as shrimp paste, garlic, ginger, shallot, scallion, palm sugar, and lime juice. Sambal is an Indonesian loan-word of Javanese and Sundanese origin (sambel). It originated from the culinary traditions of Indonesia, and i...
@daring orbit I'm new to this server. Have been supressed! lol
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Nah man it says:
β’ You have been on the server for less than 3 days.
β’ You have sent less than 50 messages.
Indeed.
The future holds many treasures.
haha alright
@worn prawn Something seemed wrong with your audio.
oh that was the mic
i was just randomely pressing the button
@somber heath that was just the headset buttons
@lusty marsh https://www.youtube.com/watch?v=p1RKkRCiU90
My Twitter: https://twitter.com/prozd
My Let's Play channel, Press Buttons n Talk:
https://www.youtube.com/channel/UCSHsNH4FZXFeSQMJ56AdrBA
My Merch/T-Shirt Store: http://www.theyetee.com/prozd
My Tumblr: http://prozdvoices.tumblr.com/
My Twitch: https://www.twitch.tv/prozd
My Instagram: https://instagram.com/prozd
My Patreon: http://www.patreon...
High-powered graphics.
+30% to FPS
hi
where are you from?
IRAN
Nice
Come to norway, very good
how about you?
what's the language of there?
norwegian
same here
π
can you talk ?
yes if you come to VC 0
WTF
bruh
i will be back
More delivering of chocolate and cheese. May or may not be on later
@somber heath ur bird now?
For the while.
.
Pack age in decks.
I still haven't been able to go on christmas deliveries yet today
Just one IT thing after another
After a while it also spores from the dampness
pygame 2.1.0 (SDL 2.0.16, Python 3.8.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "c:/Users/jean/Desktop/Vs Code/SpaceShooters/main.py", line 111, in <module>
main()
File "c:/Users/jean/Desktop/Vs Code/SpaceShooters/main.py", line 65, in main
UFOR.append(pygame.image.load(os.path.join('Assets', 'ufoR.png')))
UnboundLocalError: local variable 'UFOR' referenced before assignment
PS C:\Users\jean\Desktop\Vs Code\SpaceShooters>
@woeful salmon how do i open a site in emacs any builtin command
def main():
num_of_ufos = 8
for i in range(num_of_ufos):
UFOR.append(pygame.image.load(os.path.join('Assets', 'ufoR.png')))
ufo_R.append(pygame.transform.scale(UFOR, (UFO_WIDTH, UFO_HEIGHT)))
ufo_X.append(random.randint(0, 1000))
ufo_Y.append(0)
ufo_vel_x.append(6)
ufo_vel_y.append(40)
UFOR = []
ufo_R = []
ufo_X = []
ufo_Y = []
ufo_vel_x = []
ufo_vel_y = []
press alt + x then type eww
File "c:/Users/jean/Desktop/Vs Code/SpaceShooters/main.py", line 110, in <module>
main()
File "c:/Users/jean/Desktop/Vs Code/SpaceShooters/main.py", line 72, in main
ufo_R.append(pygame.transform.scale(UFOR, (UFO_WIDTH, UFO_HEIGHT)))
TypeError: argument 1 must be pygame.Surface, not list
PS C:\Users\jean\Desktop\Vs Code\SpaceShooters>
how do i paste in emacs
!code
@woeful salmon it takes a lot of time to load
ufo_X += ufo_vel_x
for i in range(num_of_ufos):
ufo_X[i] += ufo_vel_x[i]
if ufo_X[i] <= 0:
ufo_vel_x[i] = 6
ufo_Y[i] += ufo_vel_y[i]
if ufo_X[i] >= WIDTH - UFO_WIDTH:
ufo_vel_x[i] = -6
ufo_Y[i] += ufo_vel_y[i]
takes lot of time to laod
img = pygame.image.load( ... )
UFOR.append(img)
ufo_R.append(pygame.transform.scale(img, (UFO_WIDTH, UFO_HEIGHT)))
π€·ββοΈ it works for me
might just be your pc
ah isee
I remember having to press G or c-g or something to force refresh. I don't remember which it is.
^G ? >w<
Yea...
*giggle*
what do you prefer for retreving values from buffers in vim i<ctrl-r> or "p
register*
not buffer lol
I don't even know how to delete lines without copying to a register!
dd deletes but also replaces the register -.-'
File "c:/Users/jean/Desktop/Vs Code/SpaceShooters/main.py", line 111, in <module>
main()
File "c:/Users/jean/Desktop/Vs Code/SpaceShooters/main.py", line 79, in main
ufor_rect = pygame.Rect(ufo_X , ufo_Y,UFO_WIDTH, UFO_HEIGHT)
TypeError: Argument must be rect style object
Oh? You can paste in insert mode..?
I always go back to normal mode and use the latter.
The only register I use is + though. Still not used to using other ones.
def main():
ufo_X = 100
ufo_Y = 100
UFOR = []
ufo_R = []
ufor_rect.x = []
ufor_rect.y = []
ufo_vel_x = []
ufo_vel_y = []
num_of_ufos = 8
for i in range(num_of_ufos):
img = pygame.image.load(os.path.join('Assets', 'ufoR.png'))
UFOR.append(img)
ufo_R.append(pygame.transform.scale(img, (UFO_WIDTH, UFO_HEIGHT)))
ufo_X.append(random.randint(0, 1000))
ufo_Y.append(0)
ufo_vel_x.append(6)
ufo_vel_y.append(40)
ufor_rect = pygame.Rect(ufo_X , ufo_Y,UFO_WIDTH, UFO_HEIGHT)
ufog_rect = pygame.Rect(ufo_X , ufo_Y,UFO_WIDTH, UFO_HEIGHT)
ufob_rect = pygame.Rect(ufo_X , ufo_Y,UFO_WIDTH, UFO_HEIGHT)
ship_rect = pygame.Rect(WIDTH//2 - 20, 500,SHIP_WIDTH, SHIP_HEIGHT)
run = True
clock = pygame.time.Clock()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
ufo_X += ufo_vel_x
for i in range(num_of_ufos):
ufo_X[i] += ufo_vel_x[i]
if ufo_X[i] <= 0:
ufo_vel_x[i] = 6
ufo_Y[i] += ufo_vel_y[i]
if ufo_X[i] >= WIDTH - UFO_WIDTH:
ufo_vel_x[i] = -6
ufo_Y[i] += ufo_vel_y[i]
drawing(ship_rect, ufor_rect, ufog_rect, ufob_rect)
keys_pressed = pygame.key.get_pressed()
movement_ship(keys_pressed, ship_rect)
ufo(ufor_rect, ufo_X, ufo_Y, ufo_R, UFOR)
pygame.display.update()
clock.tick(FPS)
if __name__ == "__main__":
main()
import pygame
import random
import os
pygame.mixer.init()
pygame.init()
WHITE = (255,255,200)
RED = (255,0,0)
BLUE = (0,0,255)
GREEN = (0,255,0)
MAX_UFOS = 8
SHIP_WIDTH, SHIP_HEIGHT = 100,100
UFO_WIDTH = 100
UFO_HEIGHT = 100
UFO_LAYER_DOWN = 100
VEL = 7
FPS = 60
WIDTH, HEIGHT = 1000,700
BORDER = pygame.Rect(0, HEIGHT//2 + 75, WIDTH, 10)
BG = pygame.image.load(os.path.join('Assets', 'BG.jpg'))
SCREEN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption('SpaceInvaders')
SPACESHIP_IMAGE = pygame.image.load(os.path.join('Assets', 'Spaceship.png'))
SPACESHIP = pygame.transform.scale(SPACESHIP_IMAGE, (SHIP_WIDTH, SHIP_HEIGHT))
# zorgen dat ufo's het goede formaat hebben
UFOG = pygame.image.load(os.path.join('Assets', 'ufoG.png'))
ufo_G = pygame.transform.scale(UFOG, (UFO_WIDTH, UFO_HEIGHT))
UFOB = pygame.image.load(os.path.join('Assets', 'ufoB.png'))
ufo_B = pygame.transform.scale(UFOB, (UFO_WIDTH, UFO_HEIGHT))
# schip kan bewegen
def movement_ship(keys_pressed, ship_rect):
if keys_pressed[pygame.K_a] and ship_rect.x - VEL > 0:
ship_rect.x -= VEL
if keys_pressed[pygame.K_w] and ship_rect.y - VEL > BORDER.y + 20:
ship_rect.y -= VEL
if keys_pressed[pygame.K_s] and ship_rect.y + VEL + ship_rect.height < HEIGHT:
ship_rect.y += VEL
if keys_pressed[pygame.K_d] and ship_rect.x + VEL + ship_rect.width < WIDTH:
ship_rect.x += VEL
def drawing(ship_rect, ufor_rect, ufog_rect, ufob_rect):
SCREEN.blit(BG, (0,0))
pygame.draw.rect(SCREEN, RED, BORDER)
SCREEN.blit(SPACESHIP, (ship_rect.x, ship_rect.y))
def ufo(ufor_rect, ufo_X, ufo_Y, ufo_R, UFOR):
SCREEN.blit(UFOR, (ufo_X, ufo_Y))
```py
lol sorry i was in game so late reply but it stores the delete buffer in - so you can just do "p0 or i<ctrl-r>0 for getting back your yanked done
or do :registers for looking at all
ye i often use to replace words or lines (when i wanna paste another instead at a single place) like ciw<ctrl-r>0 or cc<ctrl-r>0
not 0
not False
not ''
not None
True or False is False is False
The str | None operator is enough for me to upgrade to 3.10!
Python 3.10 is set to be released on 4 October 2021. Join us live in our Python 3.10 Release Stream with Pablo Galindo, CPython Core Developer and Python 3.10 Release Manager, and Leon SandΓΈy.
Links:
Join Sebastiaan Zeeff and Kat (Janine) from Python Discord for an introduction to structural pattern matching, a new Python feature included in the next release, Python 3.10.
About Structural Pattern Matching (Release candidate docs)
https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching
PEP 634 - Structural Patt...
Python Discord: Pixels was a collaborative canvas event providing a beginner-friendly API to paint pixels on a virtual canvas.
If you'd like to sign up as a Patron, buy a t-shirt from our Redbubble, or send us a donation via PayPal, use the following links:
https://www.patreon.com/python_discordβ
https://www.redbubble.com/people/PythonDiscord/s...
MarI/O is a program made of neural networks and genetic algorithms that kicks butt at Super Mario World.
Source Code: http://pastebin.com/ZZmSNaHX
"NEAT" Paper: http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf
Some relevant Wikipedia links:
https://en.wikipedia.org/wiki/Neuroevolution
https://en.wikipedia.org/wiki/Evolutionary_algorithm...
Using various Super Mario World glitches, I injected the code for Flappy Bird (code written by p4plus2). This is the first time a human has ever completed this kind of exploit. Special thanks to p4plus2 and MrCheeze who helped me a ton with this project.
Livestream Archive: https://www.twitch.tv/sethbling/v/57032858
Route Notes: https://docs.goo...
!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.
What are you working on?
hi LX
Hello 
@stuck furnace PySide6 is the topic
Issue is getting a background image to get to scale to the window
We hopped to #751592231726481530 (careful; auto-join if on desktop / web)
Hello/goodbye @faint ermine
I find this funny somehow in the text channel for it.
Ooo, engineering degree + MBA is a good combo.
@scenic wind https://stackoverflow.com/questions/31616212/how-to-set-background-color-to-entire-widget-with-stylesheet-in-pyside
have you tried this?
Polikarpov Po-2
Π±?Π»ΠΌΡ
Polikarpov Po-2 manual in russian
Micdrow
@whole bear
:p
I wish you got a microphone
!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.
@frozen jetty @trail mural can any of you help me, how do i activate my microphone
what?
its not an insult
fine ok
ok thank you
it has 700 lines but the part i need help only has 50 lines
i cant
oh wait a second
yeah yeah
:o
im new to coding please dont make fun of me
in my country too lol
ive been a target to so many people that have been coding for more time that ive been alive
i think hes using the speakers of the car
@mighty chasm so youre trying to program chess full on python?
@mighty chasm
I think you would better to have firs list (matesf ) out side of the while
@mighty chasm #βο½how-to-get-help
@rugged root we should pick this up sometime
For sure. Sorry I had to bail, as soon as I got home I had more stuff I had to do
gnome-disk-utility
Voice anyone?
hello
Because the alternative is voice trolls and screaming.
@rugged root sir i am currently working on my nxt game chess , i want to ask
I have 64 tiles stroed in python list 8x8 dim, so is that bad practice,
@trail mural Fried chicken...cake...
No that's likely how I would do it
2d array/list is well suited for that
π΅ i thought its bad thing so i erased that parr of code and modified
Modified it to what?
Aah i just draw again and again
Well i have made a github acc and posted two projects games
Nice
My name in github is SparrowSurya well i f u can chek those games
Its so hard work to upload to github via mobile π
No wifi yet
Can't tether you phone?
Not for now
You wrote all of this?
It's fairly clean. Some minor style things jump out at me
Things after a colon should have a space after them for readability. Example:
def custom_platform(place: bool):
# rather than
def custom_platform(place:bool):
Same with line 15 in the Minesweeper/main.py file
Minesweep5 was my very first try for game making so i dont has any idea so i puted these thingss, custom platform is that frame which pops up when u click new in menus
Argument should have spaces after the commas
Right right
Is there a particular file you'd want me to look over?
It's just the first one I took a peek at
For now there is not any the chess im making currently will be that
Sure sure
πthanks
ill take a look at it
Oh my god
They renamed the project "TheFuzz"
That's... so derpy
Experience vs preperience.
Experience vs currentlydatingperience
Actually, inperience.
@main idol javascript is fun

π’
π’
speking language of the gods
its just abusing javascript's implicit typecasting xD
https://scanova.io/blog/blog/2015/04/22/qr-code-capacity/ I always find this super interesting
The idea of visually storable and retrievable visual data is incredible to me
Can you not hear me?

hi
I'm thinking about implementing Tableau's Web Data Connector (WDC) protocol in Python, anyone ever do this or know of it being done? I've found Jupytab but I'm thinking this is not the way to go.
Bucket, wall...same diff.
What's the ambient?
Still really icky
Yes
35+ is normal where i live in summer o- o
== Raw message ==
look at this :dv_pandaCoolOwO:
oh that shows nothing fancy
...I have questions about the beach towel.
!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.
!raw json 923240225990393927
== Raw embeds (1/1) ==
{'description': '**Pasting large amounts of code**\n'
'\n'
'If your code is too long to fit in a codeblock in discord, '
'you can paste your code here:\n'
'https://paste.pythondiscord.com/\n'
'\n'
'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.',
'type': 'rich'}
das cool
π for me javascript makes me feel the most safe ( i realize i'm posting js**** a but too much but π€·ββοΈ it was just what came to mind thinking of safety)
eeeeeeeeeeeeeeeeeeeverybody?
!raw xml 923240225990393927
Message "xml" not found.
!raw <message>
Shows information about the raw API response.
Subcommands:
!raw json <message>
Shows information about the raw API response in a copy-pasteable Python format.
boothjunkie
True that
@sour thorn If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know
@rugged root this is how it looks
That's awesome
i love monokai i am changing
I think the noise in the mid-side is relative to the gain, the xy seemed to have less noise but when I turn up the gain I hear a proportional amount of noise too.
be back soon
@whole bear What happened?
i am confirmed with the bug , since i confirmed it with safemode as well
Better to know than to not
5,353 votes and 400 comments so far on Reddit
Hello
lol haha yeah I'm voice verified but don't wanna interrupt you in between the talk.
soon is relative
Hmmm
self.display_view = Stack(horizontal=True, horizontal_align='space-between',
vertical_align='center', controls=[
self.display_task,
Stack(horizontal=True, gap='0', controls=[
Button(icon='Edit', title='Edit todo', on_click=self.edit_clicked),
Button(icon='Delete', title='Delete todo')]),
])
``` @wind raptor So I'm poking around the `pglet` thing you mentioned to me (for sure going to use it; it's dope), but the formatting that they have shown on their example....
I'm back
Like I think I'd normally do it like...
self.display_view = Stack(
horizontal=True,
horizontal_align='space-between',
vertical_align='center',
controls=[
Stack(horizontal=True, gap='0', controls=[
Button(icon='Edit', title='Edit todo', on_click=self.edit_clicked),
Button(icon='Delete', title='Delete todo')]),
])
hmm
The unindent they have really REALLY bothers me
this is a lot nicer
yeah, I haven't really gone through it all yet
I decided against breaking out the Buttons further in the second stack because it'd be too much
ok
For context https://pglet.io/docs/tutorials/python/
In this tutorial we will show you, step-by-step, how to create a ToDo web app in Python using Pglet framework and then share it on the internet. The app is a single-file console program of just 100 lines of Python code, yet it is a multi-session, modern single-page application with rich, responsive UI.
I mean I kind of see where they're coming from but at the same time....
Because the more you tier it, the less room you're going to have
Which is a problem
I think they really wanted to show it was 100 lines
chatSocket.send(JSON.stringify({
'connect': peer.id,
'profile': '',
'username': '',
'message': '',
'closeconn': ''
}))
like this
in frontend
Oh huh, interesting
Although you could make it even smaller by having a .get() check on the API end
Or wherever
So that if it's missing you have the default behavior, save you a few bits
Oh right right
I'm not great with all this
@ebon junco Regarding the message from your help channel that went dormant, that last block of code did seem like it'd throw a fit when the XML wasn't quite right
Rather it would catch the error
@ebon junco
def __add_items(self):
string_data = self.text_area.get(1.0, END).strip()
if string_data == "":
messagebox.showerror(
title="Error", message="Empty Data", parent=self.window
)
else:
try:
tree = ET.fromstring(string_data)
xml_parser = XMLParser(string_data)
items = xml_parser.get_items(self.mapselectValue.get())
for i in items:
i.mod = self.modSelector.get()
print(i.name)
self.database.create_item(
item=i, duplicate=self.duplicate.get())
self.window.destroy()
except ET.ParseError as err:
lineno, column = err.position
line = next(IT.islice(StringIO(string_data), lineno))
caret = '{:=>{}}'.format('^', column)
err.msg = '{}\n{}\n{}'.format(err, line, caret)
print(err.msg)
messagebox.showerror(
title="Error", message=err.msg, parent=self.window
)
self.text_area.focus()
else:
messagebox.showerror(
title="Error", message="Unknown error happened...", parent=self.window
)
!stream 277886690197110784
β @ionic ferry can now stream until <t:1640200717:f>.
Hmm, I'm finding how to jump the cursor in an entry box but not a label. Gonna keep hunting
What kind of widget is messagebox?
string_data = self.text_area.get(1.0, END).strip()
I mean is it a Label widget or what have you. Like what kind of object from tkinter
Mkay. Still hunting, one moment
just a text
@rugged root - Looking so much forward to any help
except ET.ParseError as err:
lineno, column = err.position
line = next(IT.islice(StringIO(string_data), lineno))
caret = '{:=>{}}'.format('^', column)
err.msg = '{}\n{}\n{}'.format(err, line, caret)
print(err.msg)
messagebox.showerror(
title="Error", message=err.msg, parent=self.window
)
self.text_area.focus()
self.text_area.mark_set("insert", f"{lineno}.{column}")
self.text_area.see("insert")
I think?
Just added the bottom two lines
Will test and revert with input
This is going off of this Stack Overflow response, so I'm not 100% if it'll work.
Wait wait
That's 2.7
Hmm
One moment
It actually work in 3.8....
It work .... It is cool
I'm glad
@ebon junco You might actually benefit from giving this site a look. It's pretty much my bible when it comes to dealing with tkinter https://tkdocs.com/
TkDocs features tutorials and other material for modern Tk GUI development, using Python/Tkinter, Tcl, Ruby, and Perl/Tkx.
gotta brb
Yeah sometimes you pretty much just write the pseudocode and you're done π
@stuck furnace - glad that that is also your experience...
I had to at uni.
This course is one of five self-paced courses on the topic of Databases, originating as one of Stanford's three inaugural massive open online courses released in the fall of 2011. The original "Databases" courses are now all available on edx.org.
Part of the Databases series, this is a standalone course; learners seeking to develop an understand...
^ Nice course on XML.
Like raw text would be unstructured, JSON and XML semi-structured, and SQL structured.
Not sure π€
π @vivid palm
I would do that tbf.
bat
ham
sam
First iteration would be bhs?
π
Actually
Had a ISP tech out to install new fiber internet today.
They borrowed our lift to run the fiber through the rafters in our warehouse
Took them two and a half hours to arrive, plan, execute, and clean up, and leave
When they left they said "So sorry it took so long"
Last time I had to run cabling myself, it took like seven hours
Turns out "a long time" is relative
But long story short, it went well
cabling?
Turns out all I needed to do to get something to go right was outsource it
Fiber/Ethernet/Electricity, etc
Damn it. I have to take out the whole back
Gotta go...
noo
weird flex but okay
all the credit goes to the amazing musicians in this video (theyre also all listed on my tiktok)
https://www.tiktok.com/@mimo_mio?lang=en
Online multiplayer puzzle game
We're IT people
I'm taking the time people aren't going to be here to schedule server updates/upgrades
I'm positive you make more than me
Are we allowed to discuss money here?
Don't see why not
I make 50k/year [north Texas]
It sounds like a lot, but I finally got fed up with my job and started applying for new ones
and Indeed is offering me 100-150k/year for "remote flask dev" or "remote python dev"
I could make triple to work from home doing only Python, and not have to put up with the rest of the crap my current job has
It does
That takes me back
Peggle is great
See you around.... Have to drop off

bracing
@rugged root
How to get pipes without going to the gym:
from multiprocessing import Pipe
@ocean raptorhey random noises are coming in from your end too
pong pong pong
could you please mute
Online multiplayer puzzle game
@whole bear https://www.youtube.com/watch?v=n0KC6QPNFhE
Hit the 'Like' and 'Subscribe' button if you enjoyed the gameplay
Wumbo playing Journey mode on Tetris Effect for PS4! All Clear Ultimatris 20 Zone Lines
Twitch: https://www.twitch.tv/wumbotize/
Twitter: https://www.twitter.com/wumbotize
Discord Server: https://discord.gg/vNQ5CMC
Tetris Effect
#Wumbology
Play Puyo Puyo Tetris for PC: htt...
I'm heading off, may be back later tonight depending on what's going on
bye
Hi!
Can someone give me a tip, about some framework to build desktop user interface?
I'm seeing Kivy and Electron... for a beginner, which would be the best one to learn?
no one talking, or do i have a connexion problem ?
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hello
im finally switching over to python πΌ
yes ive gotten the validation i needed ty
angry typing
!voice @dire pond
incred
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
not enough hours?
im starting to really hate lists
just keeping up with them igs dont really know how to explain
π
listen, im really bad at explaing LMAO
oh
i see
a list inside a list
right
i see
oH i understand
okok
@sterile grove π
helo
[1, 2, 3]
[[1,2,3], [4,5,6], [7,8,9]]```
1,2,3, first row. 4,5,6, second row. 7,8,9, third row.
!e py n = ["abc", "def", "ghi"] print(n[0][2]) #Row index 0, column index 2 (1st position, 3rd position, respectively)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
c
flushed
!e
!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!*
Flushed?
flushed = π³
Ah.
LMAO
So that thing where I put the numbers in the square brackets to get stuff out of the lists, that's "subscription".
!e py text = "hello" print(text[4])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
o
i was just gonna ask about that
I have subscripted "hello" with index 4, the fifth position of the string.
!e py print("hello"[0]) print("hello"[1]) print("hello"[2]) print("hello"[3]) print("hello"[4])
how does list slicing work
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | h
002 | e
003 | l
004 | l
005 | o
i see
!e py print("hello"[1:3])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
el
class slice(stop)``````py
class slice(start, stop[, step])```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
lol i can tell
obj[start:stop:step]
I wouldn't look at slicing if you're very new.
It's absolutely on the foundational knowledge list.
Things you ought to know. Just...not out of the gate.
what should i focus on then
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
That's not my answer.
haha
I also refer people to Corey Schafer's youtube playlists for Python.
There's a few beginners ones.
i will keep that in mind.
To work up to slicing, I'd look at range, first.
for loops
Elsewise, if is core.
if, elif, else
Indentation.
What is a function? What is an object?
How is a function also an object?
How do I print something to screen?
How do I ask for user input?
god i thought you were asking me for a second
Oh, nono.
i was like
These are questions you should ask at some point.
!e py for i in range(5): print("I happen five times!")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | I happen five times!
002 | I happen five times!
003 | I happen five times!
004 | I happen five times!
005 | I happen five times!
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | w
002 | o
003 | r
004 | d
letter = "w"
print(letter)```
letter = "o"
print(letter)```
letter = "r"
print(letter)```
```py
letter = "d"
print(letter)```
mmmm i will pretend that i understand this B)
A for loop takes everything in the iterable (here, "word"), given to it, and assigns each thing in it, in turn, to a variable (here,letter)
and runs everything in the for loop's indentation that many times
Each time with letter being that something different
that makes more sense
The indentation indicating "hey, I'm happening in this above thing's context"
@wintry hearth π
Look for the : at the end of things
Which says "Hey, look out, here comes some indented context to this line"
Some editors let you collapse and expand indentation to hide it.
You know those little plus and minus buttons? Or like how discord lets you collapse room categories.
yup
It's like a tree.
Very broadly.
I code.
If that makes me a developer, sure.
I mostly use Python to make pretty things.
im googling that real quick.
Fractals, stochastic stuff.
Ahhhhh
Noise patterns.
that sounds sick actually
Interference patterns.
My usual display image contains an example, but I've changed it to this for the season.
hmm you were right about it being pretty.
very cool
i must achieve voice verification
what did u say?
i wasnβt paying attention sorry.
ah i see
hmmmmmmm
sorry
did u just say
π¦
LMAO
oh the person
hello
@tawdry sky π
^^
o/
\o/
ok
i understand indexing now π
about time
keys??
these terms
istg
im crying.
right.
im staying up for this LMAO
!e py my_dict = {"apples": 7, "pears": 8} print(my_dict["apples"])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
7
all the knowledge I had about C++ during quarantine is gone
@sick yacht π
so many terms
right right
@whole bear ππ
{key:value}. key:value being the item.
!e py my_dict = {"apples": 7, "pears": 8} print(my_dict.keys()) print(my_dict.items()) print(my_dict.values())
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | dict_keys(['apples', 'pears'])
002 | dict_items([('apples', 7), ('pears', 8)])
003 | dict_values([7, 8])
keys: ['apples', 'pears']
items: [('apples', 7), ('pears', 8)]
values: [7, 8]
what are keys again π
LOL
oh right sorry
oh okok i mixed it up with somthing else
im slowly going braindead
!e py d = {7:9, 3:0} print(d[7])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
9
thankyou thankyou
!e py d = {} #Empty dict d["happy"] = "An emotional state. Overrated." print(d)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
{'happy': 'An emotional state. Overrated.'}
!e py d = {"apples": 8, "apples": 3} print(d)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
{'apples': 3}
!e py my_set = {"apples", "apples", "pears"} #note the lack of : in between. This is a representation of a set, not of a dictionary. print(my_set)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
{'apples', 'pears'}
my_dict = {key:value, key:value, key:value}
my_set = {element, element, element}```
@somber heath good morning
Howdy howdy.
@forest zodiac cant hear you
i am not in the vc

