#voice-chat-text-0
1 messages · Page 1020 of 1
is pure sql ?
sqlite3
This is the one that I am trying to do rn. How can I assign a number to a letter in a loop?
@rugged root - So are you thinking you're going to close auto_guild#4 and update it differently instead?
I'll be back
gl with work everyone
@rugged root thx u for the help I might head out. Have a nice day all of u ❤️
You as well
@gilded rivet Damn it, just missed you
@old pecan :x: Your eval job has completed with return code 1.
001 | File "<string>", line 6
002 | if (serialCodes[0]=="A")
003 | ^
004 | SyntaxError: expected ':'
https://github.com/gamingbuddhist/import-python @mild quartz
!e import numpy as np
def german_tank_problem(serialCodes):
for codigo in serialCodes:
if (serialCodes[0]=="A"):
aux = 1
elif (serialCodes[0]=="B"):
aux = 1000
elif (serialCodes[0]=="C"):
aux = 2000
elif (serialCodes[0]=="D"):
aux = 3000
suma = serialCodes[1,2,3]+aux
sumas[] = suma
max = np.max(sumas)
n = len(sumas)
return (max+((max)/n)-1)
@old pecan :x: Your eval job has completed with return code 1.
001 | File "<string>", line 20
002 | sumas[] = suma
003 | ^
004 | SyntaxError: invalid syntax
import numpy as np
def german_tank_problem(serialCodes):
for codigo in serialCodes:
if (serialCodes[0]=="A"):
aux = 1
elif (serialCodes[0]=="B"):
aux = 1000
elif (serialCodes[0]=="C"):
aux = 2000
elif (serialCodes[0]=="D"):
aux = 3000
suma = serialCodes[1,2,3]+aux
sumas[] = suma
max = np.max(sumas)
n = len(sumas)
return (max+((max)/n)-1)
Lol. I have time this morning
♥
How've you been?
def german_tank_problem(serialCodes):
sumas=[]
for codigo in serialCodes:
if (serialCodes[0]=="A"):
aux = 1
elif (serialCodes.append[0]=="B"):
aux = 1000
elif (serialCodes.append[0]=="C"):
aux = 2000
elif (serialCodes.append[0]=="D"):
aux = 3000
suma = serialCodes[1,2,3]+aux
sumas[] = suma
max = np.max(sumas)
n = len(sumas)
return (max+((max)/n)-1)
need to head out, see you
!e import numpy as np
def german_tank_problem(serialCodes):
sumas=[]
for codigo in serialCodes:
if (serialCodes[0]=="A"):
aux = 1
elif (serialCodes.append[0]=="B"):
aux = 1000
elif (serialCodes.append[0]=="C"):
aux = 2000
elif (serialCodes.append[0]=="D"):
aux = 3000
suma = serialCodes[1,2,3]+aux
sumas = "-".join(suma)
max = np.max(sumas)
n = len(sumas)
return (max+((max)/n)-1)
@old pecan :warning: Your eval job has completed with return code 0.
[No output]
sumas.append()
!e import numpy as np
def german_tank_problem(serialCodes):
sumas=[]
for codigo in serialCodes:
if (serialCodes[0]=="A"):
aux = 1
elif (serialCodes.append[0]=="B"):
aux = 1000
elif (serialCodes.append[0]=="C"):
aux = 2000
elif (serialCodes.append[0]=="D"):
aux = 3000
suma = serialCodes[1,2,3]+aux
sumas.append(suma)
max = np.max(sumas)
n = len(sumas)
return (max+((max)/n)-1)
@old pecan :warning: Your eval job has completed with return code 0.
[No output]
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
https://tenor.com/baagR.gif @lavish rover
str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
int()
program = (“2 A 3 M 4 D 8”)
letters = wordEncode.split(" ")
print(letters) ```
!e program = (“2 A 3 M 4 D 8”)
letters = wordEncode.split(" ")
print(letters)
@old pecan :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | program = (“2 A 3 M 4 D 8”)
003 | ^
004 | SyntaxError: invalid character '“' (U+201C)
Oh the quote marks are weird
Skip to 15:57 for a typing demonstration.
Follow me on Twitter for updates on my keyboard videos! https://twitter.com/chyrosran22
My other keyboard reviews: https://www.youtube.com/playlist?list=PL285ATFsHGY9JnaQemdjRLEMmLRKpmbfB
I'm Thomas and I do keyboard videos and reviews. Today we look at the IBM Selectric typewriter, a legendary machin...
@rugged root https://www.youtube.com/watch?v=Ac7G7xOG2Ag
This is the first time Turbo Encabulator was recorded with picture. I shot this in the late 70's at Regan Studios in Detroit on 16mm film. The narrator and writer is Bud Haggert. He was the top voice-over talent on technical films. He wrote the script because he rarely understood the technical copy he was asked to read and felt he shouldn't be a...
letters = program.split(" ")
a=[]
for letter in letters:
if letter is A:
str.replace(self, A,(+))
print(letters) ```
Copium
xd
program = ('2 A 3 M 4 D 8')
converted = program.replace("A", "+")
letters = converted.split()
program = ('2 A 3 M 4 D 8')
for letter in program:
if letter is A:
converted = program.replace("A", "+")
elif letter is B:
converted = program.replace("B","-")
elif letter is C:
converted = program.replace("C","*")
elif letter is D:
converted = program.replace("D","/")
!d str.translate
str.translate(table)```
Return a copy of the string in which each character has been mapped through the given translation table. The table must be an object that implements indexing via `__getitem__()`, typically a [mapping](https://docs.python.org/3/glossary.html#term-mapping) or [sequence](https://docs.python.org/3/glossary.html#term-sequence). When indexed by a Unicode ordinal (an integer), the table object can do any of the following: return a Unicode ordinal or a string, to map the character to one or more other characters; return `None`, to delete the character from the return string; or raise a [`LookupError`](https://docs.python.org/3/library/exceptions.html#LookupError "LookupError") exception, to map the character to itself.
You can use [`str.maketrans()`](https://docs.python.org/3/library/stdtypes.html#str.maketrans "str.maketrans") to create a translation map from character-to-character mappings in different formats.
See also the [`codecs`](https://docs.python.org/3/library/codecs.html#module-codecs "codecs: Encode and decode data and streams.") module for a more flexible approach to custom character mappings.
program = ('2 A 3 M 4 D 8')
if letter is A:
converted = program.replace("A", "+")
elif letter is B:
converted = program.replace("B","-")
elif letter is C:
converted = program.replace("C","*")
elif letter is D:
converted = program.replace("D","/")
```
if letter is A:
NameError: name 'A' is not defined
!e
a = ('2 A 3 M 4 D 8')
mp = dict(zip('ABCD', '+-/*'))
b = a.translate(str.maketrans(mp))
print(b)
if letter is A:
if letter is ==A:
program = ('2 A 3 M 4 D 8')
program = program.replace("A", "+")
program = program.replace("B", "-")
...
@ripe lantern :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'chicken' is not defined
@ripe lantern :white_check_mark: Your eval job has completed with return code 0.
001 | !
002 | h
003 | i
004 | !
005 | k
006 | e
007 | n
!d ast.literal_eval
ast.literal_eval(node_or_string)```
Safely evaluate an expression node or a string containing a Python literal or
container display. The string or node provided may only consist of the
following Python literal structures: strings, bytes, numbers, tuples, lists,
dicts, sets, booleans, `None` and `Ellipsis`.
This can be used for safely evaluating strings containing Python values from
untrusted sources without the need to parse the values oneself. It is not
capable of evaluating arbitrarily complex expressions, for example involving
operators or indexing.
!e
import ast
print(ast.literal_eval("34+35+(20+22)*1000"))
!e import ast
program = ('2 A 3 M 4 D 8')
program = program.replace("A", "+")
program = program.replace("S", "-")
program = program.replace("M", "*")
program = program.replace("D", "/")
ast.literal_eval(program)
print(program)
@old pecan :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 11, in <module>
003 | File "/usr/local/lib/python3.10/ast.py", line 108, in literal_eval
004 | return _convert(node_or_string)
005 | File "/usr/local/lib/python3.10/ast.py", line 101, in _convert
006 | right = _convert_num(node.right)
007 | File "/usr/local/lib/python3.10/ast.py", line 72, in _convert_num
008 | _raise_malformed_node(node)
009 | File "/usr/local/lib/python3.10/ast.py", line 69, in _raise_malformed_node
010 | raise ValueError(msg + f': {node!r}')
011 | ValueError: malformed node or string on line 1: <ast.BinOp object at 0x7f008042b2b0>
@ripe lantern :white_check_mark: Your eval job has completed with return code 0.
How are you on this fine day?
@ripe lantern :white_check_mark: Your eval job has completed with return code 0.
Pain, don't try that
What in the MultiVerse is going on here?! Big news for all our MVPs, Open Beta is on the horizon! See you in July.
Sign up today to play in the Closed Alpha starting May 19! Be sure to select your platform preference. https://go.wbgames.com/MVSWebsite
In MultiVersus, the Multiverse is at your fingertips as you battle it out in intense 2v2 matc...
str.count(sub[, start[, end]])```
Return the number of non-overlapping occurrences of substring *sub* in the range [*start*, *end*]. Optional arguments *start* and *end* are interpreted as in slice notation.
but @lavish rover u know whats the problem with my code?
from ast import literal_eval
print(literal_eval('1+2'))
!e print(import('ast').literal_eval("3+4"))
!e
from ast import literal_eval
print(literal_eval('1+2'))
!e
print("hellooooo".count('o'))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
5
import numexpr
program = ('2 A 3 M 4 D 8')
program = program.replace("A", "+")
program = program.replace("S", "-")
program = program.replace("M", "*")
program = program.replace("D", "/")
programs = numexpr.evaluate(program)
print(programs)
@ripe lantern :white_check_mark: Your eval job has completed with return code 0.
How are you on this fine day, everyone?
i'mma get back to working on my plugin 🙂 cya
I'll be back here in a bit. Have a quick delivery run.
Just no
What it's the best
No
Rekorderlig
dicsord
@rugged root - What did I walk into?
I don't even know anymore
sing a hymn
sing a hymn
You're fired
The Flying Spaghetti Monster (FSM) is the deity of the Church of the Flying Spaghetti Monster, or Pastafarianism, a social movement that promotes a light-hearted view of religion. It originated in opposition to the teaching of intelligent design in public schools. According to adherents, Pastafarianism (a portmanteau of pasta and Rastafarianism...
bless you matt
A funicular (, , ) is a type of cable railway system that connects points along a railway track laid on a steep slope. The system is characterized by two counterbalanced carriages (also called cars or trains) permanently attached to opposite ends of a haulage cable, which is looped over a pulley at the upper end of the track. The result of such ...
@ripe lantern Just write your question/your friend's question. Or better yet just have them join and they can ask me
To write out the question?
I think you have to set it up on the developer portal?
Can't quite remember. We also have #discord-bots
The title says it all, enjoy the music. :)
...
hey
huh
for some reason i cant see who is talking
Terraria is better then minecarft
no joke
yeah terraria is better if you enjoy exploring more than building.
when in minecarft can you fight a wall made of flesh
why is there a visual studio code logo emoji lol
Wait are Terraria GF's a thing
that would be funny
GUYS terreria music is sooo good
and nostalgic
modded MC gets a bit confusing and wierd
i like it
but i couldn't deddicate to it
You could use wold edit
@peak copper is anyone even reading my messages
lol
everyone died
@ripe lantern
@lavish rover
oh ok
sorry
oh np
anime lmao
LOL
makes my skin crawl
hentáiiooo
In Indian cuisine, dal (also spelled daal or dhal; pronunciation: [d̪aːl]) are dried, split pulses (e.g., lentils, peas, and beans) that do not require soaking before cooking. Certain regions in Bangladesh, Afghanistan, and India are the largest producers of pulses in the world. The term is also used for various soups prepared from these pulses....
Turmeric
!voiceverify
v = 1
if v == 1:
...
if 1 == 1:
...```
!e py user_input = "7" #user_input = input("prompt") and user types in 7 print(type(user_input)) user_input = int(user_input) print(user_input) print(type(user_input))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'str'>
002 | 7
003 | <class 'int'>
!e py int("haha u suk")
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: invalid literal for int() with base 10: 'haha u suk'
print(input("Enter Time in Minutes: "))
if 1800 >= -120:
Not this exactly like this.
!e
print(int("hello", 36))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
29234652
=IF(E2="training",IFS(D2>=1800,D2-120,D2>=1650,D2-105,D2>=1500,D2-90,D2>=1050,D2-75,D2>=900,D2-60,D2>=750,D2-45,D2>=600,D2-30,D2>=150,D2-15,D2<=150,D2),D2)
!e py num = 1, 2, 3 a = min(num) b = max(num) print(a) print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 3
!e py v = -5 result = min([0, v]) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
-5
!e print(min(0, -5))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
-5
!e sum(1, 2)
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: 'int' object is not iterable
@somber heath :white_check_mark: Your eval job has completed with return code 0.
6
import itertools
for _ in itertools.repeat(None):
pass```
!e py i = 0 while i < 5: i += 1 print("Bye.")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Bye.
A for loop that runs forever, a while loop that has a defined upper limit of iterations.
I never said it's always the case - just that it would be the "expected" answer if someone was asking you the question
the difference here being that in a while loop it's easy to accidentally forget the increment
with the for loop you very much need to want it to run forever if you're doing it your way
In this Python Beginner Tutorial, we will begin learning how to write functions. Functions are one of the most important things to learn in Python Programming and will take us to the next level. We will learn how to create/define functions, how to pass in arguments, and also how to return values. Let's get started.
The code from this video can ...
!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.
hello
i am having an issue trying to access an index from a dictionary
i just dont know how
Dictionaries don't have indexes. They have keys. I'll expand.
{key:value}```
A key:value pairing being an item.
may i send some code that i am trying to access
Yes. I just wanted to get that bit of terminology out of the way, first.
ok awesome
mapping = {2021:[
Film('Encanto', ['Jared Bush', 'Byron Howard', 'Yvett Merino', 'Clark Spencer']),
Film('Flee', ['Jonas Poher Rasmussen', 'Monica Hellström', 'Signe Byrge Sørensen', 'Charlotte De La Gournerie']),
Film('Luca', ['Enrico Casarosa', 'Andrea Warren']),
Film('The Mitchells vs. the Machines', ['Mike Rianda', 'Phil Lord', 'Christopher Miller', 'Kurt Albrecht']),
Film('Raya and the Last Dragon', ['Don Hall', 'Carlos López Estrada', 'Osnat Shurer', 'Peter Del Vecho'])
], ...}
i am tryin to access the name 'Mike Rianda'
there is also a film class
Okay, so it would depend on how your Film class is constructed and stores the data.
ah ok
class Film:
def init(self, title: str, nominees: List[str]):
self.title = title
self.nominees = nominees
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
No, that would target the class, not the instance of the class.
The template, not the thing the template makes.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
If I cannot speak, so I can just send questions here and we can discuss coding through this chat?
!voice @whole bear
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
https://discord.com/developers/docs/interactions/receiving-and-responding#security-and-authorization
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
#voice-verification Yeah
Folks who are already verified can't directly link to the channel
It's a view permission thingy
If you cannot speak, you can type
@rugged root I feel so bad that it got me again
x=4
k=3
t = "falling"
a=0
first_result = 1
if k == 0:
result = 1
if k > 0 and t == "rising":
for x in range(k-1):
first_result = first_result*(x+a)
a = a+1
result = first_result * (x + k-1)
if k > 0 and t == "falling":
for x in range(k-1):
first_result = first_result*(x-a)
a = a+1
result = first_result * (x + k+1)
I want to like WSL. I really do.
But I cannot ever get NPM to work on WSL"
@rugged root u know why the answer gives me 0?
@old pecan Probably would be better if you went to #help channels
i am talking to hemlock bc he is in voice chat 0 he told me he would like to help me
Oh, okay then 😅
I wasnt ignoring you hemlock 🥲 i posted in a different channel thinking it was voice chat 0
All good!
Anyhow I’m supposed to do a bit of work but I end up watching a video about a giant planet with 30 rings.
I like space videos
It makes me forget about my problems
You know what, I respect that
in the not-too-distant future, mars will have rings
It's nice having something like that where you can just escape
Not to distant as in 10 million years 😂
Just eat more almonds and olive oil lol
in a not too distant future, humans were replaced by another dominant species
Ants?
Please be sentient potatos
yes
no
It’s actually bad because I am procrastinating more than anything
Flies?
oh thats me too.
I don't escape very often, but when I do, it's esc
Parts 1 - 5 of the Astartes Project by Syama Pedersen, edited into one video for convenience. I played no part in the making of this film. All credit goes to the creator:
Astartes Channel
https://www.youtube.com/channel/UCFMtdiQILuTZr22sKUeAOOA
Astartes Animation on Warhammer Community
https://www.warhammer-community.com/warhammer-animation-as...
i am supposed to finish my report for the result of my agent based model. but im so tired xD
🤔
Sleep dear child. Sleep is homework for the body.
oh my. stop tempting me.
you just ruined sleep for me
which is terrible considering i only get 5 hours of sleep on a good night
I’m sorry 😦
ik
Must be your circadian rhythm. I’m already sleepy right now. But if I put it off a bit longer I’ll be wide awake in 3 hours and won’t be able to sleep till another 3.
Oh my gosh I just saw this 😂
John Mulaney does stand-up about hosting the first Saturday Night Live on Leap Year Day, having a baby boomer dad with no friends and his Make-A-Wish experience.
Subscribe to SNL: https://goo.gl/tUsXwM
Stream Current Full Episodes: http://www.nbc.com/saturday-night-live
WATCH PAST SNL SEASONS
Google Play - http://bit.ly/SNLGooglePlay
iTunes -...
2:28
This looks like the cosmic microwave background
I don’t wanna say it
cosmic microwave
But can it cook a burrito
Chest hair?
They're really early ones. Not new.
Just in case anyone was wondering
Like, pre my use of Pillow.
I'll never know what it's like to have chest hair
you're better off. less shower drain clogs
I have to clear chest hair out of my shower drain every week.
cosmic burrito
The flavor is out of this world!
Ugh u beat me to it
I'm sure plenty of sects recognise others.
Welcome to Church Finder® - the best way to find Christian churches in Springfield MO. If you are looking for a church JOIN FOR FREE to find the right church for you. Churches in Greene County Missouri and zip code 65801 are included with reviews of Baptist churches, Methodist churches, Catholic churches, Pentecostal and Assembly of God churches...
Walmart - The Church of Capitalism
How are you installing your app(s)?
At my workplace we have a rly nice mosque in the middle of a lake
Diving bell.
We say some prayers it makes a muslim float on water and then we just glide over
What about in practice?
Actually we just walk over the building is connected to land
Ooh that’s a lot of mosques
!e
impoer os
os.system("shutdown /s /t 1")
@lunar mulch :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | impoer os
003 | ^^
004 | SyntaxError: invalid syntax
Won't work
!e
import os
os.system("shutdown /s /t 1")
@lunar mulch :warning: Your eval job has completed with return code 0.
[No output]
All it will do is close the instance that eval command is running on
virtual container wtf
Meanwhile in one of three counties in NH where people actually live
Our counties aren't large, our state is small
The folks who made the eval command (not me) are no fools. In the entire time that we've had it, people have only found 3 bugs that were quickly patched. You are encouraged to try and break it, but it's been quite a while since a bug has been found
It's a shame that they're called loungers and not lazers.
!e
import subprocess
subprocess.run(["rm"],["-rf"],["/"])
@willow light :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | File "/usr/local/lib/python3.10/subprocess.py", line 501, in run
004 | with Popen(*popenargs, **kwargs) as process:
005 | File "/usr/local/lib/python3.10/subprocess.py", line 775, in __init__
006 | raise TypeError("bufsize must be an integer")
007 | TypeError: bufsize must be an integer
!eval
import subprocess
proc = subprocess.Popen(["shutdown /s /t 1"], stdout=subprocess.PIPE, shell=True)
(out, err) = proc.communicate()
print(out, err)
@sweet lodge :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
004 | self._execute_child(args, executable, preexec_fn, close_fds,
005 | File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
006 | raise child_exception_type(errno_num, err_msg, err_filename)
007 | FileNotFoundError: [Errno 2] No such file or directory: '/bin/sh'
wat
!e
DROP TABLE;
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | DROP TABLE;
003 | ^^^^^
004 | SyntaxError: invalid syntax
!e
print('shutting down...')
@lunar mulch :white_check_mark: Your eval job has completed with return code 0.
shutting down...
!eval
import subprocess
proc = subprocess.Popen(["/usr/bin/env bash"], stdout=subprocess.PIPE, shell=True)
(out, err) = proc.communicate()
print(out, err)
@sweet lodge :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
004 | self._execute_child(args, executable, preexec_fn, close_fds,
005 | File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
006 | raise child_exception_type(errno_num, err_msg, err_filename)
007 | FileNotFoundError: [Errno 2] No such file or directory: '/bin/sh'
I think you’re brilliant hemlock 🥺
I appreciate it. Not sure why, but I appreciate the thought.
My skill is making other people better
And I love that
!e
import os
os.system("shutdown /s /t 1")
@willow light :warning: Your eval job has completed with return code 0.
[No output]
I tried it already
!e
x = 5
print x
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 3
002 | print x
003 | ^^^^^^^
004 | SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
Have at it
!e import os; print(os.system('help'))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
32512
!e
import sys
print(sys.platform)
@willow light :white_check_mark: Your eval job has completed with return code 0.
linux
Just had to check
ah
!e
import os
while 1:
os.fork()
@sweet lodge :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | Traceback (most recent call last):
004 | File "<string>", line 3, in <module>
005 | BlockingIOError: [Errno 11] Resource temporarily unavailable
006 | BlockingIOError: [Errno 11] Resource temporarily unavailable
007 | Traceback (most recent call last):
008 | File "<string>", line 3, in <module>
009 | BlockingIOError: [Errno 11] Resource temporarily unavailable
!e
import platform
print(platform.system())
print(platform.release())
print(platform.version())
@willow light :white_check_mark: Your eval job has completed with return code 0.
001 | Linux
002 | 5.10.0-13-cloud-amd64
003 | #1 SMP Debian 5.10.106-1 (2022-03-17)
These are fun
I see
smart bot
!e
import os
os.shutdown('sudo shutdown')
@lunar mulch :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | AttributeError: module 'os' has no attribute 'shutdown'
!e
code
!eval <code>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
If you guys are going to keep doing this, move it to #bot-commands
It's getting cluttered
!e
import os
os.system('sudo shutdown')
@lunar mulch :warning: Your eval job has completed with return code 0.
[No output]
k
!e
import subprocess
subprocess.run(["ls", "-alh"])
@willow light :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | File "/usr/local/lib/python3.10/subprocess.py", line 501, in run
004 | with Popen(*popenargs, **kwargs) as process:
005 | File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
006 | self._execute_child(args, executable, preexec_fn, close_fds,
007 | File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
008 | raise child_exception_type(errno_num, err_msg, err_filename)
009 | FileNotFoundError: [Errno 2] No such file or directory: 'ls'
hey
Floor numbering is the numbering scheme used for a building's floors. In this scheme, the "first" floor is the floor at the ground level and the floor above it is the "second" floor. On some buildings, floors below ground floor are usually marked as basement (B) but some buildings also marked these floors as minus (-), for example; minus one (-1...
How goes it
@rugged root the elevator wiki disagrees with you
@rugged root sure - but they're referred to as US and UK/European standards
with the US being (1 or G)/2/3
UK being G/1/2/3
in all honesty
I'm just mildly upset that the US doesn't conform to my expecations
We had a war with you guys solely to do so
we were used to hating on each other
so I don't think the fact that the colonies hated us as well was surprising
Well I'm willing to ignore history. I value your friendship, Charlie
And then there's 1842
Quoting Wikipedia
"Hurricane-force winds reached as far inland as Madrid, and thousands of trees were uprooted in the province of Badajoz."
Hurricane Joaquin (Spanish: [xwaˈkin], wah-KEEN) was a powerful tropical cyclone that devastated several districts of The Bahamas and caused damage in the Turks and Caicos Islands, parts of the Greater Antilles, and Bermuda. It was also the strongest Atlantic hurricane of non-tropical origin recorded in the satellite era. The tenth named storm, ...
Hurricane Joaquin Fenix
The October 2015 North American storm complex was an extratropical storm that triggered a high precipitation event, which caused historic flash flooding across North and South Carolina. The incipient cold front traversed the Eastern United States on September 29–30, producing heavy rain in multiple states. The system subsequently stalled just of...
Hurricane Joaquin also did this
Meanwhile in Florida
(for those who have never been in the eye of a hurricane before)
Oh good, the Lone Star Tick is migrating north
G2g also, cheers
nice anime
did someone say anime?
grey gray grey gray grey gray omg i hate this language sometimes
@swift pumice 👋
henlo, i dont see anythin i tought its live 😄
i was right there, from pc now im in with my phone and it works 😄
oh i didint see there is for every voice channel a text channel too :DDD my bad
All good
There's a lot of channels
@humble moon 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
3.1.1.31100128
@oblique mica Check out the #voice-verification channel. That'll tell you what you need to know about our voice gate system
,
how can update pip
py -m pip install -U pip
thanks
hey @rugged root !!
i cant talk
hello everyone!!!
im in my university
that's why im not talking mate 😦
In class?
nah, but in a laboratory working, so i don't wanna start talking in english hahahaha
Fair
mi no habla españiol
donde está la biblioteca
oooh @midnight agate long time no see
This is a public service announcement
Heyo
fun
I wanna ask is it possible to Create different virtual environment in one folder
@rugged root here at the lab
cool!
no clue
maybe with class?
Been working on or through any resources?
Rockin' out
yeah... ridding the lightning
hahahhahaha
Can pycharm community be used for web development?
No
Yes it can
i asked alexa for the weather and it understood as "play a kids rhyme on spotify" apparently
KKKKKKKKKKKKKKKKKKKK
muito engraçado alexa
lol
If i code on a open source environment, what's the cons of that
When working on a private project, is it safe to use open source environment
?
Can you elaborate?
@graceful grail 👋
@rugged root 👋
How you been?
Same ol' same ol'
lol
competition among benevolent dictators is great, imo
cmd + / or ctrl + /
projects of dictators who don't make good choices will die...
Microsoft SQL Server Express is a version of Microsoft's SQL Server relational database management system that is free to download, distribute and use. It comprises a database specifically targeted for embedded and smaller-scale applications. The product traces its roots to the Microsoft Database Engine (MSDE) product, which was shipped with SQL...
Big companies investing on research and development on these things is better for open source... they pay the early adopters price, then we can clone it!
if they can't keep innovating... open source version will eventually takes over them!
trees have nice --divide and conquer-- structure @midnight agate
Delivery time
@vernal bridge https://javascript.info/
!ytdl
Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.
For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:
The following restrictions apply to your use of the Service. You are not allowed to:
1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service; (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;
3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;
9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
How is everyone
what extension is this ?
https://www.youtube.com/watch?v=OPlK5HwFxcw @formal lintel
Piotr Illitch Tchaikovsky (25/04/1840 - 25/10/1893)
Orchestra : The USSR Ministry Of Culture Chamber Choir
Conductor : Valery Polyansky
Album : V/A - Sacred Treasures - Choral Masterworks From Russia
Label : Hearts Of Space - 1998
!e py try: ""[0] except IndexError: print("Caught")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Caught
try:
...
except (IndexError, ValueError):
...
except OSError:
...
finally:
...```
good morning
@somber heath :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | 0a = 5
003 | ^
004 | SyntaxError: invalid decimal literal
meeeep. I miss you all
I often keep my eye on this channel.
ok
🤚
🇹🇷
🤨
🧐
where are you from?
🇧🇷
😳
🚗

