#voice-chat-text-0
1 messages ยท Page 821 of 1
I've forgotten all my mysql
I finally found a problem you have to use topological sorting for ๐
โนโบ
why does this error occur
ยกi
ยก
!charinfo ยกi
You are not allowed to use that command here. Please use the #bot-commands channel instead.
oh well
!charinfo ยกi
\u00a1 : INVERTED EXCLAMATION MARK - ยก
\u0069 : LATIN SMALL LETTER I - i
\u00a1\u0069
No, you cannot demand people time for help
!charinfo อพ;
You are not allowed to use that command here. Please use the #bot-commands channel instead.
๐
glados ๐คฉ
oh wow
Compose C C C P gives โญ
<#!\u037e\u003b>
@gentle flint :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | prยกnt("hi")
003 | ^
004 | SyntaxError: invalid character 'ยก' (U+00A1)
lol
!e ```py
print(chr(ord("\u037e")))
print(chr(ord("\u003b")))
@paper tendon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: an integer is required (got type str)
I see your name has been invaded @gentle flint
!e ```py
print(chr(ord("\u037e")))
print(chr(ord("\u003b")))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | อพ
002 | ;
converted
enhanced?
"old man moment"
Transcended.
Invaded.
Let me guess, you need more?
A visit sounds British.
like 4
"Let's visit the seaside at Brighton."
what a great way to get a virus
ikr
@rugged root Underwerewolf.
cya!
@amber raptor just write a letter :P
i'm FREE
*Relatively cheap
@rugged root Thank YOU , i got my error solved from #databases
Hey what you guys talkin abt ?
Letters do help
No. As a user, I felt like it was... too tedious to use.
ok so @rugged root i've been messing around with pythons grammar file a bit more and...
i think i can make assignment postfix
>>> variable "hello" =
>>> print(variable)
hello
>>>
sadly i cant come in vc right now :(
๐
โข You have sent less than 50 messages.
โข You have an active voice ban infraction.
โข You have been active for fewer than 3 ten-minute blocks
its showing this
I mean yes. Those are the conditions for you to verify
You have done something bad, you are not allowed to talk and you have been active for less than 10 minutes x3
The second one is if you've previously voice verified, abused that privilege and have been banned from using it.
The third one means that you have to have had messages (a conversation) over three 10 minute blocks. So if you have a 10 minute conversation here, another there, etc., then you qualify
Also spamming to meet the voice verification requirement will result in it taking even longer to get verified
@flat sentinel Please don't today. I'm already not doing well
๐ฉ
ok
Thank you
how to get rid that 2nd
Let your ban infraction run out
i'm totally new here
there was a settlement no?
Well, obviously not if you have an aactive infraction
๐
You've been here for around 10 days
well lets see how it goes
yes
Your infraction has around ~4 days left, for previously spamming to get verified
oww
ok got it
thx for helping though
Yep

lol
help then brah
what if i delete all my msgs?
will i loose my voice verified role?
I believe so yes
And exactly how am I suppose to help you
hmm, ๐
Double checking the implementation
Why me
There are alternatives. Ask for help or give help in the help channels, check out the various topical channels and see if one interests you
Participate in the server that you joined in a constructive way
ow
This discord is the size of a small city
ok sir
@manic lichen And larger than some countries
You could probably spend like an entire year in here and never talk to the same person twice
Wahts the active user count?
lol thatโs crazy ๐ค
!server
after a while tho the community feels smaller after you get to know certain people
131,026 users
Point being?
import time
!d datetime.datetime.now
classmethod datetime.now(tz=None)```
Return the current local date and time.
If optional argument *tz* is `None` or not specified, this is like [`today()`](https://docs.python.org/3/library/datetime.html#datetime.datetime.today "datetime.datetime.today"), but, if possible, supplies more precision than can be gotten from going through a [`time.time()`](https://docs.python.org/3/library/time.html#time.time "time.time") timestamp (for example, this may be possible on platforms supplying the C `gettimeofday()` function).
If *tz* is not `None`, it must be an instance of a [`tzinfo`](https://docs.python.org/3/library/datetime.html#datetime.tzinfo "datetime.tzinfo") subclass, and the current date and time are converted to *tz*โs time zone.
This function is preferred over [`today()`](https://docs.python.org/3/library/datetime.html#datetime.datetime.today "datetime.datetime.today") and [`utcnow()`](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow "datetime.datetime.utcnow").
!d datetime.datetime.strftime
datetime.strftime(format)```
Return a string representing the date and time, controlled by an explicit format string. For a complete list of formatting directives, see [strftime() and strptime() Behavior](https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior).
oh this is preferred to today()?
today() is only date
ok
@barren bison
yes
nothing much bro
Thats really cool
damn
that's a paradox tho
What is
@stuck furnace hai
Hai ๐
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
What is the default hash for classes?
Oh, @faint ermine there's an unsafe_hash keyword argument.
Do you have any project ideas that use radio buttons
I think
RPG Character Creator
!docs dataclasses.dataclass
@dataclasses.dataclass(*, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False)```
This function is a [decorator](https://docs.python.org/3/glossary.html#term-decorator) that is used to add generated [special method](https://docs.python.org/3/glossary.html#term-special-method)s to classes, as described below.
The [`dataclass()`](https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass "dataclasses.dataclass") decorator examines the class to find `field`s. A `field` is defined as class variable that has a [type annotation](https://docs.python.org/3/glossary.html#term-variable-annotation). With two exceptions described below, nothing in [`dataclass()`](https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass "dataclasses.dataclass") examines the type specified in the variable annotation.
The order of the fields in all of the generated methods is the order in which they appear in the class definition.
Like Dungeons and Dragons
Nvm ๐
Radio buttons have limitations that make them disfavored for UX reasons
which is why you don't see them as much in the wild
Dropdown is better for single choice options and Checkboxes for Multichoice
mainly radio buttons can look awful on mobile
they are offer a poor UX experience on limited screen space, and harder to touch then drop down when using touch device
plus, 3 options become 4 which become 5 and then radio button list is really long and weird thus drop down being preferred
For when you return @faint ermine...
The only real requirements of a hash function in python are that:
- if two objects are equal they have the same hash; and
- the hash shouldn't change over the lifetime of the object.
If you usedidfor the hash function, the first of these conditions wouldn't necessarily be true. However, you could make it true by caching the constructor for the class withfunctools.cache. Although this would introduce a memory-leak into your program ๐
(Assuming all the info that determines whether two objects are equal is provided in the arguments to the constructor.)
in my case it doesn't as i modify the valeus later
as instance A depends on values of instance B and vice versa, it would be impossible not to modify the values
Oh, like fake town names in maps.

In cartography, a trap street is a fictitious entry in the form of a misrepresented street on a map, often outside the area the map nominally covers, for the purpose of "trapping" potential copyright violators of the map who, if caught, would be unable to explain the inclusion of the "trap street" on their map as innocent. On maps that are not o...
or any honeypot
WSL 2 uses the latest and greatest in virtualization technology to run a Linux kernel inside of a lightweight utility virtual machine (VM). However, WSL 2 is not a traditional VM experience.
https://docs.microsoft.com/en-us/windows/wsl/compare-versions
Sure yes
I get you
But it feels just wrong to say that it's ONLY used on pure Linux and contesting it so hard
@faint ermine What was the context to your question earlier sorry?
Hey @stuck furnace bro
You there to help me a bit?
Hey. Erm, depends what you need help with tbh ๐
Okay, so I need to display an image to the user and ask them to select a rectangular part of it - say like a cropping tool and store it
Pop os or Manjaro, which should I prefer?
preferably using OpenCV
Oh right. Is this like to create supervised training data?
I meant Aakash, sorry laundmo ๐
Sorry.
Naah
I'm just creating a templete
To directly compare it
I dont need to train the model
Anyone?
I got no idea about OSs bruv
I use windows and I like Kali XD
Alright no prob ๐๐ป
https://www.pyimagesearch.com/2021/03/29/multi-template-matching-with-opencv/
This is what I wanna implement
Like, as a sub-part of the bigger problem
So, the guy here creates a template with a red diamond
So, I'll be asking the user to themselves crop out a template to compare
Erm, it's been a while since I've used Open CV, sorry.
โErmโ - LX
It's quite alright, thank you โค๏ธ
why does a german light tank get heat fs at 6.0
why does a chinese light tank get heat fs at 5.3 ๐ค
What about Azure?
someone: mentions azure
rabbit: i hath been summoned?
lol
Machine learning algorithms usually operate as black boxes and it is unclear how they derived a certain decision. This book is a guide for practitioners to make machine learning decisions interpretable.
Yes I have
LOOK @rugged root I made the Dungeons and Dragons character selector
you certainly aren't. I was up til 3am last night
i am kind of a night boy i stay up till 4 am and then wake at 9 am to attend my class turn on laptop and then at 9:10am sleep again to wake up at 12pm
i just seem to "activate" at sundown
I think the rods & cones in my eyes use the redshift backlight as nocturnal energy ๐
ah yes
the same thing as a not shitty bar graph
Theia is an open-source cloud ย desktop IDE framework implemented in TypeScript.
https://chrome.google.com/webstore/detail/gitpod-dev-environments-i/dodmmooeoklaejobgleioelladacbeki
def add_account(self, name: str):
self.accounts[name] = {}
def delete_account(self, name: str):
del self.accounts[name]
def add_account(self, name: str):
self.accounts["Name"] = name
def delete_account(self, name: str):
# ???
That's a great explanation Maroloccio ๐
@spare pollen background noise.
Could you turn on PTT?
Ah ๐
He might be a little confused ๐
Erm, a mod.
Yep.
ha, was 1 second before you
@spare pollen In case you're wondering, we assumed you were afk, so I moved you to the afk channel.
No worries ๐
Yep, what oof said...
every dict now gets cast to a SearchNavaid dataclass
You need friends in high places ๐
Erm, I think we currently have streaming disabled across the board while we figure out a systematic way to grant permissions.
That may have changed though, I'd need to check...
since a few days ago
Ah right ๐
yeah, it got reactivated
@midnight agate, would you like temporary streaming permissions now? Only an admin can grant permanent permissions.
Back in a minute...
๐
Sorry, have to deal with something else...
def test_add_two_accounts_with_same_name(self):
b = BreadBank()
b.add_account("John")
b.add_account("John")
assert len(b.accounts) == 2
def add_account(self, name: str):
if name not in self.accounts:
self.accounts[name] = {}
I will pass your request on to the admins ๐
good luck, have fun. Please stream educational things and listen to our voice master Hemlock and mods~
back again
Yep
Do you work in data analysis?
Erm, hopefully soon ๐
Are you in the same boat as me looking for work?
Yep. Although I'm not sure if I'm at the point where I could apply for a data-science job.
I'm looking for more of an analyst role to start. So less heavy machine learning/deep learning ect. But the issue is most places want experience, but I don't have much,
git clone git@github.com:PH-KDX/flightplandb-py.git
I guess I just need to make a good project but I'm also looking to see if I can get some experience at a nonprofit or something.
additionally https://www.youtube.com/watch?v=St2Cnv0ykCs
that is actually gold
@gentle flint Your volume is super inconsistent ๐
it's the noise reduction
bro im a 13 year old prodigy ready to change the world or whatever
from Bread_Bank.bread_bank import BreadBank
class TestBreadBank():
def test_add_account(self):
b = BreadBank()
b.add_account("John")
assert len(b.accounts) > 0
def test_add_two_accounts_with_same_name(self):
b = BreadBank()
b.add_account("John")
b.add_account("John")
assert len(b.accounts) == 2
def test_delete_existing_account(self):
b = BreadBank()
acc_uuid = b.add_account("John")
b.delete_account(acc_uuid)
assert len(b.accounts) == 0
looks simple
import uuid
class BreadBank:
def __init__(self) -> None:
self.accounts = {}
def add_account(self, name: str) -> uuid.UUID:
acc_uuid = uuid.uuid4()
if name not in self.accounts:
self.accounts[acc_uuid] = {
"Name": name
}
return acc_uuid
def delete_account(self, name: str):
del self.accounts[name]
gn boys
I'd just increase the space btwn the desk and the wall lol
instead of trying to get 0 gap
It's a very blue/purple voice chat ๐
Hey @deep wave, if you're wondering why you're muted, see #voice-verification
So, what's everyone up to? ๐
Erm, just modding tbh ๐ง
๐
Oh yeah, that's weird.
oh that's a good book
@cobalt fractal no monospaced font code blocks for automate the boring stuff? is it the same for the printed edition?
spam is a nice name for a function
times new roman is that one font everyone knows
Times was the default font in MS Word growing up. That's how I recognise it ๐
old school serif font
mhm
plus every writing assignment had a times new roman requirement
yes..
Erm.. ok.
hi
hopefully a metaphorical one
hopefully yes
How old is he?
Ohh ๐
Hmm, what is he interested in?
Does he like maths and science?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
!e ```py
____ = 100
_____ = None
______ = "math"
print(chr(.add((import().sqrt().int()).add((import().sqrt().int()).floordiv([].len().bool().str().len().sub([].len().bool().str().len()).add([].len().bool().str().len().sub([].len().bool().str().len())))))))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
s
!e q ```py
____ = 100
_____ = None
______ = "math"
print(chr(.add((import().sqrt().int()).add((import().sqrt().int()).floordiv([].len().bool().str().len().sub([].len().bool().str().len()).add([].len().bool().str().len().sub([].len().bool().str().len()))))).sub(.floordiv(import().sqrt().int()).add(.floordiv(import().sqrt().int())).floordiv(import(__).sqrt().int()))))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
q
Impeccable ๐ง
๐ง
"erm"
One sec (while I look up how to use it in another channel)
!otn s gurkan
!otn search gurkan
โข gurkan-cult
โข gurkan-free-zone
โข what-are-gurkans
โข ๐ตestergurkanโs-class-class
!otn search gurk
โข gurkan-cult
โข gurkan-free-zone
โข gurkult-headquarters
โข open-source-gurkult
โข what-are-gurkans
โข ๐ตestergurkanโs-class-class
!otn search chili
โข ๐ขhiliโs-esoteric-print-statements
!otn s psvm
โข psvm-nvm
โข psvmโs-eternal-disapproval
Nothing found.

just a little a๐ here or there could fix that
๐ฌ
๐
make one of the admin do a int eval ๐
on his's ๐
Howard Roark
Who dis?
The Fountainhead
๐
ummm, lets join the griff gang
๐
probably
i looked thro it couldn't anything, if you find lemme now
making griffy api/command for lance
i think vco is on it
This is like when you go too far down in the replies to the top comment on a youtube video ๐
We do.
vco got stuck on the same problem, and left it 
omg I did that once for an hour
what if we just have a few predrawn "scribbly" circles and just rotate them
letter can be made with a font, which looks like a handwriting, chilanka for example.
but the circle 
it probably won't be noticeable at pfp scale
I don't understand how Google is not capable of making a comments system that doesn't just constantly descend into chaos.
hmmm smart
or a like/dislike system lol
Do you ever have arguments where you know enough to know that the other person is wrong, but not enough to explain exactly why?
It's like this: https://www.youtube.com/watch?v=vyyyh8_Afyw
Given an adjacency-list representation of a directed graph, how long does it take to compute
the out-degree of every vertex? How long does it take to compute the in-degrees?
๐
isn't that O(V) for the out-degree
Adjacency list meaning a list of pairs of vertices?
Or a list of neighbouring vertices for each vertex.
Erm, yeah. I guess you have to visit every edge ๐ค
๐ง
But you could tabulate the in-degrees in a hash-table...
err, if it's undirected the outdegree is the same as the indegree right
oh it says directed graph, lol
I think it just becomes "degree" ๐
Wasn't listening, sorry ๐
Erm, successors?
off topic, but LX or anyone could you share your pfp file here? I wanted your circles
๐
my circles are ~~~๐ฅด~-~ not good even for this
doesn't that make it better though lol
shrug, but lx and mina's look defintely better than mine
i will keep a collection of the circles, from which it would randomly choose 1 and apply the colors
wild
that's bc mine is an LX ORIGINALโข๏ธยฎ๏ธยฉ๏ธ
โข๏ธ
Iirc @icy axle makes really good circles
I don't know what that is ๐ค
๐
Like... celsius?
I have not heard of this.
Did I send you that video...
of a cake recipe using absurd units?
juul
Like, if you take the area of an atom's nucleus, and multiply it by the width of the observable universe, you get something like 13 litres. (Called a Hubble-barn.)
This animation accompanies this video --- https://youtu.be/hsEB65Q4kHI
Dr Becky Smethurst adapts a classic Mary Berry cake recipe, using a combination of strange science units.
More links and info below โ โ โ
Mary Berry: http://www.maryberry.co.uk
Mathematical way to cut cake: https://youtu.be/wBU9N35ZHIw
And another math cake video: https://...
lol, there's a science olympiad event centered on this (sorta)
Oh yeah Mina, in response to your question about the python logo... I don't know ๐
I could check though...
.source
nice, i will just use my circle now, when i finish it, i am gonna ask you ppl to put more circles, so there can be a variety of pfp ๐
just draw a circle lol
no worries, i just was v active during a time when tons of events or holidays were happening
Why does everyone have similar pfp
i feel like ive not seen the non-event pydis logos for such a long stretch of time until now
like the one with the tongues freaked me out LOL
what i love that one
i thought my screen was glitching
the high note in my sea is still just
kinda awesome
is transposing a matrix necessarily O(n * m)?
Erm, I think so. Probably depends on how it's represented though.
Anyway, gtg to bed ๐
Cya
bbye
yes
hi
hi
did you join earlier? i didnโt see
nop
mina has it from a long time now
was i the first to ask @stuck furnace ? not sure
ah, I haven't been around discord(or pydis) much, taking a break as my online classes have started

Erm

@stuck furnace 
we need a bot command to give me time at diff places
go to bed!
๐ค
@stuck furnace naptime >:(
scragly was working on something similar
You would think so based on my activity
I thought I remembered someone telling you from aus ๐ค
iceman are you & your fam ok given the covid situation there?
yep, we don't really venture out much so we are fine
delhi is fucked up
but online classes suck ๐ฆ
indeed
and there is lockdown in my city
where are you from iceman, which place india?
ah
I usually go out for a drive cuz I find it relaxing, lol
broom broom โฉ
ur from delhi?
ah okay
how is there for you?
14
ah nvm
nothing has really changed for me...
I thought Ill ask if you were gonna take the vaccine but its only for 18+
actually i am commuting to the office now some days so i guess thatโs a change
well, i would say nope
not until the extreme level
since many got covid after taking it
oh, be safe
oh lol
even after the 2nd dose?
oh then thats common
they opened vaccination for 18+ now, idk if I should take it as I am 18
my dad has already taken his
yeah, my grandparents took it, my parents didn't
we get yeethon on the piston bot now, and we have yeethon server now btw...
yeet to alternative to print?
.
but?
bedtime for me gnight
gn o/
I do, but I never use it. The only thing on it is a thing I wrote back when I was first learning classes.
Or pre-classes.
I forget.
lol what is it
whats the difference sqlite3 and mysql
Someone know how to build a fiver server for GTA?
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
whats the difference sqlite3 and mysql
yes
yes
I think we have to lower the microphone for us deuw
how to start the code?
need help
im gettting this
how do i get rid of this
what u using pycharm or vscode ?
def fun(a=1, b): #this will generate an error.
pass
you cannot use keyword arguments meaning with = before those that are empty or what we call positional arguments.
so you need to do all of the positional arguments first and only then those with =
so (a, b. c=1) will not generate an error
because you have positional arguments first and at the end kwargs
but program still running smoothly
!kwargs
*args and **kwargs
These special parameters allow functions to take arbitrary amounts of positional and keyword arguments. The names args and kwargs are purely convention, and could be named any other valid variable name. The special functionality comes from the single and double asterisks (*). If both are used in a function signature, *args must appear before **kwargs.
Single asterisk
*args will ingest an arbitrary amount of positional arguments, and store it in a tuple. If there are parameters after *args in the parameter list with no default value, they will become required keyword arguments by default.
Double asterisk
**kwargs will ingest an arbitrary amount of keyword arguments, and store it in a dictionary. There can be no additional parameters after **kwargs in the parameter list.
Use cases
โข Decorators (see !tags decorators)
โข Inheritance (overriding methods)
โข Future proofing (in the case of the first two bullet points, if the parameters change, your code won't break)
โข Flexibility (writing functions that behave like dict() or print())
See !tags positional-keyword for information about positional and keyword arguments
^
!default
?
But is there such a program that writes out nicknames from minecraft itself?
ั ัััะบะธะน
that is entirely beside the point
what do you mean with that?
ั ะธะผะตั ะฒ ะฒะธะดั ััะพ ะผะฝะต ะฝัะถะฝะฐ ะฟัะพะณัะฐะผะผะฐ ะบะพัะพัะฐั ัะฐะผะฐ ะฒัะฟะธััะฒะฐั ะธะผะตะฝะฐ ะธะท ะผะฐะนะฝะบัะฐััะฐ
English, please.
I mean that I need a program that writes out names from minecraft itself
I don't speak Russian.
yeah, what do you mean with that
writes out names from minecraft itself
please explain
ะฟัะพะณัะฐะผะผะฐ ะดะพะปะถะฝะฐ ะฟะธัะฐัั ะธะผะตะฝะฐ ะธะท ะผะฐะนะฝะบัะฐััะฐ ะฒ ะดะพะบัะผะตะฝั
the program should write names from minecraft to the document
English, please
ah
and do you mean names of users in minecraft in general?
names of users in a specific game?
please be specific, in English
well, you can use google translate
googletranslate
yeah exactly
i use googletranslate
uh, hang on
yeah
you want to use https://pypi.org/project/mcstatus/
lets you fetch information about minecraft servers with python
there's an example of the usage in the description which fetches the player names
@whole bear
I don't know what you mean.
she recognizes nicknames and gives them to me
names, I think, not nicknames
yes
did you look in the example
from mcstatus import MinecraftServer
# If you know the host and port, you may skip this and use MinecraftServer("example.org", 1234)
server = MinecraftServer.lookup("example.org:1234")
# 'status' is supported by all Minecraft servers that are version 1.7 or higher.
status = server.status()
print("The server has {0} players and replied in {1} ms".format(status.players.online, status.latency))
# 'ping' is supported by all Minecraft servers that are version 1.7 or higher.
# It is included in a 'status' call, but is exposed separate if you do not require the additional info.
latency = server.ping()
print("The server replied in {0} ms".format(latency))
# 'query' has to be enabled in a servers' server.properties file.
# It may give more information than a ping, such as a full player list or mod information.
query = server.query()
print("The server has the following players online: {0}".format(", ".join(query.players.names)))
it literally does exactly what you need
tfankyou
no problem
Yea
!voice @austere condor
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how to install it?
I do not understand
yes
@molten pewter
i need help with my while loop test
can u guys help
im not tryna fail the class
@honest pier
nah im just studying
also, we're in #voice-chat-text-1
yeah ill come back when she puts it up
We are over in Voice chat 1 if you want to ask your question there
head to a code help channel
hello
@flat sentinel Please don't post random videos / memes.
This isn't the place to do this.
ok
!mute 531851855098282001 Investigating.
:incoming_envelope: :ok_hand: applied mute to @remote lion until 2021-04-29 20:28 (59 minutes and 59 seconds).
what did he send?
!voice @lean shard
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
discord crashing gif lol
If Rabbit had only written an API to detect
Wasn't a gif in this case
like an png
:incoming_envelope: :ok_hand: applied mute to @cerulean sequoia until 2021-04-29 21:31 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
Fine, send it over and Iโll fix it
!voice @royal phoenix
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@stuck furnace code generated pfp for you ๐ค
Thanks ๐
what was my idea
use a pre-circle, rotate it
Nice work btw! Did you use Pillow?
yeah
pushing the rotation thing now
just need more circles now
what font is that?
random fonts, see assets/font
nice
I love that, griffify
!e ```py
from attr import s,ib
@s
class C:
a=ib(2)
def add(self, b):
return self.a + b.a
def del(self):
print(self+type(self)() == 5)
C(3)
@past pawn :x: Your eval job has completed with return code 143 (SIGTERM).
001 | False
002 | False
003 | False
004 | False
005 | False
006 | False
007 | False
008 | False
009 | False
010 | False
011 | False
... (truncated - too many lines)
Full output: too long to upload
!e py trans = str.maketrans('abc', '012') sentence = 'Cranberry and apple sauce' print(sentence.translate(trans))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Cr0n1erry 0nd 0pple s0u2e
Hello :3
from math import sqrt
pt,freq,ptlist=tuple(range(9,20)),(1,1,3,5,8,13,19,24,14,10,2),[]
def init():
for a,b in enumerate(freq):
for i in range(b):ptlist.append(pt[a])
def average(intlist):
return sum(intlist)/len(intlist)
def std_deviation(intlist):
out=0;av=average(ptlist)
for n,x in zip(freq,pt):out+=n*((x-av)**2)
return sqrt((1/len(intlist))*out)
init()
print(std_deviation(ptlist))
Doing homework here.
UwU
Hey guys. What are you doing today?
It is currently 9:56 Uhr, Freitag 30. April in my place.
shh @molten pewter
!e py trans = str.maketrans({'a':'apple'}) print('applesauce'.translate(trans))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
applepplesappleuce
Cool things in python... ๐ค
import antigravity!
itertools is kind of cool.
itertools is awesome
collections ๐
Ohhh, try statistics.NormalDist
collections.Counter ๐
graphlib ๐คฉ
x d
graphlib! @midnight agate
@dire oriole It was referential.
!e ```py
class attr(metaclass=lambda*a:a[2]'_'):_=import
class call:new=lambda _,*a,**k:type('wrapper',(),dict(new=lambda s,f:f(*a,**k)))
@call()
class cout:lt,lshift,le,echo=print,lambda s,o:print(end=str(o))or s,lambda s,i:print(*i)or s,print
@call(end=10)
@attr.s
class forloop:
start, end, step = attr.ib(0), attr.ib(1), attr.ib(1)
def func(self):
cout<self.start
return type(self)(self.start+self.step,self.end,self.step)
def del(self):
@call(self.end>=self.start+self.step)
class runif:
def init(s,cond):cond and self.func()
@past pawn :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
appologies.
One cool thing about counters: you can union and intersect them.
and difference too
i mean, isn't that expected since they inherit from dict?
that's a set union
"If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000"
Counters are like multisets.
no, dictionaries typically don't have those ops
no, that operator is correct
So, when you take the union, you get the maximum of the two counters (for each element).
When you take the intersection, you get the minimum of the two counts.
dictionaries do have the union op
not difference or intersection
!e print(dict(a=1,b=2)|{'b':3,'c':2})
@past pawn :white_check_mark: Your eval job has completed with return code 0.
{'a': 1, 'b': 3, 'c': 2}
that's new too
union go brrrrrrr
brrrrrrrrrrrrrrr
sys.version
!e print(import('sys').version)
!e import sys;print(sys.version)
@past pawn :white_check_mark: Your eval job has completed with return code 0.
001 | 3.9.4 (default, Apr 5 2021, 18:26:27)
002 | [GCC 8.3.0]
@short gate :white_check_mark: Your eval job has completed with return code 0.
001 | 3.9.4 (default, Apr 5 2021, 18:26:27)
002 | [GCC 8.3.0]
3.9.4
GCC 8.3.0
wow
@paper tendon You sound like a Russian.
In mathematics, a multiset (or bag, or mset) is a modification of the concept of a set that, unlike a set, allows for multiple instances for each of its elements. The number of instances given for each element is called the multiplicity of that element in the multiset. As a consequence, an infinite number of multisets exist which contain only el...
shiny gold bag
Erm, like a set but each value can occur more than once.
there aren't many reasons to use one, but they do pop up a few places
a sql db will probably give you a bag
the impl is basically
def counter(I):
d = defaultdict(int)
for x in I:
d[x] += 1
return d
but with a class and methods and whatever
Hmm ๐ค Always hard to come up with examples ๐
like I said, SQL dbs will probably give one to you from a query
Counting word-frequencies in a document?
you don't need to
Oh, I thought we were talking about Counter sorry
!e ```py
sentence = "Counting word-frequencies in a document?"
from collections import Counter
d = Counter(sentence)
print(d)
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
Counter({'n': 5, ' ': 4, 'e': 4, 'o': 3, 'u': 3, 'i': 3, 't': 2, 'r': 2, 'd': 2, 'c': 2, 'C': 1, 'g': 1, 'w': 1, '-': 1, 'f': 1, 'q': 1, 's': 1, 'a': 1, 'm': 1, '?': 1})
mod someone in this server send me somenthing about that he reported my account by accident and will be a permanent ban my friends say that is a scam his name cheoms133
i have the proof
You guys seen Up? ๐
!e
print(10**6)```
@tall latch :white_check_mark: Your eval job has completed with return code 0.
1000000
!e
print(6**10)```
@tall latch :white_check_mark: Your eval job has completed with return code 0.
60466176
Hey, sorry, I totally overlooked your comment. Did you send this to @rapid crown?
!e
print(6**2)```
@tall latch :white_check_mark: Your eval job has completed with return code 0.
36
!e
print(2**6)```
@tall latch :white_check_mark: Your eval job has completed with return code 0.
64
A lot goes on behind the scenes ๐
This server is like a swan...
From above the water: gliding elegantly; from below the water: paddling furiously.
!e
print(4**6)```
@tall latch :white_check_mark: Your eval job has completed with return code 0.
4096
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
@tall latch Can you do that in #bot-commands please?
@tall latch :white_check_mark: Your eval job has completed with return code 0.
1296
yes now i get it
Guys, do you want to see this code I just wrote? ๐
sure
Erm, so I was writing an example of using Counter, and got a bit carried away...
from collections import Counter, defaultdict
from itertools import accumulate
import re, random, sys
sentence_pattern = re.compile(r"[A-Z][^.]+\.")
word_pattern = re.compile(r"[a-zA-Z]+'[a-zA-Z]+|[a-zA-Z]+")
with open(sys.argv[1]) as file:
sentences = sentence_pattern.findall(file.read())
words = [
word
for sentence in sentences
for word in [None, None] + word_pattern.findall(sentence)
]
trigram_counts = Counter(list(zip(words, words[1:], words[2:])))
conditional_counts = defaultdict(lambda: Counter())
for trigram, count in trigram_counts.items():
*prefix, suffix = trigram
conditional_counts[tuple(prefix)][suffix] = count
cum_weights_by_prefix = {}
for prefix, counter in conditional_counts.items():
suffixes, counts = zip(*counter.items())
cum_weights_by_prefix[prefix] = (suffixes, tuple(accumulate(counts)))
def new_sentence(word_0=None, word_1=None):
words = []
while True:
candidates, cum_weights = cum_weights_by_prefix[word_0, word_1]
new_word = random.choices(candidates, cum_weights=cum_weights)[0]
if new_word is None:
break
words.append(new_word)
word_0, word_1 = word_1, new_word
return ' '.join(words) + '.'
20 more hous untill we can stream games
If you give this a text-file of natural language (e.g. http://www.gutenberg.org/files/84/84-0.txt), you can use it to generate a brand new sentence that sounds grammatically correct.
Hey Batch ๐
a paraphraser? ๐
Oh, is that what it's called? ๐
This just generates English-sounding nonsense.
Like, here's a sentence generated based on Frankenstein: ```
He was tried and condemned them to retire and consider of your mind that I am going to unexplored regions to the world at no cost and with smiles and joy to my care.
It's surprising how well it works in getting the grammar right.
It literally just counts sequences of three words.
Yep!
The book Frankenstein
Yep ๐
It needs enough data to learn the rules of English.
Another sentence: ```
But where were my first care was to drive me from seemingly insurmountable difficulties.
Frankenstein might not have been a good choice because of all the long words tbh...
Anyway, just wanted to show that off before I go. Cya ๐
this scam is getting quite popular, i got 1-2 of those yesterday
oh hey!
Danish -- Finish
holy crap theres a IPA version of this:
http://ncf.idallen.com/TheChaosPRETTY.pdf
yo, @gentle flint if you wanna practice IPA there you go
thx
ohhhh @midnight agate , are you a vim user ?
cool
i finish my lesson and i go in the voc
you could just mute till you fixed it
not anymore
[*zip(things)]
Hi
Hola
welcome to my personal hell
Granblue Fantasy
cute
it's too generous
i can't stop

if it's banned in the netherlands & belgium, then its gambling
it's not gambling if draw rates are addressed
its cool in india for some reason
not illegal for sure
I genuinely can't tell if that's sarcasm
dang
โNone of these elements can be in dispute. A gamer uses his console, computer, smartphone or tablet with the EA sports franchise game on it (#1); the gamer pays real-world currency for the opportunity to open an Ultimate Team Pack (#2); and the Ultimate Team Pack is a randomized chance to win something valuable in-game.
its gambling for sure
It's a really good advertisement...
oh come on
Over 10 Crore fantasy cricket fans are playing VIVO IPL to win daily cash prizes. Download the app now!
this is a gambling site too but for cricket betting and stuff
and its advertised on live TV
lawsuit?
chirs, do you have your pfp png file?
i wanted that circle, for https://github.com/Shivansh-007/griff-ify
or smell of raining, when you are forests
or gardens
That's amazing
with trees around
Lmao you actually did it
so refreshing
The earthy smell is nice
@cobalt fractal 
this one time there was a ozone leak in anearby shop
and damm they have a liflong lung problem
That's crazy
always have to use a respirator
cool thanks, now need to get that circle
wow, what brush is that? looks like a paint
Oh wait is that your script jason?
Yeah those graphics cards are massive
nope, mine is not that scrappy
That'd probably hurt a lot
need to make it like that
I never understood the concept of the dangers of radiations
https://pixlr.com/ i just use this
Discover free and premium online photo editor and graphic design tools! Effects, filters, overlays, simple to expert tools.Open almost any image format like PSD (Photoshop), PXD, Jpeg, PNG (Transparent), webP, SVG and many more. You'll find a Pixlr image editor just for you!
btw love to professional software!
no paint here
yea! It's installed on literally millions of PCs!
lol
I suppose if you put it as "you're tearing your body's atoms apart" I suppose that's understandable
radon the gas but yeah nice one
i recently watched chernobyl
and yeah thats what i get too
its like breaking your dna
Six Degrees of Kevin Bacon or Bacon's Law is a parlor game where players challenge each other to arbitrarily choose an actor and then connect them to another actor via a film that both actors have appeared in together, repeating this process to try and find the shortest path that ultimately leads to prolific American actor Kevin Bacon. It rests ...


is that hemlock lol?
yea, haha
when was this added?
Checking
837680180125892638
Created at 2021-04-30 13:21:58.287000 (1 minute and 1 second ago).
or this
vote
836231230897782864
Created at 2021-04-26 13:24:21.871000 (3 days, 23 hours and 58 minutes ago).



53495
131026
@somber heath


