#off-topic-lounge-text

1 messages ยท Page 13 of 1

forest sundial
#

You would have to check then, I can't tell you where you've installed it

radiant apex
#

ok

#

i know where i installed it

forest sundial
#

Then this

radiant apex
#

wht next

forest sundial
#

Nothing?

radiant apex
#

thats it

#

thanks

potent widget
#

I made minecraft with everything crafting most importatn ores mining some structures health and hunger

wanton magnet
#

sure buddy sure

potent widget
#

IN C++

jaunty mist
#

hi

dusky anvil
#

hello

cursive meteor
potent widget
#

What are you sending???

#

This is a python chat room

#

Well i mean it is a lonely server

#

How to build a nether portal?

raven spade
primal bison
#

๐“—๐“ฎ๐“ต๐“ต๐“ธ

obsidian hamlet
#

Hi

twilit quarry
#

!e ```python
""" select this option allows you to checkout """
option = 'info'
100 in 1000:
print("i made so bullshit")

timid fjordBOT
rare spade
#

hello

#

!e

    zero = 'X' if xState[0] else ('O' if yState[0] else 0)
    one = 'X' if xState[1] else ('O' if yState[1] else 0)
    two = 'X' if xState[2] else ('O' if yState[2] else 0)
    three = 'X' if xState[3] else ('O' if yState[3] else 0)
    four = 'X' if xState[4] else ('O' if yState[4] else 0)
    fifth = 'X' if xState[5] else ('O' if yState[5] else 0)
    sixth = 'X' if xState[6] else ('O' if yState[6] else 0)
    seven = 'X' if xState[7] else ('O' if yState[7] else 0)
    eight = 'X' if xState[8] else ('O' if yState[8] else 0)
    print(f"{zero} | {one} | {two}")
    print("--|---|---")
    print(f"{three} | {four} | {fifth}")
    print("--|---|---")
    print(f"{sixth} | {seven} | {eight}")
    
def checkwin(state):
    # All possible winning combinations
    win_combinations = [
        [0, 1, 2], [3, 4, 5], [6, 7, 8],  # Rows
        [0, 3, 6], [1, 4, 7], [2, 5, 8],  # Columns
        [0, 4, 8], [2, 4, 6]             # Diagonals
    ]
    
    # Check if any winning combination is satisfied
    for combination in win_combinations:
        if state[combination[0]] == 1 and state[combination[1]] == 1 and state[combination[2]] == 1:
            return True  # A win is found
    return False  # No winner yet

if __name__ == "__main__":
    xState = [0, 0, 0, 0, 0, 0, 0, 0, 0]
    yState = [0, 0, 0, 0, 0, 0, 0, 0, 0]
    turn = 1  # 1 for X, 0 for O
    print("Welcome to Tic Tac Toe!")
    
    while True:
        printBoard(xState, yState)
        
        if turn == 1:
            print("X's Chance")
        else:
            print("O's Chance")
        
        try:
            # Input from the user
            value = int(input("Enter a position (0-8): "))
            
            # Check if the input is valid
            if value < 0 or value > 8:
                print("Invalid input. Enter a number between 0 and 8.")
                continue  # Restart the loop
            
            # Check if the position is already taken
            if xState[value] or yState[value]:
                print("Position already taken. Try another position.")
                continue  # Restart the loop
            
            # Update the state
            if turn == 1:
                xState[value] = 1
                # Check if X wins
                if checkwin(xState):
                    printBoard(xState, yState)
                    print("X wins! ๐ŸŽ‰")
                    break
            else:
                yState[value] = 1
                # Check if O wins
                if checkwin(yState):
                    printBoard(xState, yState)
                    print("O wins! ๐ŸŽ‰")
                    break
            
            # Switch the turn
            turn = 1 - turn  # Toggles between 1 (X) and 0 (O)
        
        except ValueError:
            print("Invalid input. Please enter a valid number.")
tough shale
#

Library

#

?

small dragon
#

import turtle
import random
turtle.bgcolor('black')
turtle.colormode(255)
x=0
turtle.speed(10000000000)
for x in range(500):
r,b,g=random.randint(0,255),random.randint(0,255),random.randint(0,255)
turtle.pencolor(r,g,b)
turtle.fd(x+50)
turtle.rt(91)
turtle.exitonclick()

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @small dragon until <t:1738015647:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

simple wedge
#

hello?

elfin lark
#

!e

amount_x += int(tile == "X")
amount_y += int(tile == "Y")
timid fjordBOT
elfin lark
#

!e

amount_x = 8
amount_y = 9
tile = "X"
amount_x += int(tile == "X")
amount_y += int(tile == "Y")
timid fjordBOT
elfin lark
#

!e

amount_x = 8
amount_y = 9
tile = "X"
amount_x += int(tile == "X")
amount_y += int(tile == "Y")
print(amount_x, amount_y)
timid fjordBOT
elfin lark
#

Twst

!e

amount_x = 8
amount_y = 9
tile = "X"
amount_x += int(tile == "X")
amount_y += int(tile == "Y")
print(amount_x, amount_y)
timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @radiant ore until <t:1738093777:f> (10 minutes) (reason: emoji spam - sent 27 emojis).

The <@&831776746206265384> have been alerted for review.

#

:incoming_envelope: :ok_hand: applied timeout to @fair flume until <t:1738094503:f> (10 minutes) (reason: emoji spam - sent 27 emojis).

The <@&831776746206265384> have been alerted for review.

dull anvil
#

@mellow solar to me just sounds like random noise, not a consistent view of that sort

#

anyway
back to listening to pain music

#

for ~300th time

slim pasture
#

hi there

pastel totem
slim pasture
#

whats going on here? beginner here lolz

#

what is the goal?

pastel totem
#

If you like me, has no access to speech. You interact with voice channels with the chats that are under the same name.

slim pasture
#

siiiiiick

pastel totem
#

@rich moss is shredding some code in the live-coding chat in a project's been working on.

slim pasture
#

is this for a game?

#

isee isee

pastel totem
slim pasture
#

and my name is actually matthew not kurt lolz

wispy fable
#

stream i paused

slim pasture
#

yeah lolz its for the lolz

#

its coBrain

#

i cant talk

dull anvil
slim pasture
#

i meant like i named it kurt cobrain for the lolz

#

yes sir whatsup

pastel totem
#

haha

slim pasture
#

idk man i only kknow python

pastel totem
#

That one is easy, Fortran or Common Lisp.

dull anvil
#

@twilit quarry React+WASM+Python for peak complexity

slim pasture
#

what can python not do

dull anvil
#

OS kernels python cannot do

pastel totem
#

The only thing yet, is Homoiconicity.

#

But the rest, yeah, pretty much everything.

dull anvil
#

for in-browser you need JS either way

#

even with WASM, there's still a giant JS compat layer

#

@fresh sail LLVM rather than target arch assembly directly

slim pasture
#

ooh good question

fresh sail
dull anvil
#

WordPress is in a weird state right now

fresh sail
dull anvil
#

WP Engine?

#

Cloudflare

dull anvil
#

that's their main product

#

like I don't remember any other one that associates with DDoS protection as much

#

that's Lambda alternative

#

not VPS

#

as it should be

slim pasture
#

welp im gonna go now, enjoy your day everyone ๐Ÿ‘‹ ๐Ÿซก

dull anvil
#

last time I tried calculating Lambda prices for something, the result was:
$0.00

pastel totem
#

Heroku is hell of a PaaS

dull anvil
#

and when I removed the free tier, it was $0.02

#

per month

#

@twilit quarry not Angular

#

do not Angular

#

, would be the advice a few years ago

#

nowadays they seem to be moving towards modernity they initially pioneered

pastel totem
#

Brazil

#

Nah.

#

I might move to Texas this year. We'll see.

dull anvil
#

@twilit quarry just as you say that, I receive a notification because someone is spamming Trump coin scam in telegram...

pastel totem
#

Imma head out. have a nice one y'all.

dull anvil
#

@fresh sail it's somewhat far from his actual goals

#

just an excuse to stay in power

nova shoal
nova shoal
dull anvil
#

whereas queue module is for working with threading

#

it's unfortunate that it's queue.Queue, it really should've been threading.Queue by analogy with asyncio.Queue and multiprocessing.Queue

rich moss
#

!pypi terminal_dungeon

timid fjordBOT
nova shoal
dull anvil
#

that's why it's named double-ended queue

fresh sail
nova shoal
dull anvil
#

pain

#

top but h

#

hraphical

#

idk

#

it's colourful version of top

#

it's not in the container

#

node casually requesting almost 22G of memory

#

I need to spam my service with requests to fill up the db

#

so I also decided to also look at CPU usage

#

(unrelated to 22G thing)

#

why does it ever need to page anything out

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @mortal onyx until <t:1738183538:f> (10 minutes) (reason: emoji spam - sent 27 emojis).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @vernal python until <t:1738184872:f> (10 minutes) (reason: emoji spam - sent 27 emojis).

The <@&831776746206265384> have been alerted for review.

#

:incoming_envelope: :ok_hand: applied timeout to @plain tiger until <t:1738185444:f> (10 minutes) (reason: emoji spam - sent 27 emojis).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @weak robin until <t:1738189269:f> (10 minutes) (reason: emoji spam - sent 27 emojis).

The <@&831776746206265384> have been alerted for review.

olive swallow
#

and i also didnt know how to how connect the buttons and things to a function
but i made a function that calls two different methods and gave a button that function. Now the first method is supposed to be a toplevelwindow and has a progressbar so its like a loading screen. The second method is just predictions made by AI. But the problem im having is that after the AI finishes all of its predictions does the first method work.
idk why its not starting at the same time

#

@jagged swallow

#

become my savior

jagged swallow
#

let me see your code my good sire

#

pop it in a pastebin and i'll have a look

olive swallow
#

alright

#

let me remove some texts since its personal info

#

also

#

how do i do that

void talon
#

!paste

timid fjordBOT
#
Pasting large amounts of code

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

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

olive swallow
#

do i just paste the link?

#

alright

#

thanks

#

youve developed a game?

#

thats life

#

hehe

#

my bad

#

huh

#

damn

#

can i use english as my second language as an excuse

jagged swallow
#

for sure

#

no judgement at all

olive swallow
#

though i didnt realise i spelled it wrong

#

though this is also why i wanted to do it by hand

#

i wanted to learn and actually understand what is going on on screen

jagged swallow
#

i can't share I'm afraid

#

The button_click4 method performs intensive tasks (like loading a model and processing images) on the main thread, which blocks the GUI. As a result, the progress bar may not update or display correctly.

olive swallow
#

ah

#

i see

#

would you suggest i load the model before the class

jagged swallow
#

Use threading to run the processing in a separate thread, allowing the GUI (including the progress bar) to remain responsive.

olive swallow
#

you lost me

jagged swallow
#

lol sorry

olive swallow
#

hold on let me search

#

ohh

#

portuguese

#

what four languages

#

i also speak four

#

you just gotta expose yourself to the language

#

damn

#

@jagged swallow question, so im reading w3schools about threading. Can i just leave button_click4 and bar like they are and put them in the thread? Or do i need to move them outside the class and put them in separate threads. And the threads go in the button_click4 event?

jagged swallow
#

something like this

import threading

def func(self):
    threading.Thread(target=self.run_sorting).start()

def run_sorting(self):
    self.bar()
    self.button_click4()
    self.done = "finished"```
