#voice-chat-text-0
1 messages Β· Page 1039 of 1
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
Good thanks! How about you?
Sorry to hear that mate, just left the vc
Neil deGrasse Tyson and comic co-host Chuck Nice are here (or are they?) to investigate if we're living in a simulation. We explore the ever-advancing computer power and how that impacts the simulation hypothesis. Chuck wonders if a simulation universe has anything to do with us not being able to travel at the speed of light. You'll learn about ...
Were heaven and hell to exist, they would be filled with feet.
The soles of the departed.
coffee
Hi
imagine the "afterlife" was future humans
to resurrect the pharoahs
like a cryochamber
That was the best chamber they could build. Their possessions were to prove that they were wealthy/worthwhile to bring back alive into the "afterlife".
and if you could, please get my 10000 servants
I already arranged my organs into nice jars for you
Yeah, taking the organs out of the body to preserve them and the body for as much time as possible.
They definitely believed they needed to preserve themselves and their organs.
I can't imagine how future humans would consider how primitive we are
this is too meta for humans
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
while True:
print('Enter a name: (blank to quit)')
something = input()
if something == '':
break
if something in birthdays:
print(birthdays[something] + ' is the birthday of ' + something)
else:
print('I do not have birthday information for ' + something)
print('What is their birthday?')
bday = input()
birthdays[something] = bday
print('Birthday database updated.')
print(birthdays)```
something
birthdays[something] = bday
bday = input()
something = input('Enter a name: (blank to quit)')
!e ```py
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
while True:
something = 'Alice'
if something == '':
break
if something in birthdays:
print(birthdays[something] + ' is the birthday of ' + something)
else:
print('I do not have birthday information for ' + something)
print('What is their birthday?')
bday = input()
birthdays[something] = bday
print('Birthday database updated.')
print(birthdays)```
birthdays[something] = bday
idk it think the only problem is something = input('Enter a name: (blank to quit)')
its getting the birthday of birthdays['Alice'] which is = apr 1
!e
my_dict = {'a': 1, 'b': 2}
print(my_dict['a'])
my_dict['a'] = 4
print(my_dict['a'])
print(my_dict)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 4
003 | {'a': 4, 'b': 2}
for element in birthday.keys():
print (element)
for element in birthday.values():
how have more than one in dict like my_dict = {'a': 1, 2, 'b': 2} or is that how?
!e
my_dict = {'a': 1, 'b': 2}
for (key, value) in zip(my_dict.keys(), my_dict.values()):
print(key, value)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | a 1
002 | b 2
!e
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
for element in birthday.keys():
print (element + " : " + birthday[element])
@upbeat leaf :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'birthday' is not defined. Did you mean: 'birthdays'?
!e py my_dict = {'a': 1, 2, 'b': 2} print(my_dict[a[0]]) print(my_dict[a[1]])
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | my_dict = {'a': 1, 2, 'b': 2}
003 | ^
004 | SyntaxError: ':' expected after dictionary key
how have multiple???
!e
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
for element in birthday.keys():
print (element + " : " + birthdays[element])
@upbeat leaf :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'birthday' is not defined. Did you mean: 'birthdays'?
!e
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
for element in birthdays.keys():
print (element + " : " + birthdays[element])
@upbeat leaf :white_check_mark: Your eval job has completed with return code 0.
001 | Alice : Apr 1
002 | Bob : Dec 12
003 | Carol : Mar 4
my_dict = {'a': 1, 'b': 2}
for (key, value) in zip(my_dict.keys(), my_dict.values()):
print(key, value)
!e py my_disct = {'Alice': ('hello', '2')} print(my_dict['Alice(1)']
!e py my_disct = {'Alice': ('hello', '2')} print(my_dict['Alice(1)'])
!e py my_dict = {'Alice': ('hello', '2')} print(my_dict['Alice(1)'])
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | KeyError: 'Alice(1)'
!e my_disct = {'Alice': ('hello', '2')} print(my_dict['Alice'[1]])
!e
my_dict = {'Alice': ('hello', '2')}
print(my_dict['Alice'][1])
@upbeat leaf :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'tuple' object is not callable
!e
my_dict = {'Alice': ('hello', '2')}
print(my_dict['Alice'][0])
@upbeat leaf :white_check_mark: Your eval job has completed with return code 0.
hello
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print(f'gold: {my_dict['inventory'][0]}')
003 | ^^^^^^^^^
004 | SyntaxError: f-string: unmatched '['
!e py my_dict = {'inventory': ('10', 'sword'), 'stats': ('100', '200')} print(f'gold: '+my_dict['inventory'][0]) inventory_item = 0 for item in inventory - 1: inventory_item += 1 print('item: '+my_dict['inventory'][inventory_item]) print('health: '+my_dict['stats'][0]) print('food: '+my_dict['stats'][1])
@whole bear :x: Your eval job has completed with return code 1.
001 | gold: 10
002 | Traceback (most recent call last):
003 | File "<string>", line 4, in <module>
004 | NameError: name 'inventory' is not defined
@whole bear pls mute yourself
sorry
i didnt realize
how do i set a string to a list if its in the right order of how a list is
list() just adds '', to each letter in it
idk much about python but i believe you can use loop to actually do that
or there might be some predefinedfucntions for that
AAPL Market Cap is 2.25T vs MSFT 1.94T
i just asked a question then stopped talking bro not like i was actively talking over him
and no one heard it, so just wait π
It's harder to go bankrupt as software company though
since you can severely cut costs but still exist. Hardware companies need a good amount of cash flow to buy devices
people who crack softwares : π
and if that cashflow stops, you can't buy more hardware and fail
π
but someone got to make hte hardware
π
I'm just speaking for business point of view
Microsoft never got close to bankruptcy because it's hard to go bankrupt if you are selling software.
Where Hardware can easily push you into bankruptcy
Learning Linux on the desktop does nothing for Linux as a server
πΆ
do you have any course to learn linux as a server?
Nope
oh ok
email = ''.join(random.sample(string.ascii_lowercase, random.randint(5, 20)))+data[random.randint(0, 9)]
data = ['@mailkept.com', '@promail1.net', '@rcmails.com', '@relxv.com', '@folllo.com', '@fortuna7.com', '@invecra.com', '@linodg.com', '@awiners.com', '@subcaro.com']
print(hello)
πΆ
as 10 years Windows person, I can go deep into inner working of Windows and some of bullshit
!e py pin = '' prin = 'hello world' for item in prin: pin += item print(pin)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
hello world
!e ```py
pin = ''
prin = 'hello world'
for item in prin:
pin += item
pin = pin.encode('utf-8')
pin = pin.decode('utf-8')
print(pin)```
@whole bear :white_check_mark: Your eval job has completed with return code 0.
hello world
is the tft 2 coconut.jpg a real thing
where
how can this jpg picture can crash one entire game
I found on google this
The coconut image first gained attention in the game's community when a person discovered it and posted it to Reddit in September 2020. Sure enough, the coconut picture can be found if you dig through the game's files, it can be found inside of a βtf2_textures_dir. vpkβ file under the name βcoconut. vtf.β
actually no
so that was just a hoax
yep
yea it dosent do like for every code tab that says fix that or that, that why many people use python and not other coding programs
yea
i need to go bye
cya
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-6: character maps to <undefined>
with open('test.txt', 'wb') as e:
for _ in range(1):
e.write('δ½ '.encode('utf-8'))
@south bone did you actually add a breakpoint?
@somber heath how i usually debug my code o- o
pdb just works
and its simple to use
have you tried ipdb
i have but i prefer the builtin one π€·ββοΈ as its usually enough for me to work out what i need
yeah ipdb just has small extra things like syntax highlighting and stuff
nothing crucial
and the ipython interactive mode if you want that
i have yet to figure out how to finish all iterations of a loop tho
docs say to use u but i don't think that's ever worked for me
think u is to pop 1 thing off the stack right?
don't think its to out of a loop
you can use until with the line number aftet the for loop tho that's 1 way to do it
Get Ubuntu Server one of three ways; by using Multipass on your desktop, using MAAS to provision machines in your data centre or installing it directly on a server.
[commit]
gpgsign = true
@supple marsh you can add this to your git config if you always wanna autosign commits
@somber heath good morning mate
hi
@somber heath you sound really tired today man compare to other day you ok
@supple marsh https://git-scm.com/book/en/v2/Git-Basics-Tagging
@somber heath i will go study now c ya later
bye bye guys
yes I thought u was short for until?
ah its not
oh lol
you can just write your breakpoint() inside of an if statement
yeah I've done that
what i end up doing alot is <condition> and breakpoint() to keep it on the same line
so i can later just use sed to remove the lines with breakpoint in them
or if i have vim open i can just do a simple :%s/.*breakpoint().*\n//
@steady token @pseudo kite If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know. If you've been told this before, sorry
@urban summit Scratching out an example, I think I have it
Oh well, huh
It straight up says that you can't copy worksheets between workbooks
So you'd have to manually copy it out that way. Hmmm.... Actually, @vivid palm do you know off hand if there's a way to copy worksheets between workbooks with pandas?
@rugged root everyone was mutted and still had some voice in the channel
sure you'd have to open both workbooks
#help-avocado if you're willing to help him out
You're normally at work by now, ja?
thats cute
this is not
Size of a softball.
now this is damn cute
"I vant to suck your fluff! Uwu!"
excuse me?????????????????????????????????????????
nope
You're missing context
True dat
a kick neck pokemon
@vivid isle Check out the #voice-verification channel. That'll tell you have you need to know about the voice gate.
OHH THX BUDDY...
@vivid isle hello, please see... oh xD haha, yes, that
Have to do it in #voice-verification
You can always join and listen to voice, but you must verify to be able to speak......howwwwwwwwwwww
If birds lay eggs, do pegasi lay eggs or give birth?
you guys funny hahah
Contribute to the conversation via text here, or check out the other various channels
ohh alright alright
@whole bear What's your question
Alrighty. Let me know if you need anything
Racism and antisemitism?
i am unable to connect my lavalink using my vps ip ( azure) but working fine on digital ocean vps .. but i wanna connect it to azure..
I'm not sure how the world would handle Jason Momoa in Speedos.
There's not enough water to quench the thirst of those who would see him in a Speedo
wooooh, what was going round here?
anyone ?
in which channel btw ?
thats a weird looking gopher
this one looks better
Which of the two
!voice @vivid isle
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
help question?
Shoot
Write a function that takes a non-empty array of distinct integers and an integer representing a target sum. If any two numbers in the input array add up to the target sum, the function must return them in the output array, in any order. If no pair of numbers in the input array add up to the target sum, the function must return an empty array.
Note that the target sum must be obtained by summing two different integers from the array, you cannot sum an integer with itself.
You can assume that there will be at most one pair of numbers adding up to the target sum.
input example
array = [3, 5, -4, 8, 11, 1, -1, 6]
targetSum = 10
Output example
[-1, 11] // can be in reverse order
This for class or something?
yes
We can help you if you're stuck, like help clarify something if you're not quite understanding it or explaining a concept, but we won't do it for you
So what part are you stuck on
@lavish rover https://www.amazon.com/gp/product/B091D6F3JP
@keen pilot So what part are you stuck on
I don't know how to go through this
cycle through items
I do not speak English very well
All good. Trying to figure out a way to explain it without spoiling it
both
you guys use irc?
i found something dope
Was my mic quiet?
nope, just too many people talking
hi iam back hehe
All good. Just checking
natural selection?
@rugged root
a sadness has occurred
@cursive spoke we usually chat here
i cant see your stream
there is nobody streaming
nice
im new on this server i have to do the tasks for voicechat
@analog barn you can start a business anytime
whats the exclusivity of your programm
@analog barn ok go on
@gentle flint dude poor boy dont tear him appart π
k
hi @quaint oyster
mustafa i was taking a shower and i looked down and saw that my body wash was made in canada
so i feel like you should know that i was thinking about you naked in my shower
@cursive spoke I have confirmed that messages sent in the voice chat text channel thing (the integrated one) do NOT count towards your total yet. It's a limitation in discord.py that will be fixed whenever there's an update
ah no problem thx π @rugged root
Did someone say devops?
no.
Embrace devops!
no.
Now! 
This is a very detailed video on how you can reopen any closed dms/messages on discord using my app called Friendcord.
Currently, Friendcord only works on Windows devices.
My discord server: https://discord.gg/xxGSSpD4Ad
My discord tag: hacksick#6715
I really like developing great software like friendcord and it would mean a lot if you could ...
Friendcord Server
https://discord.gg/ENz8jgSB4G
Please join if you have any further issues or questions.
Grid computing is the use of widely distributed computer resources to reach a common goal. A computing grid can be thought of as a distributed system with non-interactive workloads that involve many files. Grid computing is distinguished from conventional high-performance computing systems such as cluster computing in that grid computers have ea...
specifically this
@rugged root - What do you think of my work of art? Chris approves
bot#2207
no trolling on the hub@!!
Yeah, I need to find a Linux one
Adafruit Industries, Unique & fun DIY electronics and kits : - Tools Gift Certificates Arduino Cables Sensors LEDs Books Breakout Boards Power EL Wire/Tape/Panel Components & Parts LCDs & Displays Wearables Prototyping Raspberry Pi Wireless Young Engineers 3D printing NeoPixels Kits & Projects Robotics & CNC Accessories Cosplay/Costuming Hallow...
Adafruit Industries, Unique & fun DIY electronics and kits : Shipping & Returns - Tools Gift Certificates Arduino Cables Sensors LEDs Books Breakout Boards Power EL Wire/Tape/Panel Components & Parts LCDs & Displays Wearables Prototyping Raspberry Pi Wireless Young Engineers 3D printing NeoPixels Kits & Projects Robotics & CNC Accessories Cospla...
network adapter
@rugged root Umm it needs to disabled firewall to connect 1 vps to another ?
1/r1 + 1/r2 + 1/r3... @analog barn
or R = V I for resistance
resistor set
capacitor set
diode set
transistors (optional, useful when you are getting into more advanced stuff)
relays (5 should suffice)
led lights (always interesting)
solderless breadboard like the one in the kit you posted
male-male and male-female jumper wires, about 20 of each
buttons can be fun depending on the project
from a prank interview featuring the cast of the lord of the rings movie franchise
do you wear wigs? have you worn wigs? will you wear wigs? when will you wear wigs.
I dont understand what is wigs
a hair thing you put on your head so it looks like you have different hair
oh
A wig is a head or hair accessory made from human hair, animal hair, or synthetic fiber. The word wig is short for periwig, which makes its earliest known appearance in the English language in William Shakespeare's The Two Gentlemen of Verona. Some people wear wigs to disguise baldness; a wig may be used as a less intrusive and less expensive al...
yea a remember
it just i didnt understand a word because a dont speak that to many of English, and because a not from US or UK
ah
man i just realize how many roles have admin
i think its from period when was like a dinasty of china but a forgot, i found a Qin dinasty
Maybe just one artist really bad at recreating the same face
and what is interesting that statues are still not borken or something
this remind of statues in US of US presidents
i cant
@rugged root I can't even get my printer to work u are much smarter than me
@rugged root I can't even get a wife
us :>
ok now budy you a litle go far
computer engineering > computer science
I'm not humble I'm just stupid
I cant get girlfriend
and i can't get my girlfriend to stay
what do you mean
wemen are eViL
heat goes here goes there ease
idk my gurl maybe playes me for fun lel
o
yesZ
I've been building things for as long as I can remember. It all started when my dad exposed me to plastic model building and soldering when I was around 4 years old. That set me on a path to building increasingly complex things and becoming an engineer. My goal is to do the same for as many people as possible by exposing them to the joy of engin...
i dont know who said that is studying enginiring but a made a Lego cannon whit motor and instead to go to shot foward its started to fire backward
this huy is tooo genious
jake is in AFK just like quiet kid
I have been working on this board for over 3 years. Super pumped to finally share it with all y'all.
Here is a link to some of the software we wrote: https://www.dropbox.com/s/rlmhdjoqzyumme1/darts.zip?dl=0
MUSIC-
0:08- I'm so- Andrew Applepie- http://www.andrewapplepie.com/
0:37- Cereal Killa- Blue Wednesday - https://soundcloud.com/bl...
@rugged root most scariest is cannon punch when she explode it damange ear
Nuts are the soft spot
ayo
Check out https://KiwiCo.com/StuffMadeHere and get 50% off your first month of any crate!
Get merch, support the channel: https://stuffmadehere.shop
Help support these videos on patreon: https://patreon.com/stuffmadehere
I've been waiting for the crossover episode between my explosive bat and a nut cracker for over ...
wait @whole bear what you need to study for biology informatic what you said
my major is BS Biotechnology which is basically multidisciplinary and then yo can choose from there
o
you can also just do your undergrad in Bioinformatics directly too
well that makes sense
what were the requirments to get in that ?
like for an undergrad?
yes
@dense ibex You're kind of quiet
@rugged tundra voice reminds of Philza minecraft voice
well we study Alevels (cambridge high school thingy) and my subjects were biology, chemistry and physics so
you can also get in with biology, math and a third subject
Philza Hardcore
Lemme show you why they call me Dr. Philz you up
what about thiojoe 
did you like have to have A+ for all those?
y
nope haha i had a B, B, C, but like for a good uni you'll probably need 3Bs
hmhmhmhmhmh
okay
Noted
because when a went from Serbia to Canada (Qebec) to my sister ,and when a was there us two went to one cafe and guy asked on french and a was like ,, Wait how is here French when there all speak English "Then a remebered that in Qebec 50 % of population speaks french , and a didnt remebered that because a had D in geographyπ
The Tech Lead
Add your subscription
@quasi condor Yo
seems more like a you problem than a Quebec problem tbh
agreed
Canadas official languages are english AND french so
yes and biger problem was when a said : Jednu kafu i limunadu ,, then he was like whe was stoped working ,like he hear for first time serbian
and not a single one of their indigenous languages, to my frustration
Name one colonized country that favors their indigenous language
New Zealand
Australia
Its insanity
Philippines kind of? Although I guess probably not
the fact that they dont. We fought colonization with so much vigor and yet we're still slaves to the colonizer mindset, atleast my country is sadly
which country is that
well philippines was captured 1 by spain then by USA the by Japan and again by USA
well Im from Kashmir so I cant really say Im from one country since its a disputed territory and here even though the official language is urdu AND english, preference is given to english
True, but isn't Tagalog still the primary language?
but street sigs are in Urdu
people speak in Urdu
This is coming from ignorance, I'm not actually sure
and theres an unspoken bias towards english speakers, theyre seen as more uh educated or yknow
barely
but i get your point definitely, in canada its non existent mostly
If you go to Quebec, you wil not see Mi'kmaq street signs
no, contrasting their existing knowledge of their country with their opinions about another country
in Bosnia you need to know 3 laungens
Ah
which ones?
yo i never disagreed, youre right in what you said
Srpski , Hrvatski i Srpskohravtski
Serbian , Crocatian and Serbia-Crocatian
Back in a sec, have a weird charge on my debit card.
bosanski?
ne on nepostoji
o
to je samo srpskohrvatski
Bosanski jezik je juΕΎnoslavenski standardni jezik zasnovan na Ε‘tokavskom narjeΔju koji koriste uglavnom BoΕ‘njaci, ali i znaΔajan broj ostalih osoba bosanskohercegovaΔkog porijekla.
Bosanski je sluΕΎbeni jezik u Bosni i Hercegovini, uz srpski i hrvatski, u Crnoj Gori jedan od sluΕΎbenih, a regionalni, odnosno priznati manjinski jezik u Srbiji (Sand...
Well look at that a didnt even know that he was made
a only knowed that they speak serbia-crocatian
and syria launge
with that approach you can say that all languages spoken in former Yugoslavia are just dialects of the same language
well a dont know for that yugoslavia
except slovenian because that is quite different
yea
and I suppose Macedonian because they don't have a case system
serbia-montenegro?
well if you ask me my country is unstable
because of kosovo and muslim problem
in vojvodina
you could say the same for North Macedonia
with Albania and Bulgaria
I think 25% of their population is ethnically Albanian
there are always issues all over the place
it is what happens when you draw random lines
and say "this is now a country"
without regard to which people are living where
this is massively political on my part but arent the lines sometimes needed?
yes
sure
but you can also base it on groups of people
!voiceverify
you need to do in chanel called voiceverify
Yayyyy my debit card is compromised
it above of voice 0
as an example, take a look at these borders
Wheeeeeeee
they were literally drawn with a ruler
well shit
"this is now ours, this is now yours"
oh no
okay this is crazy
it actually blame on french and UK
Kind of reminds me of tangrams
it led to a very long war
which has been running since the '70s
whos fighting for what?
like argetina and UK
ahh i see
so those people formed an organisation, called Polisario
when was in 60 and 70 colonise whent free war outraised betwen UK and French
which has been fighting a war against Morocco since the 70s
so we have algerba borders
What is the command to press Ctrl+a and Backspace in pyautogui?
Polisario is backed by Algeria and Mauretania
Morocco is backed by, if I remember correctly, the USA
and several others
The Western Sahara conflict is an ongoing conflict between the Sahrawi Arab Democratic Republic/Polisario Front and the Kingdom of Morocco. The conflict originated from an insurgency by the Polisario Front against Spanish colonial forces from 1973 to 1975 and the subsequent Western Sahara War against Morocco between 1975 and 1991. Today the con...
hey noodle why is your picture profile so...
so....?π
I see that ....kinda
crazy absolutely insane
Western Sahara War against Morocco between 1975 and 1991. Today the con...
1991 yugoslavia be like lets split gang
Polisario would love to split
not everyone else would
yea
a reget going in scholl
on last week
because when a learn History they make circle like they want to summon demon in me a they ask will you talk about WWI just because you know that ,do you know have much presure a get
can't follow, sorry
I hear an owl
smaller version of New York in China
Harry Poter is near
like irl?
Well this is concerning
lucky you
Give it some chicken
did you hear it
There absolutely ARE things running
yessss
I hear 4 kittens and 5 cats and one 1 dog , like am a some type of zoo
......how even
well wow
I just don't know
lemmi hear that \
Dude am not voice verifyed
y not
a need to send like 50 mesages, and its not ,and a will not talk because am
@amber raptor
i mean u typed a lot today
you have 135 already
try running the command again
it worked
Process Hacker, A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware.
yay
yes but a will not talk because am 14 and you all are older ,that why
weakling
brb
but am like in morning online
ita 3am here
no you dont understand a live in serbia
now its dark
a need to go
bye
i hab more friends in serbia its 11 in ur place ig
yes
i am-
later!
this is a pipe
MR. MIYAGI - Vodka, blue curaΓ§ao, melon liqueur, amaretto, fresh lemon juice, pineapple juice
Honestly all of their drinks are pretty solid
i gtg guys. Catch yall later!
Hey @whole bear!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
count = {}
for character in message:
count.setdefault(character, 0)
count[character] = count[character] + 1
print(count) ```
What does this do>
smh
!e
for i in range(10):
globals()[f'foo{i}'] = lambda: print(i)
foo0()
foo1()
foo2()
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | 9
002 | 9
003 | 9
!e
for i in range(10):
def bar():
print(i)
globals()[f'foo{i}'] = bar
foo0()
foo1()
foo2()
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | 9
002 | 9
003 | 9
!e
for i in range(10):
globals()[f'foo{i}'] = lambda i=i: print(i)
foo0()
foo1()
foo2()
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
!e ```py
def factory(i):
def f():
return i
return f
a = factory(5)
b = factory(6)
print(a())
print(b())```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 5
002 | 6
!e ```py
def factory(i):
def f():
print(i)
return f
for i in range(10):
globals()[f'foo{i}'] = factory(i)
foo0()
foo1()
foo2()β```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
It's 8am @terse needle
charlie, it's 8am
Why are you awake at 8am
I have been awake since 6:30
Grim
yeah, I just wake up a weird times
tbh it's not a weird time at all
I just have a sleep schedule
That's absolutely a weird time for someone with no work or school to get up
you're just mad you can't wake up at that time
shut up
just shut up
I was going to leave but now you have said this I am staying here
There's nothing wrong with it - it's just surprising
its a bass capybara
and Musican of this year is Capybara
hi opals~
!e ```py
from random import shuffle
a = [1, 2, 3, 4, 5]
b = shuffle(a) #in place
print(a)
print(b)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [5, 2, 3, 4, 1]
002 | None
!e py things = [1, 5, 2, 4, 3] a = things.sort() print(a) print(things)
a_variabl = print('hello world')
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | None
002 | [1, 2, 3, 4, 5]
!e py things = [1, 5, 2, 4, 3] a = sorted(things) print(things) print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [1, 5, 2, 4, 3]
002 | [1, 2, 3, 4, 5]
On in a moment
!e
list = [1, 2, 3] #instance of a class
@main vault :warning: Your eval job has completed with return code 0.
[No output]
Hey @rugged root
id(a_list.sort()) != id(a_list)
e!
!e
a_list = [1,2,3]
id(a_list.sort()) == id(a_list)
!e
a_list = [1,2,3]
id(a_list.sort()) == id(a_list)
@main vault :warning: Your eval job has completed with return code 0.
[No output]
!e
ham = [1, 2, 3]
bacon = ham
spam = ham[:]
print(ham is ham)
print(ham is bacon)
print(ham is spam)
pork = ham.sort()
print(pork)
print(ham is pork)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
003 | False
004 | None
005 | False
Spam ham bacon spork! Wroarrgh!
Wait why python says that Triangle is not defined
pg.display.set_caption(Triangle)
NameError: name 'Triangle' is not defined
Has class Triangle either been imported from a module or otherwise been defined?
I actually set code pg.display.set_mode
from somemodule import Triangle
#or
class Triangle:
...```
!e
ham = [2, 3, 1]
pork = sorted(ham)
print(ham)
print(pork)
print(ham is pork)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | [2, 3, 1]
002 | [1, 2, 3]
003 | False
!e
ham = "bacon is dope"
ham[0] = "h"
@rugged root :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'str' object does not support item assignment
!e py text = "apple" print(id(text)) result = text.upper() print(id(result)) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 140155604738928
002 | 140155604739696
003 | APPLE
This is probably a bad example for technical reasons, but we can pretend.
2.342
One sec
hi
!e py a = "abc" b = "abc" print(id(a)) print(id(b))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 140101502977200
002 | 140101502977200
i may broke the code
!e
num = 1
print(id(num), num)
num += 1
print(id(num), num)
num -= 1
print(id(num), num)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | 140087047651568 1
002 | 140087047651600 2
003 | 140087047651568 1
import shutil
shutil.copytree("drive1", "drive2")
that will be $200 thanks
can u write the software and tell them u bought it online for $XYZ
LemHock Code Industries
here is picture of i said , i waned to make like piramide but ended like A but side ways
@somber heath stealing my idea
hi everyone
Heyoo
But who is Karen?
This has not aged well
its kidna look like printer
Give it a bit. Well, I mean, it arguably already has been.
From the moment we started sending up satellites, that was pretty much it.
tesla roadster floats by
Though Starlink would be a fairly egregious blight on things.
that just reminds me of zelda
Which linter is the best linter in your humble opinions?
Py what
whats the difference between a formatter and a linter
Duct tape (also called duck tape, from the cotton duck cloth it was originally made of) is cloth- or scrim-backed pressure-sensitive tape, often coated with polyethylene. There are a variety of constructions using different backings and adhesives, and the term 'duct tape' has been genericized to refer to different cloth tapes with differing purp...
all that was about π©
i totally missed it
pfffft
ooh
that's actually pretty interesting
steakchipcarrot, I remeber from video on YT but i forgot which one
oh it looks like this?
Software design patterns help developers to solve common recurring problems with code. Let's explore 10 patterns from the famous Gang of Four book and implement them with JavaScript and TypeScript https://fireship.io/lessons/typescript-design-patterns
#programming #compsci #learntocode
π Resources
Learn more from Refactoring Guru https://refa...
Observer texture.
"The observer method is a Behavioral design Pattern which allows you to define or create a subscription mechanism to send the notification to the multiple objects about any new event that happens to the object that they are observing." the Behavioral design Pattern sounds intriguing to me
I need to go bye
bye
@main vault https://www.youtube.com/c/arjancodes
On this channel, I post videos about programming and software design to help you take your coding skills to the next level. I'm an entrepreneur and a university lecturer in computer science, with more than 20 years of experience in software development and design. If you're a software developer and you want to improve your development skills, an...
i like the content. ty for sharing!
No problem! I love this channel.
Man I go to take care of some work stuff and everyone bails
Haaay
Hey @dense ibex!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
@amber raptor Do you typically just write PowerShell scripts in VS Code? If so any particular extensions other than the PowerShell one?

