#voice-chat-text-0
1 messages Β· Page 884 of 1
I'll be damned
So it's better to never use a return in those cases? Just stick with yield?
Well, if you want a return use it. But don't use return as a "final yield", that should just be the last yield
Gotcha
@alpine path the meme 
What would be the benefit of a return then
Usually you would have the return mean something else other than yield
I have a nice use in JS, hold on
/**
* Send a message to all guilds through the bot's webhook in every guild
* @param args The arguments to pass to Webhook.send for every guild
*
* @generator
* @yields The message returned from Webhook.send
* @returns The number of messages delivered
*/
async* send(...args: Parameters<Webhook['send']>): AsyncGenerator<Message, number, void> {
const cursor = this.bot.db.query(new Cursor('SELECT webhook_id, webhook_token FROM guilds;'));
let count = 0; // How many messages that was sent
// Use a cursor object to loop through all webhooks and send the message
while (true) {
// Read 50 records in batch
const rows = await cursor.read(50);
if (!rows) break; // End of the table
count += rows.length;
for (const record of rows) {
const webhook = new Webhook(this.bot, {id: record.webhook_id, token: record.webhook_token});
yield await webhook.send(...args);
}
}
return count;
}
Here I yield each message, and return the amount of places I sent it to
lol
@alpine path https://www.youtube.com/watch?v=bzkRVzciAZg
A Q&A session on web servers turns existential.
Q&A discussion discussing the merits of No SQL and relational databases.

RegDate: 2005-04-19
Updated: 2021-01-25
LOL. I'm found out
Eight years
Been a long damm time
Still going strong. As much as my job allows me.
I wish I could see when I started following your twitch
Oh! Sup Powell π
I won't tell Twitch

My activity map on GitHub is now just a map of "when my year fell apart and when I pulled it back together" 

Hey Opal π
how. do. you. not. know. monty. python.!?
how?!
@dense ibex I demand answers
How can you be on the internet and not know Monty Python? How is that possible

What's happening?
Beautiful like a beautiful british man, yes
I'm sorryyyy
I'm just impressed. I'm not even mad. It's like meeting someone walking out of a sandstorm without a speck of dust on them.
That dust again