olive swallow
#

ohhh

#

damn that looks simple

#

does the pyton library have threading?

#

yep

jagged swallow
#

customtkinter (ctk.CTk) is built on top of tkinter, and creating multiple Tk instances can lead to unexpected behavior. Using Tk().withdraw() creates a new hidden Tkinter root window every time a folder selection is made.

#

Instead of creating a new Tk instance, use the already existing CTk instance for file dialogs.

olive swallow
#

ohhh

#

optimisation

#

wait

#

so i just need to remove the Tk().withdraw() no?

#

i think i understood

#

i changed Tk() to self making it self.withdraw()

#

yep we start with python

#

and its advertised like that as well

#

im back

#

my internet died

#

@jagged swallow could you explain in a bit more detail what the already existing CTk instance for filedialogs is? i looked it up and i found "filedialog.askopenfilename()", but i didnt quite understand with what i should replace "Tk().withdraw()"

jagged swallow
#

it should look like this

def button_click1(self):
    Tk().withdraw()
    self.test_folder = filedialog.askdirectory()```
olive swallow
#

oh okay

#

God likes me

#

T_T

#

hes gone

#

OH

#

HO

#

it works

jagged swallow
#

yeah? did that get it in order?

#

there's still some issues here and there

#

it's probably not going to 100% function the way you were intending

olive swallow
#

i just need to fix the code

#

to close the progress bar and im finished

olive swallow
jagged swallow
#

did you also do something like this

def button_click1(self):
    self.test_folder = filedialog.askdirectory(master=self)

def button_click2(self):
    self.deer_folder = filedialog.askdirectory(master=self)

def button_click3(self):
    self.nodeer_folder = filedialog.askdirectory(master=self)```
olive swallow
olive swallow
jagged swallow
#

sorry, this is the way it should look

olive swallow
#

now i just need to add finishing touches and my gorup project is done

jagged swallow
#

Ensure that the progress bar is stopped once processing is complete. This ties back into using threading to allow the GUI to remain responsive.

olive swallow
#

nah

#

so where i live we use the dutch education system

#

in the last year you get a profielwerkstuk

#

which is just a project done in groups that take up the whole year basically and you choose one of the subjects

#

my groups chose tech and biology

jagged swallow
#

so senior project then

#

we have those here

olive swallow
#

so we decided to make an AI that recognizes deer

jagged swallow
#

i made a 2d platformer for mine

olive swallow
olive swallow
#

what inspiration was behind it

jagged swallow
#

i was 18 the judges loved it

olive swallow
jagged swallow
#

my inspiration was "make a game"

olive swallow
#

thats kind of broad

#

but you did make a game

jagged swallow
#

i had no idea what i was doing, my game was trash lmao

olive swallow
#

haha

jagged swallow
#

but it was impressive to the judges

olive swallow
#

its the effort that counts

#

and of course the final prject

#

50/50

jagged swallow
#

i explained how the code worked and they understood it so they were like ok this guy knows what he's doing

olive swallow
#

i dont know if people are gonna understand python

#

here

#

though we get to invite people for our presentation

#

and we intend to enter the national contest(?) from the netherlands

#

hopefully make it into the top 10

#

thought there are insane things people have build

jagged swallow
#

