#voice-chat-text-0
1 messages · Page 950 of 1
looks like that is a requirement specifier: https://packaging.python.org/en/latest/glossary/#term-Requirement-Specifier
@midnight agate from https://setuptools.pypa.io/en/latest/pkg_resources.html#requirement-objects
The “extras” in a requirement are used to request optional features of a project, that may require additional project distributions in order to function. For example, if the hypothetical “Report-O-Rama” project offered optional PDF support, it might require an additional library in order to provide that support. Thus, a project needing Report-O-Rama’s PDF features could use a requirement of Report-O-Rama[PDF] to request installation or activation of both Report-O-Rama and any libraries it needs in order to provide PDF support. For example, you could use:
pip install Report-O-Rama[PDF]To install the necessary packages using pip, or call pkg_resources.require('Report-O-Rama[PDF]') to add the necessary distributions to sys.path at runtime.
so it looks like you'd need to get those "extras" from the documentation for whatever library or package you're after.
I don't think they are pip installable names, no
Pleased to be of service.
@rugged root look I actually helped 😉
I can
what are you singing
??
I just had a 1 hour 15 minute sudo apt update && sudo apr upgrade
That is one of the less flatter meatloaf giffs.
flattering.... that is a lot of neck fat rolls, and a lot of 80's hair.
much better
geez, NixOS never takes that long
:qa!
- this isn't vim and 2) I'm hurt
vim, vim-nox, vim-athena, vim-gtk, or vim-gtk3?
I just saw that there was voice chat and someone was broadcasting video. I have no idea what is going on.
It says that @alpine path is live but everytime I click on the stream, it says "the stream has ended". And still says "live".
possibly
I hear good things about neovim
probably an issue with discord updating chat info on this server
Well, after restarting Discord, the voice chat went from about 10 users to 3. 🙂
And no video stream
I'm observing what people in a Python Discord voice chat talk about besides Python. 🙂
Anthropology.
That is a big-brain joke. 🙂
Hi everyone
I think I too heard kinky.
I'm new here
Maybe you meant 'full of kinks/crinkles/creases'.
Not what it usually means.
'This USB cable is kinky.'
hello
Yes
🗿
Be careful how you enunciate the first two syllables. LUL
Oh right, Discord doesn't accept Twitch emoji. LUL See?
I'm afk for 15 minutes while I cook dinner...
Do you mean instances?
XD
It was a lame coder/scripter joke.
Hi. I make bad puns.
The Pun Avengers.
Thank you.
I think school doesn't tech you many things about programming
Depends on the school. Depends on the teacher.
Me personally, I'm a home theater user for whom home theater has become far too complicated, so I wanted to script things to make it easier. Eventually I learned about and started using Home Assistant, but there's still scripting involved.
@whole bearI think they're prone to teaching it crappily.
But then that's true of tertiary education as well.
I agree
Sort of, but for me it's primarily for A/V automation.
Because I'm tired of forgetting to switch my TV's picture mode to "game mode" and having my game picture delayed by like 1/4 second as a result.
DTS:X
and also DTS Neural:X (for upmixing)
I'm typing a list of the history of sound XD
Mono, stereo, quadraphonic (various competing iterations), Dolby Stereo (a.k.a. Dolby Surround), Dolby 5.1 AC-3, DTS 5.1 (Jurassic Park era), Dolby and DTS 7.1, then newer versions compressed for streaming, and lossless on disc, and then finally Dolby Atmos and DTS:X (lossless on disc, and compressed on streaming services).
Well, I don't know if they completely ignore channels, but generally, you are correct.
My setup is 7.3.0 (three subwoofers, and zero height speakers).
Three value subwoofers, not expensive ones
and a MiniDSP
Low frequencies are not equally distributed around teh room, so many home theater enthusiasts buy multiple subs not for more POWER, but for more even distribution.
I have one in one corner, another one in an almost opposite corner, and one near my chair. It helps to balance the sound and make it even across the room.
(only 75") XD
I'm slumming it with a 49" 🙂
brb
back
If this is the wrong channel to be chatting in, what is the right one?
When it comes to TVs, I think we've already reached the point of diminishing returns for most people when it comes to resolution.
4K is definitely at, or past, that point.
visual dynamic range, however, is different. HDR matters.
Well, I don't have 100% confidence that the stuff in Magnolia is the absolute best.
What is the channel that I should be chatting in?
we see u
HDR video content can be brighter. There's greater contrast. I can see it when I watch SDR content and then switch to HDR content.
There are a lot of games, TV shows, and movies that I've put off watching/playing until I've set up my system as best as I can.
I put off watching Iron Man and Iron Man 2 until recently. Haven't seen most of hte other Marvel movies. That'll happen eventually.
I prefer to see and hear whatever the artists intended.
Originally I put them off while I researched how to get 3D at home, since that's how they were in theaters. Well we all know what happened to 3D at home. XD
Pretty much gone.
Yep, that's the rub.
My old TV had 3D but not my current one.
preddy nice
Ive heard america is a third world country, is that true
hah
So how many vacation days do you have by law?
😦
Edit: 3rd world countries often lack central plumbing but you can't say that they have no toilets.
An outhouse counts as a toilet.
My ancestry: some vague mixture of Europe, and before that, Africa.
We all probaby have a little Mongolian DNA in us. Thanks, Ghengis Khan. XD
!e
print("I love you *smileyface*")
@feral root :white_check_mark: Your eval job has completed with return code 0.
I love you *smileyface*
Wow
I'm amused by that programming humor.
unless you starve
But I wouldn't understand any more complicated programming/scripting humor.
good ol atp
I used to take that creatine for them adp
adenosin triphosphat
creatine is just glorified adp
literally
good stuff
I take some supplements but you're not wrong about the regulation situation.
They're not tested as stringently as pharmaceutical drugs are, and thus they have to say "this product is not intended to diagnose, treat, cure, or prevent any condition" and aren't covered by insurance.
same shit different smell
Creatine ( or ) is an organic compound with the nominal formula (H2N)(HN)CN(CH3)CH2CO2H. It exists in various modifications (tautomers) in solution. Creatine is found in vertebrates where it facilitates recycling of adenosine triphosphate (ATP), primarily in muscle and brain tissue. Recycling is achieved by converting adenosine diphosphate (AD...
another lesson learned innit
i mean
just take it
no need to study it
Proposed creatine kinase/phosphocreatine (CK/PCr) energy shuttle. CRT = creatine transporter; ANT = adenine nucleotide translocator; ATP = adenine triphosphate; ADP = adenine diphosphate; OP = oxidative phosphorylation; mtCK = mitochondrial creatine kinase; G = glycolysis; CK-g = creatine kinase associated with glycolytic enzymes; CK-c = cytosolic creatine kinase; CK-a = creatine kinase associated with subcellular sites of ATP utilization; 1 – 4 sites of CK/ATP interaction.
just read the caption of the image lol
To me, CRT = cathode ray tube 🙂
creatine helps with mid-long term muscle activity
Is it 'proper' to use code blocks to put quotes in?
I'm not saying it isn't
just askin
im kinda out of it, last research has been like 5 years ago
I mean
aint no deutsche demokratische republik here
just do as you please
let me consult the mighty gods
Code blocks seem to be a recent addition to Discord, and it seems like a good way to use long quotations, even when it isn't code --> like when you want to quote a paragraph.
You can put one word in a code block by enclosing it with a ` on each side.
!e
import random
stuff = "not " if not random.choice([True, False]) else ""
print(f"It is {stuff} appropriate to use the code block for quotes.")
@feral root :white_check_mark: Your eval job has completed with return code 0.
It is not appropriate to use the code block for quotes.
there you go
And you can make
an entire line
in one by putting three [`]s on top and on bottom
XD "Pyton reacted with 'trashcan'"
Source?
what source
for "It is not appropriate to use the code block for quotes."
What is rng?
runny nose glue
!e
def rng_senorita():
import random
stuff = "not " if not random.choice([True, False]) else ""
print(f"It is {stuff} appropriate to use the code block for quotes.")
import dis
print(dis.dis(rng_senorita))
@feral root :white_check_mark: Your eval job has completed with return code 0.
001 | 2 0 LOAD_CONST 1 (0)
002 | 2 LOAD_CONST 0 (None)
003 | 4 IMPORT_NAME 0 (random)
004 | 6 STORE_FAST 0 (random)
005 |
006 | 3 8 LOAD_FAST 0 (random)
007 | 10 LOAD_METHOD 1 (choice)
008 | 12 LOAD_CONST 2 (True)
009 | 14 LOAD_CONST 3 (False)
010 | 16 BUILD_LIST 2
011 | 18 CALL_METHOD 1
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/codutogonu.txt?noredirect
there you go
the true source
doesnt get more saucy that that
select * from customer where customer.id == stuffs.id
"only 100 calories"
sounds american
doesnt sound healthy
I like tap water
Nice chatting with you all, but I've gotta head off.
what are you racist against Americans?
it's a yes or no question
it's an indicator of national origin
so national origin = race?
that's a protected classification
You know whats a protected classification, too? "vegetable smoothie"
Because there gotta be vegetables in there, cant be allf ruit
Also, parmesan
hello
the voice verification criteria is pretty stringent, understandably so
it is the internet :p
necessary evil
I'm still fairly new to raspberry pi, learning Python
know a bit of ActionScript already so it is helping
tha was a challenge getting the HDMI to work right
the fix I've found was just commenting out a line for some visual hardware thing
I got a robot dog kit for RPI but I need to practice the basics of Python first to program it
I learned a bit of ActionScrtipt years ago and know a bit of game design, that is how I can best understand programming....game design
ActionScript is the programming language of FLash
I know a bit of animation as well
so now I can look at it from the animators perspective or the programmers perspective
part of the fun of things is knowing what they are meant to do and what they CAN do
engineering and design in a nutshell
hah
AI is one of my big focuses with coding
anything can be abused
my biggest concern with AI programming is not ending up with a HAL 9000 or Skynet, my concern is ending up with a CL4P TP (Borderlands), or a 790 (Lexx)
CL4P TP is from the Borderlands video games, he is annoying and his brain is full of pop up ads, spyware, and adware
790 is a robot head from a sci fi series called Lexx, it ends up with love slave programming and ends up writing bad poetry about the one person it is infatuated with and tries to kill everyone else it sees as a threat to taking that person away
the game Hardspace : Shipbreaker has ghost ships, they aren't haunted, they have really buggy computer systems
for example you go to turn on a light and it depressurizes the entire ship for 3 seconds, then shuts off the engine coolant
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ok
so i can't talk for now because i'm new ?
ya i understood
so i want to learn python programming what should i do
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Corey Schafer, Youtuber. Playlists. Python for beginners.
I want from the beginning to the end
practice the basics and fundamentals and build on them
and practice writing the language out as well
which courses
Automate the Boring Things with Python
so what you did at first
i mean when you was in the beginning as me what is the first thing you did
ok
ok now i'll go watch the beiginner 1 in Corey Schafer
thanks
bye
I'll brb too, then.
alright
Numba
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
bye!
is it still loud
@heavy creek what are u doing
static
sorry
i dont play games so no experience
my pc is poor
why u left
fixing y mic
ok
ah
are u also going with him ( ur father )
oohhhhhhhhhhhhh.
new year at Dubai
aha
i was sayig i can speak punjabi a bit
i can understand full
just 1 sec leemme fix my mic
once again
ya
can u repeat
umm many like ( ed sh.. , Don Omar ,fast and frious one )
]i love his song ]
it is in punjabi
yaar bolda
come on how u can forget this
legendry
ok
lemme send u the friend requesr
should i
i willl be back in a moment
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
lofi
XD
Peace was never an option.
hola
hello
;-; i foorgot to click confirm....
xd
so back in queue
what is the waiting period???
If you hide a stick of dynamite in a microphone, is it a boom mic?
explosive quality
Whizz per bridge.
"It looks right, but it's not right."
"If it looks like a duck and it quacks like a duck, it's probably an M16 with a 'quack' sign hanging from the barrel."
hi @vivid palm ~
hihi
See curity. See curity run. Run, curity, run.
middle? you're not that far from the coasts @rugged root
It's been so long since I've seen Fredrick here
you've heard the song though?
close eonugh
and there was this 1 guy that only sang taylor swift
and he was insanely tone deaf
it was terribl
e
😔
i've heard him sing this song more than i've heard taylor sing this song
still popular in modern beatbox
book book book
smh
Why does your discord look like that?
anyone in VC doing masters ?
Right click on the voice chat name you see under connecting
and select show users or whatever
i have some question about python, i'm a bit stuck, how does one get a bit help around this server? thanks 😄
then discord just randomly dced me from the voice chat
Could you still hear me?
no
No
ferrite ground
Order today, ships today. ESD-SR-120 – Hinged (Snap On) Free Hanging Ferrite Core - ID 0.236" Dia (6.00mm) OD 0.630" W x 0.646" H (16.00mm x 16.40mm) Length 1.300" (33.00mm) from KEMET. Pricing and Availability on millions of electronic components from Digi-Key Electronics.
✅ @whole bear can now stream until <t:1640899852:f>.
minimum viable product
what WM ?
not i3 anymore ?
i think i wouldn't like i3 because it isn't dynamic.
I have a better mouse and a better pc
so now I am using kde instead of i3
kde has a default tiling WM ?
The freely available swisstopo online tools include current maps and background information, historical maps, geodetic points for land surveying and conversion tools for coordinate systems.
!e
2 days wasted with sql, tomorrow is a new day tho.. i thought it would be clever to do my quieries as a whole then peel off the layers like an onion.. but sadly no.. ill have to write it out as a process..
@long osprey 👋
hi
guys i need help
with
a
discord
bot
and
it
just keep giving me a syntax error and i dont know how to fix it
well then, whats the error?
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Flat is better than nested.
great you
hi @gentle flint
snelweg
nice unboxing
@sharp ferry have any plans for new years?
Hi @woeful salmon
How you doing
Good
Hello
hello sir
hi
!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.
hallllo
can u explain me what is web3 why so hyped
like all the stuff @woeful salmon
Hay hay~
Hey @gloomy vigil!
It looks like you tried to attach file type(s) that we do not allow (.mkv). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
website, Machine Learning Project
do whatever you're interested in
website done , I am interested machine learning but i dont have a good pc
use google collab
is it free?
yes it is
how do i talk in vc?
you need a role
voice verified role
how do i get one?
Local File System Access is Unsupported 😓
Howdy howdy.
Check what the laptop hardware supports.
To have patience is to be patient. Thus, obtain your own self and you shall reach enlightenment.
@woeful salmonYou are.
@woeful salmonMy answer to all such questions is "Because 'fuck you', that's why."
I doubt it's intentional.
Like, maybe in response to a problem, sure.
Any intentional outage would be more..."You're only getting power for 12 hours a day." or something.
Or less.
Five seconds is a blip.
Ah, but is it a state of matter, or a state of mind???
HRRRRZ
@gloomy vigilIt's still crap. But it's an improvement on the previous really crap.
alr
@whole bearHowdy.
yo man
brb
yea
whats your time there?
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
are you in 2022 opal?
I am.
!voice
lol
Fairly normal.
how can ı open my mic
See above.
!voice @west aspen
Possibly because I have magic powers.
Also possibly because there's a time threshold between uses.
@whole bear bro ı cant use mic ı have mic
i gotcha
@cobalt fractal
you need to be voice verified
Python Discord has a voice gate system.
how ı can ı do
@somber heath can suggest you
You can pass it if you meet the criteria.
yes?
You can view the criteria by visiting the voice verification channel.
ı need to speak
Please read Opal's messages
:/
There is an action to be performed in that room.
where can be verified
They have explained the issue.
which room
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
read this
Hi
Heya
How are you doing
Great so far
I'm going through the old AoC puzzles, it seems like the difficulty's ramped up this year
Well. I do have this to say. Fuck 2021. A sentiment echoed by a great many, I presume.
i liked 2021 too
We're doing great
Harvard application?
Whoa
We have the future Bill Gates in voice chat
Good luck
What were the highs and lows of 2021 for you?
Highs, here. Voice chat with the folks. There is an element of enjoying just pottering around at home, and that's fine...but...I do like to have a change of scenery every so often.
So...
Being stuck at home with the nagging worry hanging over the head wasn't great.
What are you worried about?
Oh, I hope you stay safe
Less so with vaccinations, but I'm not taking chances beyond what's reasonable.
I've only left the property for medical outings.
Which numbered two last year and the same two this year plus my three vaccinations.
So...I've been out seven times total over 2020 and 2021
Can't use my mic at the moment S:
Gah I keep getting disconnected
Wha
I'd like to be chatty but len(conversationStarters) = 0
@woeful salmonYour skull.
Oop, gotta go, I'll join back if I can
hz_arr = np.linspace(0, (2*np.pi*next_hz)-(2*np.pi*hz_of_key), int(fs*duration))
hz_arr = np.arange(hz_of_key, next_hz, (next_hz-hz_of_key)/(fs*duration))
Not I.
Hm?
It's other-people-code.
Brain go bye-bye.
I'm kind of focusing on my own code at the moment.
We've all been there.
We learn to do things the hard way, first.
Because we don't know any better.
It takes a lot of experience to be able to do things the easy way.
Which is a cruelty, but the way of it.
No. It's a word.
cru el ty
Not cru al i ty
Nono.
Cleaning up my room. Randomly finds seven £10 paper notes. Yay?
Can we get it as a toml?
Hmm... Another £20. 😅
👋 @umbral cloud
Didn't mean to join haha
lol relatable
heyy
ima doin fine wbu
hahaa cool
aghh yea ima headin to my frnds house for party
Happy New year btw
yeaa
LOlz
but ya get that day 1ce a year so we dont care bout spendin
hahaa
yea
How can i join there?
we're fine wbu
same
Happy New Year
ouu
hahaa same 2 u
) 👍
in france no 2022
as well
꧁₂₀₂₁꧂ 𝘏𝓪𝒑𝒑𝕪 Ņệ𝜔 Ⲩệ𝓪Г ꧁₂₀₂₂꧂
heyy!
wassup!
HNY dude
was just chilling with bobby smooth
hez a producer
ahh its 2:35 here and am gonna take ur leave noww GN
lol
I am a competitive programming developer
centred in problems and challenges mainly in python
I am planning on mastering python so I can learn other languages
first js, then C, then C++ and maybe Java
!server_info
prompt user to imput large amount of varribles
check to see if new var input
use thaose varibles in functions
takes numbers in formaes decalared like mass grav weight forece
then uses algibra to see if it has parts to work if new varible found repeat repeat till rules all varibles and makes no new discovery
end loop
present all varibles that are not still the default value as that was not cahnged
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
n-body simulation
prompt () mass gravity and weight
User give mas and grav
takes ma * gav = weight
output mass
grv
weight
problem list
-
self learning if new var repeat loop
-
BEf ine with not completeing a function
-
then if no more data grabbed stop
check for missing only 1 var
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
functions = {"key_0": function_0, "key_1": function_1}
old_arguments = None
wip_arguments = {"key_0": [1, 2, 3], "key_1": [4, 5, 6]}
while wip_arguments != old_arguments:
old_arguments = arguments
wip_arguments = dict()
for key in functions.keys():
try:
wip_arguments[key] = functions[key](*old_arguments[key])
except (ValueError, ...):
pass```
used dic word sybaols
sepreate
pull simanions for decared word
ctrl+r time
@whole bear L
We're already in 2022
Hilarious.
!e print(True, True, True == (True,True,True))
@limber helm :white_check_mark: Your eval job has completed with return code 0.
True True False
!e print((True, True, True))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
(True, True, True)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5 6 True
!e
print(3<4) print(4<3)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
!e
print(type(3 != 3))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
<class 'bool'>
!e
print(str(3 == 3))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
True
!e
print(bool(5))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
True
!e ```py
class MyClass:
def lt(self, v):
return True
a = MyClass()
b = MyClass()
print(a < b)
print(b < a) ```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
!e
print(bool(-3))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
True
!e py a = 2 b = 3 print(a < b) print(a.__lt__(b))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
!e ```py
class MyClass:
def init(self, v):
print(f"I am {self} and it's my birthday! Your lucky number is {v}.")
MyClass(7)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
I am <__main__.MyClass object at 0x7f5ddc7dd540> and it's my birthday! Your lucky number is 7.
class MyClass:
pass
class MyClass:
def __init__(self):
pass```
!e ```py
class MyClass:
def func(self, v):
print(self is v)
a = MyClass()
a.func(v = a)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
True
!e ```py
class MyClass:
def func(self, v):
print(self is v)
a = MyClass()
b = MyClass()
a.func(v = a)
a.func(v = b)```
!e ```py
class MyClass:
def func(self, v):
print(self is v)
a = MyClass()
b = MyClass()
a.func(a)
a.func(b)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
!e py a = [] b = [] c = a print(a == b) #a and b point to two lists that are equal print(a is not b) #but they are not the same list print(a is c) #the list that a points to and the list that c point to are the one, same list.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
003 | True
!e print(1 + 1)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
2
!e py if []: print("Nope.") if ["Thing"]: print("Yep.")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Yep.
!e py print(bool("String with things in")) print(bool(""))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
while 1:
...
while True:
...```
!e py class MyClass: def __bool__(self): return False a = MyClass() print(bool(a))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
False
!e ```py
import random
class MyClass:
def bool(self):
return random.choice([True, False])
a = MyClass()
for _ in range(10):
if a:
print("Yes")
else:
print("No")```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Yes
002 | No
003 | No
004 | No
005 | No
006 | No
007 | No
008 | Yes
009 | Yes
010 | No
!e py class MyClass: def alpha(self, v): self.val = v def beta(self): return self.val a = MyClass() a.alpha(8) print(a.beta())
@somber heath :white_check_mark: Your eval job has completed with return code 0.
8
!e `class MyClass:
def init(self, v):
self.test = v
def beta(self):
return self.test
a = MyClass(8)
print(a.beta())`
@whole bear :white_check_mark: Your eval job has completed with return code 0.
8
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Hello! My name is Alice.
002 | Hello! My name is Julie.
003 | Hello! My name is Peter.
!e py for i in range(4): print(i) print(i)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 3
!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.
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Why nobody in VC :/
I intend to be along later.
Well hi
Hold on
Yeah sorry I didn't hear you
Yep
That's right, it's (mostly) from ASOUE
A Series of Unfortunate Events
By Lemony Snicket
It's a bunch of books
"I don't speak monkey."
"Banana."
Remember that?
Oh
Hmm
Hi, Darth
Okay, they left
My internet keeps cutting out ಠ_ಠ
VC seems fine, but the channels keep going blank
Probably
Hmm-mmm is right
Discord does mean disagreement
I see
Wow
Hey Jakub
Me neither
Yep
Yup
Tension resolution is something I need to look up
!e py d = {"keyoflongness": "value", "keyofextralongness": "extravalue"} for a, b in d: ...
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: too many values to unpack (expected 2)
!e py d = {"keyoflongness": "value", "keyofextralongness": "extravalue"} for key, value in d.items(): print(key, value)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | keyoflongness value
002 | keyofextralongness extravalue
!e py d = {"key_a": 5, "key_b": 10} print(sum(d.values()))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
15
Curses / NCurses
u good? "didyoureallyjusthadtobitemytoeyoustupidmonkeythingy = thiswholedefinitioniss我在日历上标记了我们的周年纪念日我在日历上标记了我们的周年纪念日oolongthatimalmostnotevensuremyselfwhattodoanymorelma我在日历上标记了我们的周年纪念日o()"
No
hi
@midnight agate I'm now on phone but I see you've disconnected so ig you needed to go
Well, I told you my internet was cutting out
hi
u want to remove the white area, innit?
Opencv python
Mask opencv python
yes
yes ur right
convering it to png wil;l automatically remove the background with a good picture quality
as well
yes remove.bg
is a good website
here u go
oh thats a large amount
# Copies MP4 video, strips out audio and some other stuff.
# '-vcodec copy' normally cannot be used across different file types.
ffmpeg -i recording.mp4 -an -sn -dn -vcodec copy no-audio.mp4
# Same but takes much longer. Great when shrinking the file size for a bug report (since it merges "same" frames)
ffmpeg -i recording.mp4 -an -sn -dn output.mp4
#!/usr/bin/python3
# Created by Silencer @ Stackoverflow
# 2018.01.23 14:41:42 CST
# 2018.01.23 18:17:42 CST
import cv2
import numpy as np
img =cv2.imread( "p")
## (1) Convert to gray, and threshold
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
th, threshed = cv2.threshold(gray, 240, 255, cv2.THRESH_BINARY_INV)
## (2) Morph-op to remove noise
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (11,11))
morphed = cv2.morphologyEx(threshed, cv2.MORPH_CLOSE, kernel)
## (3) Find the max-area contour
cnts = cv2.findContours(morphed, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)[-2]
cnt = sorted(cnts, key=cv2.contourArea)[-1]
## (4) Crop and save it
x,y,w,h = cv2.boundingRect(cnt)
dst = img[y:y+h, x:x+w]
cv2.imwrite("./001.png", dst)
py -0
Install to default Python:py -m pip install MODULE_NAME_HERESame but a specific Python version (shown in py -0)```
py -3.9-64 -m pip install MODULE_NAME_HERE
@whole bear
import sys
print() # spacer
print('Python_Location:')
print(' ', repr(sys.executable), sep='')
print('Import path:')
for path_item in sys.path:
print(' ', repr(path_item), sep='')
print() # spacer
What are we trying to do?
Trying to fix a problem with ... lemme check
Ah. Thanks.
I think it is cropping only
We are seeing the birth of a new 2022 streamer!
I feel like the script is searching in the wrong place.
Are you trying to get the path of the script?
What is allFiles supposed to be?
its defined twice o.O
sys.path.insert(0, r'path/to/the/folder/containing/PIL')
It couldn't find PIL?
Um... there is a static save location. Iterating the function through files might not do what you want.
if os.path.isfile(f):
pass
if os.path.isdir(f):
for root, dirs, files in os.walk(f, topdown=True):
for name in files:
pf=(os.path.join(root, name))
print(pf)
all_generals(pf ,change_p_logo)
for name in dirs:
count = 0
for filename in os.listdir():
if os.path.splitext(filename)[1].lower() == '.png' and \
os.path.isfile(filename):
convertImage(filename)
The stream delay is pretty irritating! 😅
free content bro
os.path.join(OUTPUT_DIR, OUTPUT_FILENAME)
os.path.join(output, os.path.split(pathway)[1])
ok this has to stop.. my first night of programming.. got a lot done, until I woke up and realized I was dreaming..
The fuck??????
I dreamed about teaching for loops, I think it was, once. I'm fairly sure it was actually cogent.
I was writing on a whiteboard at my old school.
i had gone to bed and dreamed i was still working from where I left off..
Damn thats fucked....
bye @somber heath @midnight agate
!voice @jolly dawn
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@jolly dawn
@west lion https://kivy.org/
is it possible to support ? or no lol
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@whole bear if you are new, you can type in this channel here
i am fr
#!/usr/bin/python3
from sys import stdin, argv
from subprocess import run, DEVNULL, PIPE
from io import StringIO
def parseHeader (line, /, _colors_and_tests=(
('\x1b[0;92m', ' [installed]'),
('\x1b[0;93m', ' [installed,automatic]'),
('\x1b[0;94m', ']'),
('\x1b[0;91m', '')
)):
name, line = line.split('/', 1)
for color, test in _colors_and_tests:
if line.endswith(test):
if test:
line, test = line.rsplit(' [', 1)
return f'{color}{name}\x1b[m/{line} {color}[{test}'
return f'{color}{name}\x1b[m/{line}'
return f'\x1b[0;1;97m{name}\x1b[m/{line}'
def getLine (line, body=True, /):
if body:
if not line or line.startswith(' '):
return line, True
return parseHeader(line), True
if '/' in line:
return parseHeader(line), True
return None, False
if __name__ == '__main__':
body = False
for line in StringIO(run(
[ 'apt', 'search', '--', *(argv[1:] or ['.*']) ],
text=True, check=True, stdin=DEVNULL,
stderr=DEVNULL, stdout=PIPE
).stdout) if stdin.isatty() else stdin:
line, body = getLine(line.rstrip(), body)
if body:
print(line)
from os import getoutput
search = getoutput("apt-get update")
mii-apt-list '; echo 404'
>>> subprocess.getoutput('ls -d ' + '; echo 12345')
'.\n12345'
'.\n12345' ?
.
12345
Explain xkcd is a wiki dedicated to explaining the webcomic xkcd. Go figure.
subprocess.run([
'program-to-run',
*args_to_the_program
])
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@midnight agate ↑
it's a lot of options
random.choices()
allows weighted random
food irl for me
may i request the backtick / grave char? cant type with remote control via steam
even without shift, the key acts like ~ no matter what
restart discord (f5 / ctrl+r)
anyone have yet to see Sethbling put Flappy Bird in Super Mario World on a physical console?
… is anyone reading this text channel that is in the VC?
a = sorted(list(my_dict.items()), key=(lambda x: [x[1], x[0]]))
at sorting by value of a dict
or similar
Yeah
t = Array.from(my_map.entries()).sort((a, b) => b[1] - a[1])
hi you and all
Are we talking about yesterday, or... did something else happen again?
You know you are old when you are talking about the "next generation"!
I don't see them in voice chat... Another Discord bug, I am guessing.
Yea.. Ctrl+R time!
it feels in any way like unprofessional software
lol did you say the project kills your braincells?
oh lol
vrchat
I'm not too sure what I am looking for.
Hard core Linux users rejoice if they don't want to replace the OS on their Android device:
https://termux.com/
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.
do you guys recommend PyGame for game development
what about just developing small games to learn
Im still learning about the basics
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Termux is neat. I do not really have a use for it though.
I coded a Pong game
Yea. The few times I did ssh, it was actually better than some ssh apps.
I had attempted to make Emacspeak work with Termux. To learn about TTS accessibility.
My phone is too slow to make it worthwhile though, unfortunately.
Ah, that keyboard is great. It has... Ctrl key!
my phone is better than my pc :/
And arrows.
:C
tc
xd
print(''.join('\033[38;2;{0};{0};{0};48;2;{0};{0};{0}m\u2588'.format(i)for i in range(256)),end='\033[m\n')
#!/usr/bin/python3
# vim: fileencoding=utf-8:filetype=python:nu:tabstop=2:shiftwidth=2:softtabstop=2:expandtab
from time import sleep
from sys import argv
from io import StringIO
_buffer = StringIO()
def writer(s):
_buffer.write(s)
writer('\x1b[3J\x1b[H\x1b[m\x1b[2J(ESC= DEC 27 | HEX \\x1B | OCT \\033 ) <ESC>[ \u2026 <POS>;5;<NUM> \u2026 m\n')
writer(' 16-color support: <ESC>[ \u2026 <A><B> \u2026 m\n')
writer(' For 0\u20267, <A> = 3 if FG, 4 if BG, <B> = color# | For 8\u202615 <A> = 9 if FG, 10 if BG, <B> = (color# - 8)\n')
writer(' More: <ESC>[ \u2026 <POS>;1 \u2026 <POS>;2;<R>;<G>;<B> \u2026 m\n')
writer(' <POS> = 38 if fg, 48 if bg | <R>;<G>;<B> = 0\u2026255\n')
TEMPLATE_16 = '\x1b[{};{}{}m{}\x1b[m'
TEMPLATE = '\x1b[38;5;{};48;5;{}m{}\x1b[m'
NL = '\x1b[0m\n'
for j in range(2):
writer(NL)
for i in range(0, 16):
writer(r' ' if i % 2 else (r' ' if i else r' '))
writer(TEMPLATE_16.format(
97 if (i > 7) == bool(j) else 30,
6 * (i // 8) + 4, i % 8, str(i).center(5)
))
for i in range(16, 232):
j = i - 16
if j % 6:
p = r''
elif j % 36:
p = r' '
else:
p = NL
writer(p)
writer(TEMPLATE.format(
(0 if ((i - 16) // 18 % 2) else 15),
i, str(i).center(3)
))
writer(NL)
for i in range(232, 256):
if not (i - 232) % 4:
writer(r' ' if i == 232 else r' ')
writer(TEMPLATE.format((15 if i < 244 else 0), i, (r'{} ' if i < 244 else r' {}').format(i)))
ERRORS = (KeyboardInterrupt, EOFError, OSError, ValueError)
j = len(argv) == 1
try:
if j:
writer('\n\n[ENTER]> ')
input(_buffer.getvalue())
else:
print(_buffer.getvalue(), flush=True)
i = max(float(argv[1]), 0.0)
if i > 0:
sleep(i)
j = True
except ERRORS:
j = False
except Exception as e:
try:
writer('\x1b[3J\x1b[H\x1b[m\x1b[2J')
except:
pass
raise e
if j:
try:
writer('\x1b[3J\x1b[H\x1b[m\x1b[2J')
except ERRORS:
pass
exit(0)
@soft fieldbot
hey guys
just joined the server
can't speak yet
need to write 50 messages
and wait 3 days
Btw opal thanks for teaching me
"with great pleasure"
i don't get a draft in my condo even with the windows open
but when i open my front door
wind tunnel from the hallway LOL
yea not much snow this year
good for snow removers
those who get paid for the entire season
barely any work
dang this chat is poppin
oop
guys i want to tutor python
i used to do it for work
development i mean
just in my spare time
to brush up
oh ya?
see it now
LOL
classic
tsk tsk
classic
so funny
yeah
smartest programmers fumble there
at least you found it
especially if you steal code
"haunted"
"gremlins"
what PC?
tell noodle to look at chat
noodle what PC are you getting
for gaming or
woahhh
custom built?
LOL
CS:GO?
I just played Valorant yesterday for the first time
LMAO I LOVE SURFING
USED TO PLAY ALL THE TIME AS A KID
ahahaha
did you play climb servers?
strafe strafe strafe
yes
agreed
1.6 was bomb for surfing
yeah
it's like snowboarding
LOL
yeah
@somber heathhttps://www.youtube.com/watch?v=EicZA9BSo8I
40,064
252,674