Nope, just Powershell extension is best
Sounds good
@lavish rover You're quietish.
sorting algo?
Ignore the red, white blue. Just think 0 1 2
Corey Schafer, Youtuber, playlist for Python beginners.
Heading out for deliveries, I'll hop on in the van
LMAO
python uses tim sort which is a combination of insert and merge
@rugged tundra I am stealing ur about me content
thanks
what deliveries tho?
I'm assuming paperwork
The windows registry feels like it's patched together
Like dare touch anything on it and everything breaks
Eh, who even needs clean code? I'm still trying to get things to work.
im saying bro...
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Trying to get this into JSON using JavaScript, and it is slow going
https://paste.pythondiscord.com/bicaruleku
clean code is a social construct
it doesn't like the # in the first two lines of the TSV
Little Caldwell Island
43.932566, -69.289216
exact location ^
loooooove mackerel

Condolences
thank you
working on some typescript projects: trying to convert NDBC data from TSV to JSON.
Specifically this https://www.ndbc.noaa.gov/data/realtime2/44032.txt
Sony industry-leading noise cancellation evolves to further immerse you in your music. The addition of Sony proprietary HD noise canceling processor Qn1 masterfully eliminates the noise around you. Listen all day with up to 30 hours of battery life. Quick charging gives five hours of playback wit...
is there a difference between the built in websockets python library and FastAPI?
the name FastAPI is really deceiving
makes me think it's some sort of requests library alternative
welp mb I just realized and im stupid
NoRoot Firewall
Back in a sec
back in a bit
back in a jiff
@amber raptor Is robocopy just for files? I'm needing to take whole directories and scoot them
Click the link to get a sweet deal on the awesome Raycon earbuds:
http://www.buyraycon.com/ozzyman
Here's me commentary on a collection of gender reveal fails.
Support me channel monthly with a paid subscription: https://www.youtube.com/channel/UCeE3lj6pLX_gCd0Yvns517Q/join
Shirts Available HERE:
https://teespring.com/stores/ozzymanreviews
S...
i am building
a bot on discord
that control
my gba emulator
but the entire discord can control at the same time
@rugged root
Oooo
Do the ones in that generation move on a grid?
yes
Main reason those worked for like Twitch Plays was because of that
Oh then yeah, that'd work
:]
Directories are files
Just read the documentation and play with it using test data.
Right right.
I just didn't realize that a directory was considered a file in that case
It wasn't overly explicit in that case
karen?
charon
ok
cool
It's got a bunch of goofy flags, it will require you to sit down with documentation, cmd line window and FAFO
bye
@pearl forge If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate system
rubber baby buggy bumpers
One smart fellow, he felt smart
tres mafagafos subiram num ninho de mafagafinhos quem desmafagafar o ninho de mafagafinhos bom desmafagafador sera
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
the most smart animal is the the
Make a class for a car:
It will need to be able to store the make, the model, the year, the gas mileage and gas capacity. You'll want it to be able to give you details about the car via a method.
You'll also want a method to calculate how much gas it'll take take to go a provided number of miles based on the gas mileage.
Added bonus, calculate how many stops for gas you'll need to make for a given distance, assuming we go from a full take to no gas left between fill-ups
!e
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hi! I'm {self.name} and I'm {self.age} years old. My favorite subject is {self.favorite_subject}.")
sally = Student("Sally", 8, "science")
billy = Student("Billy", 7, "math")
sally.introduce()
billy.introduce()
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | Hi! I'm Sally and I'm 8 years old. My favorite subject is science.
002 | Hi! I'm Billy and I'm 7 years old. My favorite subject is math.
Student.introduce(sally)
!e
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hi! I'm {self.name} and I'm {self.age} years old. My favorite subject is {self.favorite_subject}.")
sally = Student("Sally", 8, "science")
billy = Student("Billy", 7, "math")
print(sally.name)
print(billy.age)
sally.introduce()
billy.introduce()
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | Sally
002 | 7
003 | Hi! I'm Sally and I'm 8 years old. My favorite subject is science.
004 | Hi! I'm Billy and I'm 7 years old. My favorite subject is math.
class Car:
def __init__(self, company, model, gas_capacity, gas_mileage):
self.company = company
self.model = model
self.capacity = gas_capacity
self.mileage = gas_mileage
def gaspermile(self):
@lavish rover sorry to @ you but do you think we could set up a time to go through the serenityOS project? I think it would help me develop my understanding of operating systems.
I'm pretty busy for the next few weeks, I won't be able to do this. I'd recommend checking out Andreas Kling's youtube channel and the serenity discord though. The code is also always open and very readable IMO.
Fair thanks anyway
if anyone else was interested I found this video by Andreas Kling particularly helpful https://www.youtube.com/watch?v=NpcGMuI7hxk
Serenity is open source on GitHub: https://github.com/SerenityOS/serenity
Follow me on Twitter: https://twitter.com/awesomekling
Support Serenity on Patreon: https://www.patreon.com/serenityos
Sponsor me on GitHub: https://github.com/sponsors/awesomekling
Donate via Paypal: http://paypal.me/awesomekling
Serenity is a Unix-like operating system ...
@whole bear If you're wondering why you can't talk, check out #voice-verification. That'll tell you what you need to know
thanks
In the meantime before you're verified, you can always talk with us here
Typically if we're in VC, we'll be watching the text channel paired with it
Note, I mean this one rather than the built in one that comes with a voice channel
There's still some kinks we're working out. Messages sent via the voice chat text chat thing aren't counted toward message total for the purpose of verification
Will be fixed soon, but currently still an issue
fix it by getting rid of the build in one
I can't
force everyone to use a modded client
You can't disable it, the perms aren't granular enough
that's ridiculous from Discord
didn't eralise
can you disable everyone from being able to send messages in there?
Send yeah
But at the same time I want people to use it eventually. Oh, and even better
You have to set the perms per channel
You can't do it globally
Nor can you do it via category perms
I want people to use it eventually
booo
lol
I know
Eventually
There's lots of quality of life things they desperately need to do.
My suggestion would be disable send permissions and just have a big ole message from @wise cargo telling people to use here - and eventually when it gets better enough, flip it
Have to do it in the #voice-verification channel specifically
You should be able to check your count by doing !user in the #bot-commands channel
You are not allowed to use that command here. Please use the #bot-commands channel instead.
all good
And no, that doesn't work, as we typically extend the required amount of time by 2 weeks if people are just trying to spam their way to getting verified
Should be able to verify now, yeah
You just have to do the command again in #voice-verification. You might have to swap channels and come back or disconnect/reconnect in order for the permissions to kick in
whut??
@dense ibex keep that up and Iβm voting to cut your education funding.
do it, so I have an excuse to do shit in school
Sorry, trapped talking to one of the partners
Still here
@whole bear How's the class thing goin'
Oh hey
Its pretty good
class Car:
def __init__(self, company, model, car_capacity, gas_tank):
self.company = company
self.model = model
self.capacity = car_capacity
self.tank = gas_tank
def getstats(self):
print(f"\nYour car is made from {self.company} and is a model {self.model}.")
print(f"\nThis car can contain {self.capacity} people. It can also contain {self.tank} gallons.")
def distance(self, speed, time):
print(f"\nThe distance traveled will be {speed * time} miles.")
from gas import Car
tesla = Car("Tesla", "3", 5, 16)
tesla.getstats()
tesla.distance(50, 100)
tesla.getstats()
async is a just a feature in general
Coroutine is just a fancy name for async functions I forgot if I said that already.
response = await api_call_thingy()
Jake, you're on the quiet side.
So much lag, must jet... π΄ π π€
Carbonated fluids up the nose? Fun for the whole family, right there. π«
That'd clear out your sinuses
I have a snake game ive made using pygame and i have an issue where when you click a button on the keyboard it does what it turns, but if click two buttons at once it will just throw the game
def keys(self, event):
if self.length > 1: # If snakes length more than 1, run this
# Turn depending on key press
if event.key == LISTOFKEYS[0] or event.key == LISTOFKEYS[4]:
if self.dir == DOWN: return
else: self.dir = UP
elif event.key == LISTOFKEYS[1]or event.key == LISTOFKEYS[5]:
if self.dir == UP: return
self.dir = DOWN
elif event.key == LISTOFKEYS[2]or event.key == LISTOFKEYS[6]:
if self.dir == RIGHT: return
self.dir = LEFT
elif event.key == LISTOFKEYS[3]or event.key == LISTOFKEYS[7]:
if self.dir == LEFT: return
self.dir = RIGHT
else: # If snakes length is less than 1, run this
if event.key == LISTOFKEYS[0] or event.key == LISTOFKEYS[4]: self.dir = UP
elif event.key == LISTOFKEYS[1] or event.key == LISTOFKEYS[5]: self.dir = DOWN
elif event.key == LISTOFKEYS[2] or event.key == LISTOFKEYS[6]: self.dir = LEFT
elif event.key == LISTOFKEYS[3] or event.key == LISTOFKEYS[7]: self.dir = RIGHT
I'm still looking at it
ty
night π
gn
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
What's the problem again?
Gotcha
I haven't done any Python in a while so I'm shaking off some rust haha
Unintentional pun :P
hello everyone
The status type (playing, listening, streaming, watching) can be set using the ActivityType enum. For memory optimisation purposes, some activities are offered in slimmed down versions:
Thx
Sheep schedule.
New Zealand wool has a deserved reputation for quality.
I've worked some and it's just a pleasure.
gtg
frog kkkkk
same gtg
!if-name-main
if __name__ == '__main__'
This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.
Example
# foo.py
print('spam')
if __name__ == '__main__':
print('eggs')
If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:
# bar.py
import foo
If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.
Why would I do this?
β’ Your module is a library, but also has a special case where it can be run directly
β’ Your module is a library and you want to safeguard it against people running it directly (like what pip does)
β’ Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test
thanks
Misplacer beast
@gentle flint You ever use one of these?
SCART
Good! How's the fam
My sister seems to already be sick of me π
We're going to a horse farm or who knows what
Make sure you pick up some glue while you're there
I think I know where you're getting at with that, but I really hope not
can I use Selenium in Discord ?