#voice-chat-text-0
1 messages Β· Page 249 of 1
g'day
!e
import numpy as np
from numpy.typing import NDArray
class E():
def __init__(self):
pass
arr = NDArray[E]
print(type(arr))
@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
<class 'types.GenericAlias'>
just listening in
Suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuup
And suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuup to Alex
SUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUuup pure alex
Pure is my fav mod
Planning to sync it up to music w/ https://en.wikipedia.org/wiki/Short-time_Fourier_transform
!e
import numpy as np
from numpy.typing import NDArray
class E():
def __init__(self):
pass
arr = NDArray[E]
print(type(arr))
print(isinstance(arr, NDArray))
@rugged root :x: Your 3.12 eval job has completed with return code 1.
001 | <class 'types.GenericAlias'>
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 11, in <module>
004 | print(isinstance(arr, NDArray))
005 | ^^^^^^^^^^^^^^^^^^^^^^^^
006 | TypeError: isinstance() argument 2 cannot be a parameterized generic
!e
import numpy as np
from numpy.typing import NDArray
arr = NDArray[int]
print(type(arr))
print(isinstance(arr, NDArray))
@upper basin :x: Your 3.12 eval job has completed with return code 1.
001 | <class 'types.GenericAlias'>
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 7, in <module>
004 | print(isinstance(arr, NDArray))
005 | ^^^^^^^^^^^^^^^^^^^^^^^^
006 | TypeError: isinstance() argument 2 cannot be a parameterized generic
Yo @rugged root I played chess against chris yesterday
Why are we talk ing about feet?
so it's just one big nail
Yep
This is why I feel numpy is weird
https://stackoverflow.com/questions/74633074/how-to-type-hint-a-generic-numpy-array
Like it needs you to do np.multiply, instead of *, like why?
This is my favorite numpy feature https://numpy.org/devdocs/reference/generated/numpy.lib.stride_tricks.sliding_window_view.html
Can't they do __mul__?
more optimized method probably
Because it uses specific functions that were pre compiled in C to work specifically with numpy arrays
My issue isn't how they perform multiplication, it's the way the syntax is written.
Like why can't you use *?
Likely an issue with type hints??
That's why I am so confused. list doesn't have these.
It's just so straight forward to use.
You should absolutely not think of NumPy arrays as lists
Why not?
Both are supposed to represent an N dimensional container of some dtype no?
questions that people ask when they're new to numpy
Only numpy arrays are ndimensional, Python lists aren't (unless you nest them and treat them as such)
Well hence why the guys suggested numpy.
But it's so peculiar, like I would have to dig up the code so far, if even * is done differently.
Like I was already a bit uneasy with how it doesn't work like list in terms of how you interact with it.
Ok I'm being unreasonable.
But this is like comitting to numpy to such a severe degree.
It's well past type hinting.
Still, they're different types for different purposes π€·ββοΈ
The only real intersection between them is that they're container types
Ok, so may I ask my question, and have your opinion on how I should do it?
Go for it
Ooh thank you!
Lemme backtrack a bit.
Can you kindly read from here please @swift valley ?
If I understand correctly: you want a type hint for that specific function's return type?
Pardon the long thread.
So I would like a generic iterable interface (mutable, behaves like list, supports len, can express dimension, and be used to define specific arrays with certain shape and dtype) to use for type hinting and also what ever would be needed to have in the code to reflect that type hint.
I understand numpy is very optimal for the operations side of things, but still not very clear on the typings, and how to use them like my example with define matrix distance thing.
he wants to create a data structure
Essentially.
Anyone know how to take input or use a python3 flask database?
But I don't want to re-invent more than needed. In fact, as little as possible.
What you are not mentioning is that you are building essentially a linear algebra library
Not just take input put output it as well
It is objectively wrong to use lists here
& store
This is close to being a good solution, kinda
No no, so the only operations I apply to the lists themselves are padding, and normalization.
LA parts happen in the quantum circuit, which are done using quantum frameworks I use.
I think it's odd to define a class for the sole purpose of type hinting a single function, but what you can do is define a class that uses a numpy array internally to store said information and then to just write wrappers to whatever interfaces you need filled in
I think yeah, best of both worlds.
I would like to basically create a wrapper that makes it easier to read, allows me to exploit the optimizations with numpy where applicable, and allow interactions like list, you know how we use len, *, etc.
However, I am by no means insisting on one approach or the other. I am looking for the objectively best way to do this given my circumstance.
Perhaps, I understand why you say this. (I think)
What's the end goal here? If it's providing a type-safe interface then I think it's a little too early for that unless you're building a full-on library
Also not just type hinting, but to be able to create variables using it too, since you are saying that is what's for instance returned.
I am making a package for machine learning using quantum computing.
Ooh, cool
I use a lot of list of stuff in my methods, so want sth consistent.
And correct of course hehehe.
Thank you very much!
I would look at other machine learning libraries for reference as to how they define their tensor types or whatnot
if you are using a list to represent a matrix then len is not well defined
Most of them just go with the runtime-tagged (.dtype) approach
this is why numpy has .shape
I do use linear algebra as Anokhi mentioned, but those are done through the quantum circuit frameworks I use, not directly on the vectors I use.
also numpy does support unpacking
I just checked my Data class where I do the classical operations (the ones that matter if you use numpy), and I am using numpy there.
However I believe I have annotated it wrongly as Iterables.
Since I am an idiot and didn't know why one uses Iterables hehe.
But I also have i.e., handlers, which take a list of vectors for instance, and return a list of Circuit objects. For instance here it's purely a container.
So, I would like it to allow for clear definition of what is being returned, like this :
class encode(dataset: list[Data]) -> list[Circuit]:
...
You see how the user can know what is returned is a list of circuits? Basically a container of circuits if I am being careful with my terminology.
So though numpy's optimality is very useful, and I indeed am using it, I'd like the data structure to be applicable globally to these scenarios.
One thing that complicates things is that I now know I should use what I have annotated.
Like list[Circuit] is different from np.array(list[Circuit]) and so on and so forth.
I think it's best to take Anokhi and Hemlock's advice, and be clear and specific about how I am using this, so I hope I am now clear-ish on what I am looking for?
So it should be usable as a clear annotation (dimension, dtype basically), and also reflected in the code as if the method says "the method returns a list[Circuit]", it should return list[Circuit], not for instance any container of Circuit correct?
That's what I would like to have.
However, if it's not standard, or reasonable, I am fully open to doing this differently.
Also, terribly sorry for ranting.
I am again really sorry if I seem like I keep going back to square one, I do hope you forgive my slow pace.
upgrade and everything breaks π
Yeah, that's also why I was thinking of making my own class for it.
If it would break, I would just fix one class.
.topic
a state state
prescient
@rugged tundra
Prescient
having or showing knowledge of events before they take place
Alternatively, predicitive, prophetic, far-seeing
Thank you
That's me during my finals.
Help support videos like this: https://www.patreon.com/cgpgrey
New York's 14th congressional district is a congressional district for the United States House of Representatives located in New York City, represented by Democrat Alexandria Ocasio-Cortez.
The district includes the eastern part of The Bronx and part of north-central Queens. The Queens portion includes the neighborhoods of Astoria, College Poin...
The 4th congressional district of Tennessee is a congressional district in southern Tennessee. It has been represented by Republican Scott DesJarlais since January 2011.
Most of the district is rural, but many residents live in the suburbs of Chattanooga and Nashville. The area is very hilly, and has many well-known geographical features related...
Ok, is this a good template?
Container : It only contains indices, or objects, and does not allow any numerical operation. -> list[T]
Mutable tensor : It contains a tensor of rank N (int, float), and numerical operations are applied to the tensor. -> np.ndarray (NDArray for type hinting)
So I will use Mutable tensor for my classical data, where I actually apply operations to the multi dimensional array that is the vector or matrix etc., and use numpy here, but for other places where I pass an index, or just want to contain a set of objects, I use list.
Don't you just love how clueless I am about what you're discussing HEEHHE.
Greetings @wind raptor !
poor @peak depot , let her speak HEHEHE
Better to write the question first at this point
Me?
No no, for the ongoing convo thingy
Ooh ok, yeah I'm good now (I think), thanks to you guys.
Hey π How are ya?
I was asking about how to annotate a generic list, and how to bring that into the code, and they really taught me so much. I went from wanting to make a data structure wrapping numpy and list to just using numpy, to coming up with the template above.
I swear I learned more in an hour here than I did during an entire semester at my uni.
You guys are so awesome, I am genuinely grateful I joined and had the pleasure of meeting everyone.
Hope to learn enough to carry it forward.
Awww yeah! that's great. Yeah the people here are all awesome.
Yessir
@mild quartz What if we don't like their music (One Direction)
@paper canopy π
@rugged root , fyi, I dm'd you the schedule for the Sphinx developers livestream session on Railroad diagrams
Oh no worries at all
I dropped in on him last month and it was a blast to see a master at work.
@peak depot There's a significant amount of lobbying against that kind of government oversight
By people with lots of cash
That does seem neat
She's playing Red Dead Redemption 2
Cracked me up too
"Wait, I have to kill this guy's family to send a message. One sec..."
"Let's see, need to put the horse's head just so on the bed...."
"...oh yes, and lasso the youngest girl through the albine gator swamp,..."
Mike Bro Soft
Mike Bro Soft reminds me of PC principal from south park for some reason
"Social justice 1 2 3, wee wee, I wanna be PC!"
@rugged tundra HEEHE
"Um, ah, ok ok. later maybe..."
WOOOOOH
Was that a ChatGPT response?
Is that the "fires in the building" one?
Windows Subsystem for Linux
Ohh different fire.
Ye
Not at the moment
Okie
Sorry
It's 3 am here, just burnt out hehe, pardon the inappropriate pesterings hehe.
All good
what's even going on here
Friendly debate on world events
@wind raptor I'm sorry to leave you with this, I have to scoot off for a bit
Did you have a question?
no, I just joined in the middle of the convo and didn't understand what it was about
from what I get it's about data security, especially in the medical field?
I wasn't following their debate, my apologies.
no prob
Yeah pretty much
those who donΒ΄t want to argue or take part of it: Voice Chat 1
Good night everyone, wish everyone a lovely day ahead. I'll see you tomorrow. Thank you everyone for helping me with the annotation thingy. Cheers!
@golden pendant π
hey guys, has anyone worked with concorde algorithm which is implemented in C?
@whole bear π
@whole bear π
Hi
Do you guys haves tips for me to make app games on pc ?
alr
I want to create a 2d game
puzzle game
alright
thanks you
wwhat youtuber ?
alr thx !
idk what is this so i'll check on youtube
@dense arch π
Hi I donβt permission to talk
#bot-commands
No luck
@jolly glade π
hello
oh it says i have to wait for 3 days to gain voice chat its all good just wanted to see whats its all about
Yo @muted hinge What are you doing?
heya @somber heath @stiff garnet
How are you doing guys?
that's life lmao
what makes u say that?
aww
yea
eventually we all will
unless what bryan johnson is doing somehow works and fast
fair enough
it was once believed impossible to fly
he's trying to find a solution
ya know
@long nimbus π
maybe he can get to something
I don't yet have speaking permissions on this account. Hello.
I do have a help question, but it's a judgment question on standards for datatypes in applied ML more than a coding/debugging question.
hi again
good my guy
hanging around playing rocket league
wanna go in a private call
o ok
hey guys
cvan you help me
can*
how tdo i make a unclickable button with tkinter
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50")
button.pack()
wats a dictonary
found it state: Literal["normal", "active", "disabled"] = ...
keep explaining
!e py d = {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'} print(d) print(d.items()) print(d.keys()) print(d.values())
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'}
002 | dict_items([('key a', 'value a'), ('key b', 'value b'), ('key c', 'value c')])
003 | dict_keys(['key a', 'key b', 'key c'])
004 | dict_values(['value a', 'value b', 'value c'])
!d dict.keys
keys()```
Return a new view of the dictionaryβs keys. See the [documentation of view objects](https://docs.python.org/3/library/stdtypes.html#dict-views).
!e py print(dir(dict))
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
['__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__ior__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__or__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__ror__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']
!e py d = {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'} print(d) d['key d'] = 'value d' print(d)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'}
002 | {'key a': 'value a', 'key b': 'value b', 'key c': 'value c', 'key d': 'value d'}
back
!e py d = {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'} print(d) d['key a'] = 'new a value' print(d)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'}
002 | {'key a': 'new a value', 'key b': 'value b', 'key c': 'value c'}
!e py d = {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'} print(d) del d['key a'] print(d)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'}
002 | {'key b': 'value b', 'key c': 'value c'}
{'key': ['value', 'value', 'blah']}```
yes
thx for the explanation
can you help me
call me pls
so i can screen share
o ok
pls add me as friend pls
what
why
o ok
so i can screenshot
send
o yea
but i want to learn you better you sound like a nice person
!code
so first of all time.sleep(0) returns None
in fact time.sleep() of any form returns None
!e py if None: print('A') print('B')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
B
@stuck sky :white_check_mark: Your 3.12 eval job has completed with return code 0.
None
!e py import time print(time.sleep(0))
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
None
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
clicks = 5
while True:
if clicks > 0:
clickable = "active"
else:
clickable = "disabled"
time.sleep(0)
def click():
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
stil doesnt work
second reason is a bit hard to explain
!e py while None: print('A') print('B')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
B
but we'll get to that later
can someone fix my code then
ok
but teach hos to fix it then
sorry that might sounded a litle rude
while True:
'I run forever and ever over and over'
'I am never reached.'```
the while True: runs the code inside it until the program is ended OR the loop is broken
@keen abyss π
that means the code below the loop won't run until the loop is ended
hello
BUT if the loop is ended, the code inside it won't run
do i need two scripts to fix this
nope, you don't have to
i think you can put the loop logic inside the click() function
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
def click():
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
clicks = 5
while True:
if clicks > 0:
clickable = "active"
else:
clickable = "disabled"
time.sleep(0)
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
thx ig
o now i think i know the anwer
if you want the loop and the code to run at the same time...
remember, two pieces of code can't run at the same time unless special things are done in order to do so
still doesnt work
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
def click():
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
clicks = 5
clickable = "active"
while clicks > 0:
clickable = "disabled"
time.sleep(0)
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
the code in the loop has to be handled by the click() function
BUT if the loop is ended, the code inside it won't run
remember this too
i don't know if that was heard right
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
def click():
clicks =- 5
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
clicks = 5
clickable = "active"
while clicks > 0:
clickable = "disabled"
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
Mood
@gray kraken here's the thing ```py
def click():
...
clicks = 5
clickable = "active"
while clicks > 0: # this while loop is blocking the way
clickable = "disabled" # |||
for this code below to run |||
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
...
windowname.mainloop()
since clicks never changes, it'll always be greater than 0
how do i send a signal
so the while clicks > 0: loop will run forever
like in scratch
the signal is sent by the window and handled in the click() function
that's where the loop logic could be put so that it allows the code below to run
Hazbin Hotel
!code
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
def click():
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
clicks = 5
clickable = "active"
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
while clicks > 0:
clickable = "disabled"
time.sleep(0.1)
windowname.mainloop()
stil doesnt work haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!!
the while loop is still blocking the way for the window to start
windowname.mainloop() won't run
since the while loop runs forever
the code below it will never run
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
def click():
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
clicks = 5
clickable = "active"
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
while clicks > 0:
clickable = "disabled"
time.sleep(0.1)
now it atleast runs
now here's the thing
windowname.mainloop() is like the while
it loops forever
and since it does that, it prevents the code below it to run
so there has to be something done to integrate, or run the code in the while loop, in the windowname.mainloop() loop
that integration is done by the click() function
@reef agate π
all the code inside it runs while the windowname.mainloop() function runs
π
π΅βπ« Need a break, any interesting conversations going on?
Just building a crappy API for a application of mine.
Most of the time there is just debugging.
i get that
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
clicks = 5
clickable = "active"
def click():
clicks =- 1
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
while clicks < 0:
clickable = "disabled"
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
im going to die
try to put the while loop logic in the click function's code
!code
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
clicks = 5
clickable = "active"
def click():
clicks =- 1
if clicks < 1:
clickable = "disabled"
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
stil doesnt
now you're a step further in the right path
so first of all, the clickable you're assigning to in the click function isn't the same as the clickable outside of the function
though it's generally not recommended, you can put global clickable in the function to make it refer to the clickable outside of the function
how do i do global
like this ```py
def click():
global clickable
... # all the other code

Whatcha working on?
!code
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
clicks = 5
clickable = "active"
def click():
global clickable
clicks =- 1
if clicks < 1:
clickable = "disabled"
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state=clickable)
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
on this
but it wont work
ok so now we move on to the last problem
the button's state doesn't really change
state=clickable gets clickable's value once, then never again
thats a hard one
so the state always just stays as "active"
you can either use .configure() or assign to the state property like the button is a dictionary
.configure() can take a keyword argument with the property name and the supposed value that you want to set it to
for example, button.configure(text='stop clicking!') will set the button's text property to 'stop clicking!'
you can try that out with the state property in the click() function, instead of assigning to clickable
stil doesnt
!code
import time
from tkinter import *
from tkinter import ttk
import random
import time
windowname = Tk()
clicks = 5
def click():
global clickable
clicks =- 1
if clicks == 0:
button.configure(state="disabled")
randomInt = random.randint(1, 2)
if randomInt == 1:
print("Never gonna give you up!")
else:
print("Never gonna let you down!")
button = Button(windowname,
text='click me!',
command=click,
width="200",
height="50",
state="active")
button.pack()
windowname.geometry("200x50")
windowname.title("gui")
icon = PhotoImage(file='pythonlogo.png')
windowname.iconphoto(True, icon)
windowname.mainloop()
clicks =- 1
something's wrong here
i already tried that
congrats!!
also you don't need to do global clickable anymore since clickable is not used
alright
!code
@somber heath got me itchin
@leaden elm π
hi
Mama movie clips: http://j.mp/1oC3bym
BUY THE MOVIE: http://j.mp/1TA702F
Don't miss the HOTTEST NEW TRAILERS: http://bit.ly/1u2y6pr
CLIP DESCRIPTION:
Dr. Dreyfuss (Daniel Kash) goes to the cabin in the woods at night to communicate with Mama.
FILM DESCRIPTION:
After taking in a group of lost young family members, a couple (Nikolaj Coster-Walda...
i β€οΈ horror movies
I enjoy the occasional horror genre, but this is just too much for me.
It's not how she looks, but the sounds.
Like imagine you hear this at night in your house.
You don't need to see her, you will unalive yourself just to get out.
but i watch everything on 2x speed so the slow suspense build up before the jump scare doesn't take effect
Well that's cheating sir.
@austere bough @white narwhal π
Hi
https://www.youtube.com/shorts/Oly8f4h5C78 The one that probably kicked the whole channel off.
more pancake yay
Please paste your code here
post the code and the error message using
```py
your code here
```
what lib did u import?
and what was the error?
pip install pygame
try that
@whole bear
Do you know where to put the pip install command?
python3 -m pip install pygame
if you are installing from terminal use python3 -m pip install pygame (there might be a slightly different command if you are on windows but i can't recall windows setup that well)
hello
hello
! at the start to run allows to run terminal commands, iirc
though I doubt it's possible to use pygame with jupyter
or whether combining it with ipython is sound at all
it's theoretically possible to write a custom kernel to interact with internals of running pygame program
as far as I know, connection between jupyter and kernels is through ZeroMQ (so that'd be a reasonable technology to learn if you're trying to do something similar)
@whole bear π
hello
hello
im new
Ursina.
how do i install pygame
`thanks opal
windows
pip install pygame or python3 -m pip install pygame
how how do i use it
so you can make a variable (int with x or y or list with x AND y) and set that variable to where you want the dot to be then you can make a (using the list method here) pygame.Rect(pos[0],pos[1],5,5) and then draw it to the screen with pygame.draw.rect or other draw function
then each frame you remake that rect
and set your new position :)
@glad pagoda π
Here is one with my friend too
shees
hello
hi
@hard ibex π
why does this happen
Which one of those is the media button? The dial thing in the corner?
i program in c# lua and ofc python
roblox studio
wdym
its very toxic i heard
what it is
Does anyone know what to do when a git branch is ahead of the main branch so their is collision problems?
what does the commit tree look like in your situation?
what is your level in programming
(I'm assuming the question is about trying to merge two branches, not about issues with uncommitted changes)
0
@whole bear it's probably a discord bug -- happens often when a user mutes/deafens
Everyone starts from scratch !!!
for me, that bug normally happens only after moving from one server to another
xd bro i have 3y
I'm guessing leave event gets registered incorrectly
e.g. discord doesn't check whether where the user leaves from is the same place the user is currently joined to
yp me too
Ψ§ΩΨͺ ΨΉΨ±Ψ¨Ω
yes morocco
hhh Everyone tells me the same thing!!
yp xd
hi @noble rose
hi
Let's talk about a topic
Lots of experience on the topic
Why are you here?
@stuck furnace Are you joining today?
What a nice thing to say
@gentle flint 
hai
Where's the other half of your ID?
@peak depot did I show you the large empty box
id? i thought it was a timestamp lol
!stream 764802555427029012
doesnt look that empty to me
it's pretty empty
!help stream
!stream <member> [duration]
Can also use: streaming
You cannot run this command.
Temporarily grant streaming permissions to a member for a given duration.
A unit of time should be appended to the duration. Units (βcase-sensitive):
βy - years
βm - monthsβ
βw - weeks
βd - days
βh - hours
βM - minutesβ
βs - seconds
Alternatively, an ISO 8601 timestamp can be provided for the duration.
It's a "user identifier"
It will accept a ping or your user ID
!stream @chilly magnet 2h
π€¨
You are not a mod
Only mods can do it
oh alright
Only mods can give perms
i thought it was for users lol
pay $5, get perms
alright
this is a capitalistic server /s
@languid saddle doesnt work like that
where do i pay
tone indicators, very important
where do i pay
ask a mod
keep ur money dawg
you might get perms for free
where do i pay
i was joking, you don't pay
where do i pay
ok, give it to me
where do i pay
Ok bots
where shall i submit my monetary payment?
Dude stop
so i can't pay?
cease and desist henceforth
you don't get to stream
this is earth shattering information
you mean to tell me
that
i-
i cant pay?
i cant belive this
yes
wow
believe or not
i'm so sad right now
if this is a drama, i dunno how nice your life is bud
oh no
@chilly magnet this is /s, right?
ok, you don't want to stream but you want to send money anyway? Today is my lucky day :p
how do i send you money
if u need help dm @minor sage
@rugged root mute @languid saddle
everyone dm @minor sage . he's a python god
bruh what did I do
@everyone
are you the storm that is approaching
furtidev please provide a payment link
are you a bot or 10 years old?
I will happily take the money instead /s
alright
5 dollars is too low
no
do you have anything?
a hope, a passion and a dream
no I mean a payment vector
to get money on? I have 5 bank accounts across 3 banks
for my crimes, ofc
he's doing illegal stuff
and I got another one in somebody elses name
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i could do a bank transfer
(I did count paypal as a bank there)
can you make a paypal payments link?
oke bro
I am not gonna take money from you
ok bro
<@&831776746206265384> these two have been spamming joining and leaving VC for the last couple minutes
why not
So why exactly do you need an orbital can strike?
very interesting, are you associated with a chemistry teacher?
I am just bad at money stuff
!mute 1200148834857259030
:incoming_envelope: :ok_hand: applied timeout to @sweet osprey until <t:1706387150:f> (1 hour).
Jason too
without stirring suspision, i can secretly deposit money into your various bank accounts, to a total amount of 5 dollars
@minor sage Why are you back?
(guess if I am chatting here I should actually be in the vc xD)

Does that remove voice join?
yes
!mute 1200484648833257482
:x: The user doesn't appear to be on the server.
!ban 1200484648833257482 voice troll
:ok_hand: applied ban to @kindred hearth permanently.
mayor charizard how did you become the mayor?
why do you wanna give people money
was it a fair and free election
Communism
lets go :hammerandsickle:
bro's Sanji
@solid perch and @peak depot This is some anime drama
Yeah.. thats why we are tired of things...
The PostgreSQL object-relational database system provides reliability and data integrity.
I'm so sorry
you'd be surprised to know where those anime stories are inspired from
thank god you're not using replit
yes, that's what I said dog
They responded to you saying "no, yes it is replit"
getting disconnected every now and then is not a nice experience, didn't hear it, sorry
drawing is fun
β @whole bear can now stream until <t:1706385397:f>.
Imma go eat lunch
Yeah, the idea of JWT is you don't have to maintain a database of sessions.
@whole bear i don't have permission to turn on the mic
so that's why cause i'm new here
Yes
anyway nice to meet you
you too
Neovim user documentation
@nova wave π

@rugged root Yo whatcha doin?
Wait
Hey just because I am new, I cannot speak or share video. Boo. Says it will take 50 posts!
Yes
Thanks
I am working on a transcription program right now.
Will verify
Bradley is my first name and T is my middle initial
Are you copying my name??
Waiting
All offline so that I donβt have to go the cloud.
Whisper (open AI) has an offline model. Quite nice.
Bruh I gave credits in my bio
Yeah
Oh, I need to do an introduction.
Go ahead
Also read my bio
I saw
The entire thing
This verification process is so annoying
I was actually looking for a channel for introductions, but I don't see one.
Your bio just says who made your pfp....
Okay, I'm a discord newbie, so I have no idea about the bio, etc.
Read the black things
Is there anything you would like to know about discord?
So, bio, where would I put that?
And they mean it, right? 50 posts, 3 days, etc. Then you can actually participate?
H4sIABaqgVoA/1WPvW7FIAyFd57ibHmOTlWWrlVHenFIGrCvwCTi7a9Dq0rZ0Pn5OP6kqRBYULV4jlQqVJDkIPclDTvLCV0JpSWq8BxQBUEwuzcsLSU8JOdNM7FOFefqFfOUrbLxvnGELINzSkuBJ0UkvcyKpUg2XocYviC27tyMn1YVp2f2UDJ6t+5qEy7mQpQM6d5F1SP7nYbdONhqtWnOfdBxseTqx+34CzxverIFlxzk5JtRGsMXMd64M1ClMqK31P+/j9JvRvXdXhK+O930cYd9u9HAru0X+gIEKbNKeQEAAA==
yea
Why this?
Huh
It adds on to your joke
Don't get a stroke
Read this
@whole bear what's the biggest issue for self learning?
what do you want to understand in specific?
Anyone know how selenium works to automate the browser?
I've done it (Selenium). I'll show you when I get authorized.
@whole bear have you made any projects?
Oh, also, cannot upload a photo of my program running. The bot immediately deleted it.
Nice, I found out about it a few days ago and I'm trying to make a bot to like posts on Instagram
you won't respond then
add http:// to this languid-windflower-0b2.notion.site/Transcription-Program-a2b2eaf5cfde4d4c985e9b1015e54153?pvs=4
it
any problem with pinging?
it's basically a screen shot. It uses threading, function calls and offline transcription.
You guys are young chaps!
young
I started out with VB, then C, C#, then Java, and now, Python only.
@whole bear https://www.youtube.com/watch?v=rfscVS0vtbw&t
This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!
Click the βοΈ to change to a dub track in Spanish, Arabic, or Portuguese, or Hindi.
(Hindi dubbed via Melt Labs - https://www.withmelt.com/)
Want more from Mike? He's starting a codin...
it's a start
Question: do these single line posts count toward the 50 to be verified?
Doubt you'll know it in 4 hours
one video isn't going to teach you all
Or do they have to be distributed across multiple channels.
No, one course is not enough, but doing a project (achievable) is the best way to learn.
You need Adderall mayorπ
@whole bear watch in 15 minute intervals?
Ha, a great way to learn is to create a scraper. That's a good project.
yes, I'm listening. . .
What have you build with selenium?
Let's go.
@whole bear most people can't watch a youtube video for 4 hours straight. Start simple and watch 15 minutes a day
I built a thing that finds all the followers of someone in IG. Store the user data locally, and do various things with it.
15min is to short
better than nothing
load, save, etc. JSON, . YES<
Bradley Do you think you can sit down and teach me python?
I've had a whole career as an educator.
Like one on one
Yes, Java, Python, etc.
You make videos?
Sure, you just jump onto a VC. I'll show you.
@whole bear try watching the vid
@whole bear learn the basic syntax first and then build some simple projects
I make videos, but have not in a while (for programming). My daily work is hypnotherapy, so I record and post tons of audio and video for that. I just program to keep my brain from rotting !!
You know, "Hello World!" , then take input: "Hi, my name is <input>." Hi, there <yourname>. etc.
If you don't enjoy solving problems then you'll never enjoy programming
@whole bear I recommend you get off discord and all of social media and watch the vid and do what the guy is doing
Also if you have dyscalculia then you gonna struggle
@pliant spoke π
Wordle Cheat program; transcription, voice to text, text to voice, my own ChatGPT interface, Raspberry Pi projects (tons).
I want to start a youtube channel soon, been recording some footage, still need to edit it
ESPECIALLY HELPFUL: CoPilot in VS Code. Really helps a LOT.
Copilot is dope
@whole bear
You chasing mayor away?π
Hit me up in VC
no, discord is a distraction to learning programming
Who?
maybe even that is not possible until I am verified?
Whoever wanted to learn coding.
Oh, another one: i have to be on at least three different channels for 10+ minutes.
I'm just here to meet people that also knows how to code
Ah, is it okay if I stay here for an hour, etc?
Do you only need to do the verification once?
Cooll: would love an API that shows me the quantity of posts I ahve done!
@somber heath social media in general is distracting because if you're programming and constantly looking at social media, it can take away your attention from learning
I hate typing
Yeah, I'm pretty happy to find a community for Python. It's kept me up many a night.
How active are the mods in the server?
Let's see, other dumb programs I have written: a cross-stitch generator (load a png file, and specify how many colors (, say 8) and it will generate the printable grid and a thread color legend.
What's your github
hi guys
Truthfully, I have been terribly selfish and have not loaded a single line of code to github. Just hoarding them on my machine. . . Plus, learning github. woof.
Hi
You should consider storing your code on github
This is what it looks like if I speak the text into Dragon NaturallySpeaking and then we'll paste it into the program. That way I can just talk and not have to type. Ha ha lazy me.
Where is everyone from?
guys i got bugs during installation of mycroft on ubuntu
I have no idea what mycroft is
One of the finest early projects I did on Python was to create a news scraper. It grabbed headlines from the BBC and scroll them in a window. The primary library was beautiful soup
Nice
like google assistant but it's open source
@shadow crystal π
yo
guys i want to start learning coding for game dev and cybersecurity. I decided to begin w python any recommendations of course or where i should begin?
check freecodecamp
alright will do ty!
@uneven tulip
Is C# not better for game development?
This is my transcription program running (currently).
haii
i heard that to but since im new i get recommended python or java
good :3
since its easier to learn
Don't spam
Let's create lots of interesting and helpful comments(posts) so that we can get those posts and be able to speak!!
Who's spamming?
stormlight is
no im not
She was not
THIS, however, is a useful function I wrote:
def get_news_stories():
response = requests.get(news_url)
soup = BeautifulSoup(response.text, 'html.parser')
headlines = soup.find('body').find_all('h3')
stories = [x.text.strip() for x in headlines if x.text.strip() not in unwanted]
return stories
How was your date?
souppp
currently on it, im (in the bathroom)
aw bye
Opal, you said we only have to do ye verification once, right?
it says I am now verified for voice! ((but I am still suppressed).
anyone? Mod? Help!!
Leave
And rejoin vc
There is echo coming from bradley
No echo
I'm gonna head out, I'll join again tomorrow, super tired. Gn everyone
obfuscated my contact info,
@ornate iceπ
Hi All - Fixing my mic
@pallid peakπ
Same
I want to contribute but feel useless just listening but you guys are always great from the last chats I was on
π
I foolishly put *return numbr * instead of *return number * in part of a script I was going to ask about.
@rustic dewπ
When will you all regroup or I can just check back another time..appreciate the quick responses thank you!
π
nice setup @sacred crag
hi @whole bear
im not verificed
in voice
because the requierments
Hi
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Bro im drunk as hell
i dont know how i am
broooo
how bad i am
im not spamming
Ok
that`s good enogh
to not bun me
Ok
yes i am
i love you bro
go
go
go
to
ur
wife
<@&831776746206265384>
!mute 1029846804998668368
:incoming_envelope: :ok_hand: applied timeout to @pale trout until <t:1706409372:f> (1 hour).
:x: This command is not yet implemented. Maybe you meant to use voicemute?
!voicemute 1029846804998668368 "2 weeks" Spamming to get your message count up for voice gate is not allowed.
:incoming_envelope: :ok_hand: applied voice mute to @pale trout until <t:1707615476:f> (14 days).
@tropic lance Can you give me temp stream perms I promise to just stream chess
β @whole bear can now stream until <t:1706406334:f>.
what's up
I got the nick before I learnt the language, funnily
I have used it though
I'm not that good
Online-Go.com is the best place to play the game of Go online. Our community supported site is friendly, easy to use, and free, so come join us and play some Go!
Build with Visual Studio Code, anywhere, anytime, entirely in your browser.