re your code: Hardcoding file paths can lead to issues if the path is incorrect or if the code is run on a different machine or operating system.

olive swallow
jagged swallow
#

yep

olive swallow
#

i plan on making this into an executable and putting the file with it

jagged swallow
#

But you need to reference it using a relative path

#

i'm sure you can solve that part on your own pretty easily

olive swallow
#

hopefullly

#

but ill think ill manage

#

you already helped me a lot

jagged swallow
#

./[insert filename]

#

without the brackets

#

Make sure that the detect_objects function is properly indented within button_click4. Improper indentation can lead to IndentationError or logical errors.

olive swallow
#

in command prompt?

jagged swallow
#

If the user hasn't selected all required folders (test_folder, deer_folder, nodeer_folder), the button_click4 method might fail. Add checks to ensure that all necessary folders are selected before processing begins.

olive swallow
#

forgot about that

#

i tried that before but i ran into an issue

#

idk remember what it was

jagged swallow
#

Using shutil.move without checking if the target file already exists can lead to data loss. Handle potential filename conflicts.

olive swallow
#

hello

jagged swallow
#

The update method is not being called; it's just referenced. This means it won't execute. Add parentheses to call the method.

olive swallow
#

oops

#

damn ive made a lot of mistakes

jagged swallow
#

it's alright

#

you're learning

#

making mistakes is how you learn

olive swallow
#

indeed

#

@jagged swallow did you go to uni or college?

#

and did you do computer science

jagged swallow
olive swallow
#

si la computadora

#

ah

#

hahah

#

no codes were hurt

#

in the making of this gentleman

jagged swallow
#

only thing that was hurt was my ego

olive swallow
#

ah shit

jagged swallow
#

of which i have little so we're fine

#

lmao

olive swallow
#

haha

#

i dont understand why people take philosophy

#

i dont understand what the study aims to

#

think about thinking

#

i talk to myself sometimes

#

in my head

jagged swallow
#

to understand the nature of humanity and morality and ethics and the human condition

olive swallow
#

i see

#

its like the parental effect of seeing your child get your gift

#

kryszstof sounds russian or somewhere around ther

void talon
olive swallow
#

you have kids?

#

i see

#

dman

#

damn

#

you sound wise

#

fools used to laugh at kings without repercussions

#

i understand why

#

thought

#

though

#

its more like you

#

they want to experience something at least once

#

of ocurse

#

there are reasons why its not commun

#

comun

#

?

#

how do i spell comun

#

common

#

that reminds me of a person i know

#

alright you guys have any interesting hobbies

jagged swallow
#
running = True
while running

  #inster game logic


  #insert game over condition

  running = False```
olive swallow
#

oh nice

#

what games you into right now

#

what the hell

void talon
jagged swallow
#

here i explain a finishing move in 5D Chess with Multiverse Time Travel

olive swallow
olive swallow
void talon
jagged swallow
#

mindbendingly frustrating and terribly fun for my poor brain who can't visualize pieces moving through time and space

olive swallow
#

why does it look like they are driving the car like they would riding a horse

olive swallow
#

imagine things?

jagged swallow
#

well i do have aphantasia but i mean just predicting a move and where a piece will land

#

if u watch the video it kind of explains what i mean

olive swallow
#

my Internet died again

#

but I think imma leave it like this and go

#

thanks a lot @jagged swallow for the help

jagged swallow
#

no problem at all my friend

olive swallow
#

I got help from God

jagged swallow
#

lol i am far from it

#

there's people way beyond my level

olive swallow
#

it's all about perspective my friend

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @plucky flower until <t:1738320017:f> (10 minutes) (reason: emoji spam - sent 24 emojis).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

failmail :ok_hand: applied timeout to @hollow copper until <t:1738387532:f> (10 minutes) (reason: burst spam - sent 8 messages).

The <@&831776746206265384> have been alerted for review.

cedar basalt
#

@hollow copper You will be unable to voice verify for the next 2 weeks because of this spamming.

hushed pagoda
#

what he playing

pastel quail
celest rune
#

ู‡ู„ุง ุดุจุงุจ

primal bison
#

.

#

.-

#

-.

#

?

#

Lets make a ship toghether!

#

-------------------

#

--------__--------_-___-

#

--____------_--------------------_____-----____

#

did you like it?

coral hill
#

whats this chat for?

runic grotto
#

hello

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @primal bison until <t:1738979068:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @primal bison until <t:1739065860:f> (10 minutes) (reason: burst spam - sent 8 messages).

The <@&831776746206265384> have been alerted for review.

sage kite
true bolt
#

Hi

strange rose
#

Here ๐Ÿ‘‹

wispy drift
#

ok so the main thread is mainly to got user events and updating the ui from like states and stuff, everything else should be on the other threads ?

neon portal
#

@buoyant kestrel Down to hang for a bit sir?

neon portal
#

@night lily Could you be my rubber ducky for a few moments?

night lily
#

When I get back?

neon portal
#

Sure.

#

!paste

timid fjordBOT
#
Pasting large amounts of code

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

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

neon portal
#
QUBIT_KEYS = frozenset([
    "qubit_index", "control_index", "target_index", "first_qubit_index",
    "second_qubit_index", "first_target_index", "second_target_index"
])
QUBIT_LIST_KEYS = frozenset(["qubit_indices", "control_indices", "target_indices"])
ALL_QUBIT_KEYS = QUBIT_KEYS.union(QUBIT_LIST_KEYS)
hollow forge
night lily
#

@neon portal Sorted?

neon portal
#

Yeah, fixed it.

#

Wanna hang though.

night lily
#

Yo

hollow forge
#

@night lily which looks better?

night lily
#

@red dome๐Ÿ‘‹

#

Difficult to answer that without context.

hollow forge
#

one only shows the buttons when you hover over it and one shows them all

night lily
#

Oh, from a design perspective. I thought you were referring to the file size.

#

The righthand.

hollow forge
#

@night lily show all colors or just when you hover over the specific button does it show the color?

night lily
#

You needn't have the intermediate background behind the icon at all, as a third option.

hollow forge
#

you mean the shadow?

night lily
#

I mean the shadow.

hollow forge
#

oh no in the second image the button is being hovered over

night lily
#

As in lefthand and just that.

hollow forge
#

so this?

night lily
#

I'm not.

#

I recognise it as a moral failing, but it's one that I grew up with and find delicious.

#

So I'm at peace with it.

#

I know.

night lily
hollow forge
#

so all colors no shadow?

night lily
#

Maybe.

hollow forge
hollow forge
night lily
#

The surrounding intermediary grey. It's square.

hollow forge
#

ah that

night lily
#

Try removing it and having it as just that.

hollow forge
#

so dont have a background behind the button when im hovering over it?

maiden sparrow
#

I'm looking for projects to do.

neon portal
timid fjordBOT
#
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.

neon portal
#

My suggestion is to think of your interests (any fields that you like/are good at) and then come up with a project. The project would then be implemented as a SDK/package which you can publish on pypi.

ocean rose
#

someone know how to move in terminal linx?

jagged vault
#

If you need help in projects come

hoary herald
#
phone_map = {'g': 'ษก', 'สค': 'dอกส’', 'สง': 'tอกสƒ'}```
hollow copper
#

sup

#

if anyone needs help here just let me know

oak heath
#

