#voice-chat-text-0
1 messages ยท Page 838 of 1
that's a lot
Hi
An interesting article that dives into the power of the neurobiological connection: https://getpocket.com/explore/item/the-science-behind-miracles?utm_source=pocket-newtab
There's a scientific explanation for everything if one looks closely enough and is open to all possibilities :)
guys i need to ask question if anyone can answer
does it require to know native development to learn flutter ?
@spiral monolith hey can you answer a small question for me?
Yeah really good but I would prefer a black screen and not a white screen
#user @whole rover
Martin Beck
Martin Beck is a fictional Swedish police detective and the main character in the ten novels by Maj Sjรถwall and Per Wahlรถรถ, collectively titled The Story of a Crime. Frequently referred to as the Martin Beck stories, all have been adapted into films between 1967 and 1994, six of which were included in a series featuring Gรถsta Ekman as Martin Bec...
Join the challenge or watch the game here.
Join the challenge or watch the game here.
Join the challenge or watch the game here.
how come i cant speak
@dire folio
what are your favorite ode u guys like to use on website
Hey @gentle flint
hi
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Join the challenge or watch the game here.
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
well this is odd
sphinx-rtd-theme 0.5.2 has requirement docutils<0.17, but you'll have docutils 0.17.1 which is incompatible.
Uh no i just joinced the discord im not allowed yet
oh should I speak and can you help me?
Im a noob xD I need help aswell
lmao no one is noob we are learning, everyone is learning...some learned more and some learned less
๐
I've just discovered that I'm a blithering idiot
accidentally uninstalled network-manager
then couldn't reinstall it because I didn't have a network connection
had to manually turn it on with /sbin/dhclient enp2s0
I discover this on a daily basis, sadly 

