#voice-chat-text-0

1 messages · Page 714 of 1

gusty siren
#

tf

sick cloud
#

lol

whole bear
#

Maybe is from the Django version

sick cloud
high ingot
#

Lol 10/10

whole bear
#

Try to downgrade to version 2.1.5

#

It should work

severe pulsar
severe pulsar
#

lets go

#

bye for now guys

#

(sorry for being hyper)

gusty siren
#

o k

sick cloud
high ingot
#

@somber heath were you talking about the new screen share function of discord?

whole bear
#

Is from the Django version I saw some people telling about this

rugged root
gusty siren
#

yeaaah

whole bear
#

And they said to downgrade

faint ermine
gusty siren
#

im gonna take ma horse to the old town road

uncut meteor
#

.

somber heath
#

Previously, it was uncoloured.

high ingot
#

Oh

#

Was it not?

sick cloud
#
idk
high ingot
#

Okai

sick cloud
#

@high ingot what's the time for u now ?

high ingot
#

1am

sick cloud
#

wtf are u doing at 1 am ?

high ingot
#

Thanks for reminding me that

#

I’m gonna sleep now

sick cloud
high ingot
#

:(

#

I don’t like being さよならed

muted linden
#

ok

rich cloud
#

sayonara

muted linden
#

bye

sick cloud
rich cloud
#

oyasuminasai

high ingot
sick cloud
#

cya tmr

rich cloud
#

nihonji deska?

#

@high ingot

#

...

sick cloud
high ingot
#

:(

rich cloud
#

mixed

high ingot
sick cloud
high ingot
#

:(

rich cloud
#

D:

high ingot
#

Anyway

#

Bye

sick cloud
#

@high ingot i'm using ||google translator|| by the way x)

rich cloud
#

byee

sick cloud
#

b y e e e e

high ingot
#

Yea

#

Deepl is 100x better

sick cloud
faint ermine
sick cloud
#

never heard about it

#

deepl

faint ermine
#

now you did

sick cloud
rich cloud
#
interesting
sick cloud
#
<hmm>
stuck furnace
#

Hey 🙂

#

What's up?

rugged root
#

Not a lot, 'bout you?

uncut meteor
#

this is amazing

fresh python
#

@hushed elm

#

give me arch link to download

hushed elm
#

heya @fresh python

#

@fresh python there you go

severe pulsar
#

ooh he/shes doing art

#

thats awesome

fresh python
hushed elm
#

K(ool) Desktop Environment

#

you

severe pulsar
#

😎 😎 😎

#

very kool

#

kool kidz

whole bear
#

when do i surpass 50 msgs

#

its starting to get boring

severe pulsar
#

when you send 50 messages?

#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

severe pulsar
#

my bad

#

you can use that command though

#

@whole bear

#

to check how many messages you sent

#

in #bot-commands

#

what do you guys think of serverless(function call based) vs server based

hushed elm
#

they SUCK

#

hahaha

severe pulsar
#

damn what

whole bear
#

still not 50 msgs

#

its kinda boring now

#

@severe pulsar can you have a conversation with me so that i can complete 50 messages

severe pulsar
#

uh

#

about what

whole bear
#

anything lol

severe pulsar
#

you also need 3 days

whole bear
#

it says i only need to send 50 messages

#

i dont see anything else

severe pulsar
#

no you do need 3 days

whole bear
#

ok nevermind

severe pulsar
#

check the # voice verification channel

hushed elm
#

@fresh python you gotta increase your mic volume big boy

severe pulsar
#

and run the "!voiceverify" command

hushed elm
#

👍

severe pulsar
#

nice!

hushed elm
#

thread.app/macro/blog
macro.thread.app/blog

#

which one looks better?

#

thread.app/macro/blog

#

macro.thread.app/blog

#

pls react

whole bear
#

nice

hushed elm
#

KEK

whole bear
#

you people are like veterans of coding right?

rich cloud
#

xD

gusty fjord
whole bear
#

x(

#

pls dont mind me sending random messages, just trying to bypass the 50msg limit

rich cloud
#

hello

whole bear
#

hey

#

how are you?

rich cloud
#

doing great. it's night time here

#

and you?

whole bear
#

ouuu

#

well what type of music do u listen often

rich cloud
#

cave man music

whole bear
#

oh ok

rich cloud
#

lets count alternativly

#

i'll start

whole bear
#

i mostly listen to rnb, trap, chill and sort of

rich cloud
#

1

#

3

#

4

#

my bad

#

lol

whole bear
#

lol

rich cloud
#

6

whole bear
#

nevermind

uncut meteor
#

can we not

hushed elm
#

uh oh you'll get kicked

rich cloud
#

xD

hushed elm
#

watch out haha

rich cloud
#

just helping lowkeo get to fiddy

#

maybe not the right way to do it

#

xD

hushed elm
#

illegal uh oh @near niche

whole bear
#

leave it its fine

#

thanks btw @rich cloud

rich cloud
#

np :))

whole bear
#

anyone plays among us?

#

its a nice game

somber heath
#

One clocks in, clocks out and watches out. Watching in requires additional words to make complete sense. For example, watching in horror.

near niche
#

from emailsanta import re

#

from emailsanta import requests

#

import re

whole bear
#

oh yeah finally

dim swallow
#

you guys are to smart for me, have fun!

whole bear
#

thank you @rich cloud u helped me a lot

rich cloud
#
@lowkeo no problem
livid yacht
#

yes

uncut meteor
severe pulsar
#

damn felix has become a vc regular i think

#

awesome

#

👍

#

there are private methods in python classes though

#

so thats cool

lilac stream
#

hello

somber heath
scenic geyser
#

@lilac stream 🥺

lilac stream
#

xdd

somber heath
#

It's imaginary.

severe pulsar
#

interesting

#

so there is no functionality in this?

somber heath
#

You can prepend a _ to a method/attribute to indicate to a user of your module that it isn't meant for them to use directly.

#

But it's just a name.

lilac stream
#

Can someone help me with my packet sniffer in python?

scenic geyser
#

Yeah

somber heath
#

It doesn't make it behave any differently.

scenic geyser
#

__init__

rugged root
#

Back in about an hour and a half or so

uncut meteor
#

!e

class A:
    def __init__(self):
      self.__var = 5

    def __test(self):
       print("TEST")

a = A()
a.__test()
print(a.__var)
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 | AttributeError: 'A' object has no attribute '__test'
scenic geyser
#

Brb after dinner

severe pulsar
uncut meteor
#

!e

class A:
    def __init__(self):
      self.__var = 5

    def __test(self):
       print("TEST")

a = A()
print(a.__var)
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 9, in <module>
003 | AttributeError: 'A' object has no attribute '__var'
severe pulsar
#

!e

wise cargoBOT
#
Command Help

!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!*

severe pulsar
#

!e

class A:  
    
    # Declaring public method 
    def fun(self): 
        print("Public method") 
    
    # Declaring private method 
    def __fun(self): 
        print("Private method") 
          
# Driver's code 
obj = A() 
  
# Calling the private member  
# through name mangling 
obj._A__fun() 
wise cargoBOT
#

@severe pulsar :white_check_mark: Your eval job has completed with return code 0.

Private method
uncut meteor
#

!e

class A:
    def __init__(self):
      self._var = 5

    def _test(self):
       print("TEST")

a = A()
a._test()
print(a._var)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | TEST
002 | 5
uncut meteor
#

!e

class A:
    def __init__(self):
      self.__var = 5
      self._var = 6

    def __test(self):
       print("TEST")
    
    def _test(self):
      print("TEST")

a = A()
print(A.__dict__)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

{'__module__': '__main__', '__init__': <function A.__init__ at 0x7fdcce638d30>, '_A__test': <function A.__test at 0x7fdcce638dc0>, '_test': <function A._test at 0x7fdcce638e50>, '__dict__': <attribute '__dict__' of 'A' objects>, '__weakref__': <attribute '__weakref__' of 'A' objects>, '__doc__': None}
uncut meteor
#

__doc__

blazing vault
#

!e

wise cargoBOT
#
Command Help

!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!*

uncut meteor
#

!e

class A:
    """ THIS IS COOL """
    def __init__(self):
      self.__var = 5
      self._var = 6

    def __test(self):
       print("TEST")
    
    def _test(self):
      print("TEST")

a = A()
print(dir(a))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

['_A__test', '_A__var', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_test', '_var']
uncut meteor
#

!e

class A:
    """ THIS IS COOL """
    def __init__(self):
      self.__var = 5
      self._var = 6

    def __test__(self):
       print("TEST")
    
    def _test(self):
      print("TEST")

a = A()
print(dir(a))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

['_A__var', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__test__', '__weakref__', '_test', '_var']
heavy dirge
#

What do you all think of my design do far?

uncut meteor
#

Constants

Constants are usually defined on a module level and written in all capital letters with underscores separating words. Examples include MAX_OVERFLOW and TOTAL.

hushed elm
#

i use all caps values in classes if they don't change

uncut meteor
#

!e

class CHANGE_MY_MIND(object):
  _=" ";__="!";A="A";B="B";C="C";D="D";E="E";F="F";G="G";H="H";I="I";J="J";K="K";L="L";M="M";N="N";O="O";P="P";Q="Q";R="R";S="S";T="T";U="U";V="V";W="W";X="X";Y="Y";Z="Z"

  def __init__(self):
      _ = CHANGE_MY_MIND
      self.mesage = _.H+_.E+_.L+_.L+_.O+_._+_.W+_.O+_.R+_.L+_.D+_.__

print(CHANGE_MY_MIND().mesage)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

HELLO WORLD!
hushed elm
#

wtffff lol

uncut meteor
#

!e

from string import ascii_lowercase, ascii_uppercase

class Oof(object):
    pass

o = Oof()

for i, k in enumerate(ascii_uppercase + ascii_lowercase):
    o.__dict__[k] = i
print(f"{o.H}{o.E}{o.L}{o.L}{o.O} {o.W}{o.O}{o.R}{o.L}{o.D}")

wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

74111114 221417113
uncut meteor
#

oof

hushed elm
#

haha

uncut meteor
#

!e

from string import ascii_lowercase, ascii_uppercase

class Oof(object):
    pass


o = Oof()

for i, k in enumerate(ascii_uppercase + ascii_lowercase):
    Oof.__setattr__(o, k, i)


print(f"{o.H}{o.E}{o.L}{o.L}{o.O} {o.W}{o.O}{o.R}{o.L}{o.D}")
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

74111114 221417113
somber heath
#

I didn't know it was possible to be simultaneously both impressed and unimpressed.

uncut meteor
#

😂

#

@somber heath

#

!e

myClass = type(
    'myClass',
     (),
     {
         'my_val': 420,
         'double_val': lambda self,  : self.my_val * 2
    }
)

instance = myClass()
print(instance.my_val)
print(instance.double_val())
print(instance, type(instance))
#

rate my class

wintry kernel
#

good

wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 420
002 | 840
003 | <__main__.myClass object at 0x7fd27a4af400> <class '__main__.myClass'>
wintry kernel
#

!e

import os
whole bear
near niche
severe pulsar
#

@somber heath type if you cant seem to get your statements out in voice :)

somber heath
#

@severe pulsar Because I'm unaware of my capacity to do that.

severe pulsar
#

sorry

#

you just seemed eager to get what you wanted to say out

#

my bad

#

didnt mean to annoy you

wise glade
#

does anyone know, how to restore files using my one of old git commits, not the recent commit?
also, I just staged my git commits on my local machine, didn't push them to the actual github, so the commits just exists on my pc, not on github

tranquil barn
wise glade
#

@tranquil barn thanks, worked

severe pulsar
#

aah yeah

wise glade
#

mine's JavaScript, idk how to code, but JS can make so much cool stuff
would be nice, to create all that web stuff

severe pulsar
#

aah mine would probably be typescript/dart

wise glade
#

so what're u people doing on 25?

#

my last exam's on 24, so I'll go crazy, probably

severe pulsar
#

FFFF

wise glade
#

this medical equip thing, where did I read it last 🤔🤔

#

yeah, race conditions in multithreading, it killed people in MRI machines in early days

#

too many scans, run on a person, radiation poisoning or magnetic field poisoning or something

severe pulsar
#

b o i

#

oh man

wise glade
#

can someone tell me what is an API key? in layman's terms
(just read, make sure you don't accidently post it online)

#

like what is it? some SSH encryption string?

#

some stuff like adjfoiajfoiasjfiojfoiasuf8afda9080f

#

thanks

hushed elm
#

it's basically a key that unlocks a door. the door is an API that returns some result given some input and the key

#

so if i want to call the Twitter API to post a tweet, Twitter gives me an API key i can use to make Twitter post this tweet

#

or you can get an API key for GPT-3 to use their AI to generate some text. since the GPT-3 API is invite only, only people who have this API key can use their services

#

an api key can look like anything

#

3460953475689734895764895 or whatever

paper lodge
#

cool

uncut meteor
#

@severe pulsar this is what I was doing

#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

fib = type(
    'Fibonacci',
     (),
     {
         '_cache': [0, 1, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

instance = fib()
print(instance.at(7))
print(instance._cache)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
hushed elm
#

nice i like it

uncut meteor
#

my brain doesn't

hushed elm
#

well ur brain succs

uncut meteor
#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

fib = type(
    'Fibonacci',
     (),
     {
         '_cache': [0, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

instance = fib()
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
003 | <__main__.Fibonacci object at 0x7fca84640fd0> <class '__main__.Fibonacci'>
004 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_build', '_cache', '_construct', 'at'] {}
uncut meteor
#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

fib = type(
    'Fibonacci',
     (),
     {
         '_cache': [0, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

instance = Fibonacci()
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 17, in <module>
003 | NameError: name 'Fibonacci' is not defined
uncut meteor
#

!e

class MyClass:
  pass

myClass = MyClass()

e = MyClass
a = e()
print(a, myClass)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

<__main__.MyClass object at 0x7f9c46149700> <__main__.MyClass object at 0x7f9c461496a0>
uncut meteor
#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

my_class = "AppleSauce"

locals()[my_class ] = type(
    my_class,
     (),
     {
         '_cache': [0, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

instance = eval(f"{my_class}()")
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
003 | <__main__.Fibonacci object at 0x7f5d86bd0fd0> <class '__main__.Fibonacci'>
004 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_build', '_cache', '_construct', 'at'] {}
uncut meteor
#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

my_class = "Fibonacci"

locals()[my_class] = type(
     my_class,
     (),
     {
         '_cache': [0, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

instance = eval(f"{my_class}()")
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
003 | <__main__.AppleSauce object at 0x7f94caa8af10> <class '__main__.AppleSauce'>
004 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_build', '_cache', '_construct', 'at'] {}
uncut meteor
#

#bot-commands

tranquil barn
rugged root
#

@near niche Got a question for you: If you're making (have made) a program to do Christmas letters from Santa, why is your status like... completely counter to that

#

Also sorry I'm not talking guys, currently talking to a co-worker

near niche
#

@rugged root it's just for fun

#

my classmates all know santa is not real

weary zephyr
#

hyPOcRiSy

uncut meteor
#

. 🎅
Gunleft 🥼 💰
👖
👞 👟

graceful grail
#

correction... think not know.

proud briar
#

sorry

#

i have a quastion

#

hey

rugged root
#

Shoot

proud briar
#

what?

#

aaa

#

k

#

aaaaa

#

where is the error here?

#

wai

rugged root
#

!codeblock

wise cargoBOT
#

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.

proud briar
#

import cv2 img=cv2.imread(r"boy.png",0) print(img) cv2.imshow("image",img) cv2.waitkey(0) face=face_cascade.detecMultiScale(gray,1_3_5) for (x,y,w,h) in faces: img=cv2.rectangle(img,(x,y),(x+w,y+h),(0,0,255),2) cv2.destroyAllwindows()

livid yacht
#

windows always have weird issues (lol)

rugged root
proud briar
#
import cv2
img=cv2.imread(r"boy.png",0)
print(img)
cv2.imshow("image",img)
cv2.waitkey(0)

face=face_cascade.detecMultiScale(gray,1_3_5)

for (x,y,w,h) in faces:
    img=cv2.rectangle(img,(x,y),(x+w,y+h),(0,0,255),2)

cv2.destroyAllwindows()
#

help

livid yacht
#

os

weary zephyr
hushed elm
#

arch anonymous

uncut meteor
#

!ot

#

!ot arch anonymous

hushed elm
#

do it throw it away

uncut meteor
tawdry zodiac
#

Sorry I keep leaving and rejoining I'm sorting out my headphones

near niche
#

-bash: /home/felix/.local/bin/pip3: /snap/pypy3/57/bin/pypy3: bad interpreter: No such file or directory

rugged root
#

/snap/pypy3/57/bin/pypy3 -m ensurepip
/snap/pypy3/57/bin/pypy3 -m pip install -U pip wheel

tawdry zodiac
echo eagle
#

anyone who has a repository on https://github.com/click-contrib here?

GitHub

A collection of third-party code that extends the capabilities of Click. Message @untitaker if you want to put your project here. - click-contrib

#

I just published a new library on PyPi.

It's an extension for the click CLI framework. It provides pluggable auth and local credentials storage for click apps via netrc file. (same method is used by heroku, git, AWS CLIs).

Source: https://github.com/Eshaan7/click-creds

Let me know ur thoughts, guys! 🙂

echo eagle
limber blaze
#

Hi

#

Question

#

for a lot of DS algo’s instead of using absolute they square and find square root, is there a reason for this?

#

i am really new and have never coded before

limber blaze
#

oh ok

rugged root
limber blaze
#

hemmy can you check dm please

echo eagle
limber blaze
#

i have to get my 50 messages so i can join voice

#

who needs help with machine learning!

echo eagle
#

@tawdry zodiac u mentioned that the minimum wage is dependent on one's age in the UK. Is it the same in other european countries ? if u know by chance

tawdry zodiac
#

There's a lot of those so I don't know universally, but generally no

echo eagle
#

are there any good applications of truncated primes in programming/ optimizations ? @tawdry zodiac

#

have u enabled virtualization in the BIOS ? @scenic wind

#

u need to boot into BIOS setup and turn on virtualization there

sick cloud
echo eagle
echo eagle
echo eagle
uncut meteor
#

@scenic wind

scenic wind
uncut meteor
echo eagle
#

maybe its ur future self who made the video after having solved the bug 😄

scenic wind
digital jackal
#
import cv2
import cv2 as cv

capture = cv.VideoCapture(0)
def ChangeRes(width, height):
    # only live video

    capture.set(3,width)
    capture.set(4,height)
def rescaleFrame(frame, scale = 0.75):
    #we are rescaling the img/window
    width =int(frame.shape[1]*scale)
    height =int( frame.shape[0]*scale)
    dimensons = (width,height)
    return cv.resize(frame, dimensons, interpolation=cv.INTER_AREA)
while True:
    isTrue, frame = capture.read()

    frame_resized = rescaleFrame(frame)

    cv.imshow('face camera', frame)
    # cv.imshow('face camera(resized)', frame_resized)

    if cv.waitKey(20) & 0xFF==ord('d'):
        #if letter d is pressed it will break out
        break

    haar_cascade = cv.CascadeClassifier('haar_face.xml')

    faces_rect = haar_cascade.detectMultiScale(frame, scaleFactor=1.1, minNeighbors=1)
    
    for (x,y,w,h) in faces_rect:
        cv.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), thickness=2)
    cv.putText(frame, {len(faces_rect)}, (255,255), cv.FONT_HERSHEY_COMPLEX,1.0,(0,0,255), 2)
    cv.imshow('Detected Faces', frame)


capture.release()
cv.destroyAllWindows()
cv.waitKey(0)
tawdry zodiac
#

Someone's had this green texture problem they redownloaded the ISO

scenic wind
digital jackal
scenic wind
digital jackal
#

cv.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), thickness=2)

devout dagger
#

hi

uncut meteor
#

capture= cv2.VideoCapture(camera_port, cv2.CAP_DSHOW)

#

@digital jackal

devout dagger
#

im creating a bot for discord , i have to make the "ticket" for the people need help , they click the reaction and create a channel name : ticket-000

#

anyone help

#

one moment

scenic wind
scenic wind
uncut meteor
#

for (x,y,w,h) in faces_rect:

#

x, y is top left coor of box

#

w, h is width height of the box

digital jackal
#

yeah

#

but how

#

can i put them in one variable

tawdry zodiac
#

rectangle = (x,y,w,h)

#

or do you want to make an object or something?

devout dagger
#

im creating a bot for discord , i have to make the "ticket" for the people need help , they click the reaction and create a channel name : ticket-000

#

Can anyone help me pls

uncut meteor
#

20MegaCheeses

digital jackal
#

20 mc

scenic wind
digital jackal
#

import megabyte as mc

uncut meteor
scenic wind
uncut meteor
#

9k cheese

digital jackal
#

@uncut meteor @tawdry zodiac can we hop in code help

#

2 sec

uncut meteor
#

just type ur Q

somber heath
#
import math
def magnitude(p,q):
    '''Accepts two numerical coordinate iterables of equal length. Return the magnitude (distance) between the two points.'''
    return math.sqrt(sum(abs(b-a)**2 for a,b in zip(p,q)))```
digital jackal
#

g = cv.rectangle(frame, (x,y), (x+w,y+h), (0,255,0), thickness=2)

tawdry zodiac
#
        cv.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), thickness=2)
    cv.putText(frame, {len(faces_rect)}, (255,255), cv.FONT_HERSHEY_COMPLEX,1.0,(0,0,255), 2)
    cv.imshow('Detected Faces', frame)```
This loops through all the faces it's detected and prints a square around them, if rather than loping over them you pick one from the list faces_rect and do the cv.rectangle to just that one it'll just draw that one
#

faces_rect = haar_cascade.detectMultiScale(frame, scaleFactor=1.1, minNeighbors=1, maxSize=100)

digital jackal
#

SystemError: new style getargs format but argument is not a tuple

tawdry zodiac
#

faces_rect = haar_cascade.detectMultiScale(frame, scaleFactor=1.1, minNeighbors=1, maxSize=(100,100))

digital jackal
#

SystemError: new style getargs format but argument is not a tuple

echo eagle
#
from PIL import Image
from PIL import ImageChops

saved_img = Image.open("saved_frame.png")
im = Image.open("animation.gif")
for i in range(100):
  frame = im.seek(i)
  # check if this is the frame u want
  diff = ImageChops.difference(frame, saved_img)
  if diff.getbbox():
        # same
unkempt quail
#

o h

#

interesting

uncut meteor
#

@wild flint

gentle flint
uncut meteor
#

@gentle flint can you rate my code?

gentle flint
#

where

uncut meteor
#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

my_class = "Fibonacci"

locals()[my_class] = type(
     my_class,
     (),
     {
         '_cache': [0, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

print(eval(f"{my_class}()").at(12))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

8
uncut meteor
#

its Fibonacci

#

it is very pythonic

gentle flint
#

I have no clue what that is trying to do

#

sorry

uncut meteor
#

its doing Fibonacci

#

getting the nth value

#

!e

def loop(func, condition, reeturn, **kwargs):
    while eval(condition):
        func()
    return eval(reeturn)

my_class = "Fibonacci"

locals()[my_class] = type(
     my_class,
     (),
     {
         '_cache': [0, 1],
         '_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
         '_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
         'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
    }
)

FibonacciMaker = eval(f"{my_class}()")
print(FibonacciMaker.at(5))
print(FibonacciMaker.at(2))
print(FibonacciMaker.at(12))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 3
002 | 1
003 | 89
gentle flint
#

A calico cat is a domestic cat of any breed with a tri-color coat. The calico cat is most commonly thought of as being typically 25% to 75% white with large orange and black patches (or sometimes cream and grey patches); however, the calico cat can have any three colors in its pattern. They are almost exclusively female except under rare genetic...

gentle flint
uncut meteor
gentle flint
uncut meteor
gentle flint
high ingot
uncut meteor
high ingot
#

lol

gentle flint
high ingot
#

cute

gentle flint
uncut meteor
gentle flint
high ingot
wild flint
#

I don't even talk here, why am I getting singled out lol

uncut meteor
#

LOL

#

WRONG ONE

#

hahahaha

#

sorry

wild flint
uncut meteor
#

meant OpalMist

#

Forgriff me

wild flint
#

Oml

uncut meteor
#

please

wild flint
#

Second time-

#

Did you really just fucking say

uncut meteor
#

change ur name

wild flint
#

Forgriff

uncut meteor
#

Forgriff and Forgreg

wild flint
#

Bloody hell

somber heath
#

@wild flint I'd apologise, but...I don't really have anything to apologise for, so I'll instead offer you my sympathies. 😁

high ingot
#

is that the fake opal?

wild flint
uncut meteor
wild flint
#

Eat shit

uncut meteor
high ingot
#

lolol

wild flint
#

Opal and OpalMist, 2 completely different names

#

Not my fault you can't type

#

🤪

uncut meteor
#

I will try better in the future

#

no promises tho

wild flint
#

🗿

uncut meteor
wild flint
whole bear
#
from asyncio import sleep as slp
import random
import discord
from discord.ext import commands

client = commands.Bot(command_prefix = "-")
@client.event
async def on_ready():
    print("Bot is online!")

@client.command
async def person():
    await ctx.send("testing")





TOKEN = file("token.txt")
client.run(TOKEN)```
undone moon
#

ok guys

#

what the fuck

uncut meteor
#
import io
import requests
from PIL import Image

r = requests.get("https://thispersondoesnotexist.com/image")

image_file = io.BytesIO(r.content)
image = Image.open(image_file).convert('RGB')
image.show()
whole bear
uncut meteor
#

pip install Pillow

somber heath
#
pip install mypillow``` :scream:
uncut meteor
#

python3 -m pip install Pillow

#

python3 -m pip install requests

#

py -m pip install Pillow

#

py -m pip install requests

whole bear
#
from asyncio import sleep as slp
import random
import discord
from discord.ext import commands

client = commands.Bot(command_prefix = "-")
@client.event
async def on_ready():
    print("Bot is online!")

@client.command
async def person(ctx):
    await ctx.send("testing")





TOKEN = file("token.txt")
client.run(TOKEN)```
uncut meteor
#
with open("token.txt") as f:
  TOKEN = f.read()
#
import os
print(os.getcwd())
uncut meteor
grave osprey
#

@graceful grail yay im cool, and idk i think i need to send some msgs rn, but for some reason says i havent sent 50 total which i have hmm. what were we doin last time?

uncut meteor
whole bear
grave osprey
#

there a way to check how many more msgs i need to send 2 use voice ?

#

i swear iv sent 50.....

#

LOL

#

nope

#

did that too

uncut meteor
grave osprey
#

IKR

#

^i was thinking that too

#

the wud make sense

#

but even then

#

im pre sure iv already sent 50

#

since them lol

whole bear
grave osprey
#

accurate

whole bear
grave osprey
#

can confirm; this is the face u see before getting tickled

whole bear
uncut meteor
grave osprey
#

waittt so y r we sending random horse pics to the chat

#

i mean, not that im complaining lol

whole bear
grave osprey
#

wow i tihnk it just worked

whole bear
grave osprey
#

kk sweet

#

ya ill recconnect just listening rn

#

just lurkin

#

creepin on the intellectuals

uncut meteor
grave osprey
#

my business is finding business to busy with

uncut meteor
#

what kinda business?

#

funny business?

grave osprey
whole bear
broken warren
#

its getting a little awkwardly funny

whole bear
broken warren
#

thats a weird horse

#

?

#

i am new

whole bear
#

How old are you?

broken warren
#

13

whole bear
#

ok

broken warren
#

is this some sort of ritual?

whole bear
#

Huh

broken warren
#

sending photos

whole bear
broken warren
#

OOOOHHH

#

*got it

#

also

#

i need an advice

#

what to do once i know all the basics?

tidal salmon
#

@whole bear remember that this is the text channel where people in voice chat expect to see messages from non-verified participants.

broken warren
#

lol

#

guys

whole bear
broken warren
#

...

whole bear
#

that one is scary bro

broken warren
#

ikr

whole bear
#

looks like 18 years of child support

broken warren
#

yeah

#

is ones worse

whole bear
#

loud laugher

#

im jewish btw

whole bear
#

that looks real

#

are u sure theyre fake

broken warren
#

yeah

#

also

olive hedge
#

!warn 761829251137404968 regardless, this sort of comment is still anti-semitic and it is not appropriate or tolerated here. Please refrain from making comments like this in the future.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @whole bear.

whole bear
#

Fisher do you finger peck?

broken warren
#

anyone familiar with ursina engines

olive hedge
whole bear
#

That took you forever to type

olive hedge
#

ohhh, my typing? haha

whole bear
#

what comments

olive hedge
#

I was about to ban for that comment, but I second guessed myself, all touch typing 😎

whole bear
#

im talking about the fake people pics

broken warren
#

i need some help here

#

anyone familiar with ursina engines

olive hedge
whole bear
#

do u have any ugly ones

broken warren
#

Oh

#

nvm then

whole bear
#

what do u make these for?

#

Can someone help me get verified? I created a new discord account but i've been on this server for a while.

graceful grail
#

All accounts need to be vetted even if you have been here before.

whole bear
#

im not verified either bro

#

I made an account for just this server because I have too many people dming me on my main lol

#

i feel your pain

#

I am just trying to get someone to look at my project and help me refactor it.

#

that forehead is beautiful

#

well sit down and grab a chair bro its gonna take a while

#

Women evolved with strong skulls because in cavemen days they were getting hit with clubs.

#

charley and the chocolate factory kid

#

bacon

#

What is your python skill level?

#

On a scale of 1 to 10

#

10 being jimmy neutron

#

-1

#

1 being high school football captain

#

i have a problem with it

#

Oh ok...

#

i can spam u with print statements

#

Hey, in a survival situation, spam could save your life

#

im like that guy from the limitless movie i need a drug to be smart dude

#

Bacon, you're the guy with insane potential but no motivation

#

I am making a text based rpg

#

bro

#

did you just reverse engineer me

#

Yes sir

#

I will make you into a star

#

teach me bro

#

master roshi

#

i want to make stuff

#

I will teach you if you promise to work on my project

#

but what stuff

broken warren
#

can i join too

whole bear
#

Its a text based rpg

#

Yes aryan

broken warren
#

thanks

whole bear
#

I will make a server

broken warren
#

ok

whole bear
#

and show you the project

broken warren
#

ok

whole bear
#

what's this rpg u speak of

#

does it go boom?

#

haha wrong link

#

i tried making a discord bot but it got banned so i quit

broken warren
#

i was shook for a sec

whole bear
#

it wont let me post here one sec

broken warren
#

just a sec

whole bear
#

i got it

broken warren
#

ill be right back

whole bear
#

dude

#

i want to be a programmer but my gf wants to take my virginity what do i do

#

How old are you?

#

22

#

Just don't have a child.

#

they dont have a vpn for sex

#

should i do hacking and find a backdoor to root

#

hey dudes in VC

rich cloud
whole bear
#

hi

rich cloud
#

Hello

whole bear
#

hi @whole bear

rich cloud
#

The cat gif's feud continues

whole bear
#

what r u doing

whole bear
#

haa

atomic yarrow
#

hi whatsup

#

im the harmful snake

#

beware

quiet coyote
#

jeez harmful snake

#

ur scarry

rich cloud
#

Yooooo

#

xD

quiet coyote
rich cloud
#

it;s got wings

#

whaat?!

whole bear
#

i want to know what movie that is from

quiet coyote
#

Fr

quiet coyote
atomic yarrow
quiet coyote
#

What like the actual name of it

#

Or a nickname

rich cloud
#

whaaat?!?!

#

Sounds really bad.

quiet coyote
#

Fr fr

rich cloud
#

Replying to opal xD

quiet coyote
#

Do you not have 50 messages as well

#

Cause I do not

rich cloud
#

Ahh, I see what's going on.

whole bear
#
from asyncio import sleep as slp
import random
import discord
from discord.ext import commands
import io
import requests
from PIL import Image

client = commands.Bot(command_prefix = "-")
@client.event
async def on_ready():
    print("Bot is online!")

@client.command()
async def person(ctx):
    r = requests.get("https://thispersondoesnotexist.com/image")
    image_file = io.BytesIO(r.content)
    file1 = Image.open(image_file).convert('RGB')
    file1.save("Img/thing.PNG")
    file2 = discord.File("Img/thing.PNG", filename="thing.PNG")
    await ctx.send(file2)

f = open("token.txt", "r")
TOKEN = f.read()
client.run(TOKEN)```
rich cloud
#

I think I've passed fiddy. @quiet coyote

whole bear
quiet coyote
#

Oh

#

Ok

severe pulsar
#
await ctx.send(file=file2)
#

@whole bear

#

file keyword parameter

#

i just searched the documentation

#
file2 = discord.File("Img/thing.PNG", filename="thing.PNG")
#

why is it like this

#

i think you can directly just create the object without the filename parameter

#

ok awesome then ignore all of this

severe pulsar
#

click on the file in discord

#

itll show a different image

#

lmao

whole bear
#

it doesnt for me

#

oh wait @whole bear it works

quiet coyote
#

bruh what in the

somber heath
#

This is what you get for making out with a beehive.

whole bear
#

LOL

neon sleet
sick cloud
uncut crow
#

e-evet

#

.

#

.

whole bear
high ingot
#

Why are there so many pictures of random ppl

#

Kinda cringy

grave osprey
#

They are our siblings

#

No1 talking?

fiery hearth
#
ValueError: year 10000 is out of range```
im working on pandas Dataframe n i want to plot date in X axis and market cap in y but i get this error.
Another question, how do i group it based on year?
graceful lantern
#

can i ask you something

tranquil barn
#

hey @fiery hearth and @graceful lantern , do you guys still have any issues?

fiery hearth
#

yeah i do @tranquil barn

graceful lantern
#

no i just wanted something ot

fiery hearth
tranquil barn
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

fiery hearth
#
 symbol  percentageChange
0      NABIL              9.97
1       SFCL              9.63
2      NLICL              7.20
3      FOWAD              5.42
4       MEGA              4.33

Hi, i want to plot this data using matplotlib on x axis i want the symbol and on y the percentage change?

rugged burrow
#

go to a help channel, you'll get more help there

sick cloud
#

@whole bear helo

#

@eternal bough join in what ?

whole bear
sick cloud
#

@glass vector did u change ur pfp again

rugged burrow
#

i really wanna join voice chat but i got to wait another day lol 😦

whole bear
rugged burrow
sick cloud
#

@eternal bough helo

#

i'm gonna try

#

@eternal bough need to ||pee||

uncut meteor
#
# libraries
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
 
# Data
df=pd.DataFrame({'x': range(1,11), 'y1': np.random.randn(10), 'y2': np.random.randn(10)+range(1,11), 'y3': np.random.randn(10)+range(11,21) })
 
# multiple line plot
plt.plot( 'x', 'y1', data=df, marker='o', markerfacecolor='blue', markersize=12, color='skyblue', linewidth=4)
plt.plot( 'x', 'y2', data=df, marker='', color='olive', linewidth=2)
plt.plot( 'x', 'y3', data=df, marker='', color='olive', linewidth=2, linestyle='dashed', label="toto")
plt.legend()
rugged root
#

Just if people want to know what I listen to while I code and work

true nest
#

hey

whole bear
#

find the equation of a line passing through the points (5,1) and (1,-1) show that the points are collinear to (11,4)

normal hinge
#

Hello

#

No

#

Only once I did

#

iron is changed by mod

#

Not me

#

Coz when I said I want to be iron man

#

😂

#

What's up guys

rugged burrow
#

yo

normal hinge
#

What topic ur guys are talking about

rugged burrow
#

@frozen oasis ive got one day left until i can turn on the mic 😦

normal hinge
#

See this guys

rugged burrow
#

yh ive already got that just havent been here long enough

normal hinge
#

Just be patient

#

Try to verify

#

Guys see the picture

rugged burrow
normal hinge
#

Good luck

#

People are selling air

#

Now

#

😂

rugged burrow
#

as if they can actually make a profit tho 😂

buoyant horizon
# normal hinge

why would anyone buy that. like that's where the mutated covid is coming from xD

normal hinge
#

No idea

#

Bro

#

I'm not from UK

buoyant horizon
#

me neither

rugged burrow
#

i am 🙂

normal hinge
#

But I know one thing that UK got fucked up

buoyant horizon
rugged burrow
#

life is pretty normal where im from tbh

rugged burrow
normal hinge
rugged burrow
#

yh

normal hinge
#

Oh

#

Bro, is it hype

buoyant horizon
normal hinge
#

That news channels are telling about UK

buoyant horizon
#

i mean the virus mutation is very real

rugged burrow
buoyant horizon
#

ohh

rugged burrow
buoyant horizon
#

that's good bro

rugged burrow
#

where r u from

normal hinge
#

Virus mutation

#

How on earth it is possible

#

🤔

buoyant horizon
rugged burrow
#

how is the virus over there

buoyant horizon
rugged burrow
#

yh

buoyant horizon
#

like the health care is bad

#

in the country

shy karma
#

try Get-Disk

normal hinge
#

In India we eat lot of spicy

#

Things

shy karma
#

@atomic edge

#

PowerShell

normal hinge
#

That is kinda helpful

buoyant horizon
#

naah man

#

spicy food isn;t the solution

rugged burrow
normal hinge
#

I got cold yesterday

uncut meteor
#

Get-Disk

atomic edge
normal hinge
#

I ate chilli chicken

#

And it helped me alot

shy karma
#

case doesn't matter in powershell ;)

normal hinge
#

Gg= Good going

uncut meteor
#

wp = well pdone

normal hinge
#

LMAO

#

=

#

Hemlock so ur on holiday's?

rugged root
#

Not yet

#

Still workin

shy karma
#

anyone here used powershell on linux before? just curious

normal hinge
#

What

#

Tomorrow is 24

#

Don't buy cyber punk

rugged root
#

They'll fix it soon enough

whole bear
#

add some salt also

shy karma
#

play celeste if you haven't! that's a game i enjoyed

normal hinge
#

Yes

#

@whole bear

whole bear
#

bhai mujhe bhi khana hai

normal hinge
#

Hyderabad haja

rugged root
#

English only server

#

We've talked about this

normal hinge
normal hinge
whole bear
normal hinge
#

So I told him to come to Hyderabad

#

My home city

rugged root
#

Okay, cool

#

Doesn't change the English only thing

normal hinge
#

Ohk

whole bear
#

when you gotta run

#

just hear my voice in you

#

shutting me outt

#

doing so greattttt

normal hinge
#

?

normal hinge
#

🤔

#

Hello dude bro

whole bear
#

nothin

#

why dont every people invest

normal hinge
#

On what

whole bear
#

stock markets

normal hinge
#

risky

#

bro

whole bear
#

no

rugged root
#

!charinfo Βlue

wise cargoBOT
gusty fjord
#

Hey!!

#

Great wbu

stoic cloud
#

does anyone need help in maths

gusty fjord
#

I would've appreciated some help in programming
I wouldn't mess with advanced mathematics lemon_sentimental .

stoic cloud
#

is anyone free to suggest any solutions to a problem in a turtle program

normal hinge
#

!charinfo Βaby

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

gusty fjord
#

I'm not actually, thanks for asking Hemlock.
Yes previously I was stuck in an issue 😄

#

Haha me everyday in 2020 👀
Glad that it’s coming to an end in some time lemon_smug

normal hinge
#

!charinfo 2020

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

stoic cloud
#

thats nice

candid venture
#

!charinfo red

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

candid venture
rugged root
#

Not really. Was confused why someone with a name that started with B was at the bottom of a list

#

Also in fairness that'd be the most boring abuse of power ever

severe pulsar
#

t r u e

sick cloud
#

@severe pulsar h e l l o

severe pulsar
#

hey!

normal hinge
#

!project

wise cargoBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

rugged root
severe pulsar
#

ooh

normal hinge
#

tim sult is good

#

functions work like variable

#

s

uncut meteor
#
class Solution:
    @solveMe
    def solve(self, root):
        return root
normal hinge
#

function has

#

property like pointer

sick cloud
#

@uncut meteor idk

normal hinge
#

they point to address

whole bear
#

(╯°□°)╯︵ ┻━┻

rugged root
normal hinge
#

!e [def fun():
print("hello")

k=fun
print(k)
]

wise cargoBOT
#

@normal hinge :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     [def fun():
003 |      ^
004 | SyntaxError: invalid syntax
normal hinge
#
  print("hello")


k=fun
print(k)```
#

k has address of fun

#

even if u delete fun

#

k still holds the value of fun

#

i mean address

uncut meteor
#

!e

def fun():
  print("hello")


k=fun
del fun
k()
fun()
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | hello
002 | Traceback (most recent call last):
003 |   File "<string>", line 8, in <module>
004 | NameError: name 'fun' is not defined
sinful hemlock
#

hello !!
can someone tell me any other open source on github (rather than Ds4 windows) to integrate a dualshock4 with pc ?

uncut meteor
#

how can you delete fun?

gusty fjord
sinful hemlock
severe pulsar
#

basically if fun changes

#

k changes

sinful hemlock
gusty fjord
#

I see..

uncut meteor
#

!e

fun = lambda: print("hello")


k=fun
del fun
k()
fun()
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | hello
002 | Traceback (most recent call last):
003 |   File "<string>", line 7, in <module>
004 | NameError: name 'fun' is not defined
severe pulsar
#

decorators are cool

versed island
#

i have a subject called computer organisation and architecture
and i cant figure out a fun way to study this
its too overwhelming
can anyone share me some directions or tips

#

okay

#

i can hear you

#

its a theoretical subject

fathom shadow
#

hello everyone

versed island
#

hardware level

uncut meteor
#

@rugged root can you explain this then

#

!e

from copy import copy

test = lambda : print("Hello")

x = copy(test)
y = test

x()
y()

del test

x()
y()
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | Hello
002 | Hello
003 | Hello
004 | Hello
versed island
#

okay @normal hinge

uncut meteor
#

no errors this time

rugged root
#

Same thing. A function is not removed until there are no references to it

#

Unless you're using weak references

uncut meteor
#

!e

fun = lambda: print("hello")


k=fun
del fun
k()
fun()
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | hello
002 | Traceback (most recent call last):
003 |   File "<string>", line 7, in <module>
004 | NameError: name 'fun' is not defined
uncut meteor
#

this removes it tho?

#

oh

#

nvm

#

im dumb

rugged root
#

It only removes the fun reference- yeah

#

No you're good

#

It's funky

uncut meteor
#

yeah i just saw I called it directly

#

the other i stored in two vars

#

😂 dogeKek doge

normal hinge
#

for compiler design

#

it is good

#

like mr.hemlock told u

rugged root
versed island
#

okhaay

normal hinge
#

but the thing is in semster they teach

#

old processor

#

like 8086

versed island
#

yeah thats the problem

rugged root
normal hinge
#

@versed island what text book

#

they are suggesting u

#

?

versed island
#

morris mano

normal hinge
#

yeah

#

it is good

#

that blue label

#

text book

versed island
#

okhay

normal hinge
#

if python is written in assembly

#

i will be happy

#

😆

#

prime

#

do u know