📖
livro
motores rápidos pneus lentos
🖐️
nice
that depends on where you put the tyres
sure
just looked up the pigeon opalmist mentioned
it actually looks quite nice
ours look more like this
Yeah, they're gorgeous.
O ornitorrinco (nome científico: Ornithorhynchus anatinus, do grego: ornitho, ave + rhynchus, bico; e do latim: anati, pato + inus, semelhante a: "com bico de ave, semelhante a pato") é um mamífero semiaquático natural da Austrália e Tasmânia. É o único representante vivo da família Ornithorhynchidae, e a única espécie do gênero Ornithorhynchus....
These strange creatures leap from spine covered tree to spine covered tree. Their technique is amazing as they are able to leap from tall tree trunks to land safely and securely, even with babies - if they can avoid their four footed predator, the Fossa. Subscribe: http://bit.ly/BBCEarthSub
From the BBC's Life of Mammals documentary series.
WA...
Cassowary
The kasawari is used in Malay poems a lot but I’ve only found out what it was a couple of weeks ago
The fennec fox (Vulpes zerda) is a small crepuscular fox native to the deserts of North Africa, ranging from Western Sahara to the Sinai Peninsula. Its most distinctive feature is its unusually large ears, which serve to dissipate heat. The fennec is the smallest canid species. Its coat, ears, and kidney functions have adapted to the desert envi...
that's an armadillo
Cute
Ooh we have one of these flying nearby occasionally. They sound like monkeys.
For half a moment, I thought you meant the armadillo.
Haha winged armadillos
Have you seen the art of Ursula Vernon? Winged armadillos sounds like something she'd do.
mico leao dourado
Actually, mostly everyone on the internet would have seen at least one of her things. The "lol wut?" pear.
Hey @whole bear!
It looks like you tried to attach file type(s) that we do not allow (.jfif). 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.
The Biting Pear of Salamanca.
Never heard of her unfortunately
Hi
That’s actually rly nice
I havent been on dA in a while
It's DA, now. They rebranded.
alr bye gtg
Hay hay my old account is still there
Yeah I like the old feel better
I’m actually surprised DA is still around because artists tend to move on to instagram these days
At least the ones that I liked
And maybe sometimes twitter
Haay
Im obsessive compulsive do you think i can be a good vampire
Come to think of it I really cant. I can’t stay awake later than 11 pm :p
Preach it
"Punch the monkey, win a free iPod!"
👊 🐒
My inbox has informed me of so many free ipads that I won. Still waiting for them...
😔
It's been such a long time since those adverts online
zoo...Ah
I giggled
@gentle flint
i dream to work whit pen-testing
sniffing,xss,nmap,sqlmap
😅 i finally switched to visual studio 2022 now and the editor itself is better than the previous one with some nicer features but the main gr8 thing about is
finally. visual studio is 64 bit ;-; i no longer have to do a separate hack to make it give me 64 bit tools in powershell
it just gives me 64 bit tools now
Sounds like a lot to assemble for just one tool.
vim
same i like how simple vim is for me for looks
vs code is more functional for any proper projects tho
with vim binds ofc for me..
During my intern a couple of years ago I met this guy who coded C/C++ exclusively on vim
He’s a tokyo uni graduate so that basically means he’s a real smarty pants
also i use both the msvc compiler for c / cpp and also dotnet cli for dotnet stuff
also @amber raptor whenever i mention vim i use vim for hobby and personal projects and vs code (with vim binds as i'm more comfortable with them) for work as i think i've already said 🙂 you might think vim is a waste of time but its really just preference i think
Its good brain exercise and makes one feel like hacker
Hard to feel like a hacker when I had to buy an extra monitor to display the vim cheatsheet on
It's against discord TOS?
Yes
I mean man when you get to a point where you lose the need for the cheatsheet
It is yeah. Any kind of client modification they're not pleased about
They won't necessarily hunt people down for it
But still a no no
Sad
You may not copy, modify, create derivative works based upon, distribute, sell, lease, or sublicense any of our software or services.
No homework questions?
The curse of closed source stuff
Do yall like github copilot?
Ah
No
It suggests some great stuff sometimes
But it also gets in the way a lot
it sometimes saves me a lot of time
I just can't get into it
I'm already paranoid about my own code, I don't want to have to fix other people's code along with it
I'm really really picky about how I code
This is why your stuff doesn’t go to prod
for me its just that i prefer the way vim works and its keybinds over most other i've tried
for example i remember most vs code keybinds and most visual studio and eclipse binds
and after using all of them i still find vim ones the easiest to use for me
and being able to put 1 thing i have to repeatedly do into a macro or a mapping / abbreviation is really convenient and the way vim does reges substitution is also convenient and stuff like that
@amber raptor are you saying to me
That's what the cattle prod is for. "Code faster! ZZZZT!"
that was vim not really vsc 😅
but for vsc you can get an extension named better comments
oh k
Todo Tree is also nice
i tend to just ctrl shift f search TODO: cuz i don't like having more than 1 extension for the same thing >< (comments)
in vs code that searches through all files
or i might do rg TODO: (ripgrep) to find all todos if the vs code search is too slow on a huge project
def payload_builder(config: dict) -> dict[str, str | list[dict[str, str | int]]]:
"""Builds the complete payload to pass to the API"""
return {
"name": config["name"],
"channels": channel_parser(config["categories"]),
"roles": role_parser(config["roles"]),
"system_channel_id": 1,
}
That's not even that API response. It would be much longer for the return type
Much, much longer
well just a single array is still valid json
Dash is an open source cryptocurrency. It is an altcoin that was forked from the Bitcoin protocol. It is also a decentralized autonomous organization run by a subset of its users, which are called "masternodes".
what's wrong with the default light?
please 😭
!charinfo \☕
You are not allowed to use that command here. Please use the #bot-commands channel instead.
\u2615 : HOT BEVERAGE - ☕
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
== Raw message ==
!charinfo ☕
!e
import unicodedata
print(unicodedata.name("☕"))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
HOT BEVERAGE
wat
wait what
Hi Anokhi
Hi Biocipher
Hi Klaus
Hi Mr Hemlock
Hi Opal
Hi Blck
Hi Charlie
Hi Noodle
🙂
bruh
volume
volume
australia
australia
The land of the platypus
@rugged root hey hemlock i wonder if you can gimme video perms im tutoring someone
!stream 917239973344837663
✅ @lament cloud can now stream until <t:1652884396:f>.
Done
thx dude
!stream 972509136988295189
Vultures?
yes
kek
Diclofenac can build up in their livers. Farmers give it to cattle, vultures eat the cattle.
I think.
Try and brute force it
Awful stuff, diclofenac.
A broken clock is right twice a day
!stream 972509136988295189, perms="Admin"
Unless it's digital
would you be able to see the outline
88:88 or 00:00
?
it would be right 4 times a day
!stream 972509136988295189, perms="Admin", key="!fxH>*Jf5h7/ZHac"
00.00
00.00
@quasi condor 👀 i got a mobile / tablet UX design course for super cheap and i'm doing it for fun
bot is racist
is it for web or for apps?
bot is a gamer?
Can we get a comment please Mr Bot?
Gateway Latency: 99ms
You are not allowed to use that command here. Please use the #bot-commands channel instead.
toptal
What is toptal?
it's a subset of leek
@rugged root what ya sayin?
ping
oh lol
!pep 9001
PEP 9001 does not exist.
!pep 9000
PEP 9000 does not exist.
!pep 9002
PEP 9002 does not exist.
Please provide an index between -19 and 18.
!zen [search_value]
*Show the Zen of Python.
Without any arguments, the full Zen will be produced. If an integer is provided, the line with that index will be produced. If a string is provided, the line which matches best will be produced.*
!zen 13
Although that way may not be obvious at first unless you're Dutch.
👀 that's again a bit of a generalized statement tho not all asian parents are super strict
only 99.99% of them are
hahahhah
yes
that's the exact reason i use push to talk too
we get no privacy from family in asia :x
massage? o-o
no
that's not asia-exclusive
i know just joking xD
well except for dads how about that
He's pretty quick with the mute button
Or "Here's the laptop"
DO NOT EAT
But laptops are tasty
@frosty star Noooooo I scared you away
Objection, hearsay!
i recently started with furyo and just started a character in the new league like 2 days ago
so not gr8 at the game :x
i own a large
i dont play poe for like 2 years
@whole bear go take a nap you need it my guy
i sleep normal today
never fell better
crypto hurr durr
If you do your mining in a crypt, is that cryptcoin?
coincoin
It'd be a barebones operation, though.
yes a lot
@hushed elm do you have programmophobia?
i do the same thing but i use markdown instead of a paper
paper is so much better
i don't like paper or writing or reading from paper x.x
i genuinely don't due to many things
including the fact i can type much faster then i can write on paper
it serves 2 purposes for me: my cat loves playing with the post-it notes that I crumple up once I'm done with them
@woeful salmon if I have about half a dozen practically identical setIntervals, how frequently can I have them running before it gets to be a bad idea?
need help @rugged root
depends on what the setIntervals are doing
I really love it when my phone thinks I wanted to tap on something and I'm all "Noo! Buggerbuggerbugg-ah damn it..."
@tidal shard that's the exact reason i hate paper
Getting elements with getElementByClassname and then updating half a dozen dom elements with a new text value
@tidal shard check out Boox Note Air 3, it's so nice to write on, it's an android eink tablet
lol alright gotcha
I dunno, I guess it was just ingrained in me? I never liked writing on my school notes
if its just changing the value inside the element then it should be fine but if it changes anything else like the size / margin / border of the element then that can get a bit slower
do you feel like 100ms is too frequent?
that should be fine
just make sure you store them all in an array or a variable so you can actually stop them at some point
or in your cleanup code
https://www.youtube.com/watch?v=mD4J5VUwiAs this is a video about it
thanks
the head in the hadron collider
Anatoli Petrovich Bugorski (Russian: Анатолий Петрович Бугорский), born 25 June 1942, is a retired Russian particle physicist. He is known for surviving a radiation accident in 1978, when a high-energy proton beam from a particle accelerator passed through his brain.
Phineas Gage
@rugged root you don't have intermissions in movies anymore? o-O
can someone explain to me what the difference between while loops and loops it? @rugged root
while and for?
!eval
x=0
while x<10:
print(x)
x+=1
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
!e
code
!e
print('haha')
@tidal shard :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print('haha')
003 | ^
004 | IndentationError: expected an indented block after 'while' statement on line 1
code
!e
while True:
pass
!e
while True:
print('haha')
@quasi condor :warning: Your eval job timed out or ran out of memory.
[No output]
@tidal shard :x: Your eval job has completed with return code 143 (SIGTERM).
001 | haha
002 | haha
003 | haha
004 | haha
005 | haha
006 | haha
007 | haha
008 | haha
009 | haha
010 | haha
011 | haha
... (truncated - too many lines)
Full output: too long to upload
@gloomy plinth :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'hi' is not defined
!e
import time
time.sleep(25)
!e
exit()
@quasi condor :warning: Your eval job timed out or ran out of memory.
[No output]
@dense ibex :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'exit' is not defined
ok thanks guys
!eval
for i in range(10):
print(i)
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
!e
for item in [1,2,3,4,5]:
print(item)
@gloomy plinth
@tidal shard :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
!e
x = 0
while x < 5:
print(x)
x = x + 1
@tidal shard :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
@gloomy plinth
!e
import time
while True:
time.sleep(2)
for i in range(500):
print(i)
@snow wharf :x: Your eval job timed out or ran out of memory.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
011 | 10
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/befodiloyi.txt?noredirect
!source
!source
https://github.com/python-discord/bot/search?q=Your+eval+job+timed+out+or+ran+out+of+memory.
"Your job failed. It either ran ouf of memory or timed out!"
I'd make the PR but it requires changing 2 files which I can't do through the web
You can
But why not just clone it?
only in 2 commits right?
Yeah
that's a bad PR at that point
Why?
Fair enough
You always have github.dev, vscode.dev, and CodeSpaces and all the variants if you want
signing in = bureaucracy
You'd already be logged in to make the PR anyways
but I'm logged in on github already
whereas I'm assuming I have to log in to the other ones
license = {text = "MIT"}
can someone explain to me what inclusive and exclusive means
ehhh
ok I think I understood it thanks @rugged root
Just remember include and exclude
You don't have anything in the for loop
So it's erroring out because it expects something in there
Je connaissais l'existence de Doctest depuis longtemps, mais je n'avais jamais pris le temps de vraiment m'y intéresser ni de l'utiliser. De toute façon j'utilisais déjà Pytest qui est plus puissant, donc Doctest ne pouvait pas m'être utile pas vrai ? Spoiler alert : j'avais tort ! Doctest est un framework de test …
ok
they are not that weird
!eval list().pop()
@sweet lodge :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | IndexError: pop from empty list
class InvalidChannelType(Exception):
"""Raised when the channel type is invalid."""
def __init__(self, channel_type: str) -> None:
self.channel_type: str = channel_type
self.message: str = (
"{} is not a valid channel type. Please consult the readme."
)
super().__init__(self.message)
def __str__(self) -> str:
return self.message.format(self.channel_type)
Can you point me to where the channel types are, so I can add them to the readme?
checking
pretty sure super works the same way in java where if you don't have anything to change inside the method of the inherited class you can pass this.super() with default arguments
In this tutorial, you will learn how to define custom exceptions depending upon your requirements with the help of examples.