import itertools
letters = ["a", "b", "c", "d"]
numbers = [0, 1, 2, 3, 4, 4]
x = [
list(
map(
lambda x: sum(x) == 8,
itertools.combinations(numbers, i),
)
)
for i in range(2, len(numbers))
]
print(*x)
In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started.
Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM
Python...
whats up guys
why?
Well because I am about to start working
where can i learn coding here
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
for python ^^^
ya
use this@whole bear
ok
uh oh, cant talk yet :c
h m m
@brave steppe __eq__ should return NotImplemented instead of False 
yes
also, comparison methods should return bool if they return bool, type checkers understand NotImplemented and dunders
I wish π¦
hm?
if there's an issue, I guess you can just leave it unhinted
see, it works π
@brave steppe !d functools.total_ordering
!d functools.total_ordering
@functools.total_ordering```
Given a class defining one or more rich comparison ordering methods, this class decorator supplies the rest. This simplifies the effort involved in specifying all of the possible rich comparison operations:
The class must define one of [`__lt__()`](https://docs.python.org/3/reference/datamodel.html#object.__lt__ "object.__lt__"), [`__le__()`](https://docs.python.org/3/reference/datamodel.html#object.__le__ "object.__le__"), [`__gt__()`](https://docs.python.org/3/reference/datamodel.html#object.__gt__ "object.__gt__"), or [`__ge__()`](https://docs.python.org/3/reference/datamodel.html#object.__ge__ "object.__ge__"). In addition, the class should supply an [`__eq__()`](https://docs.python.org/3/reference/datamodel.html#object.__eq__ "object.__eq__") method.
For example:
btw, can you scroll to __eq__?
the if isinstance(other, self.__class__) is a bit problematic. It breaks LSP and in a bad way, not in a "haha you brek LSP"
If you have something like
User
^ ^
| |
StaffUser PremiumUser
then StaffUser should theoretically be comparable to PremiumUser, but it isn't
Why do you even implement __eq__ and __lt__ and so on?
You can compare when they were created by x.created_at < y.created_at, I like that more
it just feels a little bit like notation abuse when you do user1 < user2 to mean one is earlier than another.
why
Yeah, don't implement stuff you don't need
Make it immutable if you use __hash__, because some smartass will use your library and mutate the id
@dataclass(frozen=True)
class Object:
id: int
i am trying to save to a csv but it dont seen to work and i donno where im going wrong
from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager
from dotenv import load_dotenv
import os
import csv
load_dotenv() # take environment variables from .env.
APIKey = os.environ.get("APIKey")
SecretKey = os.environ.get("SecretKey")
Coin1 = os.environ.get("Coin1")
Coin2 = os.environ.get("Coin2")
client = Client(APIKey, SecretKey)
TradeingPair = Coin1+Coin2
trainDataFrom = os.environ.get("trainDataFrom")
print(TradeingPair, 'last 24')
columns = [
'open_time', 'open', 'high', 'low', 'close', 'volume',
'close_time', 'quote_asset_volume', 'number_of_trades',
'taker_buy_base_asset_volume', 'taker_buy_quote_asset_volume',
'ignore'
]
klines = client.get_historical_klines(TradeingPair, Client.KLINE_INTERVAL_1WEEK, trainDataFrom, "20 Aug, 2021")
with open('output.csv', 'w') as f:
write = csv.writer(f)
write.writerow(columns)
write.writerows(klines)
with open('output.csv', 'w') as f:
f.write(";".join(columns) + "\n")
so i would replace
with open('output.csv', 'w') as f:
write = csv.writer(f)
write.writerow(columns)
write.writerows(klines)
with ^^
thanx
Equal employment opportunity is equal opportunity to attain or maintain employment in a company, organization, or other institution. Examples of legislation to foster it or to protect it from eroding include the U.S. Equal Employment Opportunity Commission, which was established by Title VII of the Civil Rights Act of 1964 to assist in the prote...
so it's the pep 8 for javascript?
Ah
PEP 8 is a specific proposal for style guides for Python
EcmaScript is PEP as a whole, it's the standard definition of how JavaScript works
The same way PEPs introduce new Python features
Here's the most recent additions https://262.ecma-international.org/12.0/
laughs in github copilot
interesting
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
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
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
Surf's Up!!! https://www.youtube.com/watch?v=67qIdB-pgAo
Surf's Up Music VIdeo!!! https://www.youtube.com/watch?v=Qwq_7056CSk
Everybody knows I have a patreon: http://patreon.com/stephenpaultaylor
BUY this song on iTunes: https://itunes.apple.com/us/artist/stephen-paul-taylor/368883428
BUY this song on Bandcamp: http://stephenpaultaylor.bandca...
hi @forest zodiac
great project! π
it said FexEx in the first comment
Speaker: Jayson E. Street CIO of Stratagem 1 Solutions
This is not a presentation where I talk about how I would get in or the things I might be able to do. This is a talk where I am already in and I show you pictures from actual engagements that I have been on. They say one picture is worth a thousand words I show you how one picture cost a ...
please someone help me even installing pynthon i can't open py files when i open it appears to customize repair or uninstall i've tried everything several times and it won't go at all
try opening them from a terminal
I do not know how to do that
https://docs.microsoft.com/en-us/windows/python/beginners
This article ought to do it for ya, assuming you're on windows.
noice
pog indeed
thanks!
@severe pulsar i have a suggestion for the server
and i think it's really good
so um
you should listen
or else 
let me know when you're done coding the next unicorn app going to the moon
then i can inform you :)
awesome! you should check out the #community-meta channel and post your suggestion there
ill be sure to give it a read
lol yeah maybe after i finish my current project
its almost done
i think it's better if i provide the suggestion to you personally
how about
a lol train
uh...I dont think that would work in this server.
but again, you could try posting the suggestion in #community-meta
store count as 2
store count2 as 3
add count2 to count
script
Main:
; store count as 2
movlw 2
movwf 10
; store count2 as 2
movlw 3
movwf 11
; add count2 to count
movf 11,w
addwf 10,f
; 6 instructions from a maximum of 256.
https://t.co/RJnlXEA2gr is a Stanford AI paper with a press release saying they addressed ambivalence but they didn't
Here is the press release saying it processes ambivalence, but it doesn't https://hai.stanford.edu/news/why-ai-struggles-recognize-toxic-speech-social-media
sorry I have to go
yeee
ok
@sand kayak
i have a unfunny joke for every st
https://stackoverflow.com/a/30413651/12671057 look at this link
Hello π
hello man
!e
print([x for x in list(range(6)) if x % 2 == 0])
@dense apex :white_check_mark: Your eval job has completed with return code 0.
[0, 2, 4]
hi guys
i hope
You need 50 messages before you can speak in voice-chat, but please don't spam.
how can i set the voice for talk with other people?
i am not spamming
It has to be genuine activity.
thanks sry for desturb
Yeah don't worry, it was just a forewarning sorry π
Oh right. Are you guys discussing lazy-evaluation?
hey @dire folio can i have voice for a sec to ask some questions
what happened
i am confused what has eivl given
there's also https://discord.gg/djPtTRJ
Gm from India Lemon
A place where APIs are kept.
Help π
@silver valley
Spring break. Words that make slinkies cry.
my favourite us state, japan
Do you guys hear any form of wind from me walking?
I just liked the words when I was much younger.
It's opal as in the gemstone and mist as in the hydrological phenomenon.
hello everyone
I'm almost home so I'll get on my PC
how cursed is this __init__.py
__all__ = [
p.stem for p in Path(__file__).parent.glob("*.py") if p.name != "__init__.py"
]
CursΓ©d.
On a scale of 1 to 10
WHY
i looked at #esoteric-python and i died
bascially, the folder this initpy is in contains a lot of files that all subclass one base file, and i want to get access to them through dunder subclasses on the base. but for that they have to be loaded, hence this.
I wrote a very simple but lovely generator, today, that I'm somewhat proud of.
def gen():
while True:
yield from (1,2,3,4)
yield from (5,4,3,2)```
yield from(1,
2,
3,
4,
5,
4,
3,
2)
You make me sad.
yield from (
1,
2,
3,
4, 5,
4, 3,
2,
)
a = [*range(1,6)]
yield from [
a[0],
a[1],
a[2],
a[3],
a[4],
a[3],
a[2],
a[1]]
π€

