#voice-chat-text-0
1 messages · Page 738 of 1
@shut goblet they're just linter errors. generally excepting every error is a bad practice, and vscode is just letting you know
it's why the code runs, but there are still squiggles
wait, doing just except catches all?
hmmm
yeah

lmao
!e
try:
x
except:
print("lol")
@honest pier :white_check_mark: Your eval job has completed with return code 0.
lol
¯_(ツ)_/¯
I mean you shouldn't do either
yeah
do all of them
discord won't let me send 
!e
try:
x
except:
try:
y
except Exception:
print("YIKES")
try:
t = float(input())
print(x)
except:
print("you didn't input a float!")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
YIKES
yeah, discord died for me too
F
so in my example, @shut goblet , i except all errors, which is not good
instead, i should only except a ValueError, so i can let other errors through
oh
this is the code :
this is the error
how is that wrong?
how didd the input get 3 arguments?
input takes one string as argument
you are passing three arguments, separated by commas
ooo
try concatenating your strings with + instead
ok
def find_solution(step):
for num in range(step, 9999999999, step):
if all(num % n == 0 for n in check_list):
return num
return None
check_list = [11, 13, 16, 17, 19]
print(find_solution(2520))
why do i need 16 here?
project Euler problem 5
i assume with your supercomputer that takes less than 10 seconds
but for us mere mortals, we had to use a prime sieve
46ms
oh nvm, i see how it is done, that is extremely clever
Actually I wonder
Preta (Sanskrit: प्रेत, Standard Tibetan: ཡི་དྭགས་ yi dags), also known as hungry ghost, is the Sanskrit name for a type of supernatural being described in Hinduism, Buddhism, Taoism, and Chinese and Vietnamese folk religion as undergoing suffering greater than that of humans, particularly an extreme level of hunger and thirst. They have their o...
I wonder if @cache would help
functools.cache?
Yeah
what would you cache?
i tried to just using the primes, but i guess the 4^4 would need to be accounted for
that wouldn't work because 16 is divisible by 4 but 17 is not
since I already only have 2^2 in the 2520
yeah.. and the assignment already said that 1-10 is devisiable by 2520
so i just have to step by that amount
from functools import reduce
from math import log
from operator import mul
def sieve(n):
sieve = [True] * (n // 2)
for i in range(3, int(n ** 0.5) + 1, 2):
if sieve[i // 2]:
sieve[i * i // 2::i] = [False] * ((n - i * i - 1) // (2 * i) + 1)
return [2] + [2 * i + 1 for i in range(1, n // 2) if sieve[i]]
if __name__ == "__main__":
n = 20
primes = sieve(n)
print(reduce(mul, (p ** int(log(n) / log(p)) for p in primes), 1))
lol, this was so long ago i was using tabs
@gentle flint
stop
interesting approach to a sieve!
i don't think i'd be able to explain the math
your pfp gets me everytime
:O
return [2] + [2 * i + 1 for i in range(1, n // 2) if sieve[i]]``` is the only thing im iffy on
skribllllllll?
@whole bear
i usually have something like
return [2]+[i for i in range(3, n//2, 2) if sieve[i]``` i think
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
who is that sexy person
im surprised you had that so readily available REJ
what the card?
ye
You never know when it can come in handy
its just a level of preparedness i hadn't expected well done
just means you didn't clean up the port before closing the program
kernel is still listening
list = ['hello yo', 'goodbye', 'heyo', 'yo']
i want to know all of the words that contain "yo"
so after the code, output =
hello yo
heyo
yo
!e ```py
print("yo" in "heyo")
for word in list:
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
True
?
I mean you can still hop on VC to listen and talk to us that way
I need 48 more messages
47 now
for word in words:
if 'yo' in word:
print(word)
@faint ermine netstat doesn't list the port as listening? i'm not familiar with powershell
yes
46
lol
We typically watch the chat while we talk in here
Can I send 47 msgs rapidly to unlock my voice?
no, that's spamming
and then delete them?
also, hi friends
And second it needs 50 undeleted messages
hi
Hey gil
for word in words:
for letter in word:
list_ = ['hello yo', 'goodbye', 'heyo', 'yo']
for word in words:
if 'yo' in word:
print(word)
Just talk to us like any other conversation
you mean to tell me that my words have been seen by the wise mr hemlock?
Okay I try
I am capable of reading, yes
@honest pier we should play with prime numbers sometime
🥰 🥰 🥰
we?
i used to be obsessed with various implementations of sieves and spigots and etc.
string.split(' ')
"yo" in "hello yo"
I'm very pleased with GIMP rn
managed to edit away the white background in mr hemlock's pfp
to the point of making the glasses transparent
"hello yo".split()
your approach is pretty dfiferent than what ive used in the past in interviews etc.
well i mean the approach is basically the same but implementation details
@honest pier what does [True] mean
it makes a list with a single element (namely, True)
@honest pier :white_check_mark: Your eval job has completed with return code 0.
[True, True, True, True, True, True, True, True, True, True]
is this server always this active ? so many channels in use
We have some slower times, but usually it's pretty active
so many topics bit of information overload
yah for sure
so i get that the channels appear to cycle from available -> active -> dormant. people get assigned or hang out in specific ones ?
I think an error will be throwed
not in python
which language
python
you will get this error in python
TypeError: unsupported operand type(s) for /: 'list' and 'int'
unfortunately, that's not multiplication
Ah my bad
MT
Delivery run, back later
select
count(1) filter (where dt = 1) as dt_1_cnt, -- count dt 1
avg(1) filter (where dt = 2) as dt_2_avg -- average of dt 2
from table```
what is this?
what is this syntax?
if it's sql why count(1) and avg(1)?
there was a question on how to cound average values of a column by filtering on another columns datatypes
postgres...ish
😀
count works fine but avg wont work at all
In this tutorial, you will learn how to use PostgreSQL AVG function to calculate average value of a numeric column.
ye it's correct I checked it too
was curious if you could do it without a subquery or join but i dont think so
count works because you dont actually care about the value
unfortunately, I don't have pgsql installed
i dont actually know what the data looks like so i tried to psuedo code it but failed
😂
Nvm, go on python questions
python questions?
then I can answer you and send my 50 messages to unlock my voice
y
also you have to wait a number of days before you can talk, so i wouldnt worry about trying to meet a message # too quickly
that part is done
I go here
def search_task(task_list):
if task_list == []:
print("Your task list is empty. Nothing to search!.")
else:
search_key = input("what do you want to search for? : ")
for word in task_list:
if search_key in word:
print(word)
else:
while True:
answer = input(f"nothing matched {search_key}. Enter \"Yes\" if you would like to try again or \"No\" to quit this operation. : ")
if answer.lower() == yes:
elif answer.lower() == no:
break
else:
print(f'{answer} is not a valid option. Please try again.')
what is the problem?
!e ```py
def a():
a()
a()
@faint ermine :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 "<string>", line 2, in a
004 | File "<string>", line 2, in a
005 | File "<string>", line 2, in a
006 | [Previous line repeated 996 more times]
007 | RecursionError: maximum recursion depth exceeded
😀
wtf guys Why still I can't speak???
I sent more thank 50 message
and still I'm muted
@shut goblet
def search_task(task_list):
if not task_list:
print("Your task list is empty. Nothing to search!")
else:
escape_keys = ["quit", "exit"]
search_key = ""
while search_key.lower() not in escape_keys:
search_key = input("Search term: ('quit' or 'exit' to quit): ")
matched_terms = [task for task in task_list if search_key in task]
if matched_terms:
print("\nMatched terms:")
print("\n".join(matched_terms)+"\n") # same as looping and printing individually
else:
print(f"Nothing matched {search_key}.\n")
task_list = ["sweep", "mop", "laundry", "homework", "yardwork"]
search_task(task_list)```
!e print(" or ".join(["exit", "quit"]))
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
exit or quit
!e ```py
for e in ["", [], None, "a", 0, 5]:
print(str(e)+":", bool(e))
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | : False
002 | []: False
003 | None: False
004 | a: True
005 | 0: False
006 | 5: True
!e print(bool(-1))
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
True
found a lil problem @cyan quartz
what if the escape key is also in the list
and the person wants to check that
@shut goblet them tell him to hit Ctrl-Z 😛
lmao
AVG(if(idDataType = 11, value, NULL))/COUNT(if(idDataType = 11, value, NULL)) * 0.0036
i fixed the indentation in line 39
would that fix the problem we had earlier?
@faint ermine
if answer == "The clock struck midnight"
Clock = True
print(answer)
!e ```py
def find(query):
found = False
for word in ["hey", "hello"]:
if query in word:
print("found:", word)
found = True
if found:
return
print("nothing found")
find("hey")
find("asdasdasd")
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | found: hey
002 | nothing found
how did you do that laundmo for it to run it? just the !e ?
ye
!e print('hi')
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
hi
fancy.. is that a public bot ?
it's the server bot
if you wanna do extensive stuff with it, best head to #bot-commands
!source snekbox
Unable to convert 'snekbox' to valid command, tag, or Cog.
interesting thanks will have to take a gander
the actual thing running the python code is https://github.com/python-discord/snekbox
im with you laundmo
i've been in this server forever but it was so daunting i rarely spoke. but have been taking the python more seriously lately and working on projects
my first message?
@elfin jacinth great, keep working hard until the dream come true
i did put a question in #async-and-concurrency about 6months ago
Wow I don't even write python
jealous of py?
@gentle flint you anEE or what?
Yeye
Ye
how so?
So many things you can do with PY that you can't with JS
thats fair @whole bear funnily enough i've mostly used c# for network things
Might even switch one of these days
?
but python definitely makes it easier/faster
What do you do on C#?
Asp?
i automated router provisioning for my team of ~12 guys
.net
not too bad, they are configurations so usually between 2~4k lines of text
it used to be that our guys would take our templates depending on whether its a PE or LER etc
I mean I've only ever written some Unity 😛
and they would have to change between 100~400 lines of config and update it based on whats available in our IPAM solution
O
that makes it really easy to miss a line or two and completely fuck it up somehow
Bloated systems oof
select
max(t.dt_1_cnt) as dt_1_cnt, -- select non null value from groupby
max(t.dt_2_avg) as dt_2_avg -- select non null value from groupby
from (
select
count(1) filter (where dt =1) as dt_1_cnt, -- counts for data type 1
avg(data) filter (where dt = 2) as dt_2_avg -- average of data type 2
from
weather
group by
dt
) as t;```
so now i build that tool and they put in maybe a dozen parameters, it pulls everything else and spits out a config for the router
AVG(if(idDataType = 11, value, NULL))/COUNT(if(idDataType = 11, value, NULL)) * 0.0036 AS R_t
and they just run application i'm not worried about visual studio on their laptops
Yeah System - i had to used a bunch of libraries but it was smooth, i was mostly learning c# at the time and it was straight forward
O ok
yeah its a 2meg application on their desktop(s)
def etp(temp, radiation):
etp = 0.0133 * (((radiation / 6.0) * 0.086) + 50.0) * (temp / (temp + 15.0))
return etp if etp > 0 else 0
!e ```python
def num(a:int):
return a if a > 0 else 0
print(num(5))
print(num(-1))```
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
001 | 5
002 | 0
Idk what I wany
if you want to find a job, C# or C++
Why would they?
JS doesn't have direct C calls and JS being JIT doesn't make it as good for heavy math
take that back, JS could do C++/C but it's meh
no, I'm talking NodeJS
but again, Python is great for stuff that numpy supports
JS has uses as well, it's best for web based stuff which is ton of uses
WASM isn't 100% there and it's performance gains are not useful in all situations, it's also ton more complex
And what?
It's still compiled and that makes stuff harder for sure
still have to compile thus making it harder then just writing some JS
result = '\n'.join(''.join(mylist[x:x+90]) for x in range(0, len(mylist), 90))```
boys ive typed so many messages , but i just cant use my mic why????
what do you use the grid fo
for?\
ask the bot to verify you
you might have to wait a few days
that looks awesome
why do you rewrite the lines , cant you just append on the list?
(0, 90)
(90, 180)
(180, 270)
(270, 360)
(360, 450)
(450, 540)
(540, 630)
(630, 720)
(720, 810)
(810, 900)
(900, 990)
(990, 1080)
(1080, 1170)
(1170, 1260)
(1260, 1350)
(1350, 1440)
(1440, 1530)
(1530, 1620)
(1620, 1710)
(1710, 1800)
(1800, 1890)
(1890, 1980)
(1980, 2070)
(2070, 2160)
(2160, 2250)
(2250, 2340)
(2340, 2430)
(2430, 2520)
(2520, 2610)
(2610, 2700)
(2700, 2790)
(2790, 2880)
(2880, 2970)
(2970, 3060)
(3060, 3150)
(3150, 3240)
(3240, 3330)
(3330, 3420)
(3420, 3510)
(3510, 3600)```
the output of x:x+90 as a tuple
''.join(mylist[x:x+90]) for x in range(0, len(mylist), 90)
one line of 90 characters
result = '\n'.join(mylist[x:x+90] for x in range(0, len(mylist), 90))```
verbose oof south africa?
oh
ok
thought mabe , the accent was kinda similar
yes
im from south africa and that is basically the base english accent
like posh
lol
accent tho xD
I'm not so posh
bruh I can't speak
read channel description here
Virgin Orbit have joined a short list of private companies which have successfully developed and launched an orbit capable rocket. Launcher One is an air launched, cryogenically fueled 2 stage rocket able to carry about 300kilograms to a 500km orbit.
In terms of payload it's more capable than Rocket Lab's Electron, but more expensive, and able ...
(the best kind of clickbait, the type thats true)
@faint ermine sorry for ping i cant talk but do you know anything about js ? i cant find no one any where that does not even in other discord
aaaa dang
he's only ever written one program in JS
iirc
pro rata
In an n-type extrinsic semiconductor the foreign atoms introduce almost pro rata additional electrons.
The turboencabulator (in later incarnations the retroencabulator or Micro Encabulator) is a fictional machine whose technobabble description is an in-joke among engineers.
The following quote is from the original 1944 Students' Quarterly Journal article by "J. H. Quick".
The original machine had a base plate of prefabulated amulite, surmounted b...
Maxima () is a computer algebra system (CAS) based on a 1982 version of Macsyma. It is written in Common Lisp and runs on all POSIX platforms such as macOS, Unix, BSD, and Linux, as well as under Microsoft Windows and Android. It is free software released under the terms of the GNU General Public License (GPL).
@lyric heart
Open–closed
Liskov substitution
Interface segregation
Dependency inversion```
Drives me a little batty, sometimes.
@whole bear
public void printNum(int n) {
if (n > 5) {
System.out.println("Number is greater than five.");
} else {
System.out.println("Number is less than or equal to five.");
}
}
def print_num(n):
if n > 5:
print("Number is greater than five.")
else:
print("Number is less than or equal to five.")
im so lost rn lmao
Output the following figure with asterisks. Do not add spaces after the last character in each line.
Note: Whitespace (blank spaces / blank lines) matters; make sure your whitespace exactly matches the expected output.
im doing this for my cse 1010 class
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.
im kinda lost lmao
Testing whether 8 is displayed.
Your output
Your program produced no output
Expected output
Discord uses asterisks in its "markdown" formatting. Asterisks are used to do things like make text bold or italicised.
Surround your text with backticks, ` to stop this from happening. Use three at either end of your text to do multiline markdown cancellation.
print('Hello,')
print('world!')```
so I have 3 lines they gave me
1 2 3 and on the second one it says ''' Your solution goes here '''
The backtick is typically located on the same key as tilde, ~
` this one right
Mhm.
I don't work with VS Code. 🙂
so for the code basically get the range
range(5):
for j in range(5):
if i==0 or j==0 or i==4 or j==4 or i==2:
print("*",end="")
else:
print(" ", end="")
print()
oh then command k + c
@subtle patrol That's a very complicated approach to a problem with a very simple solution.
But I suppose it's instructive....though I would argue there are better ways to instruct on the use of for loops, ifs, elses and so on.
cause we use zybooks
for python
and we literally jumped from learning how to print to this
I'll type some code. You can follow along if you like.
ok
I see I ran it in the command
It's showing Hello world as my output
and then the ** as my expected?
apple = 0
if apple in (4,5,6):
print('apple is in (4,5,6)')
else:
print('apple is not in (4,5,6)')```
I got it
for i in range(10):
print(i)```
Any tips on continuing python? I am learning through my cse 1010 course
I often suggest to people that they read through the python documentation on python.org.
The more you know about what's in the language, the more ideas you might be able to come up with.
I also had a question kinda when I was doing one of the commands
The more you think, "Ooh, I know about something in Python that I could use to tackle something like this"
Write the simplest statement that prints the following:
3 2 1 Go!
Note: Whitespace (blank spaces / blank lines) matters; make sure your whitespace exactly matches the expected output. so I did that and I got the problem right
print("3 2 1 Go!")
So why does the whitespace matter?
I got the problem right its just im confused on the whitespace part
Think about text on a computer not merely as a series of visual elements, but of logical characters. I'll explain.
What if we looked at text like this:
Hi, there
we will look like nothing
Where each dot holds its own meaning.
Now I'll substitute one character
Now another
o i see where ur going with this
RIght? So computers see what we see as visual data as just points of information
Which may or may not be an actual visual character
Some of it it formating
Some of it has no spatial dimension
I see
Alright tyy I am gonna figure some more code out
I always like write whatever I get wrong
Some of it might say, "Hey, this is a newline, go to the next line"
O so then after u would start your code on the next line
You see text on the next line, but you don't actually see the character, itself
But that instruction is a character
So when it's asking you for an exact string, all it's saying is it wants that string and nothing but. Nothing that's different or similar but looks the same....the same.
result = '\n'.join(''.join(mylist[x:x+90]) for x in range(0, len(mylist), 90))
def sort_key(element):
return element["x"], element["y"]
data = sorted(data, key=sort_key)
map_2d = [[]] * data[-1]["y"] # make a list of lists with the length of the larges y
prev_x = -1
for d in data:
if d["x"] > prev_x:
map_2d[d["y"] - 1].append(d["gfc"])
prev_x = d["x"]
print("\n".join(map(str, map_2d)))
data = [{'x': 1, 'y': 1, 'gfc': '.'}, {'x': 2, 'y': 1, 'gfc': '.'},
map_2d[y][x]
!e ```py
print(["a"]* 5)
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
['a', 'a', 'a', 'a', 'a']
How do I use that bot? :o
!help eval
!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!*
ty
!e python i = 0 i += 1 print(i) i += 2 print(i)
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 3
!e ```py
class A():
def init(self):
class B(type(self)):
pass
self.b = B
print(A().b.bases)
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
(<class '__main__.A'>,)
A().b().b().b().b.__bases__
what does the python bot use for remote code execution?
!e ```python
class A:
class B:
def init(self):
self.parent = super().init
def hello(self):
print(f"Hello {self.parent.name}")
def init(self):
self.name = "Hello Rabbit"
A.B().hello()```
you need to create an object of B i think
@amber raptor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 12, in <module>
003 | TypeError: hello() missing 1 required positional argument: 'self'
thanks laundmo
A.B().hello()
!e ```class A:
class B:
def init(self):
self.parent = super().init
def hello(self):
print(f"Hello {self.parent.name}")
def init(self):
self.name = "Hello Rabbit"
A().B().hello()```
@amber raptor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 12, in <module>
003 | File "<string>", line 7, in hello
004 | AttributeError: 'method-wrapper' object has no attribute 'name'
!e ```py
class A:
class B():
def init(self):
self.parent = super().init()
def hello(self):
print(f"Hello {self.parent.name}")
def init(self):
self.name = "Hello Rabbit"
A().B().hello()
# create a Color class
class Color:
# constructor method
def __init__(self):
# object attributes
self.name = 'Green'
self.lg = self.Lightgreen()
def show(self):
print("Name:", self.name)
# create Lightgreen class
class Lightgreen:
def __init__(self):
self.name = 'Light Green'
self.code = '024avc'
def display(self):
print("Name:", self.name)
print("Code:", self.code)
# create Color class object
outer = Color()
# method calling
outer.show()
# create a Lightgreen
# inner class object
g = outer.lg
# inner class method calling
g.display()
is this something akin to what you're looking for
class A:
pass
class B(A):
pass```
whats so bad about having the subclass dangling out
NO STOP
HADEEZ DONT DO THIS TO ME
the second i leave stelercus comes back
stelercus y u h8 me?
yeah stelercus
class A:
def __init__(self):
self.name = "Rabbit"
def hello(self):
print(f"Hello {self.name}")
def set_name(self, name:str):
self.name = name
class B:
def __init__(self):
self.parent = super().__init__
def goodbye(self):
print(f"Goodbye {self.parent.__name__}")
print("Hello")
greeting = A()
greeting.hello()
greeting.B.goodbye()
greeting.set_name("Laundmo")
greeting.hello()
greeting.B.goodbye()```
!e
class A:
def __init__(self):
self.name = "Rabbit"
def hello(self):
print(f"Hello {self.name}")
def set_name(self, name:str):
self.name = name
class B:
def __init__(self):
self.parent = super()
def goodbye(self):
print(f"Goodbye {self.parent.__name__}")
b = B().goodbye()
@tidal salmon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 19, in <module>
003 | NameError: name 'B' is not defined
i dont think this will work
yep
!e
class A:
def __init__(self):
self.name = "Rabbit"
def hello(self):
print(f"Hello {self.name}")
def set_name(self, name:str):
self.name = name
class B:
def __init__(self):
self.parent = super()
def goodbye(self):
print(f"Goodbye {self.parent.__name__}")
b = A.B().goodbye()
@tidal salmon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 19, in <module>
003 | File "<string>", line 17, in goodbye
004 | AttributeError: 'super' object has no attribute '__name__'
!e
class A:
def __init__(self):
self.name = "Rabbit"
def hello(self):
print(f"Hello {self.name}")
def set_name(self, name:str):
self.name = name
class B:
def __init__(self):
self.parent = self.__class__.__mro__
print(self.parent)
def goodbye(self):
print(f"Goodbye {self.parent.__name__}")
b = A.B().goodbye()
@tidal salmon :x: Your eval job has completed with return code 1.
001 | (<class '__main__.A.B'>, <class 'object'>)
002 | Traceback (most recent call last):
003 | File "<string>", line 20, in <module>
004 | File "<string>", line 18, in goodbye
005 | AttributeError: 'tuple' object has no attribute '__name__'
!e
class A:
def __init__(self):
self.name = "Rabbit"
def hello(self):
print(f"Hello {self.name}")
def set_name(self, name:str):
self.name = name
class B:
def __init__(self):
self.parent = A
print(self.parent)
def goodbye(self):
print(f"Goodbye {self.parent.__name__}")
b = A.B().goodbye()
@tidal salmon :white_check_mark: Your eval job has completed with return code 0.
001 | <class '__main__.A'>
002 | Goodbye A
yep
yeah this is a cool solution
Hello everyone
hi
oh
hadeez teach me angular please
still doing the worley ay? 😄
aah ok
Hey, you here as well?
Yeahh bruhh
join a vc
im in code help 0
also ping me from next time 😃
okay @plush willow ty
damm i forgot to do an entire five hour project for my class finished in a hour somehow i feel dead inside
wow, thats oxymoronic
did it work tho, my algorithm?
im having a hard time doing it
Should i give you the code?
hey guys '
i'm new here and i need python courses
where can i get them??
and what do yo recommend?
you***
i'll start with python
then will continue the rest
And I prefer the courses on the books
is it necessary to read books @versed island
??
@versed island thx ❤️
when?
oh
thanks broo ❤️
please
num = 407
# To take input from the user
#num = int(input("Enter a number: "))
# prime numbers are greater than 1
if num > 1:
# check for factors
for i in range(2,num):
if (num % i) == 0:
print(num,"is not a prime number")
print(i,"times",num//i,"is",num)
break
else:
print(num,"is a prime number")
# if input number is less than
# or equal to 1, it is not prime
else:
print(num,"is not a prime number")
ty
Welcome
Hi guys, Does anyone know whether django rest_framework and rest_framework.authtoken can be used to create a password reset for custom users?
@whole bear Your mic looks stuck open and we can't hear you.
I'll be there soonish. Already had to do a delivery run and I'm still not fully at my desk just yet
Just want to spread awareness. Dolphins are suffering from fresh water skin disease. Salinity in the ocean water is decreasing which is causing this. 70% of their skin is covered in abrasions and some even die. Please do a simple google search to see for yourself.
And we're supposed to specifically do....
What?
A call to action requires an action
It's informative, yes
I cannot be precise as I am not a scientist reasearcher however I do know that awareness contributes to reaching a solution.
clearly we need to dump a salt lake into the ocean?
(im kidding, i know its a global warming issue)
I find that, outside the management of invasive species, the less people are involved in a given environment, the better the environment becomes for the species that live there.
@whole bear
Sure, but when dropped completely out of context, it comes off as preachy and not overly helpful
Especially in a programming server

@rugged root Pretty stupid. Pretty funny. https://imgur.com/gallery/8ex2LvM
🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬 🐬
So.... Just trolling at this point or....
i mean i looked it up, its a genuine issue, but yea thats kinda wierd
also, doesnt the bot have a emoji limit?
Shop Audio Technica ATR2X-USB 3.5mm to USB Digital Audio Adapter. Search all Audio-Technica in USB Adapters.
@tawny moth check out the #voice-verification channel. That'll tell you what you need to know
Something that is of poor quality, or lacking in aspects. It can also mean something that is bad or mean. A derivative of snide. However in English slang, most particularly the north, snide is the verb of snid.
sned = smoke nugs every day
Snail god??
of course
A combination of snow and mud, that usually accumulates in the wheel wells of cars. A favourite pastime in Canada is to go out and kick the snuds off cars to hear the plop sound.
@gentle flint so someone had a problem installing something so i did this to help
G'evening
@fierce summit stupid question but have you looked at this https://support.microsoft.com/en-us/windows/fix-microphone-problems-5f230348-106d-bfa4-1db5-336f35576011
If you are having trouble with your microphone features, the following information can help you troubleshoot and resolve issues.
idk i joined half way
Mic audio on Discord for my laptop is broken
PulseAudio thing I think, but if it wasn't broken I'd be speaking a lot more 
if it's pulseaudio it should be fixable
do you see the input in Pulseaudio Volume Control?
(assuming you have that installed)
I do have that
it could be a broken cable?
Doubtful, but possible...
Yep, also by broken I meant annoyingly static-ey for some reason
can you see both of the devices
ohhh
Although recording through Audacity works fine
Why splitter?
Audacity works w/o distortions as well as on the browser
very strange
What does that USB do?
damn i was lucky to get into the vc lol
did you check audio devices carefully?
can some help me with python
hi
we can hear you
okay
https://windowsreport.com/createprocess-failed-code-740/ if anyone needs it
btw
it should conduct better with rising temp
not worse
at least that's what I learned today
not sure
apparently the electron and hole populations are heavily dependent on temperature
@somber heath can you link it for me i can not find the live link
can you hear us
@fierce summit can you hear us
yes
the joy
👏
🎊 🎊 🎊 🎊 🎊
Watch live coverage as President-elect Joe Biden and Vice President-elect Kamala Harris are sworn into office on Wednesday, January 20 at the U.S. Capitol.
» Subscribe to NBC News: http://nbcnews.to/SubscribeToNBC
» Watch more NBC video: http://bit.ly/MoreNBCNews
NBC News is a leading source of global news and information. Here you will find cl...
thank you opal
Lady Gaga's skirt looks like a lampshade
@gentle flint I'm really digging Michelle Obama's suit thing. The colour and fabric is gorgeous.
i had this background for a while
I am?
That's odd because I haven't been on in a week
well, you were in the VC when I said it
or I couldn't possibly have seen it
Don't you need twice the maximum frequency to recover the original signal?
yes
something like that
yea
that's Shannon's theorem
Yais
Text("Min temperature celsius \(day.mintemp_c, specifier: "0.1f")")
i love how there has to be a specifier argument, instead of just being in the string
Yeah, the worst thing is being made to do a job badly 😄
Although it makes me wonder if it's more that you're feeling the parts of your head moving
yeupp I think it's that
or I'm a superhuman
birb
blue cheese
At a fancy Italian restaurant maybe
Sounds like too much work 😄
I want my pizza now
"terroir"
or something
Could you eat extremophiles?
I need to send 50 message or the server will kill me
it wont tho?
#spam
what religion?
hm
Yeah don't 😄
ok
Sarcasm
Just chat here for now
Hello @river stratus
chat with me
Ok
I'm good
walk with me
sorry I only run
How's your day been?
idk
just been learning
Same
whatcha been learning
Biology
school
Math
bio 👎
You have been learning school
Math(s).exe
lol
i need to study too
Ignore study, adopt monkey

How are you now?
We're pros at bikeshedding
Bikeshedding?

Giving too much attention in meetings to minor details.
wait
you can talk
why are you chatting?
you lied to me
With the example being that you spend the whole meeting talking about what colour to paint the bike shed.
🧠
What colour is your shed?



It's cursed
yais



I'm trying to understand the anatomy...
Same Hemlock tbh



























🍋🍋



































i just wanted to have the access
:incoming_envelope: :ok_hand: applied mute to @warped saffron until 2021-01-20 17:33 (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 21 emojis in 10s).
oops
!unmute 724298063514173481
:incoming_envelope: :ok_hand: pardoned infraction mute for @warped saffron.
Danke Schon
!source discord_emoji
Unable to convert 'discord_emoji' to valid command, tag, or Cog.
!source [source_item]
Can also use: src
Display information and a GitHub link to the source code of a command, tag, or cog.
Any pc wallpaper suggestions?
Stel hoping in like last minute President with pardons
Like 'thanks' and 'thank you'?
i'm learning german with duolingo
discord_emojis:
interval: 10
max: 20
You haven't truly learned with Duolingo until the Duo bird threatens your life when you miss lesson

yes
After doing kubes training, I’m not a fan of YAML. It’s like someone look at JSON and said you know what will make this better, Python syntax
Tasche = bag
wasn't yaml before json?
They were wrong IMO
yaml is much more readable though
Sure, if you don’t JSON capable editor
JSON seems more usable despite being more {} and ,
Tüte
zuck
That's fair
sack
I need to look at TOML again
DERP
Listen to english media
Derprication
But my opinion is also wrong since there are days I miss {}
I do as well
#cryforcode
There's something nice about the absolute nature of them
hey gyus, does git prevent overriding files when there are uncommited changes?
I'm trying to copy the exact files but their older version in the current git repo state.
Don't ask why I'm copying files instead of reverting changes
However, I’m so glad Powershell has explicit line continuation character
Which?
Backtick
do you mean merging a file with uncommitted changes?
Zu sprechen Deutsche, musst du deutsche Media horen. 👍
Don’t worry, you won’t need it once I teach you splatting
Well now you have my attention.
Hey Hem, how's your life been?
Eh, been doin' good
on the subject of learning languages someone is making something for their prod bot in ts, and i said something along the lines of "i could help because we all know the best way to learn is by operating on live infrastructure" and they responded with https://i.kym-cdn.com/entries/icons/original/000/016/753/ivan.png
Nothing really big or exciting
neither for me
oh
I mean, i have a repo called folder 1, I made a copy-paste version of this folder1 somewhere else,
then I made some changes in code files of folder 1 (but didn't create new files), now there are uncommited changes.
now I am trying to revert the changes to original by not git revert (thing), but copying the other copy of folder 1 over the original uncommited folder 1, but it says permission denied (also shows me a git checksum in the end with this message)
also if someone want to explain this to me via talking to me, I can un-deafen myself
mom's sleeping in other room, and I lost my earphones somewhere in this house
me?
what's a paragraph? collection of words and sentenses
I think that reference is before our time... 😄
or chunk
I don't think anyone here knows who Shatner is
I mean I try to do that, but I do often have follow up thoughts that mess me up
is this because you read a lot of code, and paragraph reading now is pain to your brain 😂
yes
hey
do some other stuff too, life's not just reading small chunks of code
read a book or something
reading code is awesome though
but also, anything done for too long, not good for brain and health
mixing things up is also good
tag = day
nacht = night
abend = afternoon
Morgen = morning
I do read other sources but I still don't like reading a lot in one go
what do I do, if shutil.copytree() gives me permission errors?
brb
i tried making a batch file of the script, and then running the batch file in admin cmd
but still permission errors
Word of today = Crunch
yeah, for me that day is gonna end in 40 minutes
noice
ayy rabbit is back...?
Make sure you get enough sleep tho
@rugged root @somber heath @amber raptor @severe pulsar @faint ermine any help on this if possible, please #voice-chat-text-0 message
@wise glade it might be best to open a help channel with this
LETS GO BRO!
today I'm coding with complete dark lights out in my room
not getting tired, but missing keys on keyboard
hey lol
is it a good thing, complete dark in room to code?
"Music make you lose control"
What's up @severe pulsar
yeah, you showed a pic of your room
HOW CAN YOU DO
yeah, laundmo showed his dark room once
I'm a HACKER!
cool
@severe pulsar @severe pulsar triple ping 😄
Actually, let's not go down this route...
please lol
WAIT THATS A HELPER
shoot
That's a war that no one wins 😄
I use it to cheat in exams, telegram
We're not the mafia 😄
🙏
Ok see ya
btw, new wallpaper (and I know all 3 of em)
lol why?
i respect laundmo's enthusiasm in esoteric python
I would have voted no but I’m rabbit. I also deliberately don’t get a vote.
yeah there's a reason for that...
im JOKING PLEASE
i don't know why Opal's not a helper?
but then I think, maybe he just doesn't wanna do this
u use pyperclip for clipboard, right?
That's the one that Automate the Boring Stuff mentions
I'm not sure if there's another one or if that one is still maintained
Yeah seems to be
Oh huh, made by Al himself
I played pokemon blue 😄
last commit, 4 months ago, so still maintained?
Erm, what 
pyperclip
brb
ok, bye people, tomorrow's my off day, so I'm going to sleep 8 hours at least tonight
congrats on the new president, btw
Should I just rename it voice-chat-0?
.
nah, go for broke. we need more consonants. lots of x's and z's. </sarcasm>
I do like that better. I also like the matching names.
yeah i like voice-chat-0 better as well
wait, if we're doing voice-chat-0 and voice-chat-1, shouldn't we use python and make it voice-chat-False and voice-chat-True?
but in python,
!e
assert False == 0, "nope"
!e print(0 == False)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
True
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Opal, you don't do the classic quick turn to cause your hair to whip across someone's face trick?
I literally have no idea what Opal looks like 😄
I picture a generic Australian man
lol, didnt he used to have a picture of himself as his pfp
or was that someone else
Top hat. Yes.
In a "M'lady" kind of pose.
yeah
tipping the hat
coolz
i remember those days
shift + esc is so useful in discord
Cya laundmo
Similar situation @vivid gull
Wow, that's so useful. I didn't know about that!
BRB, shift+esc on several dozen servers
Sorry did you say hanging from a bridge?
Erm, the Irish sea?
Rolo, don't feel bad, the only date I've had in the past year was the two of us meeting up at the local taco truck and chatting from inside our cars in order to maintain social distancing.
This is not a good time for dating, unfortunately.
Although I bet there will be a lot of romance novels about the "distant admiration" trope because of this.
god, don't get me started
my ex uses artifical distance as a way to prevent her from having to cope with her issues with coping with being emotionally vulnerable
there's.....a lot to unpack there
I know for a fact she's doing the same thing to this other poor bastard she cheated on (with me...)
It's your standard anxios/avoidant trap relationship
Stories like that make me glad to be single.
