#voice-chat-text-1
1 messages ยท Page 94 of 1
lol
sorted(mem.id for mem in ctx.guild.members)[:5]
quick check from someone?
!sf 49197561092767744 49206107159138304 49290412937969664 50448677348577280 50527603626344448
49197561092767744
Created at 2015-05-16 18:13:32.611000 (5 years, 10 months and 30 days ago).
49206107159138304
Created at 2015-05-16 18:47:30.152000 (5 years, 10 months and 30 days ago).
49290412937969664
Created at 2015-05-17 00:22:30.216000 (5 years, 10 months and 30 days ago).
50448677348577280
Created at 2015-05-20 05:05:01.971000 (5 years, 10 months and 27 days ago).
50527603626344448
Created at 2015-05-20 10:18:39.462000 (5 years, 10 months and 27 days ago).
oldest 5 accs on the server
!user 49197561092767744
You may not use this command on users other than yourself.
Letโs see who the oldest five are
Raw Data:
Timestamp: 1431800012611
Worker: 0
Process: 0
increment: 0
ISO 8601 Format:
2015-05-16T18:13:32
Human Time:
May 16 2015
Alec and his library of APIs
Hewwo wowwd!
sorry @mild flume
!pypi pyowo
All are fast api?
!tvban 308646743602364419 1w I've warned you multiple multiple multiple times at this point. If you can't control your mic and just let noise through, you're going to lose the permission to use it. This is the last time I'm going to tell you.
:ok_hand: applied voice ban to @stoic bluff until 2021-04-23 16:45 (6 days and 23 hours).
could i have streaming perms plsease?
To do what?
stream my paint program being coded
oh theres a voice ban?
theres a perm ban
i never did know that
nooooooo
Alec since you are here, could you checkout the quackstack pr I did, I committed the pydantic model change
I really don't know how this is a surprise
wait thats the guy that interrupted me yesterday while i was talking
Eat that! ha
i was just talking. and he starts doing weird sounds
lol
done
Ahh Thankyou, time to make it for man ducks
Closes #26
Uses implementation of the staff PyWeek submission
Adds colors.py which contains all util functions i.e. make_color, make_duck_colors, make_man_duck_colors.
Get rid of random RGB ge...
Or maybe tomorrow
!stream 537553907363086343 Just a reminder, if this goes unused for the purpose you told me it's going to be without asking me first, you're not getting the role again
Could not convert "duration" into Duration or ISODateTime.
Just is not a valid ISO-8601 datetime string
!stream <member> [duration]
Can also use: streaming
*Temporarily grant streaming permissions to a member for a given duration.
A unit of time should be appended to the duration.
Units (โcase-sensitive):
โy - years
โm - monthsโ
โw - weeks
โd - days
โh - hours
โM - minutesโ
โs - seconds
Alternatively, an ISO 8601 timestamp can be provided for the duration.*
!stream 537553907363086343
@misty sinew
โ @sullen plaza can now stream.
๐
Whatโs with the eyes dope, you randomly put it in some channels
@golden marsh bruh you remember me the girl from tiktok
!rstream @steep fiber
โ This member doesn't have video permissions to remove!
??? i dont have tiktok?
!pstream 572303014346489866
โ Permanently granted @steep fiber the permission to stream.
I just send I because I am seeing everything . . .
ยฏ\_(ใ)_/ยฏ
Uhh
@misty sinew nice project keep going
the wise one
Mr Hemlock: I spend time into creating easy to understand analogies for teaching others python
Also Mr Hemlock: iM a BaD pErSoN, nObOdY bEliEvEs Me
this project has taken me a month
What are you making?
paint in batch
Cool
๐ LETS GO
Ahh, there's this recipe I really want to try.
You take a large oyster mushroom and kind of compress between two cast-iron pans while frying it.
I DID IT
The video you've all been waiting for...BBQ Mushroom Steaks!!! Finally, our patented mushroom pressing technique is ready to be shared with the world!
- Watch this.
- Cook this.
- Change the world.
Thank you for trying plant-based! The animals and the Earth appreciate your efforts!! ๐ฎ๐ฃ๐๐
Look for the new Wicked Kitchen Oyster Mushroom Clus...
ufff ouch
FOAAS provides a modern, RESTful, scalable solution to the common problem of telling people to fuck off.
im sorey
I know, I wasn't trying to make you feel bad again. It's why I used the cat one.
I see a lot of if statements, those look bad
yeah meant the same
can u just join voice chat 1 or?
Yep ๐ Although you need to be voice-verified to speak.
and when u dont want to speek
Literally everyone is muted right now ๐
See #voice-verification for details on that, btw.
im not verified cud i join?
yes
Yep
oh my, look at the amount of indentations in his code ...
what is he doing right now?
He is working on a Batch program, which is his thing apparently.
@south sluice Hey. Is it a JSON file?
You can use the json module, which is in the standard library.
import json
with open('myfile.json') as file:
content = json.read(file)
Yep, if the outermost json is an object, then content will be a python dictionary.
It could also be a list (depending on the content of the file).
Ah, use ```
Ah right ๐
It's ` rather than '
[
{
"Name": "mvve",
"Loots": [
{
"ItemName": "T4_CAPE",
"Quantity": 1
},
{
"ItemName": "T5_ARMOR_CLOTH_SET2",
"Quantity": 1
},
{
"ItemName": "TREASURE_RITUAL_RARITY1",
"Quantity": 1
},
{
"ItemName": "TREASURE_TRIBAL_RARITY1",
"Quantity": 1
},
{
"ItemName": "TREASURE_RITUAL_RARITY1",
"Quantity": 2
},
{
"ItemName": "T5_HEAD_LEATHER_SET1@1",
"Quantity": 1
}
]
},
{
"Name": "Yurekyiyen",
"Loots": [
{
"ItemName": "TREASURE_DECORATIVE_RARITY1",
"Quantity": 1
},
{
"ItemName": "T6_HEAD_CLOTH_SET3",
"Quantity": 1
},
{
"ItemName": "TREASURE_TRIBAL_RARITY2",
"Quantity": 1
},
{
"ItemName": "T5_CAPE",
"Quantity": 1
},
{
"ItemName": "T4_HEAD_PLATE_SET2",
"Quantity": 1
},
{
"ItemName": "TREASURE_DECORATIVE_RARITY1",
"Quantity": 1
},
{
"ItemName": "TREASURE_KNOWLEDGE_RARITY1",
"Quantity": 1
},
{
"ItemName": "T6_SHOES_CLOTH_SET3@1",
"Quantity": 1
}
]
}
Got it.
Missing a ] at the end?
Ah
So, this would actually be a list of dictionaries, when imported.
Like, you could do content[0]['Name'] to look up the value for the name for the first object.
Sorry, didn't catch that?
Yes, it would.
You need to change the name of the file though.
Instead of 'myfile.json', the name of the file.
Ah right, in a global. Good idea.
Oh, my mistake.
Should be json.load
def lootLogger(lootlogg):
names = {}
for person in lootlogg:
Items = person["Loots"]
List = []
for item in Items:
itm = item['ItemName']
try:
List.append(Albion_Translate[itm])
except KeyError:
pass
names[person['Name']] = List
print(names)
return(names)
Yep
"C:\Users\david\PycharmProjects\Albion loot\venv\Scripts\python.exe" "C:/Users/david/PycharmProjects/Albion loot/main.py"
Traceback (most recent call last):
File "C:\Users\david\PycharmProjects\Albion loot\main.py", line 3383, in <module>
lootLogger("lootlogs.json")
File "C:\Users\david\PycharmProjects\Albion loot\main.py", line 3371, in lootLogger
Items = person["Loots"]
TypeError: string indices must be integers
Process finished with exit code 1
Is lootlogg the imported json?
And that has the same format as previously?
Hmm ๐ค
Oh, it would mean that person is a string.
Oh, yes I see.
person is a key
When you iterate over a dictionary with a for loop, it iterates over the keys.
Ah, wait. Are you sure lootlogg is a list of dicts?
Could you add a breakpoint into your code to inspect it?
Just put breakpoint() as the first line of the function.
When you run it, it will pause at that point.
And you can check the value of variables.
Ah right ๐
Ahh
Nice ๐ฅ
"C:\Users\david\PycharmProjects\Albion loot\venv\Scripts\python.exe" "C:/Users/david/PycharmProjects/Albion loot/main.py"
{'mvve': ["Expert's Cleric Robe", "Expert's Mercenary Hood"], 'Yurekyiyen': ["Master's Mage Cowl", "Adept's Knight Helmet", "Master's Mage Sandals"], 'Sartha': ["Master's Torch"], 'Fak3': ["Adept's Soldier Boots"], 'Tormiic': ["Master's Royal Shoes", "Master's Soldier Armor", "Expert's Cursed Staff", "Adept's Scholar Cowl"], 'torpeda9': ["Adept's Mage Cowl", "Master's Witchwork Staff", "Adept's Mage Cowl", "Expert's Soldier Armor"], 'zEhBuniTinhu': ["Master's Mage Sandals", "Master's Scholar Sandals"], 'ZosKaos': ["Master's Spear"]}
Process finished with exit code 0
No problem ๐
ok im here
Hey! Probably best just to open a help channel. I don't know everything ๐ See #โ๏ฝhow-to-get-help for instructions.
I have actually ahaha Im pretty sure its this one #help-bread but no one has responded yet ahah
Oh right. I'll have a look and see if I can help ๐
What's the name of game currently played?
Risk of Rain 2
ty
sorry mic problems
i heard you lol
๐
@misty sinew just talk in here
No micro on PC.
!charinfo แแแข
\u14da : CANADIAN SYLLABICS LA - แ
\u160f : CANADIAN SYLLABICS CARRIER YO - แ
\u15e2 : CANADIAN SYLLABICS CARRIER TTU - แข
\u14da\u160f\u15e2
Learn algorithms together on binarysearch. Create a room, invite your friends, and race to finish the problem.
app.url = 'https:/cdn3.vectorstock.com/i/1000x1000/59/42/icon-animal-silhouettes-vector-14295942.jpg',
image = Image(app.url, 50, 100),
i am not able to show that picture
thats what shows up
don't do that ๐
\u14da\u160f\u15e2
do any of you have postgresql experience?
Skin cells right now.
Just a binary threshold
numpy's linspace
Pillow
math.dist
value normalisation of a population of values
So darkest will be black and lightest will be full white, position each other value relative to that
Python's modulo operator, %, good for looping some, but not all dimensional stuff.
Trigonometric intersections.
Or the magnitude of approximtion of.
Trig functions in general to generate circuitous paths
from math import pi
from numpy import linspace
a = linspace(-pi, pi, n, endpoint=False)```
for use with sin and cos etc
@misty sinew https://github.com/Dragon-Batch/Paint
hi are u gonna help mme
@misty sinew It was you who was expressing an interest in some code, yes?
import random, math
from PIL import Image
span_x = 300
span_y = 300
node_count_target = 30
n_nearest = 1
def normalise(data):
'''Compresses or stretches a range of values into a 0-255 span.'''
min_v = min(data)
max_v = max(data)-min_v
return [int(((v-min_v)/max_v)*255) for v in data]
nodes = set()
print('Populating nodes.')
for i in range(node_count_target * 2):
nodes.add((random.randrange(span_x), random.randrange(span_y)))
if len(nodes) >= node_count_target:
print('Nodes populated')
break
else:
print('Nodes not fully populated. Proceeding anyway.')
data = []
for x in range(span_x):
for y in range(span_y):
distances = sorted([math.dist((x,y), node) for node in nodes])
data.append(sum(distances[:n_nearest]))
data = normalise(data)
image = Image.new('F', (span_x, span_y))
d = iter(data)
for x in range(span_x):
for y in range(span_y):
image.putpixel((x,y), next(d))
image.show()```
Worley noise implementation.
Populating nodes.
Nodes populated
Traceback (most recent call last):
File "D:\Projects\CryptoCurrency\main.py", line 39, in <module>
image.putpixel((x,y), next(d))
StopIteration
Process finished with exit code 1
bruh
rich is awesome 
used it for the piston cli project, and it looks pretty now
and it works across OS
Yeah, it looks really good
some don't work on windows, while rich does ๐ , the biggest upvote
Devil Dust
I've heard of Pu being referred to as the Hannibal Lecter of the periodic table.
a negative ion is just an anion
Maybe it needs a hug.
An incandescent gas mantle, gas mantle or Welsbach mantle is a device for generating bright white light when heated by a flame. The name refers to its original heat source in gas lights, which filled the streets of Europe and North America in the late 19th century, mantle referring to the way it hangs like a cloak above the flame. It was also ...
We have camp lamps that use those. Or used to.
lul
Corium
https://en.wikipedia.org/wiki/Kerosene_lamp
these are often used now instead
A kerosene lamp (also known as a paraffin lamp in some countries) is a type of lighting device that uses kerosene as a fuel. Kerosene lamps have a wick or mantle as light source, protected by a glass chimney or globe; lamps may be used on a table, or hand-held lanterns may be used for portable lighting. Like oil lamps, they are useful for lighti...
Is a element
Sugar and spice and everything nice ๐
any thing that has "ium" at the end it is radioactive
kemalium
Bananaium.
yes
Ooo im learning new things every day...noice
so are u radioactive?
Kurchatov
Igor Vasilyevich Kurchatov (Russian: ะะณะพัั ะะฐัะธะปัะตะฒะธั ะัััะฐัะพะฒ; 12 January 1903 โ 7 February 1960), was a Soviet nuclear physicist who is widely known as the director of the Soviet atomic bomb project. Along with Georgy Flyorov and Andrei Sakharov, Kurchatov is known as the "father of the Soviet atomic bomb" and later "the father of the Soviet n...
chad
Georgy Nikolayevich Flyorov (Russian: ะะตะพฬัะณะธะน ะะธะบะพะปะฐฬะตะฒะธั ะคะปััะพะฒ, IPA: [gสฒษชหorgสฒษชj nสฒษชkษหlajษชvสฒษชtษ หflสฒษตrษf]; 2 March 1913 โ 19 November 1990) was a Soviet nuclear physicist who is known for his discovery of spontaneous fission and his contribution towards the physics of thermal reactions. In addition, he is also known for his letter directed t...
Lantern ๐ฎ
demn..
Device for emitting light, or technologically savvy avian? You decide!
World War III?
Emmiting light ๐ฏ๏ธ
Cold war
The Lady of the Camellias
Ah right.
kamelium is radioactib
your possessions makes me fear u
Collector of relics...
he left some photos in the back
ouch
chad
good luck!
Would be interesting to put that book next to a cloud chamber or Gieger counter.
Cloud chamber makes me think of a box that makes clouds, like stage smoke.
my dad suggested the same, lol
Have you seen that clip where Brian Cox makes a cloud chamber in the middle of the desert with some dry-ice, a fish tank, and a hot water bottle?
I don't believe so.
Subscribe and ๐ to OFFICIAL BBC YouTube ๐ https://bit.ly/2IXqEIn
Stream original BBC programmes FIRST on BBC iPlayer ๐ https://bbc.in/2J18jYJ
More about this programme:
http://www.bbc.co.uk/programmes/b01qrxpc
Cloud chambers are the earliest example of particle physics detectors and Brian builds one to show some of the natural processes that ca...
Somehow managed to wedge some physics into a program about biology 
I miss the old days of the internet when no-one knew what they were doing and web design was still quirky and interesting ๐
Now every site looks like it was made with squarespace...
Flash ๐
or wix
I kind of miss flash websites.
Even though they were an accessibility and security nightmare.
Lead?
@unique raptor and @raw wren you guys must be very common here ig
i see
poor jake indeed
im kinda new
thnkss
is this some kinda sim?
ever just hate your mom so hard you love her?
No, because I never hate my parents. I just disagree with them sometimes.
well technically I don't hate my parents
you study aeronautical engineering or somethin @unique raptor ?
chad
noice
nioce
i feel stewped here
i got a ton to learn thats what i have realised
good quote there
wumrms
I can't join with the number of people in chat.
@hearty heath Can haz drag pls?
Nevermind.
Erm, you're in the channel?
i think the channel for your vc is below this channel
@crude spruce, are you here to help out @grave reef?
I take it that's what this help session is about?
No, this was the correct one at the time. People moved.
oh sorry then
im fairly new to python and im trying to make my .py an exe file but im having some trouble can anyone help me out?
what going
on
Erm, that was yesterday ๐
I think you thought you were in the general voice-chat.
yea
When it was the code/help voice chat.
rip bro
Although I think I posted in the wrong channel too ๐