how to talk ?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how to get verify and talk
thx
@amber raptor Dijanitorial
.
!e py print(hex(16777215 - int("fd8401", 16)))
@rocky kiln :white_check_mark: Your eval job has completed with return code 0.
0x27bfe
@uncut meteor
hi all
seems to handle it nicely
@trail badge #828316147657080835
You can change the colours of individual pixels through an API.
Hello everyone btw ๐
Alright, I think I'm finally getting around to doing some pixels action ๐
This did not pan out as expected, but tbf, there would have been physical ingame tires, it's just that the texture makes it look better.
@timber needle can you show us the commands you are using?
@timber needle, trying to install pynput?
@rugged root Hallo!
How's it going
Reviewing my Marxist-Leninist Politicoeconomics material before moving to {my_country}'s Law
Political Economics from a Karl Marx-V. I. Lenin point of view (hence Marx-ist - Lenin-ist)
Communist Party enforces it for all university undergraduate students
Where (is PythonTryHard)
Asia, hooboi
I gotta go, Cya later :))
@rugged root We're famous for "the bushes" meme
"Unitary Juche one-party republic under a totalitarian dictatorship" is what nc is
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.pydis.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 do you think now about my new skin and PFP?
Yes datetime has strftime and strptime
use deep copy
@dark seal I have to ask... is your pfp a cat with a joint ๐
!e
user_input = "21/05/2021"
day, month, year = user_input.split("/")
if len(day) == 1:
new_input = f"{day}/0{month}/{year}"
nah it not for u its like for dict changing size
yup its a russian wild cat with a joint
,
Actully, we might want to move this to a help channel
Just kind of thought of that while I was standing
(still not back yet, mind you)
@plush willow so after u split the date what are u trying to check
Wait no i am not splitting it
i just want to check if its a correct format
no still what are u trying to check ]
^^
ok
@plush willow datetime.datetime.strptime(date, "%d/%m/%Y') doesnt this work
so u can index the datetime to create ur own fstring
It doesn't matter for strptime
The only point is that you take it in and make it an object
When you want it printed out, you can change it then
strftime would take care of that
yeah datetime store each as a different unit like a day and month etc
!e
from datetime import datetime
my_date = datetime.strptime("21/05/2021", "%d/%m/%y")
print(my_date)
output = my_date.strftime("%d/%-m/%y")
print(output)
@rugged root :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | File "/usr/local/lib/python3.9/_strptime.py", line 568, in _strptime_datetime
004 | tt, fraction, gmtoff_fraction = _strptime(data_string, format)
005 | File "/usr/local/lib/python3.9/_strptime.py", line 352, in _strptime
006 | raise ValueError("unconverted data remains: %s" %
007 | ValueError: unconverted data remains: 21
@rugged root can we go down?
## Stats Menu -> TableSize_act
TableSize_act = QtWidgets.QAction(f"Size: {self.LibraryManager.TableSize(Tablename)} Gb", StatsMenu)
TableSize_act.hovered.connect(lambda:TableSize_act.setText(f"Size: {self.LibraryManager.TableSize(Tablename)} Gb"))
StatsMenu.addAction(TableSize_act)
## Stats Menu -> TablePlaytime_act
TablePlaytime_act = QtWidgets.QAction(f"PlayTime: {self.LibraryManager.TablePlaytime(Tablename)}", StatsMenu)
TablePlaytime_act.hovered.connect(lambda: TablePlaytime_act.setText(f"PlayTime: {self.LibraryManager.TablePlaytime(Tablename)}"))
StatsMenu.addAction(TablePlaytime_act)
## Stats Menu -> TableAlbumcount_act
TableAlbumcount_act = QtWidgets.QAction(f"Album Count: {self.LibraryManager.TableAlbumcount(Tablename)}", StatsMenu)
TableAlbumcount_act.hovered.connect(lambda: TableAlbumcount_act.setText(f"Album Count: {self.LibraryManager.TableAlbumcount(Tablename)}"))
StatsMenu.addAction(TableAlbumcount_act)
## Stats Menu -> TableArtistcount_act
TableArtistcount_act = QtWidgets.QAction(f"Artist Count: {self.LibraryManager.TableArtistcount(Tablename)}", StatsMenu)
TableArtistcount_act.hovered.connect(lambda: TableArtistcount_act.setText(f"Artist Count: {self.LibraryManager.TableArtistcount(Tablename)}"))
StatsMenu.addAction(TableArtistcount_act)
## Stats Menu -> TableTrackcount_act
TableTrackcount_act = QtWidgets.QAction(f"Track Count: {self.LibraryManager.TableTrackcount(Tablename)}", StatsMenu)
TableTrackcount_act.hovered.connect(lambda: TableTrackcount_act.setText(f"Track Count: {self.LibraryManager.TableTrackcount(Tablename)}"))
StatsMenu.addAction(TableTrackcount_act)
``` any way to clean this up
Clean as in?
less like a mess and less golfed
black file.py
pip3 install black first
black is good
can we hop in to code help?
Erm, what kind of thing do you need help with?
Not sure if you know this but it's with mongo
!e
from datetime import datetime
my_date = datetime.strptime("21/05/2021", "%d/%m/%Y")
print(my_date)
output = my_date.strftime("%d/%m/%y")
print(output)```
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | 2021-05-21 00:00:00
002 | 21/05/21
Kind of
Still trying to figure out how to strip that 0 padding
Ehhhhhh, kind of
Not cleanly with this
What someone said earlier with f-strings might be the most viable
Although a smidge ugly
from datetime import datetime
my_date = datetime.strptime("21/05/2021", "%d/%m/%Y")
print(my_date)
output = f"{my_date.day}/{mydate.month}/{my_date.year}"
print(output)
He was close
aaaa my stuff keeps breaking, i'll be back later when this is all fixed :(
They need to not have the () bits
@plush willow :x: Your eval job has completed with return code 1.
001 | 2021-05-21 00:00:00
002 | Traceback (most recent call last):
003 | File "<string>", line 6, in <module>
004 | NameError: name 'mydate' is not defined
@plush willow :x: Your eval job has completed with return code 1.
001 | 2021-05-21 00:00:00
002 | Traceback (most recent call last):
003 | File "<string>", line 6, in <module>
004 | NameError: name 'mydate' is not defined
@plush willow :white_check_mark: Your eval job has completed with return code 0.
001 | 2021-05-21 00:00:00
002 | 21/5/2021
!e
from datetime import datetime
my_date = datetime.strptime("21/05/2021", "%d/%m/%Y")
print(my_date)
output = f"{my_date.day}/{my_date.month}/{my_date.year}"
print(output)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | 2021-05-21 00:00:00
002 | 21/5/2021
Yeah there we go
!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.pydis.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.
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
What's good Mr.Hemlock? Doing a writing assignment @rugged root
It's a communication technology course (mostly communications in my opinion)
So true. Very important in relationships
Yeah. Hopefully more will join sooner
There were lots of people here like 15 minutes ago
I noticed a lot of the helpers here are super young
Some of them are in high school
Joe?
hi
!voice @chilly plank
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Meowwwww I have 2 examsssss I am tieeeeerrd I have studied the last days for 6 hoursssssssss
No but actually Iโm tired
Thatโs why I havenโt been able to be here in vcs that much
I was in sometimes but then I had to go after a few minutes
Exam tomorrow and after tomorrow, hope this goes well
Focus on the important stuff. We'll be here when you're done. Real life responsibilities come first
Thank you so much ๐
I will be back in some more on the weekend
See you guys for now
And thanks Mr. Hemlock ๐
uwu
Bye me guy. And good luck on those exams
how to set py a test class in pytest

Wait is that Mr.Hemlock?
LOL

what yall trying to ask lol
@faint pewter can you join VC 0
but where is the cap
it self seals
but then how do I reuse it
poke it again
if it is cheap they are reducing engeneering costs
mmm true
why?
nvm
Because we love you
Truer words have never been spoken ๐
@rugged root Try 19/6/2021, it isnt comparing
How do you mean? Like it's not parsing? Is it giving you an error?
You should be comparing this to another datetime object rather than do a string
If you have a hard date you need it compared to, make it a proper object. That gives you more comparison tools at your disposal, since they're made to do that
you guys ok with me asking for coding help in here too?
Of course. Best option is to just type out your question, error codes if it applies, what stuff is or isn't working, etc.
ok thanks
probably a dumb question but how do i do pygame.display.update() in this loop without what i think is a memory leak, ive seen other people use this but idk how to do it myself, everytime i add the code it lags out my python and makes my cpu usage spike
Clock.tick(60)
pygame.display.update()```
https://paste.pythondiscord.com/egijobusum.http it also gives no errors
@trail badge make ur launch json
it tried clicking that, nothing happened
use my config
hello evryone
from datetime import datetime
comparison = datetime(2021, 5, 21)
@plush willow
Then you can just use that to compare stuff to

@sinful vine What are you wanting to stream? I know you said coding but what
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.pydis.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.
environment_3_9_2/bin/activate : The term 'environment_3_9_2/bin/activate' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- environment_3_9_2/bin/activate
-
+ CategoryInfo : ObjectNotFound: (environment_3_9_2/bin/activate:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
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.pydis.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.
!e
client_input_string = blahblahblah
@plush willowcan I copy your status if you don't mind ๐
Hey, i just joined this community because i want to get started with python (finally, have been procrastinating a lot). What is the best way to get started in your guys's opinion?
!resources Often time we suggest "Automate the Boring Stuff" or "A Byte of Python". There's also some youtube channels linked in there if that's more your thing
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
And you can always ask questions if you need clarification on stuff
That is awesome! Thanks!!
client_input_str = f"{client_input.day}/{client_input.month}/{client_input.year}"
Amazon.com: Philips Norelco OneBlade Hybrid Electric Trimmer and Shaver, FFP, QP2520/90: Beauty
sow
Hi everyone now ive studied for a while and i have some time left over
ill just join in
@faint ermine My first language is english and home language lol, i live in sweden
tbh i really like studing english
I feel bad
HAAHAHH
LMAO
YEAH
Thats why i dont do web dev, cause im bad at it and im not creative....
i do learn my friend html
cause i know that
@rugged root ive studied to the level where i basically know the question before reading it lol
we studied space
How do you mean?
i basically just at looking at the paper ik whats about the be the question
yeah tests
so we got a pdf to work from with all the info
then we have the test tmr
i have studied for around 8 hrs the past week
like 2 hrs every dya
day
i really needed a break lmao
@faint ermine its made out of atoms
H2O
H - Hydrogen (i think)
2
O - Oxygen
Im trying to learn java
not gonna do it rn tho
o/
can i friend you guys
no
sorry
I like zooming in in sublime text
but what do you guys think about the new update to the GUI kinda

Should this middle line be 1 pixel more to the left, or is this good?
I think I'ma count how many pixels it takes to go from left to right, and at the end, I'll go in between the final number
easiest way, I don't count it, I just scale it, and then go in between the number it shows here, big time saver!
@hushed elm https://lichess.org/E6FfmPdV
Join the challenge or watch the game here.
k
How the Russian version of "The Office" would look like...
The Office, The Office UK, Ricky Gervais, Stephen Merchant, The Office s01e01, David Brent, Gareth, Tim, Dawn
!otn s hem
โข actual-cannibal-mr-hemlock
โข applied-warning-to-mr-hemlock
โข breaking-bad-but-hemlock
โข channeling-my-inner-hemlock
โข diesel-powered-hemlock
โข hem-is-eternal
โข hemlock-demoted-for-the-lulz
โข hemlock-english-lessons
โข hemlock-needs-more-comments
โข hemlockโs-army-of-wolves
โข hemlockโs-beard-garden
โข hemlockโs-biological-mail
โข hemlockโs-depressing-yogurt
โข hemlockโs-dungeon-dreams
mmm
Eh, maybe just dad joke fountain
27 characters
hemlock-needs-more-comments
this is the same length
True dat
I love len()
!otn a hemlock's dad joke fountain
:ok_hand: Added hemlockโs-dad-joke-fountain to the names list.
Ah, I was watching a really interesting BBC show earlier today on AI ethics.
Oooo, what was it called?
Erm, I'll look it up ๐
Not sure if you can view this outside the UK sorry: https://www.bbc.co.uk/iplayer/episode/m000wft2/panorama-are-you-scared-yet-human
The title is a little dramatic...
They've been using computers to target guns for like 100 years. Check this out: https://www.youtube.com/watch?v=s1i-dnAH9Y4
A 1953 training film for a mechanical fire control computer aboard Navy Ships. Amazing how problems of mathematical computation were solved so elegantly in "permanent" mechanical form, before microprocessors became inexpensive and commonplace.
Yeah, it's when AI makes the decision to fire or not that it becomes seriously problematic.
We're already well on the way to AI weapons that autonomously decide who/what to target.
!server
Back in a moment
co-worker, huh?
@jagged thorn
what's python?
repl don't hurt me
repl don't hurt me
no more

do you not know the haddaway song
nope
Haddaway's musical career started in 1993 with the dance hit "What Is Love", which quickly became a standard popular request - and still is today - in every club, both here and abroad.
Twice winner of the Echo prize, and, with sales of 28 million, the owner of numerous platinum, gold and silver records, Haddaway is one of the pop music world's ...
oh yeah I know the song, not the name of the band tough xD
ah
I would honestly have been surprised if you didn't know it
Did I disappear? Seems like my connection dropped
no idea
@gentle flint could you show how my color looks when clicking the pfp?
For me it's the same
same colour as in video
What did you mean was inconsistent about it?
Vester no sleep ๐ค
Oh, true
it's only 11 pm
I'm going to sleep soon haha
I want to make a in-memory file to use in pygame mixer. I mean something like http://www.pygame.org/docs/ref/music.html#pygame.mixer.music.load which says load() method supports file object.
import
open('my_image.png', 'rb')
io.BytesIO(b"\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x01\x01\x01")
Traceback (most recent call last):
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Test.py", line 20, in <module>
PIL.frombytes('rgb', data_size, data1, decoder_name='raw', )
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\__init__.py", line 42, in __getattr__
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
AttributeError: module 'PIL' has no attribute 'frombytes'
Traceback (most recent call last):
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Test.py", line 20, in <module>
PIL.Image.frombytes('rgb', data_size, data1, decoder_name='raw', )
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\__init__.py", line 42, in __getattr__
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
AttributeError: module 'PIL' has no attribute 'Image'
import PIL
from PIL import Image
Traceback (most recent call last):
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Test.py", line 20, in <module>
Image.frombytes('rgb', (data_size), data1, decoder_name='raw', )
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 2661, in frombytes
_check_size(size)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 2589, in _check_size
raise ValueError("Size must be a tuple")
ValueError: Size must be a tuple
i shoud learn flask
await channel.send(file=discord.File(output, 'cool_image.png'))
@flat sentinel return
heretic
perchance
it should be rgb(216, 74, 24)
pfp
you're kinda off

Discord is chromium/electron
Provided to YouTube by DistroKid
stream of silllver ยท the olllam
stream of silllver
โ the olllam
Released on: 2021-03-12
Auto-generated by YouTube.
Ignoring exception in command pixels_canvas:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 285, in pixels_canvas
await ctx.send(file=discord.File(x, 'pixel.png'))
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\file.py", line 73, in __init__
self.fp = open(fp, 'rb')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Oh em gee
I'm currently drawing Guido ๐
For what purpose? ๐
If it's to vandalise Griff's PFP on pixels, then I condone this.
Yep
Ah noo
Here you go Kemal:
I keep hearing about buttons, but haven't seen any info anywhere.
@router.interaction(name="8ball", description="Let the 8ball take the wheel")
async def _8ball(inter: Interaction):
answer = random.choice(["Yes", "No", "Maybe"])
return f"> {answer}"
@router.interaction(name="embed", description="Embed your message.")
async def embed(
inter: Interaction,
title: str = Option(desc="Title for the embed"),
description: str = Option(desc="Embed Description", required=False)
):
return Embed(title=title, description=description)
@warm prism ^
Whatโs this Udon thing anyways? VRChat Udon is a programming language built completely in-house by the VRChat Development Team. It is designed to be secure, performant, and easy to use via the VRChat Udon Node Graph, a built-in visual programming interface that uses nodes and wires (we call them โno...
Is this the web app or the desktop app?

Omg
I have no idea what's going on here https://www.youtube.com/watch?v=us-yO_E31gU
This tutorial shows you how to make Unity UI Text and Buttons. With the buttons you can activate different functions but these functions will be local to you only. I also show how to link these buttons with triggers to do global actions.
Official VRChat discord:
https://discord.gg/VRChat
Have questions or want to see a specific tutorial? Ask ...
Hey @plain mica!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
It probably is Turing complete in some sense. But that's usually not saying very much.
!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.pydis.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.
Jake's been helping you ๐
I may have used the mod tools to figure that out ๐
@astral bison
What is a good text editor UX for AR glasses like https://www.spectacles.com/ ?
๐
I once saw video of a guy opening a laptop that had roaches in it.
and they scattered when he opened it
stop
send us the video
I am defeated
im here because im tripping
Ignoring exception in command pixels_canvas:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 285, in pixels_canvas
y=x.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
@bot.command()
async def pixels_canvas(ctx):
x=pixels_event_state()
await ctx.send(file=discord.File(x, 'pixel.png'))
def pixels_event_state():
s = requests.get("https://pixels.pythondiscord.com/get_size", headers=Headers)
p = requests.get("https://pixels.pythondiscord.com/get_pixels", headers=Headers)
data2 = p.content
image = Image.frombytes('RGB', (160,90), data2, decoder_name='raw', )
with io.BytesIO(data2) as output:
image.save(output, format="png")
contents = output.getvalue()
return contents
replace
data2 = p.content
image = Image.frombytes('RGB', (160,90), data2, decoder_name='raw', )
with io.BytesIO(data2) as output:
image.save(output, format="png")
contents = output.getvalue()
return contents
with
return io.BytesIO(p.content)
def pixels_event_state():
s = requests.get("https://pixels.pythondiscord.com/get_size", headers=Headers)
p = requests.get("https://pixels.pythondiscord.com/get_pixels", headers=Headers)
data2 = p.content
image = Image.frombytes('RGB', (160,90), data2, decoder_name='raw', )
with io.BytesIO(data2) as output:
image.save(output, format="png")
contents = output.getvalue()
return contents
Ignoring exception in command pixels_canvas:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 285, in pixels_canvas
await ctx.send(file=discord.File(x, 'pixel.png'))
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\file.py", line 73, in __init__
self.fp = open(fp, 'rb')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
with io.BytesIO(data2) as output:
with io.BytesIO() as output:
@bot.command()
async def pixels_canvas(ctx):
x=pixels_event_state()
await ctx.send(file=discord.File(x, 'pixel.png'))
@bot.command()
async def pixels_canvas(ctx):
x=pixels_event_state()
x.seek(0)
await ctx.send(file=discord.File(x, 'pixel.png'))
Ignoring exception in command pixels_canvas:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 285, in pixels_canvas
x.seek(0)
AttributeError: 'bytes' object has no attribute 'seek'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'bytes' object has no attribute 'seek'
def pixels_event_state():
s = requests.get("https://pixels.pythondiscord.com/get_size", headers=Headers)
p = requests.get("https://pixels.pythondiscord.com/get_pixels", headers=Headers)
data2 = p.content
image = Image.frombytes('RGB', (160,90), data2, decoder_name='raw', )
with io.BytesIO(data2) as output:
image.save(output, format="png")
contents = output.getvalue()
return contents
def pixels_event_state():
s = requests.get("https://pixels.pythondiscord.com/get_size", headers=Headers)
p = requests.get("https://pixels.pythondiscord.com/get_pixels", headers=Headers)
data2 = p.content
image = Image.frombytes('RGB', (160,90), data2, decoder_name='raw', )
with io.BytesIO() as output:
image.save(output, format="png")
return output
Ignoring exception in command pixels_canvas:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 283, in pixels_canvas
x.seek(0)
ValueError: I/O operation on closed file.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ValueError: I/O operation on closed file.
def pixels_event_state():
s = requests.get("https://pixels.pythondiscord.com/get_size", headers=Headers)
p = requests.get("https://pixels.pythondiscord.com/get_pixels", headers=Headers)
data2 = p.content
image = Image.frombytes('RGB', (160,90), data2, decoder_name='raw', )
with io.BytesIO() as output:
image.save(output, format="png")
output.seek(0)
file = discord.File(output, 'pixel.png')
return file
@bot.command()
async def pixels_canvas(ctx):
x=pixels_event_state()
await ctx.send(file=x)
Systems are 100% setup no errors my name is Jackinthebot#4835
Ignoring exception in command pixels_canvas:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 286, in pixels_canvas
await ctx.send(file=x)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\abc.py", line 1065, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message
I am currently writing a discord bot with discord.py Rewrite and I want to attach an image onto an embed but I can't figure it out.
import discord
from discord.ext import commands
from discord import
Guess who forgot to escape the dot in the regex
ayyy
change
file = discord.File(output, 'pixel.png')
to
file = discord.File(output, filename='pixel.png')
Based off this step file https://grabcad.com/library/raspberry-pi-keyboard-1 which has been retooled somewhat, and optimized, albeit back ports are gone. Client asked to also release it as CC-BY which iโm doing. - [Commission] RPI 400 Keyboard - Download Free 3D model by smokefumus (@smokefumus) [62ff020]
@commands.Cog.listener()
async def on_member_join(self, member):
for channel in member.guild.channels:
if str(channel) == "join-leave":
embed = discord.Embed(color=0x4a3d9a)
embed.add_field(name="Welcome", value=f"{member.name} has joined {member.guild.name}", inline=False)
embed.set_image(url="https://newgitlab.elaztek.com/NewHorizon-Development/discord-bots/Leha/-/raw/master/res/welcome.gif")
await channel.send(embed=embed)
so my next comads don't work bc of this and i have no idea
and it dosent even send a error
more arms
e
is this you?
I know that
I was just asking for fun
m
but who was it ๐
[0-9]
Hello.
Its 7 pm, and I'ma get some dinner
see you later ๐
@rugged root Finally finished!
Test Cases left ๐ฆ
4/60 rn in that
G'evening
I wrote an API wrapper for Pixels
I spent too much time writing FP and it shows
Lightning is a proprietary computer bus and power connector created and designed by Apple Inc. Introduced on September 12, 2012 (2012-09-12), to replace its predecessor, the 30-pin dock connector, the Lightning connector is used to connect Apple mobile devices like iPhones, iPads, and iPods to host computers, external monitors, cameras, USB batt...
USB-C (formally known as USB Type-C) is a 24-pin USB connector system with a rotationally symmetrical connector.The USB Type-C Specification 1.0 was published by the USB Implementers Forum (USB-IF) and was finalized in August 2014. It was developed at roughly the same time as the USB 3.1 specification. In July 2016, it was adopted by the IEC as ...
o/
I might start drawing on the board now, I think
Ill be back later, time to experience some warframe xD
Finally...
oooh, nice
I will be right back
Okay.
Hi Im From The Middle East Trying To Learn Python
Cool!
This is fun conversation to join
Lol
Hey!
Megathon
has @rugged root ever not been in a vc?
Sure thing
howdy all
๐
meh you have some tight vc rules lol
and now i need to be active here haha
Not really, mostly just using your best judgement and you will be fine.
nah its cool i understand
fortnite urgh
rust however ๐
adult minecraft ! ๐
@icy axle or its all a psyop
to discredit any real conspiracy theories ...
Psyop?
psychological operation
shut people down with "i suppose u believe the earth is flat/ufos too" etc.
it undermines anyone else trying to shine light on real stuff happening
Psychological operations (PSYOP) are operations to convey selected information and indicators to audiences to influence their emotions, motives, and objective reasoning, and ultimately the behavior of governments, organizations, groups, and individuals.
The purpose of United States psychological operations is to induce or reinforce behavior fav...
I think I kind of get what you're getting at
๐
@dense ibex ^
if you want to learn more about mass psyops ... watch adam curtis century of self
goes in to depth about freud and mass crowd control
Interesting
crowd control is a bad example though ... "controlling the masses" is correct
basically if it breaks laws classify it a special access SAP
interesting sub ... https://www.reddit.com/r/SpecialAccess/
@molten pewter imagine multiple black ops run by china russia & five eyes all at the same time
im sure this is what they're doing any way playing one another
i dont like the new logo (icon)
Hey.
I'm a Vietnamese here.
Would you mind... not talking about my country's political affair? Please?
This is a Python server, not political bullsh** server.
just move to another chan
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
we have conversations about a lot of things, not just python
Whatever.
!voice
!voice
Go to the #voice-verification channel
is it in the rules ?
did the bot just die?
i mean if its in the rules then yeah ok
That'll tell you what you need to know about the voice gate system
It's part of the code of conduct
np cool
No polarizing conversations, etc.
cool
And if someone objects to a conversation like that, then the respectful thing is to change subjects. However a lot of times we end up talking about things in a respectful manner, with an open mind and more just trying to understand
Hello Guys! I am a new member here.
thats fair
Seems fine
So it's really dependent on whether it gets heated or whether there's some discomfort mentioned
welcome!
Might be a cooldown on the tag
Welcome to the server!
im admin for a large hackerspace we only have one rule
'be awesome'
๐
we tried to put rules and people threatened to leave
almost a mutiny lol
That's really not a good sign for the culture of the server
How large is/was the server?
Oh that makes sense
I have been listening over a while for now, and I really like the conversation you guys are having
I am excited to be here.
Anyway,
there's this guy asking for help in #help-chestnut named ts***** who tried to separate numbers from operators inside each string in a string list.
His solution (upper) looks pretty awful. So I showed him the right way (lower), but he'd already closed the channel and gone away.
Yeah VC is an interesting place to hang in
Keyword interesting
And the conversation does dip into Python quite a bit
But it's more of a general conversational chat down here
But it typically does dip into programming
discord is like accessible mumble lol ... accessible is a two faced coin though ๐
True enough. But that's why we try to enforce the culture we want
We've got an excellent moderation team and regular users that help make that happen
As official as we can be. We can't be a verified server since we aren't run by the Python Software Foundation, but we have done plenty of things with them, such as hosting one of their CPython Core Developer code sprints
We're the largest community focused on Python
noice ๐
!server
4+ years and going strong
busy dude
Honestly we've massively jumped over the last year or so
Like over 100K or something crazy
Covid brought a crap ton of folks
i wanna say thanks to the mod team
it was close that I did not create some people with bad words
I mean we aren't like anti other languages
i was joking hehe ๐
I code and learn about other languages
No no I know
Also wait, people genuinely use Perl?
I'm never sure what area of programming it covers
Like what it's primarily used for
its great before php its all websites were coded in
but u can do loads
it was from a military thing ?
Possibly
the guy was working on a classified data set but the code / software hadnt been classified and he released it
what a legend!
I know that COBOL was developed by the Navy (although now that I say that I doubt myself)
I mean COBOL programmers make bank, but you get pigeon-holed into it
yeah honestly im so far removed from grey corporate processes now
totally self employed maker / designer
Do you mind if I ask how old you are? I don't imagine younger folks would work with Perl, let alone being asked to deal with COBOL
i make stuff for people ๐ ... ill show u my robots soon hehe ๐
im like legacy hardware
lol
i was born around the same time as email
I'm also not in the industry. This is purely a hobby thing for me
Does it ruin the fun? That's always my worry
That is my worry as well lol
start doing stuff for other people you dont want to work on and it saps the life out of you
(on top of my crippling anxiety and worrying that I won't be good enough)
burnout is a real thing
ive had bad burnout twice from dev jobs
I wonder if the pressure in other parts of the industry are as toxic as it is in game dev
Burnout is definitely a real thing
thats why im now self employed hehe ๐
anything i can turn my hand too
i make stickers and signs mostly
but do laser cutting and cnc milling
dpi is insane on my printer hehe ๐
1080x1080
ill show you when i get voice perms
probably gonna go afk for a bit so that voice perms bot can break it in to 10 minute slots or however it works
just about to try some mould making
All good
And I'm not against temporarily disabling the mute. I typically just prod people to get their messages out of their way with regular conversations
GRRRR BEZOS! LOL he has too much monies lol
nah its fine im not fussed ๐ ๐
typing is sometimes easier than vc
@tiny socket #the-pydis-mass-layoffs-lounge message
if you truly mean open then that means totally unrestricted
@somber heath brave says they're going to try to decentralise social media
by allowing users to connect outside of the website
so if a website blocks you then you dont loose your contacts from that site
โค๏ธ brave
anyone else using brave ?
I've thought about it
i use brave
oh its sooo good dude
I've been sticking with Chrome for now
seriously the best browser going currently
yes youtube has so much of trackers it shows 99+ trackers blocked
its based on chromium
I'll have to take Brave for a spin
in brave
Och.
Does it let you sync your settings to your gmail account for instance?
its good try it
all chrome extensions will work too
Dope
So does it make things like uBlock Origin and Privacy Badger redundant?
yes
and chrome driver also works with brave
Neat
no more 3rd party plugins!
whoot
๐
btw turn off auto contribute andd set ad rate to 5 ads an hour and u get free BAT
ads are totally none invasive
BAT?
basic authentication token
its like a crypto currency backed by etherium
some people dont like it
but u can disable it
ahahahahah
i dont like it
What makes crypto bad?
"I actively hate that"
the ads
I agree
meh i dont really notice them tbh
but its very chalk and cheese when it comes down to the cryptowallet thing
but meh its a genius idea baking it in bc u make all web payments via the browser
It's so duuuuuumb
I agree I mean it basically is gambling
yes
if you trade
blockchain is a cool technology regardless of crypto currency
hi
"I will destroy you"
open ledger publicly verified
What's going on with it?
pirates fire away
Ledger is closed source
???
I own a NFT for the letter "E"
lol
Either way isn't the firmware closed source?
no lol
wait what
Oh okay lol my bad
wait what
to become a node u need to verify transactions on the block chain
You own an NFT for the letter E?
thats how it all works
Yes
yes
I'm so confused
same
office 365
It's much much better than what we had
lol
@rugged root https://www.businessinsider.com/nft-i-aint-never-seen-two-pretty-best-friends-tiktok-2021-5
If blockchain is your solution, your very likely wrong.
Rabbit is with me on all this
i think it has its uses
Oh absolutely
easy
Just not really the ones people think they are
It's most states are the same
good discussion btw
i like it ๐
you'd have to be stupid to store a key on an online live machine
I'm going from the standpoint of the every day person
They're going to back it up in that kind of way
also data redundancy ... 3 is the magic number
You have to think of what the actual use case will be
at three separate physical locations
also stored encrypted with an 'unforgetable' lol .... password
@amber raptor you could have a co-signed NFT
Ahh, did you see that Tom Scott video Rabbit?
"Why electronic voting is a terrible idea" or something.
.xkcd 2030
the hell happened here
lol
OT : scary deep fake
2min i need yt link
Powered by Linode GPU Instances - Giving Scientists, artists, and engineers access to on-demand cloud GPUs for parallel processing workloads.
Visit https://linode.com/csf for $100 60-day credits.
Patreon: https://www.patreon.com/ctrl_shift_face
Twitter: https://twitter.com/ctrl_shift_face
FaceShiftLabs: https://www.patreon.com/faceshiftlabs
M...
BTW, Flight Control Software started on fighter jets because pilot could leave right the fuck now when it failed.
jim carrey playing gary oldman in leon
You have to actually ask your question.
lol
what do u mean??
"Help me with my project" doesn't tell us what you need help with
you wanted to ask a question lol
infact its doing the opposite it set out to do
I think before we go all in on these things, there needs to be a shit ton more work
That's more my point
@azure sand What's your question?
@spring kayak Type out your question here, please
its more minorities that are able to host and mine the block chain
how do change the output font in python?
@rugged root join private call pls
@azure sand what os ?
windows, why do u ask?
It's based on your cmd prompt or terminal's font settings
b/c if you're running it in cmd then u can change the cmd font
so isnt there a line of code that makes one line print bigger than the others
i am using pycharm
!resources @spring kayak We have a ton of resources that we guide our users to. "Automate the Boring Stuff" and "A Byte of Python" are the ones we usually suggest
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
run cmd.exe or cmd.com and then right click the title bar go to settings and change the font
Not easily in Windows
btw @azure sand that'll only work if you're running the program from the command window
hmmm ok
You can use things like... wait which one is it...
8080: run cmd.exe or cmd.com and then right click the title bar go to settings and change the font <
if you want to install a custom one they need to be terminal fonts
isnt there a function in the os module that can change the font
no its nothing to do with python its to do with the shell
Kind of. Windows doesn't use the standard.. I think it's POSIX style for terminal, so there needs to be a bit of a work around
Terminal is a family of monospaced raster typefaces. It is relatively small compared with Courier. It uses crossed zeros, and is designed to approximate the font normally used in MS-DOS or other text-based consoles such as on Linux. In Microsoft Windows, it is used as the default font in the Command Prompt in Windows 7 and earlier.
Terminal font...
^
will explain a lot
If you're going to be futzing around with terminal stuff, blessed is a, well, blessing
or ncurses
oh nice
Yeah that's the only reason I advocate it so highly
Huh, still doesn't support 3.9 yet
Eh, what can you do
when they ask just tell them weapons and plutonium hahaha
eh most of the libs don't support 3.9
I think I'm just grumpy because I've seen people try to suggest it to beginners.
Oh yeah, nano is really helpful. I'll gladly use that to work on configs as opposed to vi or vim
Makes sense. Seems like TAPL doesn't fall far from the tree
Man that was a stretch even for me, I apologize
nah its cool ill help u with linux if u need it
or at least if i dont know how to do it ill probably know someone who does haha
lol
sorry ๐ฆ haha
๐
hello
i dont even know what an nft is
Oh I was just talking about my awful pun
๐
Non-Fungible Token
i did mention crypto though haha
NFT to the letter E
The guides explores how many ethereum are there in circulation the key indicators as to what has happened to the coins over the years
like u could own the nft for a string "hello world!"
i bet that was 1st to go haha
๐
does anyone play rust ?
Yea, I just read the article.
can i post memes here ?
no
๐

50333
154860