Hey, i've got this problem when i have number that does not match the length of 4 i need to add 0s before it, example input = 1, 12, 132 output = 0004, 0012, 0132 i know there's a str method in python< but i forgot which one solves this issue

#

ah, it's zfill i remembered

devout breach
#

always nice to find a shortcut , efficient piece of code @oak heath

neon portal
#

!paste

timid fjordBOT
#
Pasting large amounts of code

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

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

neon portal
#

@craggy rapids Put your code inside the pastebin link.

craggy rapids
light furnace
rich moss
neon portal
#

@rich moss

[tool.setuptools.package-data]
"batgrl" = ["py.typed"]
grave elk
#

@arctic crypt why on earth are you opening your cam with your character on it

grave elk
#

sup @rich moss

#

hi @rich moss

rich moss
devout breach
#

the elasticity of the pixel groups is cool @rich moss

supple gorge
#

can anyone

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @supple gorge until <t:1740168242:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

night lily
#

@shy geode ๐Ÿ‘‹

shy geode
night lily
#

@lament sleet ๐Ÿ‘‹

#

@void turtle ๐Ÿ‘‹

hollow forge
coarse ridge
#

hi guys ๐Ÿ™‚

neon portal
#

@agile portal Wanna hang?

ruby bronze
#

i need some help detecting tetronimos im not sure how

crimson bane
#

Guys some one can help me decompile file?

lament sleet
red basalt
fossil slate
#

If really interested in learning cybersecurity Dm

brittle pebble
#

for counter in reversed(range(1, 11)):
    print(counter)
    time.sleep(1) # wait for 1 second

print("HAPPY NEW YEAR!!!")```

Mini project I just did ๐Ÿ™‚
quaint cave
#

Hey guys, so I want to create a hashing algorithm in python. Here's the idea:

It takes a string of characters and then adds 25 characters in between each letter. It could be letters, numbers, or special characters, then it would add that to the output.

Could anyone help me with this and how I could implement this?

full hawk
hoary cobalt
#

I am doing something wild and could use a pythonic take

#

It

#

Dao approach in python and rust

#

but I am unsure if I should be building crypto on python whatsoever.

timid wadi
#

i need a little help from anyone who can code anything please!

quaint cave
paper quartz
long wyvern
#

Hello friends

#

can you please help me with this

timid fjordBOT
# long wyvern

Please react with โœ… to upload your file(s) to our paste bin, which is more accessible for some users.

long wyvern
#

it is saying unexpected indent

primal bison
#

hmmm

primal bison
barren viper
#

i also added bg color if you want

ruby prism
#

Wht up with dut name

barren viper
ruby prism
#

Maha-Gamer

#

My apologize

barren viper
#

oh i have a youtube channel under that name

ruby prism
#

Okayy that's cool

carmine garnet
long wyvern
barren viper
#

Ur Welcome

tight ridge
#

i tried this a lot of times.

import random

prime_in_lst = []
while True:
    to = 1000
    randoms = sorted(set([random.randint(0,to) for ran in range(to)]))

    def is_prime(num):
        if num <= 1:
            return False
        for i in range(2, int(num ** 0.5) + 1):
            if num % i == 0:
                return False
        return True

    i = 0
    for ran in randoms:
        if is_prime(ran):
            i = i + 1

    prime_in_lst.append(i)

    print(f'{sum(prime_in_lst)/len(prime_in_lst)}/1000')

its always between 105 106 can some one explain why
its test

undone vessel
#

installing 3.13.2

rough ledge
tidal wadi
wispy drift
#

what percent of android phones globally run on android 10 and lower vs android 10 and higher
not just the us and eu

ember ridge
#

hey hello friends how to get voice permission

timid fjordBOT
#

:x: Your 3.13 free threaded eval job has completed with return code 1.

001 |   File "/home/main.py", line 9
002 |     case s if aint.fullmatch(s) as m:
003 |                                 ^^
004 | SyntaxError: invalid syntax
night lily
timid fjordBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

hearty agate
#

Test

nova hull
cosmic tartan
#

can someone try my calculator for errors

#

โ€ข>_<โ€ข

timid fjordBOT
brittle pebble
#




def main():
    preface()
    paycheckfunc()
    phonebill()
    totalbal()


def totalbal():
    Inc = (paycheck)
    Exp = (pbillw)
    tbal = (Inc - Exp)
    print("This is your total balance")

def preface():
    print("This will help you calculate your weekly budget")
    print("Please use whole numbers, thank you")
    #would like to change this but don't know how
    print()

def paycheckfunc():
    hrs = int(input("How many hours did you work this week?\n"))
    mphr = int(input("How much do you get paid per hour?\n"))
    paycheck = ((balance + (hrs * mphr)) * .79)
    print()
    print()
    #defeinetly has to be a better way than this to skip lines lol
    print("Below is your paycheck for this week")
    print()
    print(paycheck)
    
    
def phonebill():
    pbill = int(input("How much is your phone bill on a monthly basis?\n"))
    pbillw = print(pbill * .25)
    print(pbillw)




main()```

@night lily working on this on the plane of a trip

No need to fix just showing you
#

It doesn't work currently but I am about to have a 10hr flight of sleep and coding so I think I should be able to fix

lusty harness
#

man I hate cmake

karmic marten
#

want to see what i made?

frail cloak
craggy token
#

just do

if __name__ == "__main__":
  preface()
  paycheckfunc()
  phonebill()
  totalbal()
dull anvil
frail cloak
dull anvil
#

what metric are you suggesting to optimise for?

craggy token
#

basically it checks on script start if the name is main, because __main__ is the first thing getting called in a py script so it runs that first

dull anvil
#

__main__ isn't "getting called" when running a script, __main__ is the name the main module gets assigned

craggy token
#

@dull anvil do you know what magic methods are?

craggy token
#

its on run

dull anvil
craggy token
#

well its not getting called obv

#

but its the first thing getting initialized

dull anvil
#

no

craggy token
#

yes

frail cloak
#

guys is there any better way to log hello world???

b = '////////[|////[|//|///|///|/ยฐยฐยฐยฐยณ]|/|/|ยณ||/[ยฐ]ยฐยณ]||`|ยณยณยณ`///////``///`||`ยฐยณ`ยฐ`///`ยณยณยณยณยณยณ`ยณยณยณยณยณยณยณยณ`||/`|//`'; a:input=input
def outp(x): print(chr(x), end=''); 
(lambda b, d, inp, outp:(lambda f: f(f, 0, 0)) 
(lambda f, ip, dp: None if ip < 0 or ip >= len(b) else 
f(f, ip + 1, dp + 1) if b[ip] == '|' else 
f(f, ip + 1, dp - 1) if b[ip] == 'ยฐ' else 
(d.__setitem__(dp, (d[dp] + 1) % 256) and 0) or f(f, ip + 1, dp) if b[ip] == '/' else 
(d.__setitem__(dp, d[dp] - 1 if d[dp] > 0 else 255) and 0) or f(f, ip + 1, dp) if b[ip] == 'ยณ' else 
(outp(d[dp]) and 0) or f(f, ip + 1, dp) if b[ip] == '`' else 
(d.__setitem__(dp, (lambda x: x if 0<=x<=255 else 0)(inp())) and 0) or f(f, ip + 1, dp) if b[ip] == '' else 
f(f, (lambda f: f(f, 1, ip + 1)) 
( lambda f, h, ip: f(f, h + 1, ip + 1) if b[ip] == '[' and h else 
f(f, h - 1, ip + 1) if b[ip] == ']' and h else 
ip if not h else f(f, h, ip + 1) ),dp) if b[ip] == '[' and d[dp] == 0 else 
f(f, (lambda f: f(f, 1, ip - 1)) 
( lambda f, h, ip: ip if h==1 and b[ip - 1] == '[' else 
f(f, h + 1, ip - 1) if b[ip] == '[' else 
f(f, h - 1, ip - 1) if b[ip] == ']' else 
f(f, h, ip - 1) ),dp) if b[ip] == ']' and d[dp] != 0 else 
f(f, ip + 1, dp))) (b, [0] * 30000, lambda: a(''), outp)
dull anvil
dull anvil
#