cooursed
Jake's crab army.
coarsed
Meet the crab that Charles Darwin called 'monstrous'. | Enter the contest to win an Undone Animalogic here: https://www.undone.com/en/giveaway-animalogic
Special Thanks to:
SATO Taku,
Japan Fisheries Research
and Education Agency
Mark Pierrot
and
Ken Marks
Support Animalogic on Patreon:
https://www.patreon.com/animalogic
Subscribe fo...
def f():
raise Exception
a = a or None
b = f() or None # sad dont work
def f():
raise Exception
a = a else None
b = f() else None # sad dont work
Would be pretty nice
My fave. The Japanese Spider Crab
i see a horror
pendulum.Date(self.puttingIntoService) or None
I see a dinner
coerced
why u eat scary stuff
spider + crab = cursed
theyre actually related
@devout roost You were mentioned. We luv u
Yes join
def __post_init__(self):
with suppress(TypeError):
self.puttingIntoService = pendulum.Date(self.puttingIntoService)
with suppress(TypeError):
self.dataSince = pendulum.DateTime(self.dataSince)
with suppress(TypeError):
self.dataUntil = pendulum.DateTime(self.dataUntil)
with suppress(TypeError):
self.readpath = Path(self.readpath)
with suppress(TypeError):
self.readforecastpath = Path(self.readforecastpath)
with suppress(TypeError):
self.savepath = Path(self.savepath)
def __post_init__(self):
self.puttingIntoService = pendulum.Date(self.puttingIntoService) if self.puttingIntoService else None
self.dataSince = pendulum.DateTime(self.dataSince) if self.dataSince else None
self.dataUntil = pendulum.DateTime(self.dataUntil) if self.dataUntil else None
self.readpath = Path(self.readpath) if self.readpath else None
self.readforecastpath = Path(self.readforecastpath) if self.readforecastpath else None
self.savepath = Path(self.savepath) if self.savepath else None
def try_make_class(cls, *args, **kwargs):
try:
return cls(*args, **kwargs)
except TypeError:
return None
self.puttingIntoService = try_make_class(pendulum.Date, self.puttingIntoService)
...
news in laundmo's hated VSCode theme/fonmt/style
highlighting blocks of code: https://img.laundmo.com/u/YseT18.png
!otn a mmmmmm-toxins
!otn a mmmmmm-toxins
:ok_hand: Added mmmmmm-toxins to the names list.

