#voice-chat-text-0
1 messages Β· Page 188 of 1
why I can't open live screen
match is better fit for structural patterns rather than just equality
no perms
when a mod is in the vc you can ask nicely for stream perms
@scarlet fiber π
hi
most of the time I will have commands that have to do with the same thing like clicking so I have them all under if "click" in cmd
this is the github just made it now: https://github.com/ToClickx/macro
aha see what you did there
!e
from io import StringIO
commands = {}
def command(f):
commands[f.__name__] = f
@command
def test():
print("test")
@command
def add(a, b):
print(int(a) + int(b))
program = StringIO("""
test
add 1 2
test
add 5 -3
""".strip())
for line in program:
command_name, *args = line.split()
commands[command_name](*args)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | test
002 | 3
003 | test
004 | 2
I prefer this approach to choosing which command to execute based on the name
to find the function in question search for command parsing and execution in the github go to macro.py and search for def parse_and_execute_command
yay I can talk now
macro.py lines 481 to 482
elif cmd == "rightclick":
pyautogui.rightClick()```
pyautogui is amazing
I think just .split() would be simpler here
https://github.com/ToClickx/macro/blob/main/macro.py#L390
macro.py line 390
parts = command.split(' ')```
as it treats repeated space as one + cuts out all the leading/trailing spaces
Why is the server pp changed ?
#announcements likely
fixed this: args = parts[1:].lower() to be
Save the full command
full_command = command
# Split the command and arguments
parts = command.split()
parts = parts.lower()
cmd = parts[0].lower()
args = parts[1:]
nwm that does not work too
I will just not make it lower
command.lower().split()
I think this is repeated enough times to make it a separate method
if self.advanced_errors == True:
messagebox.showerror(title="<some title>", message="<UI error>")
print("<log error>")
this also prevents missing a print in case like this:
https://github.com/ToClickx/macro/blob/main/macro.py#L472-L474
(third line of the "pattern" is missing)
macro.py lines 472 to 474
if self.advanced_errors == True:
messagebox.showerror(title="Click Command Error", message="Please enter 2 numbers with no other characters for the x and y.")```
I just did it very late on
I just added self.error so late along that I did not feel like updating it and so just left it their
it is about time I just did not want to commit to it
isn't switch basically just doing this?
def switch(self, string, comparisons):
try:
return string in comparisons
except TypeError:
return False
I knew I should of but since I had 4 other things I had to work on I just hoped I did not mess it up
I'll fix it
oh wait I did just in not a good way
good less code
I myself generally try to avoid suppressing too much of type-related errors
so I'd probably just write this instead of introducing an extra method:
if args[0] in ["tk", "tkinter"]:
...
or
match args:
case ["tk" | "tkinter"]:
... # omitted because long
case ["tk" | "tkinter", "copy"]:
pyperclip.copy(macrosaves.tkinter_template)
case ["tk" | "tkinter", "gui" | "screen"]:
... # omitted because long
case ["tk" | "tkinter", "gui" | "screen", "copy" | "duplicate" | "dupe"]:
copy(macrosaves.tkinter_template)
!e
args = ["tk", "screen"]
match args:
case ["tk" | "tkinter"]:
print("case 0")
case ["tk" | "tkinter", "copy"]:
print("case 1")
case ["tk" | "tkinter", "gui" | "screen"]:
print("case 2")
case ["tk" | "tkinter", "gui" | "screen", "copy" | "duplicate" | "dupe"]:
print("case 3")
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
case 2
nice
that requires Python 3.10 and above
I also suspect copy isn't defined in the original code
so it would've been pyperclip.copy
... which allows to merge two branches
!e
args = ["tk", "screen", "copy"]
match args:
case ["tk" | "tkinter"]:
print("case 0")
case ["tk" | "tkinter", "gui" | "screen"]:
print("case 1")
case ["tk" | "tkinter", "copy"] | ["tk" | "tkinter", "gui" | "screen", "copy" | "duplicate" | "dupe"]:
print("case 2")
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
case 2
(I probably wouldn't write it this way)
one thing I will say is that I do not like how the mouse is moved with the smove function
fixed also
this should probably be interpolated rather than incremented
https://github.com/ToClickx/macro/blob/main/macro.py#L291-L303
macro.py lines 291 to 303
xstep = difx / self.steps
ystep = dify / self.steps
if xstep == 0 and ystep == 0:
return
# Set a constant duration to achieve a constant speed
constant_duration = 0.2
for _ in range(self.steps):
pyautogui.moveTo(startx + xstep, starty + ystep, duration=constant_duration)
startx += xstep
starty += ystep```
how stable does it need to be?
does it need to get back on track if the pointer was moved due to external reasons?
actually, why is it in steps?
before while I was bug fixing it was not working so I would have it move the mouse in segments
if delay == True:
...
elif delay == False:
...
else:
print("How?")
this will probably look cleaner:
if delay:
...
else:
...
whatever happens to mouse movement, happens both with and without delay?
prob to do with some feature I was going to add then did not want to
fixed
with that I am now at 992 lines
did not do that yet but now I am
ok now fixed
983 lines
I am still here @vocal basin just not in vc
!d assert
7.3. The assert statement
Assert statements are a convenient way to insert debugging assertions into a program:
assert_stmt ::= "assert" expression ["," expression]
``` The simple form, `assert expression`, is equivalent to
```py
if __debug__:
if not expression: raise AssertionError
```...
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | assert False, "example"
004 | AssertionError: example
!d print
print(*objects, sep=' ', end='\n', file=None, flush=False)```
Print *objects* to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.
All non-keyword arguments are converted to strings like [`str()`](https://docs.python.org/3/library/stdtypes.html#str) does and written to the stream, separated by *sep* and followed by *end*. Both *sep* and *end* must be strings; they can also be `None`, which means to use the default values. If no *objects* are given, [`print()`](https://docs.python.org/3/library/functions.html#print) will just write *end*.
The *file* argument must be an object with a `write(string)` method; if it is not present or `None`, [`sys.stdout`](https://docs.python.org/3/library/sys.html#sys.stdout) will be used. Since printed arguments are converted to text strings, [`print()`](https://docs.python.org/3/library/functions.html#print) cannot be used with binary mode file objects. For these, use `file.write(...)` instead.
forces the stream to update instead of bufferring
or, at least, attempts to
in some circumstances, printed output won't appear instantly
@dry jasper what is the bottleneck? IO or CPU?
for WSGI/ASGI, runners start multiple processes by default
that includes Flask
"production-grade" WSGI/ASGI app can't really store anything in-memory for that reason
ASGI is generally better if you do any IO as part of handling the request
alisa why havent you voice verified yet?
at least, it has less memory overhead
there are some simplifications made in WSGI which are impossible to replicate in ASGI
so some things might be more difficult to handle
but those simplifications were mostly wrong to begin with
simplification on whose end? the programmer implementing or developing wsgi?
WSGI as an interface and certain frameworks implementing
it was so long ago but I don't remember having any compromises switching to asgi
with django
ah I see
keys im spelis
click (clicks=2)
goto 12 12
if 1==2||2==3 hotkey ctrl alt del; break
if 1==1&&2!=1 break
keys test if test
very simple macro language (hopefully it works)
Flask suffers more from WSGI lock-in
I guess I am having it easy since it's just like changing one or few lines in django?
@dry jasper
you'd need an extra service to actually store the queue;
if you don't really handle complex requests that are stateful, it might be easier to just rely on WSGI/ASGI runner for scheduling
RabbitMQ likely
one queue to push requests to
many temporary queues to push replies to
https://www.rabbitmq.com/tutorials/tutorial-six-python.html
comes from this
https://en.cppreference.com/w/c/io/fflush
ain't print literally a wrapper for stdout write or something
somewhat more complex
iirc, write may wait for reader to read in certain circumstances
yo
"rendezvous channel"-style
ModuleNotFoundError
might be failing to find hidden imports
queue.Queue should've been put into threading.Queue
this way it would be
asyncio.Queue threading.Queue multiprocessing.Queue
asyncio.Lock threading.Lock multiprocessing.Lock
how do i fix it
pyautogui
In discrete geometry, an opaque set is a system of curves or other set in the plane that blocks all lines of sight across a polygon, circle, or other shape. Opaque sets have also been called barriers, beam detectors, opaque covers, or (in cases where they have the form of a forest of line segments or other curves) opaque forests. Opaque sets wer...
^ what Iβm working on now, a program to test if a set of lines is an opaque set
spawning a background thread in this context is somewhat difficult
for Flask, ig, there's this
https://github.com/viniciuschiele/flask-apscheduler
FastAPI/Django likely have it built-in
this even allows to run after the response is done
https://fastapi.tiangolo.com/tutorial/background-tasks/
another thing
https://docs.celeryq.dev/en/stable/
(both FastAPI docs and Flask-related answers link to it)
(suggesting solutions to an earlier question; idk what the actual problem is)
neural networks sound complicated to my brain
The test program
i taste blood from my tooth
I'd expect it to be just gradient descent, without layering
hello
!code
hi
from how long u guys doing python ?
uh 2 years
how about you ?
its been more than a year now
i am new lol
@glossy spear what's your favorite in python ?
flask
@lone heart how about you ?
nahh i am beginnier in python i am not that good lol
what you can do in python ?
idk like some oop and like i am starting to learn things
like pygame
@fervent grail Do u have any tips for begginer?
uh learn python standard library
ok thanks
It's okay to buy things from an internet stranger. I still deliver.
!voice @trim relic
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
what species am i then?
you lizard folk can't trick me
hello
@candid shoal π
how do i throw an exception i forgor
@molten bear π
ah
@proven forge π
π hemlock go
@cobalt cloak This is where you'd put your code
move[n] += 1
i need to put the marked codes instead of it?
@violet sleet π
so you replace move[1] = move[1]+1 with move[1] += 1
hello
@cobalt cloak Either is fine, but += is often nicer.
up and down could use gravity and physics of bouncing
Yes, but we're not there, yet.
so like to be ready in the code??
I don't follow
oh um never mind
UKelele.
damn that drawing on the back
it came with the shoes
oh wow
hello
join ther call
me?
yas
i dont have voice verifeid
just join i also dont have voice verifeid but i can type least
voice verification took me like a day (without spam)
yeah but if i want to only chat i will be there and i like want to speak
oh ok
good to know
yeah π
how do u see how much messages people havee
the search bar
1000 messages im never talking in text ever again
!user in #bot-commands is more accurate
(shows exactly what the bot sees)
@delicate wraith π
hey
doesn't basically only VSC support Dev Containers?
i have more than 50k messages with my friend
We are happy to share with you that we have added Dev Container support In Visual Studio 2022 17.4 for C++ projects using CMake Presets. Containers are a great way to package up everything for running an application. Through a Dockerfile all prerequisites are captured so that there is a consistent runtime environment anywhere the container is de...
Development containers documentation and specification page.
you can also use remote containerised build tools in JetBrains
(it was already a feature in 2021; maybe earlier)
but that involves copying everything to remote server via ssh on each build
core -> .net
framework -> nothing
VS has way better debugging support
(compared to VSC)
iirc, back then docker-compose support was broken by default in IntelliJ IDEs
as it wanted to use local docker-compose
I switched over to VSC in 2022 when my license ended
and VSC just worked
https://www.wandercooks.com/wp-content/uploads/2020/10/australian-meat-party-pies-5-1080x1620.jpg Meat pies (Typically beef) are a big thing here.
in our university they told us to use spider for python but i was already familiar with VSC
Staple of petrol stations and convenience stores, almost everywhere.
PyCharm/CLion -> VSC switch for me was likely easier because I don't rely on using the debugger
too many things are async
@tidal tide π
hi
nicee @cobalt cloak
thx
I wonder if there's a way to have step-by-step execution for a single task
without stopping everything else
capture a task, move it to a separate loop
somehow
that is cool
would be not so helpful for asynchronous things
likely only makes sense for algorithms
hello
sup
and if the code is so complex that you need a diagram to find out what's happening,
it might be a signal to rewrite (simplify) it
tell this to my work
Dumb question, can you use git cleanly with jupyter notebook stuff? Or does the notebook get saved as a binary or something weird
@cobalt cloak python is not fun for making games (or web development)
if you want to make games, maybe try C# and unity, or mobile game development
python is the most fun for web scraping and data manipulation and things like that
you can or can't gitignore the side stuff you get from it iirc
jupyter notebooks have good enough compatibility with Git
i know but im not having any fun learning it
if all outputs are text, it might be okay to check them in
hey calm down with the web dev
django is nice af
as for images -- more difficult
i HATE django
i have 9 m
raw html/css/js/php is better
@pure gust jupyter nbconvert --clear-output --inplace my_notebook.ipynb
mistake lol
Broblox.
> unity
death
I'll start pushing Godot more every since Unity essentially shot indie devs in the foot
Correction
Shot them in the foot and then asked them to dance
and mugged them
Yarp
With a time machine.
VS Code is doubting my knowledge
almost every time I tried to use launch configurations, it went terribly wrong
@dense ibex @oblique ridge Voice twins.
the only project, that I remember using launch configurations more than once, was in Lua
I was not excepting Google to actually find something like that
code is the unit test for unit tests testing that code
mutual recursion
interface-based mock testing works great
injecting code and messing with things is sad
everyone like a litte xss now and then
in JS mocks objects are okay-ish
but there you also don't have type issues
# test that tests test
assert True
with self.assertRaises(AssertionError):
assert False
I prefer the word cucked
If you're in a mood when you make them, are they instead snitzels?
This looks delicious.
it's a gemberbolus
lots of ginger
lots of pastry
lots of sugar
it's a traditional Portuguese Jewish pastry from Amsterdam
"Why would you eat pasta and pizza at the same time?"
So you can eat Italian while you eat Italian.
Good
We need more people like me
Stay away from water.
Get the latest 1 Turkish Lira to US Dollar rate for FREE with the original Universal Currency Converter. Set rate alerts for TRY to USD and learn more about Turkish Lire and US Dollars from XE - the Currency Authority.
@halcyon nymph π
hi
Yoda poop?
bruhh
For cooking Yoda or for Yoda to use to cook
Definitively the former.
But enough about Mace Windu...
The Fault in our Stars is where I knew him from, first.
The Fault in our Starwars
notebooks are actually just a JSON file
if you have images they get base64 encoded
did anyone said cookie?
i have it
chem class
carbonised is addition of h2co3
not co2
horse tail hairs are used to play vilon
I'm not sure actually
I never actually messed with it
"What would you like? Chai?" "Nah."
@quasi condor Just do the !voiceverify in #voice-verification
I'm lazy busy
hello guys
good what about you
what do you think guys about unitest
Very helpful, I'm just bad about doing them
necessary, if you mean unittest
yes im talking about them
You're so pedantic
Not to be confused with pydantic
Does he even have nostrils?
#unit-testing Will have more knowledge and info than I would be able to offer
Unfortunately I haven't used it enough to give good opinions
ohhh
before you start your code are you use pseudocode and flowchart
classes
Not really. I'm usually just kind of thinking and maybe making notes
No pesudocode, though
instences
ohh intresting because you coding everyday
No I do it as a hobby. I don't code much for my job
oh cool
oh god π i thought that you are talking about classes in python but you guys talk about glasses
π€£
HA
hi
?
cocain will let you code 100000 line
π
and debaggin
are you using linux for coding
drugs are legal in united state
drugs in united state are more than any contry
there are all type of drugs
in usa
hahahhahaha
yes
cold? raining? Why does that sound like paradise to me?
in morocco if you drink in public you will prison 48 h
π
you talk arabic
repeat this word
hahahahahahahaha
If you're drinking at a restaurant patio or something you can drink outside, otherwise it's a no no
yeah yeah if they know you they will catch you
just us moroccan people
but like you if come to morocco you will leave like a king
hhhh
live
"live"
You should check these keyboards out if you want something split:
https://www.amazon.com/Kinesis-Freestyle2-Ergonomic-Keyboard-Separation/dp/B0089ZLENA/ref=sr_1_5?crid=1SC87Y8X43JNX&keywords=ergonomic+keyboard+split&qid=1695064789&sprefix=erginmotic+keyboard+split%2Caps%2C111&sr=8-5
Kinesis is the market-leader in computer ergonomics and has been designing premium keyboards for more than 25 years. The award-winning Freestyle2 keyboard is perfect for those looking to increase their productivity or enhance their comfort, at home or in the office. The Freestyle2's unique split-...
The Cloud Nine ergonomic split keyboard is the perfect solution for anyone suffering form wrist soreness, carpal tunnel , arthritis, or RSI symptoms. The ergo design supports your hands and wrists and reduces the pain that typical keyboards can cause. Your arms and hands will stay in an ergonomic...
https://github.com/HTTPArchive/httparchive.org
ye this is why it was familiar. saw this trending
@reef fractal @oblique ridge @rugged root i have a question in c can anyone of u help me?
could u just explain the 2nd line?
sorry im simply a humble pythonista
π¦
c = 1 if x > y else 3
ok thnx
?av @feral sinew
Can you run the code through a formatter? It would be easier to see what's going on.
int main()
{
int x,y;
scanf("%d %d",&x,&y);int c;
if((x-y)%2==0){
c=(x>y)?1:3;
}
else{
if(x>y){
c=2;
}
else if (y>x){
c=1;
}
else{ c=0;}
}
printf("%d",c);
return 0;
}```
#include <stdio.h>
int main()
{
int x,y;
scanf("%d %d",&x,&y);int c;
if((x-y)%2==0){
c=(x>y)?1:3;
}
else{
if(x>y){
c=2;
}
else if (y>x){
c=1;
}
else{ c=0;}
}
printf("%d",c);
return 0;
}
Yeah there's some confusing things about that code
i still dont understand what dis is. π¦
Ternary Operator
it's like this @feral sinew
okok
sad thrut hhh
hello crewmate
hello
were whta
what
look just add a surface for the cicle and a rect and a velocity and change the velocity when the player presses a key
can you do that?
also it says I dont have permission to speak in this channel
ok
so add a var called ball_surf outside the loop
and remove the drawing of the ball inside the loop
then make the surface a pygame surface with ame
surf1 = pygame.Surface((width,height))
surf1.fill((0,255,0))
pygame.draw.circle(surf1, (0,0,0), (200,2000), 5)
add the last line in the loop
pygame.surface is creating a surface that you can blit onto the screen
this line add in the loop pygame.draw.circle(surf1, (0,0,0), (200,2000), 5)
then make a rect like ball_rect = surf1.get_rect(center = (x, y))
enter the pos of the ball in the x and y
take your time
it makes the surface a rectangle object that has collisons and you can reposion it better too
so wich directions do you want the ball to move in up and down, left or right or both
what
oh the rect put it ouside
so wich directions do you want the ball to move in up and down, left or right or both
okay so make an x_vel var and set it to 0 same with the y
can I see ur code so far
okay first of all move the pygame.init to the very top of the code but below the import pygame
becouse pygame.init starts the module and you cant create a surf before that
ok next del the ball_surf var you dont need it any more becouse you have surf_1 as the surf
wait, do you want to move a circle or sqare/rectangle bec moving a circle is a little harder
ok so del this pygame.draw.circle(surf_1, (0,0,0), (200,2000),5)
ball_rect
can I see ur code again?
btw when you make the surf_1 the 500, 500 is the width and the height of the sqare
also the surf_1.fill (0,250,0) is the RGB color of the sqare
also why is thier 2 pygame.init
remove the second one
okay now onto the movment
it's fine
so make x_vel and y_vel and set them both to 0 outside the loop
next inside the loop write ball_rect.x += x_vel
this will incoment the pos of the ball rect on the vel
do the same for the y
and also at the end of the loop before display.flip write screen.blit(surf_1, ball_rect)
it is drawing to sqare onto the screen
yes
blit stands for block image transer
okay next in the event handerler add an if stantment if the user presses an arrow key or what ever key you want
first have an if to check if the user pressed a key if event.type == pygame.KEYDOWN:
then inside that add an if event.key == pygame.K_a:
then if that happened then change the x_vel to -5 or -what ever speed you want
can I see ur code?
.K_a is the a key
can I see ur code
put this in the for loop if event.type == pygame.KEYDOWN:
pass
im learning python and looking for a study group
hows ur coding journy going
I can help you
I started a few months ago
we could code together
my code jourey has been hard
same we should ask for a study group channel
should I recomend so tutorails you could watch
on youtube
maybe you can try and see
In this tutorial you will learn to create a runner game in Python with Pygame. The game itself isn't the goal of the video. Instead, I will use the game to go through every crucial aspect of Pygame that you need to know to get started. By the end of the video, you should know all the basics to start basically any 2D game, starting from Pong and ...
that would be great I teach you u teach me
so do you want to finsh the movment
can I see ur updated code so I can remember were to go next?
can so some teach me some basics
yeah sure
ααα’ | ααα’ | ααα’ what can I call you
so these 3 lines put after the for loop
screen.fill("yellow")
ball_rect.x += x_vel
all_rect.y += y_vel
Hello everyone.
Does anyone know anything about stn files?
Idk
after the first if add if event.key == pygame.K_a: for the a key
okay so in that if add x_vel = -5 or what speed you want test it out and see what speed works for you
also can you give me the new code so I can debug it?
after you add the ifs
these can be outside the for loop
screen.fill("yellow")
ball_rect.x += x_vel
ball_rect.y += y_vel
but it doesnt really make too big of a diffrence if you leave it in
btw you can run it now and see if the a key works!
so just add the same logic with w s and d
and also add a way when the user lifts up the key the vel is 0
just uses if event.type == pygame.KEYUP:
and copy and paste the same code but change the vel to 0
ill show you
here you go import pygame
pygame.init()
running = True
surf_1 = pygame.Surface((50, 50))
surf_1.fill("red")
ball_rect = surf_1.get_rect(center=(100, 100))
clock = pygame.time.Clock()
screen = pygame.display.set_mode((500, 500))
x_vel = 0
y_vel = 0
screen.fill("yellow")
ball_rect.x += x_vel
ball_rect.y += y_vel
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_a:
x_vel = -1
if event.key == pygame.K_d:
x_vel = 1
if event.key == pygame.K_w:
y_vel = -1
if event.key == pygame.K_s:
y_vel = 1
if event.type == pygame.KEYUP:
if event.key == pygame.K_a:
x_vel = 0
if event.key == pygame.K_d:
x_vel = 0
if event.key == pygame.K_w:
y_vel = 0
if event.key == pygame.K_s:
y_vel = 0
screen.fill("yellow")
ball_rect.x += x_vel
ball_rect.y += y_vel
screen.blit(surf_1, ball_rect)
pygame.display.flip()
clock.tick(60)
pygame.quit()
this works I have tested it if you have and questions then ask i go to go bye
btw what code editor do u use
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
read this message @vapid parrot @lofty echo
yeah i have 4 messages leftt
wait like but do i need to wait like 3 days or like 72 hours after i joined here?
message = reaction.message
print (len(message))
# Get the message for which the reaction was added
message = reaction.message
# Count the number of unique users who reacted (excluding the bot)
unique_users = len({user for reaction in message.reactions if not reaction.me for user in await reaction.users().flatten()})
print (unique_users)
discord.on_raw_reaction_add(payload)
@client.event
async def on_raw_reaction_add(payload):
if payload.channel_id == 614467771866021944:
if payload.emoji.name == ":repeat:":
channel = client.get_channel(payload.channel_id)
message = await channel.fetch_message(payload.message_id)
reaction = get(message.reactions, emoji=payload.emoji.name)
if reaction and reaction.count > 4:
await message.delete()
yo
does anybody have any project ideas I am struggling to find one thats not the hard but not the easy?
I am an intermideate
hi
hello wsp
nothing, just looking for some project ideas, ypuj
you
are you new to this server
if so I am to
I just joined today
i am a beginner i dont good at this lol
same
oh welcomee
I am a python beginner
same
what are some projects you have built?
like idk like some games on pygame
SAme I love pygame
oh thats cool
this is a project i made a couple weeks ago
nicee ur better than me lol
you can check out my git hub, rn I just got 1 project tho
how much time ur on python?
I olny started a few months ago lmao
wdym
ohh nice i am like a month nice for u
nvm lol
you can ask me i just dont know what that means lol
yeah nvm its ok, also my english is not that good lol
i will be better, i hope lol
yeah maybe one time becuase i am not near my computer lol i now was at school lol
lets go for the dm ok?
ok
:incoming_envelope: :ok_hand: applied timeout to @clever ice until <t:1695122443:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
cool
hello guys
JRPG Item storage ability, but it's a cloud. "Oh, hang on, let me just store this in the cloud."
Not impossible
...CANNONBALL!
#MrNanny (1993)
Director:
Michael Gottlieb
Cast:
Hulk Hogan as Sean Armstrong
πΌ Watch more out of context #RandomScenesβ from Random movies:
βΆοΈ https://www.youtube.com/playlist?list=PLMDP75BG72h6Di3qYSR5o4vTTqCVy7vYo
Follow #VideoClubRandom...
Testing which languages support emoji identifiers. Contribute to gitautas/emoji-identifiers development by creating an account on GitHub.
Yeah GCC is from the 90s?
LLVM is the new kid on the block
It's like the good old IE days π
Netscape Navigator.
@cobalt cloak You've got static coming through intermittently.
what are you talking about
EU regulations
Hey all π π
MS server 2003 is awesome
https://en.wikipedia.org/wiki/Windows_Server @cobalt cloak
Windows Server (formerly Windows NT Server) is a group of operating systems (OS) for servers that Microsoft has been developing since July 27, 1993. The first OS that was released for this platform is Windows NT 3.1 Advanced Server. With the release of Windows Server 2003, the brand name was changed to Windows Server. The latest release of Windo...
hi
all i did was ask something i dont see anything wrong with it jeez
okay
That is his stick, don't take it personally.
he is just very cocky and things that he knows everything, like most of us π
okay
Spain? 
who?
freedom land though
I'm not a fan of too much freedom
yo that looks like a rdr2 boat looks like
yea
@zenith radish
yas
@zenith radish
and i am ksi
better call saul
expat communities may not even interact with the natives. This causes countries to adapt <Country>-ization where they make the expats move away. True story.
efi the tiger
@cobalt cloak Your mic keeps fuzzing.
sorry
No.
decrease sensitivity, so we don't pick up the air brushing against the mic
oh
From 2004, a commercial for Verizon Wireless phone services.
nice
Easy on the gifs
ok
that's what she said
Reminds me of the English dub of the Ghost Stories anime
in windows 11, just holding the print screen gives the snipper
My only problem with the snipping tool is that some drop-downs or windows will change when you press a key
It's why I like Greenshot. It takes the frame before the keypress and lets you snip that
That's magical
im p sure sharex might do that but im not completely sure
i only use the snipping tool when i dont have anything else to use bc its good enough
studying, learning and growing doesn't really stop and just because one knows the derivation to projectile motion doesn't mean they should end up in ballistics.
Unit 8200 (Hebrew: ΧΧΧΧΧ 8200, Yehida shmone matayim "Unit eight two-hundred") is an Israeli Intelligence Corps unit of the Israel Defense Forces responsible for clandestine operation, collecting signal intelligence (SIGINT) and code decryption, counterintelligence, cyberwarfare, military intelligence, and surveillance. Military publications inc...
menemen
def hello():
print(input("What is the answer to life?"))
return 0
hello guys
You have factored in the universe and everything
can someone help me in python i have an error and i need help
yeah i believe its included
this is why I don't like making import statements.
What's the error you're having?
share your traceback
okeey
!tvmute 266899703067705344 1w Racist remarks/jokes are never allowed in the server. It is offensive and inappropriate in all situations. Please take this time to review our #rules and #code-of-conduct.
:incoming_envelope: :ok_hand: applied voice mute to @somber field until <t:1695746011:f> (7 days).
@rugged root
I updated these functions but the error is
from models.engine.file_storage import FileStorage
ModuleNotFoundError: No module named 'models
I you want to appeal it, send DMs to the @rapid crown bot
yes
like this
you mean like this
Like that in the embed
#!/usr/bin/python3
"""This module defines a class to manage file storage for hbnb clone"""
import json
class FileStorage:
"""This class manages storage of hbnb models in JSON format"""
__file_path = 'file.json'
__objects = {}
@property
def cities(self):
""""return cities"""
def delete(self, obj=None):
"""delete obj from __objects if itβs inside - if obj"""
if obj:
id = obj.to_dict()["id"]
claName = obj.to_dict()["__class__"]
kyName = claName+"."+id
if kyName in FileStorage.__objects:
del (FileStorage.__objects[kyName])
self.save()
def all(self, cls=None):
"""Returns a dictionary of models currently in storage"""
n_dict = {}
if cls is not None:
claName = cls.__name__
for key, value in FileStorage.__objects.items():
if key.split('.')[0] == claName:
n_dict[key] = str(v)
return n_dict
else:
return FileStorage.__objects
def new(self, obj):
"""Adds new object to storage dictionary"""
self.all().update({obj.to_dict()['__class__'] + '.' + obj.id: obj})
def save(self):
"""Saves storage dictionary to file"""
with open(FileStorage.__file_path, 'w') as f:
temp = {}
temp.update(FileStorage.__objects)
for key, val in temp.items():
temp[key] = val.to_dict()
json.dump(temp, f)
def reload(self):
"""Loads storage dictionary from file"""
from models.base_model import BaseModel
from models.user import User
from models.place import Place
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.review import Review
Boom, perfect
classes = {
'BaseModel': BaseModel, 'User': User, 'Place': Place,
'State': State, 'City': City, 'Amenity': Amenity,
'Review': Review
}
try:
temp = {}
with open(FileStorage.__file_path, 'r') as f:
temp = json.load(f)
for key, val in temp.items():
self.all()[key] = classes[val['__class__']](**val)
except FileNotFoundError:
pass
this is the error
from models.engine.file_storage import FileStorage
ModuleNotFoundError: No module named 'models
This is the first time in my life I've seen a function do module imports, wow.
dude i dont think Im able to send 50 messages to get voice verify
π
lets have a convo
help me
If the admins here had any sense of strictness, they wouldn't allow convo from voice channel chats to count to the message count.
they do?
where is your brain dude? really
Do you try catching ModuleNotFoundError by adding extra except ModuleNotFoundError as e then set breakpoint importing pdb and using pdb.set_trace(), what is the detail ?
what?
If they do, what's the point of chatting here.
omg, not just the compiler, I'm asking where the models module is.
I dunno your project structure, just want to see the path to the module
zschoken
i just want fix this error there is two file the main file and the second whare is the code i wrote but when i execute the main file ./main it give the error that i told you
Please do not spam or you will have to wait longer
Just participate in the normal conversations within the server.
but this is true?
Yes
ok thank you
ok
!e for i in range(10): print(i)
@reef badger :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
yay, i made a loop work
why waste diamonds on the drill.
the dust could be used for makeup
!e
print(int("ΰ§ͺΰ¨")) # answer to everything
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
42
!charinfo ΰ§ͺΰ¨
\u09ea : BENGALI DIGIT FOUR - ΰ§ͺ
\u0b68 : ORIYA DIGIT TWO - ΰ¨
\u09ea\u0b68
glad to know
Wait, why are you guys still in code help
Β―_(γ)_/Β―
Just noticed that
We'll move haha
hey
Bois D'Arc
i'd be left i believe in myself
Miss Tryst
Why is python soooo good?!?!?
its just superior
what did it do this time
Especially compared to js
Just doing what its suposed to do, i build a message broker withs queue
oh, is this like for ROS?
Ros?
because talking to servo motors is important
Most likely
what are you talking about?
oh gut gut
And how its way better than js
you are not even inthe vc
poor js battling with webassembly and typescript, now contending with python. I don't think it's meant to be compared.
I know
From a astetics python also wins
That sexy indentation
Look at those curves
okay, as long as you're having fun.
Klopt
Bash wins from an ascetic's point-of-view.

I think they're just making it up as they go along π
sys.activate_assembler_trombone() is being added in 3.13
A trampoline is a small piece of code that is created at run time when the address of a nested function is taken. It normally resides on the stack, in the stack frame of the containing function.
I'm going to have to read that a few times to understand it I think 
In computer programming, the word trampoline has a number of meanings, and is generally associated with jump instructions (i.e. moving to different code paths).
I... kind of get it?
Oh he was having some intermittent noise issues earlier because his mic sensitivity was too high.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5946242/#:~:text=Skin pigmentation%2C i.e.%2C melanin%2C,[7] and more generally. Yep, I was wrong
https://www.jessicagavin.com/wp-content/uploads/2023/06/how-to-make-chia-pudding-23-1200.jpg
https://hips.hearstapps.com/hmg-prod/images/chia-pudding-index-649c90045f56c.jpg?crop=0.888711146659557xw:1xh;center,top&resize=1200:*
https://i2.wp.com/www.downshiftology.com/wp-content/uploads/2020/01/Chia-Pudding-main.jpg
Chia pudding yo
yeah π
that looks juicy
hi
hi
I was finally been able to get into the Python course on my university
Niiiiiiiiiiiiiiiiiiiiiiiiiiiice
The Kooikerhondje (Dutch for "Duck catcher's small dog") is a small spaniel-type breed of dog of Dutch ancestry that was originally used as a working dog, particularly in an eendenkooi (duck decoy) to lure ducks. Kooikers were popular in the 17th and 18th century and appear in the paintings of Rembrandt, Gerard ter Borch, and Jan Steen. The bre...
It's kinda easy for me for the time being
I'm glad! I'm sure you'll kill it
Apporteren (Frans: apporter = "hier brengen") is het ophalen van wild of gevogelte door een jachthond. Op het apporteren gespecialiseerde honden worden retrievers (letterlijk "ophalers") genoemd, maar ook andere jachthonden worden geacht te apporteren. Ook als spel is deze activiteit niet ongebruikelijk, hoewel het dan meestal gaat om het terugb...
Athough I've been struggleing with downloading an older python to my linux laptop
pyinstaller should help
or just virtualenv
Fetch is a pet game where an object, such as a stick or ball, is thrown a moderate distance away from the animal, and it is the animal's objective to grab and retrieve ("fetch") it. Many times, the owner of the animal will say "Fetch" to the animal before or after throwing the object. The game is usually played with a dog, but in rare instance...
pyenv
That's the one I was thinking
@vivid palm
yeah, I've been trying that, but it doesn't recognise pyenv
I might just be stupid for linux
manjaro can be annoying
I will ask my classmate tomorrow, who did my linux laptop
it's why most people are told to start with Ubuntu
It can still be an issue
sure
Wrangling multiple Python versions on Linux is always a bear
it's just often easier to fix
cuz more support
so there's usually already a stackoverflow question about it
Why would that be a sad face
cute!
yeah, but I like it better than ubuntu, because I had problems with some stuff (like c and c++ compiler) being not the same version as the teachers on LTS ubuntu
fair
lol I'm the same though