ah, I misunderstood that you've changed what you're talking about

dense moat
#

did you guys see that chatgpt has its own website type ide

craggy token
#

lol

dense moat
#

i thought it was cool

frail cloak
#

ewwwww

dense moat
#

not that i use it personally

#

what is ew

#

??

frail cloak
#

thats what they all say

dull anvil
#

with __init_subclass__ because that'd be funny

dense moat
#

it itself is code

frail cloak
#

ok

dull anvil
craggy token
#

@dull anvil do you know what a tenary operator is

dull anvil
#

@frail cloak that is obviously not appropriate

frail cloak
#

what?

dull anvil
frail cloak
#

uh?

frail cloak
#

guys why wont it work?

dull anvil
craggy token
frail cloak
#

guys does the id() function give me a legal document, so im no immegrant anymore

dull anvil
#

!warn 1058766073568174231 sending a GIF that directly references suicide and uses homophobic language and then pretending as if you did not do it is not appropriate

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied warning to @frail cloak.

timid fjordBOT
#
id

id(object)```
Return the โ€œidentityโ€ of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same [`id()`](https://docs.python.org/3/library/functions.html#id) value.

**CPython implementation detail:** This is the address of the object in memory.

Raises an [auditing event](https://docs.python.org/3/library/sys.html#auditing) `builtins.id` with argument `id`.
frail cloak
#

where was i a homophob?

#

i want proof

#

pow

dull anvil
#

f slur is obviously homophobic

frail cloak
#

fuck?

dull anvil
#

fuck is not a slur

frail cloak
#

fingering?

craggy token
#

@dull anvil does this work:


print("hello".reverse())
craggy token
lofty bane
#

hi everyone

dull anvil
#

"I'm scared of where this quiz is going, who knows might be the next question would be Rust-Python integration"

craggy token
#

im just checking if u know ur stuff

craggy token
#

shit code ๐Ÿ˜ญ

dull anvil
#

what is the purpose of this code?

frail cloak
dull anvil
#

@craggy token @frail cloak whoever of you two reacted to the bot's message with the reaction other than checkbox, what was that for?

frail cloak
craggy token
#

๐Ÿ˜ญ

#

tf u mean ๐Ÿ˜ญ

#

it was @frail cloak tho

frail cloak
craggy token
#

โ€โ€Hiโฃโขโคโ€Œโ€โ€Œโขโขโ€โ€โคโขโขโกโ€Œโกโ€Œโกโ€Œโกโ€โกโขโ€โขโ€โฃโกโ€โขโ€โ€Œโกโ€Œโ€โ€Œโ€โ€Œโ€โคโกโ€โขโ€Œโคโ€Œโขโฃโคโ€โ€Œโ€โ€โ€Œโขโกโขโ€Œโขโ€โกโ€โ€Œโ€โ€Œโขโกโขโกโ€Œโขโ€Œโ€โ€Œโขโกโขโกโ€โขโ€โ€โขโ€Œโขโขโกโ€Œ

#

Wow coolโขโกโ€โขโ€Œโขโ€Œโขโฃโขโกโ€โกโ€Œโกโ€Œโ€โ€Œโขโกโขโคโ€โ€Œโ€โกโขโกโฃโ€โกโ€Œโคโกโขโคโขโขโ€โขโกโคโ€โกโ€Œโขโกโ€Œโคโคโ€โกโ€โขโขโ€Œโ€โขโ€Œโกโกโขโ€Œโขโกโกโ€โขโ€โกโ€โขโกโกโ€โ€Œโขโขโกโ€โขโ€โกโกโคโกโคโขโฃโฃโ€Œโกโขโ€โขโขโขโขโกโขโ€โกโกโขโฃโ€โกโ€โขโ€Œ

dull anvil
#

I'm quite sure this is not allowed by the ToS of the captcha service, so please delete this code

frail cloak
#

โขโ€โ€Œโฃโขโคโขโ€Œโคโคโฃโกโขโ€โ€Œโกโขโ€โ€Œโ€Œโกโขโกโขโขโขโ€Œโกโฃโกโขโขโขโ€Œโขโกโ€โขโขโคโขโกโ€Œโขโ€Œโขโ€โคโ€โ€Œโ€Œโขโกโ€โกโฃโ€Œโฃโ€Œโกโขโกโขโ€โ€Œโ€โ€Œโขโขโ€Œโ€Œโ€Œโขโขโคโ€Œโฃโ€Œโ€โ€Œโคโ€Œโคโกโ€Œโคโก

dull anvil
frail cloak
#

thats some type shit

#

just tryna learn ๐Ÿ’”

#

sir what if i send a mobile reversed yelp credit card logging checker?

dull anvil
#

(idk who you're talking to, I'm not a sir)

frail cloak
#

(cool)

#

(mรครคm)

craggy token
#

@dull anvil solve this quizz

frail cloak
#

lisp or list?

dull anvil
#

Lisp, as in the family of programming languages

craggy token
frail cloak
dull anvil
craggy token
#

๐Ÿ˜ญ

dull anvil
#

that doesn't answer the question though why is WASM Lisp

dull anvil
#

!ban 1349815578143100978 I think two GIFs with references to cutting one's wrists is enough

timid fjordBOT
#
Bad argument

Could not convert "user" into UnambiguousMember or UnambiguousUser.
User "1349815578143100978" not found.

frail cloak
#

NOOO

dull anvil
#

lmao

craggy token
#

๐Ÿ’€

dull anvil
#

!ban 1058766073568174231 I think two GIFs with references to cutting one's wrists is enough

frail cloak
#

๐Ÿ’”

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied ban to @frail cloak permanently.

rough ledge
#

haha

dull anvil
#

thanks for deleting it so I don't have to ๐Ÿ’›

brittle pebble
lean sun
#

how ill do live coding if i cant stream ๐Ÿ˜ญ

dull anvil
lean sun
#

what...

still dome
#

Hi Theresa

#

Hii

ruby echo
#

hi

#

hi theresa

#

hello

#

how are you??

next root
#

Can you unmute me @buoyant kestrel

median void
#

Hello everyone

silver grotto
#

guys

#

anyone knows a HTML fun dc server?

foggy leaf
#

no

orchid sphinx
#

How do fun with Python

sour surge
#

Most fun to do Is RPG text based option game

#

Fundamental are same but you can also practice writing skills

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @copper moon until <t:1742416536:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

silk ridge
#

How ?? Kindly explain that .

#

And How I can do if a want to ?

left epoch
# silk ridge And How I can do if a want to ?

hey man, it is possible, you only have to study. First, learn the basics to have a solid knowledge about the language itself. After that, search about Godot. I am sure that, after u have a basic and solid knowledge about python, u can make incredible games

silk ridge
left epoch
#

what would you like to make?

elder hound
#

hi

#

who

#

here

#

isnerdy

valid flint
warm junco
#
valid flint
#

@unborn sorrel Do you hear the feedback?
Please respond and text because I can't make a thing of what you're saying due to the feedback loop I'm getting closer

brittle pebble
#


def main():
    preface()
    paycheckfunc()
    phonebill()
    totalbal(paycheck)


def preface():
    print("This will help you calculate your weekly budget")
    print("Please use whole numbers, thank you")
    # would like to change this but don't know how
    print()


def paycheckfunc():
    hrs = int(input("How many hours did you work this week?\n"))
    mphr = int(input("How much do you get paid per hour?\n"))
    global paycheck
    paycheck = round(((balance + (hrs * mphr)) * .79), 2)
    print()
    print()
    # defeinetly has to be a better way than this to skip lines lol
    print("Below is your paycheck for this week")
    print()
    print(paycheck)


def phonebill():
    pbill = int(input("How much is your phone bill on a monthly basis?\n"))
    print("This is your phone bill on a weekly basis")
    pbillw = pbill * .25
    print(pbillw)


def totalbal(paycheck):
    Inc = (paycheck)
    Exp = (pbillw)
    tbal = (Inc - Exp)
    print("This is your total balance")


main()```
#