what about me
๐ฉ
yes
Hey
whats this regarding ?
hello
@sleek parrot please report that to @crisp hazel and weโll have a look at it ๐
Elliptic-curve cryptography (ECC) is an approach to public-key cryptography based on the algebraic structure of elliptic curves over finite fields. ECC allows smaller keys compared to non-EC cryptography (based on plain Galois fields) to provide equivalent security.Elliptic curves are applicable for key agreement, digital signatures, pseudo-rand...
Where are the limits of human technology? And can we somehow avoid them? This is where quantum computers become very interesting.
Check out THE NOVA PROJECT to learn more about dark energy: www.nova.org.au
OUR CHANNELS
โโโโโโโโโโโโโโโโโโโโโโโโโโ
German Channel: https://kgs.link/youtubeDE
Spanish Channel: https://kgs.link/youtubeES
HOW C...
IMP
The Advanced Research Projects Agency Network (ARPANET) was the first wide-area packet-switching network with distributed control and one of the first networks to implement the TCP/IP protocol suite. Both technologies became the technical foundation of the Internet. The ARPANET was established by the Advanced Research Projects Agency (ARPA) of t...
hey
!voice @next gorge That should tell you what you need to know about it
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hey guys
Hello
sup
.catify
Your catified nickname is: Vestergurแแแข | แแแข
Thereโs a command too
I was actually thinking what are these weird strings in the end of every username.
.catify
Your catified nickname is: Sparky | แแแข
!source
.source
.help latex
what are yall upto
Talking about Sir Lancebot
ah
.help catify
.catify <text>
Can also use: แแแขify, แแแข
*Convert the provided text into a cat themed sentence by interspercing cats throughout text.
If no text is given then the users nickname is edited.*
.catify
Your catified nickname is: Glenn | แฆแแข
@mild flume https://www.youtube.com/watch?v=d0RmRJsgP28
Overwatch Original Song, No Mercy, because I'm not gonna be any kind of support.
Mashed Music Video: https://youtu.be/S9uTScSgzrM
โข iTunes: https://itunes.apple.com/us/album/no-mercy-single/id1195689351
โข Spotify: https://open.spotify.com/album/0P1dNlCkXD4GO3TruGzj0p
โขGoogle Play: https://play.google.com/store/music/album/The_Living_Tombstone_...
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Okay thanks
Django, Flask, FastAPI
@warped wind :white_check_mark: Your eval job has completed with return code 0.
something sfsfs
!video
mean on Precel#6835 last posts from him on discord are May last year. @stuck bluff
@blissful totem this one ๐
i have been on for less than 3 days
am not eligible
i really need help, cani pm you please?
ah alright
I was referring to #help-pretzel. ๐
def generate_fib():
a, b = 0, 1
yield a
a, b = b, a+b
!e
def generate_fib(a, b):
print(a)
return generate_fib(b, a+b)
generate_fib(0,1)
```
@cursive rover :warning: Your eval job has completed with return code 0.
[No output]
!e
def generate_fib(a, b):
print(a)
return generate_fib(b, a+b)
generate_fib(0,1)
@cursive rover :x: Your eval job has completed with return code 1.
001 | 0
002 | 1
003 | 1
004 | 2
005 | 3
006 | 5
007 | 8
008 | 13
009 | 21
010 | 34
011 | 55
... (truncated - too many lines)
Full output: too long to upload
!e
!e
def generate_fib(a, b):
print(a)
return generate_fib(b, a+b)
generate_fib(0,1)```
@cursive rover :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | !e
003 | ^
004 | SyntaxError: invalid syntax
!e
def generate_fib(a, b):
print(a)
return generate_fib(b, a+b)
generate_fib(0,1)```
@cursive rover :x: Your eval job has completed with return code 1.
001 | 0
002 | 1
003 | 1
004 | 2
005 | 3
006 | 5
007 | 8
008 | 13
009 | 21
010 | 34
011 | 55
... (truncated - too many lines)
Full output: too long to upload
!e
def fibonacci(n):
if n > 1:
return fibonacci(n-1) + [(1.618033988749895**n/2.23606797749979 + 0.2) // 1]
else:
return [1]
fibonacci(10)
@cursive rover :warning: Your eval job has completed with return code 0.
[No output]
!e
def fibonacci(n):
if n > 1:
return fibonacci(n-1) + [(1.618033988749895/2.23606797749979 + 0.2) // 1]
else:
return [1]
fibonacci(10)```
what is the fibonacchi sequence
def fibonacci(n):
if n > 1:
return fibonacci(n-1) + [(1.618033988749895/2.23606797749979 + 0.2) // 1]
else:
return [1]
fibonacci(10)```
ah ok
!e
def fibonacci(n):
if n > 1:
return fibonacci(n-1) + [(1.618033988749895/2.23606797749979 + 0.2) // 1]
else:
return [1]
fibonacci(10)```
@cursive rover :warning: Your eval job has completed with return code 0.
[No output]
is't basically this sequence of numbers: 0,1,2,3,5,8, and so on, the next number is the sum of the previous two numbers
it can go on infinitely
thanks dude
LOL Squidward. Maths, same. IDK.
!e
def Fibonacci(n):
# Check if input is 0 then it will
# print incorrect input
if n < 0:
print("Incorrect input")
# Check if n is 0
# then it will return 0
elif n == 0:
return 0
# Check if n is 1,2
# it will return 1
elif n == 1 or n == 2:
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
print(Fibonacci(1000))```
@cursive rover :white_check_mark: Your eval job has completed with return code 0.
6765
!e
def Fibonacci(n):
# Check if input is 0 then it will
# print incorrect input
if n < 0:
print("Incorrect input")
# Check if n is 0
# then it will return 0
elif n == 0:
return 0
# Check if n is 1,2
# it will return 1
elif n == 1 or n == 2:
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
print(Fibonacci(1000))```
@cursive rover :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 20, in <module>
003 | File "<string>", line 19, in Fibonacci
004 | File "<string>", line 19, in Fibonacci
005 | File "<string>", line 19, in Fibonacci
006 | [Previous line repeated 995 more times]
007 | File "<string>", line 5, in Fibonacci
008 | RecursionError: maximum recursion depth exceeded in comparison
!e
def Fibonacci(n):
# Check if input is 0 then it will
# print incorrect input
if n < 0:
print("Incorrect input")
# Check if n is 0
# then it will return 0
elif n == 0:
return 0
# Check if n is 1,2
# it will return 1
elif n == 1 or n == 2:
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
print(Fibonacci(600))```
@cursive rover :warning: Your eval job timed out or ran out of memory.
[No output]
!e ```py
def callcount(func):
func.count = 0
def inner(*args, **kwargs):
func.count += 1
inner.count = func.count
return func(*args, **kwargs)
return inner
@callcount
def Fibonacci(n):
if n < 0:
print("Incorrect input")
elif n == 0:
return 0
elif n == 1 or n == 2:
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
print(Fibonacci(10))
print(Fibonacci.count)
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
001 | 55
002 | 109
RIP my brain - 2021 +
def fibonacci():
a, b = 0, 1
while True:
a, b = b, a+b
yield a
stupid = fibonacci() #if I just add fibonacci in next() it just returns 1 forever
while True:
print(next(stupid))
!e ```py
def fibonacci():
a, b = 0, 1
while True:
a, b = b, a+b
yield a
stupid = fibonacci() #if I just add fibonacci in next() it just returns 1 forever
for i, fib in enumerate(stupid):
print(fib)
if i > 10:
break
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 1
003 | 2
004 | 3
005 | 5
006 | 8
007 | 13
008 | 21
009 | 34
010 | 55
011 | 89
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/bigigonili.txt?noredirect
LOL
this conversation is so good
yo sprite
7up soda is da best shit
i would say so too
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
!paste @last cove
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
!e ```py
my_dict = {
"a": "hey",
3: "bye"
}
a = 3
print(my_dict[a])
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
bye
!e ```py
my_dict = {
"a": "hey {name}",
"b": "bye {name} {othername}"
}
name = "redstar"
o = "rising"
print(my_dict["b"].format(name=name, othername=o))
@golden marsh :white_check_mark: Your eval job has completed with return code 0.
bye redstar rising
Alternatively:
file.write(f"You entered: {ISBN}\n")
file.write(f"The ISBN-13 number {ISBN} is converted to the ISBN-10 number {ISBN_New}\n")
convert_stuff = {
1: "This ISBN-13 number {} is converted to the ISBN-1 number {}\n",
2: # same again, blah blah
}
# user input or whatever does
string_to_use = convert_stuff[user_input]
print(string_to_use.format(ISBN, ISBN_New))
@mild flume when you finished helping this person could I show you my game so far? (I tried earlier but had to go and have to go soon again so just lemme know if I can or not)
In case I am not here to show you
oh we here
!e
meat_breakfast = "bacon"
drink_breakfast = "OJ"
meat_lunch = "sandwich"
drink_lunch = "iced tea"
template = "For {meal}, I'll have {food} and {drink}."
print(template.format(meal="breakfast", food=meat_breakfast, drink=drink_breakfast))
@mild flume :white_check_mark: Your eval job has completed with return code 0.
For breakfast, I'll have bacon and OJ.
I watched a video so I think I'm qualified.
YOOO
what about "I watched a video, so I'm pretty much qualified"
o/
You clearly need these guys: https://www.youtube.com/watch?v=Ido61qVbgqI
Having trouble with your Dungeon Master? Call D&D&D&D, Rules Lawyers!
Thanks to Audible for sponsoring this video!
http://audibletrial.com/Door
Starring Kyle and Ian
Produced by Ricky Linn
"Living Forever" by JP De Ovando:
https://goo.gl/dyJrZ
Help support us on Patreon!
https://www.patreon.com/DoorMonster
Listen ...
298 votes and 25 comments so far on Reddit
@mild flume please go to help 1
import ast
with open("test.py") as f:
tree = ast.parse(f.read())
def visit_Delete(self, node):
self.fill("yeet ")
self.interleave(lambda: self.write(", "), self.traverse, node.targets)
ast._Unparser.visit_Delete = visit_Delete
with open("test_r.py", "w+") as f:
f.write(ast.unparse(tree))
import ast
with open("test.py") as f:
tree = ast.parse(f.read())
class Unparser(ast._Unparser):
def visit_Delete(self, node):
self.fill("yeet ")
self.interleave(lambda: self.write(", "), self.traverse, node.targets)
def unparse(ast_obj):
unparser = Unparser()
return unparser.visit(ast_obj)
with open("test_r.py", "w+") as f:
f.write(unparse(tree))
!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.
tes
imagine being old enough ๐
Erm, no idea when I'm supposed to get mine ๐ฌ
hey physicist ๐
Ey, Jake, it's not that bad. There's a lot you get right, in my opinion.
At least TikTok is fun.
Thank u ๐
kakoune
Looooooong choongus
"just use the cloud bro it'll be fine"
๐
how you become a giddy one @peak frigate ?
I mean dizzy drunk I guess. Ethanol juice ๐
lolll i no require that to be giddy :D
!voice @spring ibex | แฆแแข This'll tell you what you need to know
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@spring ibex Did that answer your question about why you can't talk?
Mypy is an optional static type checker for Python.
i need a little help coding a random function like x = random({50:0, 20:1, 10: 2, 10: 3})
then i want like 20% chance of giving 1 and 50% for 0 and 10% for 2 like that can anyone help me with coding this function
We meander.
A dumb idea is a fun idea
I think random.choices might be what you're after.
Hey noona
yes i tried doing that but here is my attempt:
resources = []
for i in range(50):
resources.append(0)
for i in range(20):
resources.append(1)
for i in range(10):
resources.append(2)
for i in range(6):
resources.append(3)
for i in range(5):
resources.append(4)
for i in range(4):
resources.append(5)
for i in range(3):
resources.append(6)
for i in range(2):
resources.append(7)
x = random.choice(resources)
lolll
๐
thanks it worked
Explaining Random Access Memory (RAM), Read Only Memory (ROM) and cache.
Any questions/ feedback/ enquiries: tutorcomputerscience@gmail.com
To watch the videos in their intended order and only those applicable to you, please use the following playlists:
OCR GCSE Paper 1: https://www.youtube.com/playlist?list=PL04uZ7242_M60Z2F8qV7sId99cuwV_Z3...
!server
Hi everyone! Hope you're doing well...
Does anyone have ideas on how to parse this output? https://paste.pythondiscord.com/efesojegaz.yaml
Have you used autoshardedclient @wintry sinew?
@spring ibex How old are you, if I may ask?
@wintry sinew Can you do an American accent? Lol
@fierce palm Did you mean to broadcast a video?
Might want to enable Krisp or something
ok
YES
An open source Python 3 (CPython >= 3.5.0) interpreter written in Rust ๐ ๐ฑ ๐ค
Waht are u talking about, everyone are doing WELL
Are we? Are we, really?
Video-blogging all major technology trends at 32+ Tech Tradeshows around the world since 2004.
If you are counting my total YouTube views, add to my views about:
12M+: https://www.youtube.com/watch?v=QB4PdNBs89k
2.5M+: https://www.youtube.com/watch?v=GRWDyyTqFX8
1.6M+: https://www.youtube.com/watch?v=tbyu1tbGE38
470K+: https://www.youtube.com/w...
he does the interviews on linaro conferences.
what about the MI5
๐
MEE6 is spied by the MI6
Bruh
It has got 1 tb HDD and no ssd
Is there anyway I can make my laptop faster
It's incredibly slow
So I don't open it
It's i3 processor
I don't know dude !!!
What OS do you have on it?
Windows 10
Because if it's a laptop that you don't really use anymore and it's on Windows, swapping to something like Ubuntu can make it more performant.
But if you do need it to be Windows, there are plenty of other ways to try and get a bit more oomph out of it
How much RAM do you have and how much free space on the hard drive?
When you say it's slow, what do you mean
Like is it slow to open programs, use them, if you open too many, etc.
Like the cursor keeps circling or visual studio code editor becomes unresponsive for few min
Even switching between tabs in chrome takes time
Like you click and then you wait
This happen because you haven't more memory, RAM in your Laptop
Yep, that's part of it. Chrome and VS Code can end up taking a lot of memory, and 4 gigs will do it, but it'll have to swap between memory and virtual memory (which is data that is stored on the HDD because it doesn't fit in the memory)
How old is the laptop?
RAM might be the cheaper option, and in the long term more beneficial
I didn't know it will be this slow
@frigid isle, what the apps you don't work with them anymore?
Ok. Thanks.
Also limiting the number of things you have open at a given moment
The more programs you have open, the more it'll force your computer to access the HDD for regular memory
Delete the programmes (.exe, .txt, ...) you don't work with them or open them anymore, it should work.๐
No?
That'll only affect storage, not this particular issue
And since they have 1 TB, and they haven't installed much, that wouldn't help
Shopkeeper told me ssd are faster
OMG
Ok.
The what
"Panpsychism is the view that all things have a mind or a mind-like quality"
OMG
LAMO
how do i spell\pronounce this
hai
I don't know
I wonder if it kicked them off or if they ended it I hope the first one.
Because that's a dangerous bug
@spring ibex Can you hop onto stream for a second?
Ok.
Because if you can, that's a problem
Because it means that either you're using a modified client, or you're somehow circumventing the permissions system
Ok, i said
@mild flume Can you take away my video perms real quick I want to test something. I think it might be some mobile bug.
Done
!voice @misty sinew If you're wondering why you can't talk, this should tell you what you need to know
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
https://media.ccc.de/v/35c3-10030-the_ghost_in_the_machine
An Artificial Intelligence Perspective on the Soul
Artificial Intelligence gives us a uniquely fascinating and clear perspective at the nature of our minds and our relationship to reality. We will discuss perception, mental representation, agency, consciousness, selfhood, and how they ...
Alright nvm I thought it might have been some weird mobile screenshare bug since they are on mobile.
Yeah not sure
Ok.
So, goodbye (vc chat)
Has it ever happened that you end up laughing at wrong moment in the meeting
yeap
Or the ever present meeting fart
pytest-dev ๐
!tvban 628010001922785319 2w Your giggling at me asking you to fix and check your mic makes me believe that you specifically intend to misbehave. I'm giving you the benefit of the doubt, and will give you an opportunity to correct you behavior after 2 weeks. If it does not improve by then, you will lose voice permissions permanently.
:incoming_envelope: :ok_hand: applied voice ban to @fluid fox until 2021-05-07 15:34 (13 days and 23 hours).
You were actively blowing into your mic
Then giggled when I asked you to fix it
@fluid fox Do you disagree with what happened? If so, you can send a DM to the ModMail bot.
lol ๐
๐
๐
version: "3"
services:
database:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres

@wintry sinew You also have yeethan, a true crime against humanity
Hello
Did you get to see the tren?
Good job
You must be so proud
YESSSS!!!

Next thing we know, you have been kidnapped by a herd of sheep
Huh
autospec=True brings my test execution time up from 0.001s to 0.010s
top and bottom ones are without autospec
middle two are with
hoard your sheep @raw wren
he shpeeks from experience
When did you last kidnap a sheeps child @wintry sinew ?
Did the medical inspection involve mint sauce?
No he is vco 
psycopg2
;-;
Don't get yer hopes up.
Python bot?
They sometimes speak actually.
So... what's everyone doing? ๐
Hello @coarse hearth how are you today?
Good
They might not be in the mood tbh ๐
Rough day lol to many people misbehaving
This must be sorely disappointing for you @wintry sinew
Just a small company

SpaceX is weirdly small in terms on number of people
Just alot of money
Generally engineering stuff
They got a contract to build the moon lander
For NASA's approach going forward
They are built to be easily able to deorbit
YEP
Yeap ๐
The sats are actually pretty cheap
They also get launched in clusters
Hence why SpaceX having reusable rockets is such a big thing
SpaceX's thing is rapid iteration.
They've been able to test them in orbit and improve them with each new set that are launched.
The biggest enviro impact is from rocket launch and from sky visual clutter
Nah Jake, I think they know what they're doing. If there were a more efficient approach, they would probably take it.
It is also already cost effective, if it weren't then the board would not have signed off on it
It's really pissing off astronomers though ๐
They've tried to make them less reflective.
But it still has an impact.
I mean the visual clutter debate is definitely interesting
They are high up enough that they can't really collide with planes.
They are low-down enough that they aren't likely to collide with other satelites.
All major objects in orbit are tracked
And if there's a problem, they passively de-orbit fairly quickly.
Yeah, NASA monitor objects down to 2 inches.
I mean clustersat launches have been a thing for decades
Even a paint fleck can cause a lot of damage at those speeds.
Yep, they use C basically without any heap.
So everything is on the stack.
They need to know that they wont get memory errors.
Funny you should say that... ๐
jack, i'm back
Speaking of memory issues
The famous error on the 1969 moon lander was actually caused by a lack of memory for calculations
IIRC it was a continually recurring calculation that was poorly coded and resulted in memory issues
@wintry sinew Repent


More study

Yep ๐
Cya Alec ๐
So Jake, are you going to give your TED talk now?
Idk...
Since you're the only person unmuted ๐
A TED talk about TED talks.
Yeah ๐
Guys, why are you all not talking in vc
Stanford have a nice short course online for SQL.
Don't feel comfortable.
I'm the single who talked in vc
@misty sinew we have found an answer
How do you know if the next update to your software is ready for hundreds of millions of customers? It starts with data. And when it comes to Windows, weโre talking lots of data. The Windows team measures the quality of new software builds by scrutinizing 20,000 diagnostic metrics based on data flow...
@stoic bluff thanks you
no problem
Biscuits
Nothing, i just wanted to eat biscuits.
ok
Really
Biscuits
nugget biscuit nugget in a biscuit
Yeeeeeeaaaaaaaass
Popeyes biscuits are lit
Yeeeeeeeeeeeeeeeeeeeeeeh
Jake, you might want to take a look at: https://www.edx.org/course/databases-5-sql?index=product&queryID=76fe808e10f9f331c1472dae90f62b75&position=1
This course is one of five self-paced courses on the topic of Databases, originating as one of Stanford's three inaugural massive open online courses released in the fall of 2011. The original "Databases" courses are now all available on edx.org.
This course provides an introduction to relational databases and comprehensive coverage of SQL, the ...
yum yum!
@hearty heath ๐ Don't know how long you've been here, but hallo
@stoic bluff why don't you have voice?
do you play any games?
it was taken
i only had bg noises from my end when talking
You were never actually talking
yup
It was only ever background noise
Not at all.
My younger brother plays it. He recently bought it.
Hallo ๐
I have a hard time getting into video games. I'm really bad at them.
!voice @stoic bluff
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
He knows why
read the previous messages
He'll be able to momentarily
then you know the reason
version: "3"
services:
database:
restart: always
image: mysql
ports:
- "5432:5432"
environment:
- POSTGRES_USER=mysql
- POSTGRES_PASSWORD=mysql
Wat
pyside6
@warm tendon what was the LIB you used for MySQL? Just so I have it.
aiomysql iirc
Ty!
I know the game of live
async DB as well
What to start learning after learning the basics in python
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
sup
Any Tutorials you would recommend for python bot
Jack, can we be friends ?
I am friends with everyone ๐
Omar, prove Harry have a Party
I said Biscuit, prove Harry have a Party
idk
He created a Party
how common are bikes in america?
idk, usa has a lot of big ppl, i dont think they even need bikes
time to make a wrapper
I know how you feel Rabbit. I can't even play first-person shooters without getting sick.
Third-person only...
Yep
Gives me a massive headache.
I wonder if car-sickness medication would work ๐ค
Probably but I donโt want to drug up to play VR
Fair ๐
I wish I biked more in the last few years. I used to be so skinny, but now I'm too fat.
like pedal bikes? Common transportation option for Kids and few adults in big cities, but not common for most adults, I bike but it's for fitness, not transportation
Oh, thats why you were up before I went to bed...
oops I meant motor-bikes
Cya Laund
!voice @hearty kelp
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Not that common and few people ride them for regular transportation. Most people ride them for fun, few people commute of them. Problem with riding motorcycles in the United States is everyone in a car is someone who can run you over
yea?
oh right!
remember, most Americans have driver licenses, many of them can't actually drive
true
?
!voice @brittle silo
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
In my country motor-bikes are very common
Trying to unmute you
in fact first car that I ever ride in was when I was 10 that's in 2011
now we do have more cars than bikes
aha ok
hello
Laugh(): print("I wan't to die") Laugh()
The Idea That Everything From Spoons to Stones is Conscious is Gain...
Sorry @elder ingot I can't speak
how can i get a lovefest role?
hi i started python a while ago and im 15 years old. i'm struggling a lot when teacher gives me homework or other stuff. is it normal or am i dumb?
from os import listdir
import os
for i in listdir('D:/programming'):
if (os.path.splitext(i)[1]) == '.php':
print(i)
@crude spruce
@stuck bluff
ty
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโ
Its normal.
Savage
lol
hahahaha'
Its not like that
I'm from India
If you had a bad experience in your childhood but that dosent mean everyone is samew
@tall monolith
yeah @crude spruce you right
๐ฅ
im 15 too lol
.
Python Crash Course:
In this video we'll be learning as much Python as we can in 5 minutes. (Well six actually ...)
Go to https://howcode.org for more!
Link to DigitalOcean: http://howco.de/d_ocean
Link to howCode Facebook: http://howco.de/fb
Link to howCode Twitter: http://howco.de/twitter
Link to /r/howCode: http://howco.de/reddit
Don't forget to subscribe for...
dont u have to pay for leet code or smth
Linux user
LOL @craggy quail
@misty sinew the question isn't super hard
send the example here
u dont need
regex
for that
use the .split tactics
agree
@craggy quail and give up cuz its too hard
@craggy quail expose me
i like ur accent wdym
chill
"""
Example 1:
Input: ["bella","label","roller"]
Output: ["e","l","l"]
Example 2:
Input: ["cool","lock","cook"]
Output: ["c","o"]
"""
stuff = ["cool","lock","cook"]
new_stuff = "".join(stuff)
counts = {}
for i in new_stuff:
counts[i] = new_stuff.count(i)
print(counts)
!e
"""
Example 1:
Input: ["bella","label","roller"]
Output: ["e","l","l"]
Example 2:
Input: ["cool","lock","cook"]
Output: ["c","o"]
"""
stuff = ["cool","lock","cook"]
new_stuff = "".join(stuff)
counts = {}
for i in new_stuff:
counts[i] = new_stuff.count(i)
print(counts)
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
{'c': 3, 'o': 5, 'l': 2, 'k': 2}
hmm
!e
"""
Example 1:
Input: ["bella","label","roller"]
Output: ["e","l","l"]
Example 2:
Input: ["cool","lock","cook"]
Output: ["c","o"]
"""
stuff = ["cool","lock","cook"]
new_stuff = "".join(stuff)
counts = {}
for i in new_stuff:
counts[i] = new_stuff.count(i)
max_ = max(list(counts.values()))
print(max_)
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
5
come to the voice chat ppl
!e
"""
Example 1:
Input: ["bella","label","roller"]
Output: ["e","l","l"]
Example 2:
Input: ["cool","lock","cook"]
Output: ["c","o"]
"""
stuff = ["cool","lock","cook"]
new_stuff = "".join(stuff)
counts = {}
for i in new_stuff:
counts[i] = new_stuff.count(i)
list(counts.values()).sort()
first = list(counts.keys())[0]
second = list(counts.keys())[1]
print(first, second)
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
c o
I have the answere
thx
you are just the fastest with those slick fingers of yours
thx, but im a slow typer lol
slick=smooth (if my english is broken
A moment of silence
rip it only worked for one test
i do have the link btw
i wonder smth:
!e
print(set("gg"))
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
{'g'}
it does work
...
!e
a = ["bella","label","roller"]
# Output: ["e","l","l"]
new_stuff = "".join(a)
counts = {}
for i in new_stuff:
counts[i] = new_stuff.count(i)
list(counts.values()).sort()
first = list(counts.keys())[0]
second = list(counts.keys())[1]
print(first, second)
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
b e
hmm
!e
a = ["bella","label","roller"]
# Output: ["e","l","l"]
new_stuff = "".join(a)
counts = {}
for i in new_stuff:
counts[i] = new_stuff.count(i)
list(counts.values()).sort()
new_list = list(counts.keys())
first = new_list[0]
second = new_list[1]
print(first, second)
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
b e
@verbal fjord can you tell me what is .key about
Hey whatโs being streamed?
list = ['a', 'b', 'c']
list2 = random.shuffle(list)
x = ' '.join(list2)
and the result for list2 is None
@vocal ivy
!e
import random
a = ['a', 'b', 'c']
random.shuffle(a)
print(a)
yeah, I understand, but how can I fix it or something? Because I need the list shuffled and joined
!e
import random
a = ['a', 'b', 'c']
random.shuffle(a)
x = "".join(a)
print(x)
it doesn't assign it to a new one
@leaden flare :white_check_mark: Your eval job has completed with return code 0.
bac
trieeeeeeeeeeeeeeeeeeeee
๐
In computer science, a trie, also called digital tree or prefix tree, is a type of search tree, a tree data structure used for locating specific keys from within a set. These keys are most often strings, with links between nodes defined not by the entire key, but by individual characters. In order to access a key (to recover its value, change it...
vs
which is general
versus specific
!e
dict_ = {"hello":"world", "1":4, "6":9}
print(dict_.keys())
tree implementation
@verbal fjord :white_check_mark: Your eval job has completed with return code 0.
dict_keys(['hello', '1', '6'])
awura
zxuรธlir
awurrra
Oui
NON
รถnerลbลl
ลk = they
@raven orbit these are the results of the first successful run
I'm happy
naiรง
I can combine these words


46818
134964