@dense ibex there you go, he is here
ad astra abysossque
I will be bacv
oh so this is what fisher looks like when he talks
.wa short fibonacci sequence
Failed to get response.
.wa short fibonacci
Fibonacci (also c. 1170 β c.
π
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, ...
Awesome Quiznos Commercial. What Are Those Things?
i have some troubles on the cv2 module
@zinc ocean Easier to talk to you about this here. So go to a command prompt outside of Sublime and do java -version
@honest pier
It looks like you'll have to make a build config for it
If it doesn't have one already
Okay and now I can't rejoin
;-;
Rabbit is not impressed π
Impressed how?
By Jake's joke.
well this is a weird module
apparently I need to define my own problem and then solve it
This individual project module is an opportunity for you to apply the engineering science principles and mathematical methods you have gained during your OU studies. Youβll need to define, analyse and solve an engineering problem that you choose. For this independent work you will need to demonstrate knowledge and understanding of relevant engineering practice and project management. Youβll need to use relevant literature to support your work and present your project results in a formal technical report. Throughout the module, an experienced tutor will advise and guide you. Youβre strongly advised to have completed the OU level 3 module relevant to your project theme. This is a challenging module which requires a high degree of self-direction and motivation.
Are you currently choosing your modules Oof?
there's only one module I need to choose
it's the last one
starts every year in february
Oh right
That's the information for tutors π
Are you allowed to do a software project for this?
I fear not
it has to be based on one of the following modules:
T312, T313, T319, T317, T329, T356, T357, T366, T367, MST326
of which I've done T312 and T356
T312 is Electronics: signal processing, control and communications
T356 is Engineering small worlds: micro and nano technologies
I'll anyway be basing on the signal processing, because I suck at nanoengineering
not really sure what thing to design tho
most of what I've been doing outside my study is software
Could you tie it into your job? π
Not doing machine learning, for fun?
Fair enough.
heyy
whats going on in this vc?
@gentle flint What was hanging in front of the camera?
a conversation
my shelf
-_-
Gotcha
that's literally all
it keeps changing topic
oh ok
so can't give you more info than that
Β―_(γ)_/Β―
I must go
to consume multitudinous sardines
Adieu, messieurs et mesdames
imma hang around just in case i hear something new!
byee
Crustless money
THIS IS A PARODY...nothing mean spirited towards alt-J
Order our Second LP "Voyager": https://goo.gl/0JMABH
Follow Fleece On:
SoundCloud: https://soundcloud.com/fleecemusic
Facebook: https://www.facebook.com/fleecemusic
Twitter: https://twitter.com/fleecemusics
Instagram: https://instagram.com/fleecemusic/
Purchase, Download & Listen to Fleec...
helloo griff
@olive hedge, don't ignore my Snapchat π

bad boy
@zenith radish where did you gooooooo
U.S. Army Esports is an esports team sponsored by the United States Army. The team, which consists of active duty and reserve personnel, was announced in November 2018 as a public outreach initiative operating within the Fort Knox, Kentucky-based Army Marketing and Engagement Team. Games in which the team announced it would compete include Call ...
hello
π
my mic completely doesn't work when the fans heat up ;DDD
krisp ain't having it
yea?
@gloomy vigil my mic ain't legible over the fan
https://open.spotify.com/track/7AB0cUXnzuSlAnyHOqmrZr?si=7d5dbd102cfd4978
this song is amazing might wanna listen to it
damn used to listen to linkin park, still do sometimes
oooooh
their main singer died(chestor)
and the other now makes depressed songs(mike)
yeah, the collision course album with jay z was good
i just cross site scripted myself π
whats that
when you display raw html that contains something that can break the site or do something malicious
oh
i made something like this
@glad sandal Your mic is open again
@celest pecan Your mic is super messed up
It was lots of loud static and background noise. Check your mic in your settings then let me know
hiya
hello @gentle flint
@celest pecan Just wanting to confirm you've received it
a good server
Any time I hear Alt- J all i can think is "like all good fruits the balance of life is in the Ripe and Ruined
!tvban 870058121027027045 1d Please get your mic situation sorted out. It's constant noise and static. If it does not get fixed you will have your voice permissions removed permanently.
:incoming_envelope: :ok_hand: applied voice ban to @celest pecan until <t:1629830036:f> (23 hours and 59 minutes).
noise annoys
Guess he didn't get his mic sorted in time
it a-noise
well
A web app that works out how many seconds ago something happened. How hard can coding that be? Tom Scott explains how time twists and turns like a twisty-turny thing. It's not to be trifled with!
A Universe of Triangles: http://www.youtube.com/watch?v=KdyvizaygyY
LZ Compression in Text: http://www.youtube.com/watch?v=goOa3DGezUA
Characters, Sym...
tom descending into madness
worcestershire, as I say just like its pronounced
land increases value with time
you can't drink coffee without plants
there is a python library for real time price of coffee
what is the name
eminem coffe
Yeah sorry dude, it was just constant static and noise
ok, can someone lower the price of a mic in the place of there
k cya
[...Array(5).key()].forEach(e => console.log(e));
!e
[...Array(5).key()].forEach(e => console.log(e));
@terse needle :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [...Array(5).key()].forEach(e => console.log(e));
003 | ^
004 | SyntaxError: invalid syntax
>>> [...Array(5).keys()].forEach(e => console.log(e));
0
1
2
3
4
Array.from({length: 5}, (x, i) => i);
Array(5) [ 0, 1, 2, 3, 4 ]
@whole bear #voice-verification
already checked but im new to the server gotta wait about 2 more days
but thank you anyway
Hello
I heard Toyota had to shut down production.
And they had even hoarded chips.
Wait what
Oh well that makes sense yeah
Anyways, my point about chip shortage, they offered me 23k for 2019 car I bought for 27k
If you're on your own, apparently you can use the arm-rest of a couch to do the Heimlich manoeuvre on yourself.
It took me far too long to spell 'manoeuvre'.
The conversation moved on 
Wait, spell correct says it's 'manoeuvre'
Might be π
maneuver
manuopera
maniobra
educated by tara westover
@somber heath jake: "opal isnt a real australian"
@placid lintel here
yeah imhere
guys can u tell me some basics to be learned before joining computer science
learn python
python3 -m venv name_of_your_virtual_environment
OpalMist are u tryna help me?
I would say... learn how computers store data. What is a bit? What is a byte? Why do we call binary files binary files when they sometimes look like they're in hexadecimal?
What are logic gates? How are logic gates and transistors related? What makes RAM? What makes a CPU? What's a CPU architecture? What makes an instruction set? What is assembly language? What is the difference between a lower-level programming language and a higher-level programming language?
Python is an example of a higher-level programming language. It's built, under the hood, using the C programming language.
Or one of its derivatives.
C, in turn, is, as I understand it, built on assembly.
Assembly which invokes the instruction set calls of the given CPU type.
Like how you asphalt over roads. Dig down far enough and you'll find it's all just magic rocks powered by electricity.
Not my best analogy.
Occasionally.
more tips if u dont mind?
I've never done a computer science course, just so you know.
https://en.wikipedia.org/wiki/Computer_science π€·ββοΈ
Computer science is the study of algorithmic processes, computational machines and computation itself. As a discipline, computer science spans a range of topics from theoretical studies of algorithms, computation and information to the practical issues of implementing computational systems in hardware and software.Its fields can be divided into ...
source <nameofvenv>/bin/activate
requirements.txt
Flask==2.0.1
nano requirements.txt
pip install -r requirements.txt
whats the topic guys
!pate
pathlib
windows-path
relative-path
!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.
@whole bear
@dense ibex On in a bit, having a slow start today
For some reason this looked like corn in foam to me
did I lag out or did hemlock lag out?
I'm going to guess you
You and me both
Neat
:p
I think ive fucked up my ears, it hurts my ears when I hear deep noises or people with deep voices talking π¦
hey
aahahahah
and ive almost completely lost hearing in my right ear
omg ur serious ?
not sure I'd be laughing
!vban 700872975888416768 You already have a bit of history spamming on the server. Joining voice chat and spamming a loud rant is not acceptable behavior.
:ok_hand: applied voice ban to @whole bear permanently.
I woke up yesterday with a buzzing noise in my right ear, and now I can barely hear through it at all
i thought he was jk
Probably wasps
lol
Those damn ear wasps
i think thatt u need a doctor !
#databases @ionic ferry
i think ive fucked up my life
Does it also involve ear wasps?
last time that happened to me it was an infection
i sorta got used to them but they get louder with higher blood pressure
i need sleep but i cant sleep
eat a turkey
eat Turkey
the whole thing, you'll be full and turkey puts people to sleep
that's like 2 things that make people sleep
who are they?
the illuminati
repl.it thinks im a hacker
i just like that its not begging for money or premium subscriptions
wait what if theyre the same phenomenon?
what does that h mean in repl.it?
just this random h in a box
h
h
@tiny socket Are you infecting websites?
Har-dee-har
ok i figured it out
i was paniced for a second
i thought my nefarious activities had me tagged malicious
hello everyone
No idea
someone help
wat
i cant open a new file, it says no permmision ,in vs code
Unable to write file 'c:\Users\learn\jarvis.py' (NoPermissions (FileSystemError): Error: EPERM: operation not permitted, open 'c:\Users\learn\jarvis.py')
a minor inconvenience, run it as administrator
tensorflow was developed by google right?
this is what it says
please help
is it the GO OrGanizational LEague?
i cant talk in vc cuz this people are talking i dont wanna disturb them
you have atleast posted this 2 times
@amber raptor when you were young did you participate in one of those time capsule things where you put a bunch of stuff into a box into the ground
I think so, can't remember the details
Sometimes you just gotta repost
My first time seeing it so I appreciate the second posting
ok
how make normal usb security key?
https://i.imgur.com/Od6qZEw.mp4 @dense ibex
You can't or shouldn't
;-;
is that you?
π I finished editing the audio from the patma event π
you look like the australian version of laundmo 
buy a small security key and put it into a bigger usb stick
But now I need to make the video 
That's what I want people to think.
I cut out like 20 minutes of dead air and troubleshooting and otherwise non-relevant audio
What do you use to edit?
i borked pycharm
audacity
You don't want a security key to be a storage device, or anything that can be formatted
Otherwise you run the risk of someone just lifting the encryption keys
ah, so i should stick with usig my finger for security?
Whatever works
fingerprint scanning securest?
Yeah that does the job
excellent!
id talk but i cant make noise
:/
except maybe...
there
XD
should i turn mic on then go to sleep?
π
Please no
So we can listen to you snoring and talking in your sleep?
Do the birds get any closer?
I've had a cockatoo on my knee.
Bun bun. Love it.
h is superior to all the letters and if you think otherwise u suck. you know it is the best
yes
I think O is the best letter in the standard English alphabet. It can be written as a "perfect" circle.
please can ya gimme?
What're you wanting to stream?
i wanna show my ocde
code*
that how do i make my AI to recognise my voice
I might in a bit, sorry. Wait, did you have a voice changer on?
That just clicked in my head
the only thing i remember about cloud flare is truly random number generation with lava lamps and ddos protection
cool i want to buy one
but its a little bit expensive
Sorry, for ping you
I don't mind
Lets me know when people are talking to me
My attention can be spread thin, so it helps when people ping me
"You're paying me...in salad?"
"We said you'd be paid a celery."
"...Ah."
milk for the week
because we're a family of 5, with occasional visitors
so we go through 10-12 packets a week
the red one is semi-skimmed, for my mom
the others are whole milk
alright alright i thought its all for you
lol no
well i am gonna go goodnight everyone
you still need to be rich for XP
and use it in another one
FSX for not so rich people
You'd have to call it and return it same as any other kind of function
Just have to make sure you await the function call
!u

Created: <t:1580002257:R>
Profile: @dense ibex
ID: 670802831678373908
Joined: <t:1609774606:R>
Roles: <@&787816728474288181>, <@&267630620367257601>, <@&585529568383860737>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>
Total: 4
Active: 0
what i am trying to do is to know when user react a emoji and know what emoji user used
Are you using discord.py?
Ok so there is something called on_raw_reaction_add()
Lemme get the docs for it hold on
yeah i need this value out of the function
!d discord.on_raw_reaction_add
discord.on_raw_reaction_add(payload)```
Called when a message has a reaction added. Unlike [`on_reaction_add()`](https://discordpy.readthedocs.io/en/stable/api.html#discord.on_reaction_add "discord.on_reaction_add"), this is called regardless of the state of the internal message cache.
This requires [`Intents.reactions`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Intents.reactions "discord.Intents.reactions") to be enabled.
yeah i used on_reaction_add(reaction,user)
Yeah, so the problem with on_reaction_add() is that it won't get called if the message isn't cached
so that's why you would use on_raw_reaction_add()
Because it gets called regardless of if the message is in the internal message cache.
the thing i want is the value of reaction and user out of this function and use it in a command function
oh ok
Yeah
so you can access all of that with the payload
!d discord.RawReactionActionEvent
class discord.RawReactionActionEvent```
Represents the payload for a [`on_raw_reaction_add()`](https://discordpy.readthedocs.io/en/stable/api.html#discord.on_raw_reaction_add "discord.on_raw_reaction_add") or [`on_raw_reaction_remove()`](https://discordpy.readthedocs.io/en/stable/api.html#discord.on_raw_reaction_remove "discord.on_raw_reaction_remove") event.
even out of function?
Yeah, so instead of passing reaction, user you would pass payload into the function
so it would be
async def on_raw_reaction_add(payload):
# code goes here
so like this
and with that payload value you will be able to access all of these things
so if you wanted to get the emoji
you would just do payload.emoji
if you wanted the channel id you would do payload.channel_id and so on and so forth
ok
Please let me know if you have any other questions as I know this is a lot of info to take in
I don't wanna bombard you with information
@client.event
async def on_raw_reaction_add(payload):
#code
@client.command()
async def test(ctx):
#can i use payload here?
too long to explain
Ok
in short a among us game play
Oh ok
in a way
!u
version: '3'
networks:
frontend:
driver: bridge
services:
nginx-proxy:
build:
context: .
dockerfile: nginx/DOCKERFILE
image: 'nginx-proxy:latest'
restart: always
networks:
- frontend
ports:
- '9000:80'
calc-main:
build:
context: .
dockerfile: docker/calc_main.dockerfile
image: 'calc-main:latest'
restart: always
networks:
- frontend
ports:
- '9001:80'
calc-micro:
build:
context: .
dockerfile: docker/calc_micro.dockerfile
image: 'calc-micro:latest'
restart: always
ports:
- '9002:80'
networks:
- frontend
date-micro:
build:
context: .
dockerfile: docker/date_micro.dockerfile
image: 'date-micro:latest'
restart: always
ports:
- '9004:80'
networks:
- frontend
date-main:
build:
context: .
dockerfile: docker/date_main.dockerfile
image: 'date-main:latest'
restart: always
networks:
- frontend
ports:
- '9003:80'
name-micro:
build:
context: .
dockerfile: docker/name_micro.dockerfile
image: 'name-micro:latest'
restart: always
networks:
- frontend
ports:
- '9006:80'
name-main:
build:
context: .
dockerfile: docker/name_main.dockerfile
image: 'name-main:latest'
restart: always
networks:
- frontend
ports:
- '9005:80'
ps-tests:
#As testing container, it doesn't need to restart or need to have network ports
build:
context: .
dockerfile: pstests/ps_test.dockerfile
image: 'ps-tests:latest'
networks:
- frontend```

Created: <t:1580002257:R>
Profile: @dense ibex
ID: 670802831678373908
Joined: <t:1609774606:R>
Roles: <@&787816728474288181>, <@&267630620367257601>, <@&585529568383860737>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>
Total: 4
Active: 0
!user

Created: <t:1461172594:R>
Profile: @dire folio
ID: 172395097705414656
Joined: <t:1517581604:R>
Roles: <@&267628507062992896>, <@&267629731250176001>, <@&831776746206265384>, <@&587606783669829632>, <@&267630620367257601>, <@&295488872404484098>, <@&585529568383860737>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>
Total: 10
Active: 1
[CmdletBinding()]
param (
# Parameter help description
[Parameter(Mandatory=$true,HelpMessage="Execution")]
[ValidateSet('build','up','stop','down')]
[string]
$Action
)
switch($Action){
"build" {
Start-Process 'docker-compose' -ArgumentList '--project-name micro build --no-cache' -NoNewWindow -Wait
}
"up" {
Start-Process 'docker-compose' -ArgumentList '--project-name micro up -d --build' -NoNewWindow -Wait
#Start-Process 'docker' -ArgumentList 'system prune -f'
}
"down" {
Start-Process 'docker-compose' -ArgumentList '--project-name micro down' -NoNewWindow -Wait
}
"stop" {
Start-Process 'docker-compose' -ArgumentList '--project-name micro stop' -NoNewWindow -Wait
}
}```
!u
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!u
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!d import time
7.11. The import statement
import_stmt ::= "import" module ["as" identifier] ("," module ["as" identifier])*
| "from" relative_module "import" identifier ["as" identifier]
("," identifier ["as" identifier])*
| "from" relative_module "import" "(" identifier ["as" identifier]
("," identifier ["as" identifier])* [","] ")"
| "from" relative_module "import" "*"
module ::= (identifier ".")* identifier
relative_module ::= "."* module | "."+
```...
[Help Needed]
I've installed python 3 on my PC & while installation I checked add python to PATH
The problem I'm facing is I'm unable to access global packages that I installed with pip, for instance, I installed the virtualenv package globally with pip but when I type virtualenv the CLI couldn't recognize the command.
In Python version 2 there was a bin folder inside the python installation directory where all global packages were stored but in python 3 there isn't any bin folder that I could add to my system PATH
Can anyone know how I can make global packages accessible to my CLI
Note: in my current settings I can access local packages through my CLI inside the virtual environment.
I've tried running
python -m <package_name>
But still, it didn't work
Feel free to ping me if you know the solution.
Thanks
@royal sphinx So for handling your Python installations on Windows, it's recommended to use py instead of python
The Py Launcher avoids having to mess with the PATH and lets you work directly with individual install. By default, just doing py will trigger the most up to date version of Python on your machine, however you can specify a different. For example accessing 3.7 would be py -3.7. Beyond that, everything else is the same as it would be for python. py -m pip install <package_name> or py -m <package_name>
@dire folio can I know what are you doing π
What are the benefits of using pycharm over something like visualstudio code?
It's heavy
That's good π
Heavy as in able to handle more load when you execute stuff or?
That is such a great book.
Which one?
Thinking Fast and Slow
ah cheers, will put that on my to read list π
I'm so mad.
Of course the issue is that I forgot to put the file extension on
Herp da derp
!stream 689087720018280478
β @glad sandal can now stream until <t:1629828705:f>.
@glad sandal Or did you not mean right right now?
Semantic memory is one of the two types of explicit memory (or declarative memory) (our memory of facts or events that is explicitly stored and retrieved). Semantic memory refers to general world knowledge that we have accumulated throughout our lives. This general knowledge (facts, ideas, meaning and concepts) is intertwined in experience and d...
Indeed, and that as a result for asking about pycharm
And it's open source
Yes very much
The payoff is great, though
When you finally figure out a problem, it's like a huge weight off of your shoulders
Are you using any resources to help you?
Like any books or sites or videos?
!resources You might check out the ones we have linked on our site. We typically recommend "Automate the Boring Stuff" and "A Byte of Python", which ever one clicks better with you. That'll be under the Read section
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
We also have a variety videos linked there as well
Also don't hesitate to ask questions if you need stuff clarified. That's what we're here for
!tools
The Tools page on our website contains a couple of the most popular tools for programming in Python.
It really is
It's a huge learning curve
Which is why I suggest things like Thonny and Mu-Editor
relatable
In Thonny?
Oh right.
For beginners, the debugger I would recommend is http://pythontutor.com
Yeah, that's how I found out about this server originally π
They used to have a kind of live-coding thing.
It allows you to step through the execution of your program, to see what is happening.
you can step thru your code line by line and see what various objects have as values as you step thru
it's handy for when you write code and it runs with no errors, but it's not doing what you expected it to do. debugger can help you identify what didn't work as you expected
it's handy when you get actual errors, too
Try writing some python code, but put breakpoint() in the code somewhere, then try running it with python. It will run and stop at the breakpoint, and you can type in the names of variables to see what values they have.
hello i'm new here and i don't now why i'm suppressed
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ok
sometimes it doesn't provide enough info
with debugger you can inspect variable contents in certain states etc
@terse needle do you have cpp server?
Your code may raise an error if something goes wrong, but not always. Another way your code can go wrong is to simply produce the wrong output for a given input. A debugger can help you to figure out what's going on. (An alternative is just to put print statements in your code.)
no
π¦
wait, what do you mean
someone was asking, nvm tho
@flint hill ^^^^^^
!server
Could not convert "user" into Member or User.
User "https://github.com/mhxion/awesome-discord-communities/#c-and-c" not found.
!user [user]
Can also use: member_info, member, u, user_info
Returns info about a user.
!user

Created: <t:1443481946:R>
Profile: @rugged root
ID: 98195144192331776
Joined: <t:1525291749:R>
Roles: <@&267628507062992896>, <@&807415650778742785>, <@&267629731250176001>, <@&831776746206265384>, <@&587606783669829632>, <@&797891034906099752>, <@&267630620367257601>, <@&295488872404484098>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>
Total: 27
Active: 1
You are not allowed to use that command here. Please use the #bot-commands channel instead.
We have a wall clock!
Cats are masters of all, even time.
yes
Engineering, in a programming server? 
ohh i have a story for a customer and a printer
back in 5 minutes
What do you do @whole loom
Im scared do I want to know π₯²
yes
Balkan sworn virgins (in Albanian: burrnesha) are women who take a vow of chastity and wear male clothing in order to live as men in patriarchal northern Albanian society, Kosovo and Montenegro. To a lesser extent, the practice exists, or has existed, in other parts of the western Balkans, including Bosnia, Dalmatia (Croatia), Serbia and North M...
basically it's like gender switching but different
;-;
guys i wanna use regex to validate float numbers
does anybody know how can i do it?
do you need to test if a number is a float, for example
"1.131321321, True"
"1.2432.123, False"
"sfafa.123, False"
no i'm validating a excel
collum and table
so i wanna it to check
by using regex
i was trying this
"/^(?=.+)(?:[1-9]\d*|0)?(?:\.\d+)?$/";'
!stream 589497499174043800
β @scenic wind can now stream until <t:1629838002:f>.
I think it's actually pretty hard to ignite diesel.
kids will fall down
the private chat was a repost
not this
only posted there 'cuz y'all never come here
you imsoster
@whole rover have u considered symlinking the python 3.10 bulma folder to python 3.9
could do, but for now just genuinely easier to provision 2 vols instead of having to run scripts on startup or add stages to docker
@gentle flint can you go to vc 0?
lol who made brainf?
There's a great selection of interpreters in #esoteric-python
Im gonna make an executable interface soon
SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.
sus

@rugged root you know i mentioned my ear being fucked... i saw a doctor and now I have to go to hospital and have a prescription of steroids 
What do they think it is?
they're not sure, but giving steroids in case its some nerve thing and steroids will stop it getting worse before they see me
Your ears are going to be fit
class Numbers(discord.ui.View):
def __init__(self):
super().__init__()
self.add_item(NumberSelection())
class NumberSelection(discord.ui.Select):
def __init__(self):
for i in range(1, 11):
options.append(discord.SelectOption(label=str(i)))
options.append(discord.SelectOption(label="No Limit"))
super().__init__(placeholder="Please select a number.", max_values=1, min_values=1, options=options)
@commands.command()
async def create(self, ctx: Context) -> None:
await ctx.send("hi", view=Numbers())
@sick dew
Numbers = discord.ui.View()
Numbers.add_item(NumberSelection())
hello
it won't let me connect :/
As pub you mean?
as me, lol
Fair
"thank you for smoking"
Such a powerful movie
@dense ibex https://www.youtube.com/watch?v=8fd5hyHkPFA
November 2020. Mock Marlboro Commercial. Protected by the Fair Use Act.
which countries we have "liberated with Democracy" and "those pending liberation"
DROP THE FREEDOM BOMBS -eagle noise-
And we have nearby river when we need to go all π¦ and throw some tea in it
Good luck with the resigning π
yep
that's...
interesting
hi opal ! :D
yea true
well yes
thats the real messer upper
It is just for a school project dw guys I aint gonna use it
Force of habit to mention it
In my programming scvhool
school*
and its common sense it needs an enterpreter to run, thats why I am making it in pycharm just bcs it has an enterpreter
and its gonna run in that
i use a Debian base os
haha yes
a measure of time how much u spend on a project does not backfire on how good it is.
-Whoever said that
it gives me canadian leaf vibes the most
ah yes markdown, best programming language ever
Linspire (Formerly Lindows) is a commercial operating system based on Debian and Ubuntu and currently owned by PC/OpenSystems LLC. From 2001 to 2008, it was owned by Linspire. Inc., and from 2008 to 2017 by Xandros.
On July 1, 2008, Linspire stockholders elected to change the company's name to Digital Cornerstone, and all assets were acquired by...
@gentle flint shhhhhhhhhhh
AUR is the best
ZPE Programming Environment (or simply ZPE) formally the Zenith Parsing Engine is a general-purpose compiler, parser and interpreter for the YASS language designed for educational use as well as for its general use. The language it interprets, YASS, is an interpreted, high-level, general-purpose programming language. YASS is largely built upon m...
@rugged root
Laaaaaaaame
The language it interprets, YASS, is an interpreted, high-level, general-purpose programming language. YASS is largely built upon making the language easy to read and use, with optional support for syntaxes such as curly-bracket syntax. YASS supports dynamic typing.
Aladka.
We've a town named Yass in my state.
It has this cafe that has the biggest sausage rolls you'll ever see.
and amazing pineapple juice
yas
...might not be yass.
No. I'm misremembering.
that's a very tiny screenshot
I'm thinking of Yea.
sorry to leave but i wanna conserve mobile data
Yea. Yass. Kind of thematically similar, really.
i have a bot running on replit, and when i segfault it it just triggers on_ready
this bot invincible
HA
It's raining so fucking much halp
come inside house bro
To the tune of Take on Me
πΆ Yaaaas queeeeen slaaaaaay (yas queen slay) πΆ
Bro I am on a buss bro
On the sussy buss
That's not a segfault?!
Amogus buss
okay i tried it again
it printed a solid kilometer of error message... and ignored the exception
all of it
the last line was server disconnected
just a few hundred repeats of
followed by
that's a real problem like if one has a job
I'm not a programmer, so I don't have contex
what is this place
idk i use it as a torture dungeon for python
@past pawn, what are you doing exactly?
see a farm
see the offending line in the abort function
im doing that with async
mixing segfault with coroutines XD
like lemon juice and papercut
saga and yellow bus
@command(2)
async def restart(message):
__import__("os").system("python ."),exit(0)
@command(2)
async def abort(message):
if message.channel.last_message.author!=message.guild.me:
await message.channel.send("Attempting to recover from: SIGTERM")
__import__('ctypes').py_object.from_address(69).value=420
I actually broke something
I was 12
@grand wyvern


52,844
190,725