I HAVE NO IDEA WTF I AM DOING AHHHHHHHHHHHHHH

safe shore
brittle pebble
#

yes

#

please

safe shore
#

ask for it then na

#

you dont ask here

brittle pebble
#

oh

safe shore
brittle pebble
#

okay lol

safe shore
#

open a thread there n mention me

#

ill try n help

brittle pebble
#

apprecatite it

primal bison
#

uhm

valid flint
safe shore
#

BRUH

steel mason
#

include <iostream>
#include <vector>
#include <string>

class ModMenu {
public:
void displayMenu() {
std::cout << "Gorilla Tag Mod Menu" << std::endl;
for (const auto& item : menuItems) {
std::cout << item << std::endl;
}
}

void addItem(const std::string& item) {
    menuItems.push_back(item);
}

private:
std::vectorstd::string menuItems;
};

int main() {
ModMenu modMenu;
modMenu.addItem("Infinite Jump");
modMenu.addItem("Speed Boost");
modMenu.addItem("No Clip");
modMenu.addItem("Teleportation");
modMenu.addItem("Change Color");
modMenu.addItem("Wall Climb");

modMenu.displayMenu();
return 0;

}

quaint wharf
#

is this for native app

robust flume
#

hi does anyone know how i can format python
in discord

night lily
#

!code

timid fjordBOT
#
Formatting code on Discord

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.

For long code samples, you can use our pastebin.

primal bison
#

hi

#

is anyone alive

#

to talk to?

near spade
#

Hi. What do you think about requirements.txt. Is this an outdated approach? It's better yo use something else to make the project look better?

quaint wharf
gray flint
#

I made a picture

dull anvil
#

setup.py, back when it was the norm, included the functionality of requirements.txt; pyproject.toml replaced setup.py; and uv makes managing this as relatively easy at the cost of having to use it for all python-related commands

median void
#

sup guys

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @raw nimbus until <t:1742906394:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

primal bison
#

hi

#

its a big deal i dont have vc perms

valid flint
#

Hello

spark mist
spark mist
#

but i still don't know how to do npm install, or i guess pip install would work

dull anvil
spark mist
#

are the packages automatically written on it?

dull anvil
#

it adds numpy with its version to pyproject.toml and the whole dependency tree to uv.lock

#

and installs the package to the venv

#

creates a venv if it doesn't exist yet

spark mist
#

understood, thanks for the clear explanation

void talon
#

DT is a tiny float

#

dt is time since last frame

#

DT is literally the delta in the time since hte last run

#

time_since_last_frame likely needs a += dt

#

and then check when time_since_last_frame hits the time that you want between frames

#

then reset it when you swap frames

#

@neon portal

#

I imagine FPS is gonna be a high hnumber

#

so that's not what we want

#

@neon portal

#

@neon portal What is the value of FPS

#

FPS is gonna be a big number, don't want that

#

30/60

#

it'll take 30/60 seconds to change the frame that way

neon portal
void talon
#

FPS is 1/60?

#

frames per second

#

is .016666?

#

Frames PER second?

#

you want it to be 1/FPS

#

Oh, FPS is .01666

#

odd

#

that's not correct at all

#

we want 30 or 60

#

Frames Per Second

#

is a value that shoudl mean that

#

Not Seconds per Frame

#

If you want it to be 1/60 then call it SPF

dull anvil
#

half a frame per frame

neon portal
#

FPS here I use as in the time per frame.

void talon
#

I hear that

#

but it shouldn't be

neon portal
#

I was gonna use dt, but you said dt be reserved for update_animation.

void talon
#

if you want to use preferred_frame_duration then do that

#

but FPS is a thing with a meaning

#

and you are taking the reciprical of that, and that can cause you issues

#

if you use this "FPS" where actual FPS are expected

#

things will be bad

#

Able to?

#

Do what?

neon portal
#

Collaborative coding.

void talon
#

uh

neon portal
#

I sent you the link to do live sharing.

#

You can access my window.

void talon
#

Joining

#

yep

void talon
#

I used Arcade a while ago

#

that's a lot faster

#

The idle animation sped up

glacial niche
#

Hi

void talon
#

yea

#

the docs aren't bad

#

they even have a server

void talon
#

kinda

neon portal
#

I'm gonna go sleep. I'll cya tomorrow. I wish you a blessed rest of your day good sir.

#

Take care.

void talon
#

Did you push?

#

commit & push and whatnot

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @hot tundra until <t:1743102720:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

warm junco
#

Guys as a developer, I need to make sure my backend is powerfull and can handle multiple users at a time

brazen wave
dull anvil
#

or just many requests => high throughput?

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @grizzled radish until <t:1743129952:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

neon portal
#

!paste

timid fjordBOT
#
Pasting large amounts of code

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

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

rose sorrel
timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @shrewd tartan until <t:1743185011:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

silver grotto
#

GYTS

#

I NEED HELp

#

I NEED HELPPP

night lily
faint patio
#

def bubble_sort(dataList):
lst = dataList.copy() # Avoid modifying the original list

for i in range(len(lst) - 1):
    swapped = False  # Optimization flag
    
    for j in range(len(lst) - 1 - i):
        # Only swap if current element is greater than next
        if lst[j] > lst[j + 1]:
            lst[j], lst[j + 1] = lst[j + 1], lst[j]
            swapped = True
undone vessel
#

I was looking for a fct that take time but give me a real value so I create the sort on permutation. It will always give me the right answer in O(1) to O(n!) iterations.

#

py ```

from itertools import permutations
from random import shuffle

def vsortperm(v):
def isSorted(v):
for x,y in zip(v, v[1:]):
if x > y: return False
return True

vc = v[:]
shuffle(vc)
vp = permutations(vc)
for x,xx in enumerate(vp,1):
    if isSorted(xx):
        return((xx,x,math.factorial(len(vc))))

aa = list(range(5))
a,ax,amax = vsortperm(aa)
print(a)
print(ax)
print(amax)

#

lol

undone vessel
#

be aware n! can be a really really big number !

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @sterile furnace until <t:1743363764:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @warm lantern until <t:1743391269:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @warm lantern until <t:1743449333:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @elfin zephyr until <t:1743459813:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @misty niche until <t:1743522530:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

azure wasp
#

YO

#

RIP caps lol

rich kayak
#

hello

#

is there anybody on?

primal bison
timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @thick zealot until <t:1743615313:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @quick solar until <t:1743617369:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @molten saffron until <t:1743709178:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

warm junco
timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @primal bison until <t:1743964414:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @boreal ridge until <t:1743970485:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

#

failmail :ok_hand: applied timeout to @slender sonnet until <t:1743970740:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

#

failmail :ok_hand: applied timeout to @coarse arrow until <t:1743970997:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

#

:incoming_envelope: :ok_hand: applied timeout to @gilded garnet until <t:1743971408:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

#

:incoming_envelope: :ok_hand: applied timeout to @worthy plover until <t:1743971659:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

#

:incoming_envelope: :ok_hand: applied timeout to @primal bison until <t:1743971696:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

runic girder
#

Damn wtf is happening

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @slow oak until <t:1744020047:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

buoyant kestrel
#

!stream 723163530987044876

timid fjordBOT
#

โœ… @cold swan can now stream until <t:1744041792:f>.

toxic sapphire
#

is anyone good with linux

#

for some reason my ubuntu server's wifi netplan is being annoying

#

the error is something about inconsitant indentation, i cant really install network manager or something else to make the process easier becuse i dont have wifi at all to install those packages

buoyant kestrel
unborn sorrel
#

What is the exact error?

toxic sapphire
#

yaml

#

invalid yaml: inconsitent indetation:
password:

dull anvil
#

yaml is significant whitespace

#

you can't mix tabs and spaces

toxic sapphire
#

then the arrow under the :

dull anvil
#

check whether you're using tabs or spaces

#

you should be using two-space indentation without tabs at all

toxic sapphire
#

i used spaces i put the stanza manually

dull anvil
#

another possible reason:
things aren't aligned

#

can you send the file?
(remove all sensitive info before that)

toxic sapphire
#

nope

#

its on some old laptop

#

the distro doesnt even have a ui

#

il take a photo

unborn sorrel
#

Make sure everything is aligned and uses 2 space indentation.

dull anvil
#

likely something like

a:
   b:
  c:
#

which is invalid too

toxic sapphire
#

wait lemme send it

#

il show u what i mena

#

Best picture i can get

#

Its saying the : on password is wrong

unborn sorrel
#

the spacing is super inconsistent

#

fix the spacing as we suggested

toxic sapphire
#

how though

#

thats the thing

#

i dont know

dull anvil
toxic sapphire
#

ik

buoyant kestrel
#

@obtuse canopy Yo

toxic sapphire
#

i removed it

dull anvil
#

after "

#

also

#

access is misspelled

toxic sapphire
#

oh

dull anvil
#
access-points:
  "ssid":
    password: "password"
#
  1. add : after "ssid"
  2. acess-points access-points
toxic sapphire
#

il try that

buoyant kestrel
#
hamSandwich
ham_sandwich
dull anvil
#

@neon portal Nim, the game, is solved with XOR iirc?

unborn sorrel
#

It's still really inconsistent spacing

dull anvil
#

like you need to keep the XOR of all pile counts at 0

unborn sorrel
#

all of this should be 2 or at least stay consistent with 4

toxic sapphire
#

ooohh its working

#

uh its just leaving the terminal input blank

#

do i reboot it or just wait

dull anvil
#

did you run anything after saving the file?

#

did you enable the interface?

toxic sapphire
#

interface?

neon portal
toxic sapphire
#

its just a terminal

#

it worked

dull anvil
toxic sapphire
#

i think

dull anvil
#

with piles of stuff

#

where if you can't make a move you lose

toxic sapphire
#

i really dont know if its worked or not becuse my packages STILL DONT INSTALL

dull anvil
dull anvil
#

if it's available

toxic sapphire
#

lemme try

#

uhhh

#

yeah no

#

"temporary failurein name resolution"

dull anvil
#

@neon portal that thing about contravariance coercion was purely about typing not runtime

lean flame
#

I understand why all-nighters can be bad now

dull anvil
toxic sapphire
#

also during the netplan apply it said a dependicy job didnt work out

neon portal
toxic sapphire
#

network unreachable

#

๐Ÿฅ€

#

atleast no syntax error or something

dull anvil
#

that word combination is not a term

#

it's just the fact that functions can be coerced

#

or rather, specifically, function pointers

toxic sapphire
#

did netplan apply again

dull anvil
#

@buoyant kestrel memory leaks can happen in any language if it allows allocations and lingering pointers

lean flame
#

are we talking about all nighters

#

I heard studying

toxic sapphire
#

didnt show the error but didnt fix shit

dull anvil
#

Python, JS, Java, Rust, etc.

lean flame
#

maybe idk

buoyant kestrel
#

You did hear about studying, ye

toxic sapphire
#

HOW DO I SCROLL UP

#

no

buoyant kestrel
#

Mouse wheel?

dull anvil
#

command history?

buoyant kestrel
#

Let's not use retarded in that way, please

toxic sapphire
#

i mean to see the logs

dull anvil
#

find a file where it writes them to

dull anvil
#

but I didn't really have to learn anything

#

or design anything

#

which is also why writing on average 1 line of code per minute (including sleep and eating time) was possible

#

very straightforward code

#

just a lot of it

toxic sapphire
#

made it worse

#

๐Ÿ’”

dull anvil
#

thankfully I don't have to deal with configuring wi-fi clients at work

#

@toxic sapphire did you install the OS recently? or a long time ago?

#

it normally asks you to connect during the installation

#

did you skip that step?

#

if you want a pre-configured environment upon installation, then NixOS is unironically a good option;
however I doubt you'd want to have to deal with that

#

@neon portal in Rust there is normally no Java-like variance (subclassing with distinct types)
instead it's almost exclusively lifetime-related

dull anvil
#

coercions of dyn Trait are very recent

neon portal
#

So you would subtype sth based on its lifetime in rust?

dull anvil
#

& 'static T is a subtype of all &'a Ts

#

I've tested, trait variance does not extend to contravariance when objects are inputs

#

i.e. it's not really variance

#

... which is expected kind of

#

since it's more of a re-unsizing

#

not variance

buoyant kestrel
#

Oh no, I just found another weird thing regarding the styling/naming

#

All of these are the same:

hamSandwich
ham_sandwich
hamsandwich
hAMSANDWICH
haMSanDwICh
#

It's only the first character that is significant in this case

buoyant kestrel
#

Yep, which would still let you do PascalCase

#

Or Cursed_Case

dull anvil
buoyant kestrel
#

jusT_whY

dull anvil
#

you can reflect them out

#

FastAPI

#

it's amazing how axum achieves similar levels of usability without reflection

#

sure, it's more explicit, but imo that's better

#

@mellow solar git reflog

dull anvil
#

and then just .typed_post(echo) on the router

buoyant kestrel
#

@north pine yo

north pine
#

Hey

dull anvil
buoyant kestrel
#

@leaden pier Also yo

dull anvil
#

GET POST PUT PATCH DELETE usually

#

I don't think others commonly make sense implementing

#

@violet kiln that is very vague

#

not entirely sure what you even need to do

#

how does networking/whatever mentioned even relate to cloud there

#

big part of the cloud is that you don't have to deal with networking/routers/etc.

leaden pier
#

I guess, Iโ€™m a Spookycake,
Layered in shadows, baked in the ache,
Wonder, what that tastes likeโ€”
A hint of fear with a dash of spite?

Donโ€™t care, I'm not my chef,
Just the recipe I was left,
Frosted in whispers, sprinkles of doubt,
Served on a platter of what lifeโ€™s about.

Slice me open, see the mess,
But take a bite, Iโ€™ll confess,
Iโ€™m just a Spookycake, after all,
Sweet, bitter, and bound to fall.

dull anvil
#

@carmine garnet what did you want to stream?

#

@carmine garnet isn't that just wget?

carmine garnet
dull anvil
#

wget <url> just downloads the page/file

carmine garnet
carmine garnet
blissful umbra
#

hi

dull anvil
carmine garnet
#

when i use my script it downlaod a 5ko file but mine is 2go

tight ridge
#

Hi guys!
I searched extensively for my idea but couldn't find anything to write about on YouTube.
So I created a similar idea. I want you to give me the correct way to do it.
For your information, the code works fine and has no errors.
Like i want to get a binary from the internet and run it directly to my pc using python

import ast, requests, os, tempfile, subprocess
from tqdm import tqdm

url = "https://drive.usercontent.google.com/uc?id=1PNJO07Qn5VPupSLik7rysLolqx2B80VJ&authuser=1&export=download"
response = requests.get(url, stream=True)

total_size = int(response.headers.get('content-length', 0))
content = b""
with tqdm(total=total_size, unit='B', unit_scale=True, desc="systeminformer installer") as pbar:
    for chunk in response.iter_content(chunk_size=1024):
        if chunk:
            content += chunk
            pbar.update(len(chunk))

text_data = content.decode().strip()
binary_data = ast.literal_eval(text_data)

exe_path = os.path.join(tempfile.gettempdir(), "temp_payload.exe")
with open(exe_path, "wb") as f:
    f.write(binary_data)

subprocess.Popen([exe_path], shell=True)
dull anvil
#

also seems like you should be downloading it from GitHub releases if it is systeminformer indeed

#

or sourceforge

tight ridge
dull anvil
#

Windows itself has tools for managing software packages nowadays

winget install --id=WinsiderSS.SystemInformer -e
#

!d io.BytesIO

timid fjordBOT
#

class io.BytesIO(initial_bytes=b'')```
A binary stream using an in-memory bytes buffer. It inherits from [`BufferedIOBase`](https://docs.python.org/3/library/io.html#io.BufferedIOBase). The buffer is discarded when the [`close()`](https://docs.python.org/3/library/io.html#io.IOBase.close) method is called.

The optional argument *initial\_bytes* is a [bytes-like object](https://docs.python.org/3/glossary.html#term-bytes-like-object) that contains initial data.

[`BytesIO`](https://docs.python.org/3/library/io.html#io.BytesIO) provides or overrides these methods in addition to those from [`BufferedIOBase`](https://docs.python.org/3/library/io.html#io.BufferedIOBase) and [`IOBase`](https://docs.python.org/3/library/io.html#io.IOBase):
dull anvil
# timid fjord

using this instead of += on bytes is generally recommended if you ever do tqdm + requests like that

dull anvil
#

if the project is opensource and maintained by someone else, they likely have a GitHub or somewhere else page that hosts binaries

#

if you want to upload a project you made, then consider using something like GitHub too for hosting binaries, especially if the project is open-source

#

this also allows you fetch by version

#

what that provides:

  • can check if there are any new versions (and not re-download if it's already the latest version)
  • warn on breaking changes (assuming the project follow semver)
  • display the changelog (normally part of the release message)
#

... or just run winget

tight ridge
# dull anvil ... or just run `winget`

I made a mod menu for a game and I want to update the functions inside the menu for the users, not downloading files from the internet (I'm sorry I'm bad at explaining)

tawny dagger
#

Just make a version.txt to keep track of the latest GitHub release. On startup copy your GitHub repository,you should have the version.txt in that as well, if the version.txt has a different number/hash/whatever from your current version.txt replace your running directory with the repository, else delete temporary repository.

bright crown
#

I hope you try this

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @uneven grove until <t:1744214410:f> (9 minutes and 59 seconds) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @tribal meadow until <t:1744232489:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

dull anvil
#

@neon portal what is the difference between those two ints?

#

@neon portal what are we indexing into?

#

@neon portal third item of the tuple?

#

@neon portal is anything outside the specified range used?

#

@neon portal consider using numpy arrays with objects as items and just pass those around

#

@neon portal marshalling/unmarshalling?

#

@neon portal marshalling is very specifically involving references not just values (as opposed to serialisation)

#

so you can apply similar techniques

#

i.e. instead of storing the reference, store the index in the flatten structure

#

so you need to somehow reverse-engineer the tag generation, right?

#

@neon portal I'm going to the other VC

neon portal
neon portal
#

@dull anvil Finished. Thank you again.

#

@dull anvil I did it like this.

circuit = qtn.Circuit(N=mps.num_sites)
gate_tracker: list[str] = []

for i, unitary_layer in enumerate(unitary_layers):
    for j, (start_index, end_index, unitary_block) in enumerate(unitary_layer):
        for index in range(start_index, end_index + 1):
            unitary = unitary_block[index].data

            # MSB convention
            if index == end_index:
                circuit.apply_gate_raw(
                    unitary.reshape(2, 2),
                    where=[index]
                )
            else:
                circuit.apply_gate_raw(
                    unitary.reshape(2, 2, 2, 2),
                    where=[index, index + 1]
                )

            # Add the gate to the tracker
            gate_tracker.append(f"{i}_{j}_{index}")

tensor_network = qtn.TensorNetwork(circuit.psi)

# We do not want to include the qubits, so we will
# excplitily control the iteration index
gate_index = 0

for gate in tensor_network:
    # We only update the gates, not the qubits
    if "PSI0" in gate.tags:
        continue

    # Remove existing tags from the gate
    gate.drop_tags(tags=gate.tags)

    # Marshal the gate with the gate tracker
    # This is needed to ensure the gates are properly tagged
    # for updating the unitary layers
    gate.add_tag(gate_tracker[gate_index])
    gate_index += 1
timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @rugged canyon until <t:1744391545:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

brittle pebble
#

@night lily


def preface():
    print("This program will ask you some basic questions")
    print("Please use whole numbers, thank you\n")





def paycheck1():
    hrs = float(input("How many hours did you work this week?\n"))
    mphr = float(input("How much do you get paid per hour?\n"))
    gross_pay = hrs * mphr
    net_pay = round((gross_pay * .79), 2)
    return net_pay


def main():
    preface()
    paycheck = paycheck1()
    print("Below is your paycheck for this week:\n",paycheck, sep="")

main()```
#

got something working

#

took a long time because I have been working nonstop

#

I am going to go back and add phone bill and other things to it but it's WORKING !!!!

#

Also I asked chat gpt for help and it did but it ended giving me a bug lol

#

had to figure that out

valid flint
#

Hello

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied timeout to @wild wadi until <t:1744465107:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.