#voice-chat-text-0

1 messages Β· Page 508 of 1

fleet tide
#

why is os so bad?.... i am confused now

vocal basin
#

I can't explain it in a short way

fleet tide
#

imma import os

vocal basin
#

read through this

#

most of functionality provided through os module is provided in a more user-friendly way through other modules

#

it's extremely unfortunate that so many tutorials erroneously recommend learning the os module

somber heath
#

Peachy 30.

fleet tide
#

also... what would i need to import if i wnat python to write in a .txt?

fleet tide
#

wot

scarlet halo
#

just open(filepath)

vocal basin
#

!e

with open(".txt", "w") as f:
    f.write("test")
wise cargoBOT
vocal basin
#

!e

from pathlib import Path
Path(".txt").write_text("test")
wise cargoBOT
woeful blaze
#

Morning

somber heath
#

@quaint anvil πŸ‘‹

quaint anvil
fleet tide
#

i... probably gonna follow youtube tutorials for 3 days till i can talk

#

and stream

#

and then

vocal basin
#

@tacit crane SFP?

woeful blaze
#

Next year's growth

fleet tide
#

get addmited into a mental hospital because i follwed outdated videos

scarlet halo
#

hard to get out of

fleet tide
#

what is tutorial hell?

#

(i tried coedacademy.... they are uh... practically mone grab to get any of the interactive good lessons)

vocal basin
#

@peak depot civ6 district specifically for cats

somber heath
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

fleet tide
#

i will look at that

#

thx

hasty flame
#

Hello

somber heath
#

@red obsidian πŸ‘‹

fleet tide
#

imma be afk for a bit, brb

vocal basin
#

@scarlet halo minesweeper

#

I don't think either

#

that's the point

dry jasper
#

thats after 3 hours of smoking

candid spire
#

poor lungs

vocal basin
#

the what

#

this game might be too complex for me already

candid spire
#

I hope it is permissible to share the invite link to chess game on chess.com?

#

Can I?

candid spire
vocal basin
#

(you can search if it's been done before)

dry jasper
candid spire
#

@vocal basin You have 1000+ blitz rating on chess.com?

vocal basin
#

no

#

I only have exactly 1000 bullet rating there

candid spire
#

Oh

#

You are strong player

#

Where do you play most?

vocal basin
#

lichess

candid spire
#

Ah I see

vocal basin
#

I'm almost exactly median by rating there

candid spire
#

1000 in blitz is 90 percentile

iron geyser
#

πŸ‘€

candid spire
#

You ain't median

vocal basin
#

only my bullet rating is high

iron geyser
#

it's curios πŸ™‚

vocal basin
#

most of my games on both sites are bullet not blitz or rapid

#

on lichess I have just above 1500 iirc

candid spire
vocal basin
#

and that's top 49%

scarlet halo
#

Chat I think my pc died

candid spire
scarlet halo
#

Yeah I will

candid spire
vocal basin
candid spire
#

Because I can't even think so fast, whole game in under 60 seconds is stressful

vocal basin
#

discipline yourself to ignore the time pressure

#

the only way is to repeat it over and over

candid spire
craggy vale
candid spire
#

GG

#

You played well

scarlet halo
#

who won

vocal basin
#

(I didn't see that it was 1+1 not 1+0)

fleet tide
#

sorry it took me so long to get back

candid spire
#

If you want we can play 1+0

candid spire
fleet tide
#

and now i gotta shut down for a few min to clean my laptop

candid spire
#

1+0

#

GG

#

You are indeed fast

#

I blunder many times

#

Thankyou @vocal basin playing with you was fun!

wise loom
#

@unique wyvern

class Solution:
    def spiralOrder(self, matrix: List[List[int]]) -> List[int]:
        bounds={
            'up': 0,
            'down': len(matrix)-1,
            'left': 0,
            'right': len(matrix[0])-1,
        }
        tighten={
            'up': +1,
            'down': -1,
            'left': +1,
            'right': -1,
        }

        def in_bounds(p):
            if bounds['up']   <= p.real <= bounds['down'] and \
               bounds['left'] <= p.imag <= bounds['right']:
               return True
            return False
        spiral_order=[]
        pos=complex(0,0)
        inc={
            'down':   complex(+1,0),
            'up':     complex(-1,0),
            'left':   complex(0,-1),
            'right':  complex(0,+1),
        }
        bearing="right"
        bearings=["right","down","left","up"]
        b_idx=0
        while True:
            i,j=int(pos.real),int(pos.imag)
            spiral_order.append(matrix[i][j])
            pos_new=pos+inc[bearing]
            #print(spiral_order)
            if not in_bounds(pos_new):
                bprev=bearings[(b_idx-1)%len(bearings)]
                b_idx=(b_idx+1)%len(bearings)
                bearing=bearings[b_idx]
                pos_new=pos+inc[bearing]
                if not in_bounds(pos_new):
                    #print(bearing,bprev,pos_new,bounds)
                    break
                bounds[bprev]+=tighten[bprev]
            pos=pos_new
        return spiral_order
#

@unique wyvern I should've implemented my own vec2. you were right.

candid spire
#

It is specific to salt-die?

wise loom
candid spire
#

I'm curious to know

candid spire
#

Now I've understood

iron geyser
#

🀫

candid spire
#

@wise loom Could I share my solution?

wise loom
candid spire
#
def spiralOrder(matrix):
    res = []
    m, n = len(matrix), len(matrix[0])
    top, bottom, left, right = 0, m - 1, 0, n - 1

    while left <= right and top <= bottom:
        for i in range(left, right + 1):
            res.append(matrix[top][i])
        top += 1
        for i in range(top, bottom + 1):
            res.append(matrix[i][right])
        right -= 1
        if top <= bottom:
            for i in range(right, left - 1, -1):
                res.append(matrix[bottom][i])
            bottom -= 1
        if left <= right:
            for i in range(bottom, top - 1, -1):
                res.append(matrix[i][left])
            left += 1

    return res
#

@scarlet halo I guess you mean webgl?

#

it is just library

candid spire
#

So this is my answer

pastel vigil
#

Hey all, hope your all well

candid spire
#

I hope you are doing well!

vocal basin
#

@opaque mulch have all code as as stored procedures

#

@opaque mulch are you using an ORM?

#

or do you have proper control over SQLs happening?

opaque mulch
#
from datetime import datetime, timezone

from sqlmodel import Field, SQLModel


class EconomyModel(SQLModel, table=True):
    id: int = Field(primary_key=True, unique=True, nullable=False)
    balance: float = Field(default=0)
    last_claim: datetime = Field(
        default_factory=lambda: datetime.fromtimestamp(1, tz=timezone.utc)
    )
vocal basin
#

pydantic for SQL?

#

FastAPI

opaque mulch
vocal basin
#

famous tweet slightly compressed

scarlet halo
#

"slightly"

vocal basin
#

there is a famous joke that you can identify his tweets even with this quality

#

because of emojis

pastel vigil
vocal basin
#

this seems to be an ORM which doesn't like to be called an ORM

#

I played it a couple of times

#

but not really a game for me

scarlet halo
#

@vocal basin what would be the best way to encrypt some data with a passphrase in rust?

vocal basin
#

I really should try playing Avorion again at some point

wise cargoBOT
#
Certainly not.

No documentation found for the requested symbol.

vocal basin
#

!pypi pynacl

wise cargoBOT
#

Python binding to the Networking and Cryptography (NaCl) library

Released on <t:1641593141:D>.

vocal basin
#

this

scarlet halo
#

sorry, forgot to specify in rust

#

my bad.

vocal basin
vocal basin
#

KDFs are hashes

#

usually targeted specifically towards smaller inputs

scarlet halo
#

πŸ‘

spiral shore
#

guys

#

I am new here to learn python at first ? should i can do to learn python fast and easy ways

somber heath
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

vocal basin
#

fast and easy is kind of an opposite of learning

#

I think people who have years in programming (including me) tend to forget just how difficult primitive concepts like a variable are

scarlet halo
vocal basin
#

!e

a = b = [1, 2, 3]
c = d = (1, 2, 3)
a += [4,]
c += (4,)
print(b)
print(d)
wise cargoBOT
vocal basin
#

like this is so confusing

spiral shore
#

@vocal basin how many years you spent on programming

vocal basin
#

@primal shadow the fact that b is modified is already confusing

#

(to a beginner)

#

@primal shadow += has two separate meanings

#

one is + and re-assign

#

the other is to mutate in place

#

in Rust, those two are the same thing

#

but Python doesn't have proper mutability semantics

#

@somber heath one does .extend, the other does = ... + ...

#

!e

a = [1, 2, 3]
c = (1, 2, 3)
a += (4,)
c += (4,)
print(a)
print(c)
wise cargoBOT
vocal basin
#

see also how both work with ()

scarlet halo
#

!e

a = [1, 2, 3]
c = (1, 2, 3)
a += (4,)
c += (4,)
print(a)
print(b)
print(c)
print(d)
wise cargoBOT
scarlet halo
#

oh right

vocal basin
#

!e

[1, 2, 3] + (4,)
wise cargoBOT
# vocal basin !e ```py [1, 2, 3] + (4,) ```

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     [1, 2, 3] + (4,)
004 |     ~~~~~~~~~~^~~~~~
005 | TypeError: can only concatenate list (not "tuple") to list
scarlet halo
#

wrong code snippet lol

primal shadow
#

!epy a = b = [1, 2, 3] c = d = (1, 2, 3) a += [4,] c += (4,) print(a) print(b) print(c) print(d)

scarlet halo
#

thx

primal shadow
#

oops

#

I quit

scarlet halo
#

!epy a = b = [1, 2, 3] c = d = (1, 2, 3) a += [4,] c += (4,) print(a) print(b) print(c) print(d)

wise cargoBOT
scarlet halo
#

there you go

vocal basin
#

the whole object being shared and having an identity is such a far from simple concept

#

when I was starting with Python this was part of the course

#

whereas some tutorials/courses completely ignore it

#

I think C++'s default may in some parts be even more intuitive

#

since they do have value semantics

#

C++ is filled with standard and compiler bugs but at least there is a goal of having some uniform set of properties for all types

#

general idea being: everything should behave as much as possible like an int with regards to non-arithmetical stuff

#

Rust and C might even be more intuitive at times compared to shared-reference languages

#

@scarlet halo be a menace, scare them away

primal shadow
spiral shore
#

please some body show me the path of my life i have nothing to loose i am dropout college guys who just chilling in random things today i fell like i have to do something God create me to do something in this world . I must learn something to change my life So i choose programming world that's why i choose my first language python Guys i ready to change my life .

primal shadow
#

Go do the odin project

#

it's a good old time and free

scarlet halo
vocal basin
#

or both

#

"might"

#

they will, they do

#

I think Russia technically has laws that require ID verification for social networks

#

keyword technically

#

lmao I didn't even know this game had "anti-*" politics

#

(first time reading through custom faction menu in Endless Space 2)

#

oh, I forgot that religion is completely useless in this game

#

there is no religion win

#

it's just a political tool

#

so real

frozen owl
#

is there a fast way to render this in py

#

im using plt.scatter() and setting colour attributes lmao

#

so not ideal

#

is there a way to speed this up

#

i want to display the distorted image but it's shit

vocal basin
#

you need to do it in reverse

#

based on the output coordinate, figure out the source pixel

#

then do the mesh thingy

frozen owl
#

but i need to do the forward transform to find the output coord?

vocal basin
#

reverse it

#

find how to do so

#

you need to compute input coord from output coord

#

which might mean multiple inputs

frozen owl
#

im not sure if im understanding you correctly:
i have an image (undistorted), let's say with a pixel coordinate (x,y)
but i dont know what the output coord (X, Y) is without doing f(x,y) first, which is the "normal" way of mapping it
and youre saying that i need to reverse it? so say for output (distorted) coord (X,Y), find what (x,y) it corresponds to? but wouldn't that be the input though

#

how can i reverse it

vocal basin
#

what is f in this case?

#

you need to make f_inv such that all(f(in_) == out for in_ in f_inv(out))

frozen owl
#
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from image import process_input_image

R = 200

cy = np.linspace(-R, R, 500)
cx = -np.sqrt((R**2) - cy**2)

# load image

image_path = "popcat.jpg"
# image_path = "transparent.png"

img_h, img_w, real_img = process_input_image(image_path)

Xs = []
Ys = []
Cs = []

translate_x = 100  # number of pixels to translate from origin (x direction)
translate_y = 30  # number of pixels to translate from origin (y direction)

for i, px in enumerate(real_img.reshape(-1, 3) / 255.0):
    x, y = (i % img_w) + translate_x, (img_h - (i // img_h)) + translate_y

    if x == 0:
        x = 0.00001

    elif y == 0:
        y = 0.00001

    theta = np.arctan2(y, np.sqrt(R**2 - y**2))
    m = np.tan(2 * theta)

    X = -(m * np.sqrt(R**2 - y**2) - y) / (y / x + m)
    Y = y / x * X  # basically RHS of -y/x * ... is X, so reuse result

    Xs.append(X)
    Ys.append(Y)
    Cs.append(px)
#

basically this

theta = np.arctan2(y, np.sqrt(R**2 - y**2))
m = np.tan(2 * theta)

X = -(m * np.sqrt(R**2 - y**2) - y) / (y / x + m)
Y = y / x * X  # basically RHS of -y/x * ... is X, so reuse result
#

this is the actual transform step

#

as you can see with X,Y being defined and mapped from x,y

vocal basin
#

can you explicitly express the transform as a standalone function

frozen owl
#

wdym, i can extract method from the code?

#

mathematically it's this

#

R is the radius of the mirror

vocal basin
#
output = f(input_)
#

define f

#
def f(input_):
    output = ...
    return output
frozen owl
#
def f(theta, R, x, y):
    theta = np.arctan2(y, np.sqrt(R**2 - y**2))
    m = np.tan(2 * theta)
    
    X = -(m * np.sqrt(R**2 - y**2) - y) / (y / x + m)
    Y = y / x * X  # basically RHS of -y/x * ... is X, so reuse result
    return X, Y
upper gate
#

hey there everyone....

vocal basin
#

you can do this without trigonometry afaik

theta = np.arctan2(y, np.sqrt(R**2 - y**2))
m = np.tan(2 * theta)
#

.wa s tan(2*x)

viscid lagoonBOT
vocal basin
#

ugh

#

.wa s tg(2*x)

viscid lagoonBOT
vocal basin
#

@frozen owl first, simplify m calculation to not include trig functions

#

you already have the value of tan(theta)

#

from which you can directly calculate tan(2 * theta)

#

simplify the function until it's trivially invertible

#

I think once you simplify you will get rid of np.sqrt(R**2 - y**2)

frozen owl
vocal basin
#

yes

#

this will cancel out one sqrt

#

and this will remove the other

vocal basin
vocal basin
#

(y / x + m) part will get it

#

but that's already fewer sqrts to deal with

frozen owl
#
tan_theta = y/np.sqrt(R**2 - y**2)

# theta = np.arctan2(y, np.sqrt(R**2 - y**2))
# m = np.tan(2 * theta)

# double angle formula for tan

m = (2 * tan_theta) / (1 - tan_theta ** 2)
#

now i want to get rid of the R and sqrts

vocal basin
#

@somber heath is arxiv a social network?

#

@peak depot Wikipedia is quite useful for many technical stuff

#

because hard to search otherwise

#

both as an aggregator and as something where people actually write something readable based on weird sources

frozen owl
#

@vocal basin i guess ive now turned this into 2 lines now, not any easier to invert

X = -(
    (2 * (y / np.sqrt(R**2 - y**2)))
    / (1 - (y / np.sqrt(R**2 - y**2)) ** 2)
    * np.sqrt(R**2 - y**2)
    - y
) / (
    y / x + (2 * (y / np.sqrt(R**2 - y**2))) / (1 - (y / np.sqrt(R**2 - y**2)) ** 2)
)
Y = y / x * X
vocal basin
#

I wonder if they'll go after linkedin too

#

since that's a social network

vocal basin
frozen owl
#

done

vocal basin
#

get big equation, then simplify terms whenever possible

frozen owl
#

lol

#

i might want wolfram to do this

#

let's find out

vocal basin
#

it should end up as just a product of simple add/sub terms

#
X = -(m * np.sqrt(R**2 - y**2) - y) / (y + mx) * x
frozen owl
#

is this one rearranged?

#

like to map to original?

#

maybe this πŸ‘€

#

i mapped a and b to x and y

#

since otherwise it might confuse wolframalpha

vocal basin
#

.latex

$$
\frac{a\left(R^2-2b^2\right)}{-2a\sqrt{b^2-R^2}-R^2}
$$
viscid lagoonBOT
frozen owl
#

great

#

so now i have the inverses

#
numerator = X * (R**2 - 2 * Y**2)
denominator = -2 * X * np.sqrt(Y**2 - R**2) - R**2
x = numerator / denominator

y = (x * Y) / X
#

now i need to find a way to map to screen?

frozen owl
#

i give it the original image coords and i want to map to transformed

#

but then now i have the func for transformed to img

frozen owl
#

so do i do a forward -> backward -> get the (X,Y) then back to foward again?

frozen owl
#

cant i use mesh directly

#

like i can quantise X,Y to nearest int? how shit is that

vocal basin
#

your goal is to get what colour the output pixel needs to be

frozen owl
#

i have that info

vocal basin
#

no, you have a set of points

#

which aren't exactly corresponding to the output coordinates

frozen owl
#

for i, px in enumerate(real_img.reshape(-1, 3) / 255.0):
#

i have the input img pixel values

vocal basin
#

you can also do interpolation probably

#

just find the nearest point to the output from that list

#

or several

#

and then use a weighted average

frozen owl
#

i iterate through the colour values directly

vocal basin
#

you must iterate over output, not points you have

#

this is the critical piece for how all such things work when implemented reliably

#

you effectively need colour_output(x_out, y_out)

#

implemented somehow

frozen owl
#

i dont undestand

vocal basin
#

when the inverse is easy to compute, it's just colour_input∘reverse

frozen owl
#

i thought the colour info "followed" the coordinates, so whatever properties the coord has, the colour is associated with

#

so if x,y is mapped, so does the colour?

#

so the corresponding X,Y has the same colour as x,y

vocal basin
#

okay, simpler situation:
you only have three points in your universe

frozen owl
#

ok

vocal basin
#

0, 1, 2

#

input has 0 and 1

#

coloured red and blue

plain dagger
#

what are you calculating :-

vocal basin
#

you map them to 0 and 2

plain dagger
#

:0*

vocal basin
#

what colour is 1 in the output?

#
[red, blue, none]
[red, ???, blue]
#

if you just map, it will be none

#

because nothing maps there

#

so you get holes in your output

frozen owl
#

well 3 points, each point should have their own colour, so there has to be 3 colours to start with

vocal basin
#

no

#

that is wrong

#

you have a very discrete space

#

of pixels

frozen owl
#

oh yes right that

#

yeah i get what you mean

#

i got gaps before

#

i still do

vocal basin
#

each pixel is actually behaving like a square full of colour

frozen owl
#

but it's less obvious if the scale factor isnt really fucked

#

i got this before

vocal basin
#

you should really understand that your goal is to find the colour for each pixel of the output

#

not paint over the output point by point

wise loom
#

how do i exec code here again?

plain dagger
vocal basin
#

there do exist ways to automate how you invert a function

#

especially if it's continuous and injective

#

(within the domain)

frozen owl
#

the [none] thing

frozen owl
vocal basin
#

Wolfram proper can possibly give you an inverse of a function if you give it the function

#

(wolframscript or wolfram notebook)

wise loom
#

!e

import numpy as np
a=[[1,2,3],[4,5,6],[7,8,9]]
b=np.array(a)

print(a[:][2])
print(b[:,2])

^^ notice how i can get the last column of a matrix with numpy but with regular python 2D lists I can't.
inconsistent behavior.

wise cargoBOT
vocal basin
#

it's not inconsistent

wise loom
vocal basin
#

!e

import numpy as np
a=[[1,2,3],[4,5,6],[7,8,9]]
b=np.array(a)

print(a[:][2])
print(b[:][2])
wise cargoBOT
vocal basin
#

there is no inconsistency

wise loom
vocal basin
frozen owl
wise loom
vocal basin
#

whereas [:,2] is not defined on list

wise loom
vocal basin
#

you also have to guess somehow the output region correctly

#

(rectangle within which to compute and plot it)

#

for image editors this part of the operation is quite trivial: just calculate the whole image

frozen owl
#

i see

latent light
#

Hey guys, I am currently working on a personal project and I'm having some problems with the code, can anyone help me ??
I need help with pyttsx3 and basically with the working of STT and TTS modules

latent light
terse skiff
#

gl boys

peak depot
buoyant rain
#

yo

#

@wise loom

woeful blaze
#

How is everyone doing today?

woeful blaze
#

@wise loom how are you doing

wise loom
wise loom
woeful blaze
#

How are you doing today?

wise loom
woeful blaze
#

Me too

#

player.draw(screen,ocean_blue)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: Player.draw() takes 2 positional arguments but 3 were given
PS C:\Users\cas

paper wolf
#

You can hover the function call and enter gd

#

Also python is self documented it explain the argument

#

And a good library have type annotations

calm ibex
#

Hello

woeful blaze
#

fixed it

calm ibex
#

Hello

iron geyser
#

🀫

calm ibex
#

yh but still not getting verified

iron geyser
#

we sleeping mdrrrrrrrr

#

🀫

calm ibex
#

wdym

#

how can i get verify

wise loom
#

@wraith pelican gimme a second, going closer to the router, i was outside

buoyant rain
#

HI

calm ibex
buoyant rain
#

i have a rounding Error in my code how do I fix it? How do I let the code no went to round and went not to round

#

*know when to round

calm ibex
buoyant rain
#

any one in that chat

lavish rover
scarlet halo
#

Hey πŸ‘‹

woeful blaze
#

hello

#
import pygame as pyg
from random import randint

#===[init]===#
pyg.init()


class Player:
    def __init__(self):
        pass
        
    def Player_Movement(self,surface,delta_time):

        
        player_pos = pyg.Vector2(surface.get_width() / 2, surface.get_height() / 2)

        keys = pyg.key.get_pressed()
        if keys[pyg.K_w]:
            player_pos.y -= 300 * delta_time
        if keys[pyg.K_s]:
            player_pos.y += 300 * delta_time
        if keys[pyg.K_a]:
            player_pos.x -= 300 * delta_time
        if keys[pyg.K_d]:
            player_pos.x += 300 * delta_time

    def draw(self,surface,color,rect_dimentions):
        
        pyg.draw.rect(surface,color,rect_dimentions)

why dose it not move!!!!

paper wolf
#

@woeful blaze show the game loop

#

and put the

player_pos = pyg.Vector2(surface.get_width() / 2, surface.get_height() / 2)
keys = pyg.key.get_pressed()``` into init function
woeful blaze
# paper wolf <@1318626588560199692> show the game loop
import pygame as pyg
from time import sleep

# import from settings

from settings import *

# import from indecator bars
from player_indicator_bars import Health_bar
from player_indicator_bars import Hunger_bar
from player_indicator_bars import Thirst_bar
from player_indicator_bars import Experiance_bar

# import from player
from player import Player


#===[init]===#
pyg.init()



# screen dimention
screen = pyg.display.set_mode(window_dimentions)

# clock time
dt = 0

# Clock
clock = pyg.time.Clock()

# classes
health = Health_bar(20, 20, 200, 25, 100)
hunger = Hunger_bar(20, 70, 200, 25, 100)
thirst = Thirst_bar(20, 130, 200, 25, 100)
exp = Experiance_bar(200,500,500,15,100)



# main loop
while Game_Running:
    player = Player()

    for event in pyg.event.get():
        if event.type == pyg.QUIT:
            Game_Running = False

    #screen
   
    screen.fill(grass_green)

#bars
    # Health bar
    health.hp = 20
    health.draw(screen,Red_Health,green_Health)

    # Hunger bar
    hunger.Hunger = 75.5
    hunger.draw(screen,brown_orange,orange_hunger)
    
    # Thirst bar
    thirst.Thirst = 20.9
    thirst.draw(screen,blue_grey,blue)

    #exp bar
    exp.exp = 50.5
    exp.draw(screen,exp_blank,green_exp)
    # ceate player

    rect_dimentions = (450,300,80,80)

    player_movement = player.Player_Movement(screen,dt)
    player.draw(screen,ocean_blue,rect_dimentions)

    pyg.display.flip()

    dt = clock.tick(60) / 1000
pyg.quit()
paper wolf
#

the game loop looks fine

woeful blaze
#

It doesn't update if I hit AWSD

paper wolf
#

your not using the player_movement

woeful blaze
#

How?

paper wolf
#

line 72

#

player_movement = player.Player_Movement(screen,dt) it just sits there and not being used

cerulean stone
#

i agree

woeful blaze
#

What would I need to do I swear I've been using it

paper wolf
#

show the entire code

#

the entire game loop

paper wolf
#

then no

#

your not using it

woeful blaze
#

I swear I was but I've been tired lately

paper wolf
#

show where that variable is used

woeful blaze
#

Now I see it I haven't so I get rid of player movement As its name
And just have player.Player_monvement

paper wolf
#

also why you initializing the pygame twice

#
class Player:
  def __init__(self, screen):
     self.screen = screen```
cerulean stone
paper wolf
#

!doc pygame.time.Clock

woeful blaze
cerulean stone
#

Hey chris

woeful blaze
cerulean stone
#

chris have u used tkinter before

#

how do you change the logo on the taskbar, so its not the blue feather

#

the .spec file?

#

root.icon?

woeful blaze
#
import pygame as pyg
from time import sleep

# import from settings

from settings import *

# import from indecator bars
from player_indicator_bars import Health_bar
from player_indicator_bars import Hunger_bar
from player_indicator_bars import Thirst_bar
from player_indicator_bars import Experiance_bar

# import from player
from player import Player


#===[init]===#
pyg.init()



# screen dimention
screen = pyg.display.set_mode(window_dimentions)

# clock time
dt = 0

# Clock
clock = pyg.time.Clock()

# classes
health = Health_bar(20, 20, 200, 25, 100)
hunger = Hunger_bar(20, 70, 200, 25, 100)
thirst = Thirst_bar(20, 130, 200, 25, 100)
exp = Experiance_bar(200,500,500,15,100)

player = Player()

 # ceate player

rect_dimentions = (450,300,80,80)



# main loop
while Game_Running:
  
    for event in pyg.event.get():
        if event.type == pyg.QUIT:
            Game_Running = False

    #screen
   
    screen.fill(grass_green)

#bars
    # Health bar
    health.hp = 20
    health.draw(screen,Red_Health,green_Health)

    # Hunger bar
    hunger.Hunger = 75.5
    hunger.draw(screen,brown_orange,orange_hunger)
    
    # Thirst bar
    thirst.Thirst = 20.9
    thirst.draw(screen,blue_grey,blue)

    #exp bar
    exp.exp = 90
    exp.draw(screen,exp_blank,green_exp)
   
    player.Player_Movement(screen,dt)
    player.draw(screen,ocean_blue,rect_dimentions)

    pyg.display.flip()

    dt = clock.tick(60) / 1000
pyg.quit()
wind raptor
#
import tkinter as tk

root = tk.Tk()
root.title("My App")
root.iconbitmap("my_icon.ico")

root.mainloop()
cerulean stone
#

Ty

paper wolf
#

```py
code()
```

woeful blaze
#
import pygame as pyg
from random import randint

#===[init]===#
pyg.init()


class Player:
    def __init__(self):
        pass
        
    def Player_Movement(self,surface,delta_time):

        
        player_pos = pyg.Vector2(surface.get_width() / 2, surface.get_height() / 2)

        keys = pyg.key.get_pressed()
        if keys[pyg.K_w]:
            player_pos.y -= 300 * delta_time
        if keys[pyg.K_s]:
            player_pos.y += 300 * delta_time
        if keys[pyg.K_a]:
            player_pos.x -= 300 * delta_time
        if keys[pyg.K_d]:
            player_pos.x += 300 * delta_time

    def draw(self,surface,color,rect_dimentions):
        
        pyg.draw.rect(surface,color,rect_dimentions)```
paper wolf
#

!doc pygame.draw.rect

wise cargoBOT
#

pygame.draw.rect()```
Draw a rectangle.

rect(surface, color, rect, width=0, border\_radius=-1, border\_top\_left\_radius=-1, border\_top\_right\_radius=-1, border\_bottom\_left\_radius=-1, border\_bottom\_right\_radius=-1) -> Rect

Draws a rectangle on the given surface.
paper wolf
#

!doc pygame.Rect

wise cargoBOT
#

pygame.Rect```
pygame object for storing rectangular coordinates

Rect(left, top, width, height) -> Rect

Rect((left, top), (width, height)) -> Rect

Rect(object) -> Rect

Rect() -> Rect...
woeful blaze
#

player_pos = pyg.Vector2(screen.get_width() / 2, screen.get_height() / 2)

paper wolf
#
import pygame as pyg
from random import randint



class Player:
    def __init__(self):
        self.pos = pyg.Vector2(0,0)
        
    def Player_Movement(self,delta_time):

        keys = pyg.key.get_pressed()
        if keys[pyg.K_w]:
            self.pos.y -= 300 * delta_time
        if keys[pyg.K_s]:
            self.pos.y += 300 * delta_time
        if keys[pyg.K_a]:
            self.pos.x -= 300 * delta_time
        if keys[pyg.K_d]:
            self.pos.x += 300 * delta_time

    def draw(self,surface,color,rect_dimentions):
        
        pyg.draw.rect(surface,color,pyg.Rect(self.pos,rect_dimentions))
#

@woeful blaze try this

woeful blaze
#

player.Player_Movement(screen,dt,player_pos)

paper wolf
#
player.Player_Movement(dt)```
#

@woeful blaze

#

!doc pygame.key.get_pressed

wise cargoBOT
#

pygame.key.get_pressed()```
Get the state of all keyboard buttons.

get\_pressed() -> ScancodeWrapper

Returns a sequence of boolean values representing the state of every key on the keyboard. Use the key constant values to index the array. A `True` value means that the button is pressed.
woeful blaze
#
import pygame as pyg
from time import sleep

# import from settings

from settings import *

# import from indecator bars
from player_indicator_bars import Health_bar
from player_indicator_bars import Hunger_bar
from player_indicator_bars import Thirst_bar
from player_indicator_bars import Experiance_bar

# import from player
from player import Player


#===[init]===#
pyg.init()



# screen dimention
screen = pyg.display.set_mode(window_dimentions)

# clock time
dt = 0

# Clock
clock = pyg.time.Clock()

# classes
health = Health_bar(20, 20, 200, 25, 100)
hunger = Hunger_bar(20, 70, 200, 25, 100)
thirst = Thirst_bar(20, 130, 200, 25, 100)
exp = Experiance_bar(200,500,500,15,100)

player = Player()

 # ceate player

rect_dimentions = (450,300,80,80)



# main loop
while Game_Running:
  
    for event in pyg.event.get():
        if event.type == pyg.QUIT:
            Game_Running = False

    #screen
   
    screen.fill(grass_green)

#bars
    # Health bar
    health.hp = 20
    health.draw(screen,Red_Health,green_Health)

    # Hunger bar
    hunger.Hunger = 75.5
    hunger.draw(screen,brown_orange,orange_hunger)
    
    # Thirst bar
    thirst.Thirst = 20.9
    thirst.draw(screen,blue_grey,blue)

    #exp bar
    exp.exp = 90
    exp.draw(screen,exp_blank,green_exp)



    player.Player_Movement(dt)
    player.draw(screen,ocean_blue,rect_dimentions)

    pyg.display.flip()

    dt = clock.tick(60) / 1000
pyg.quit()
wind raptor
#

!stream 1318626588560199692

wise cargoBOT
#

βœ… @woeful blaze can now stream until <t:1754795527:f>.

paper wolf
#

you have bad internet connection or what...

woeful blaze
#

My computer is finicky locked me out discord when the FPS dropped

paper wolf
#

you can lower the stream fps

wind raptor
#

!stream 1318626588560199692

wise cargoBOT
#

βœ… @woeful blaze can now stream until <t:1754795944:f>.

paper wolf
#

change the line 25 to

wind raptor
#

py -0p

tulip plover
#

class User:

    def __init__(self):
        self.rank = -8
        self.progress = 0

    def inc_progress(self,activity_rank:int):
        allowed_rank = [-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8]
        if activity_rank not in allowed_rank:
            raise ValueError("The Rank of the activity must be in the allowed ranks -8 to 8 excluding 0")
        
        if(activity_rank == self.rank):
            self.progress += 3
        elif(activity_rank == self.rank-1):
            self.progress +=1
        elif(activity_rank > self.rank):
            d = activity_rank - self.rank
            self.progress += 10*d*d
        
        while(self.progress >= 100):
            self.progress -= 100
            self.rank +=1 
            if self.rank == 0:
                self.rank =1
            elif self.rank == 9:
                self.rank =8
#

Business Rules:
A user starts at rank -8 and can progress all the way to 8.
There is no 0 (zero) rank. The next rank after -1 is 1.
Users will complete activities. These activities also have ranks.
Each time the user completes a ranked activity the users rank progress is updated based off of the activity's rank
The progress earned from the completed activity is relative to what the user's current rank is compared to the rank of the activity
A user's rank progress starts off at zero, each time the progress reaches 100 the user's rank is upgraded to the next level
Any remaining progress earned while in the previous rank will be applied towards the next rank's progress (we don't throw any progress away). The exception is if there is no other rank left to progress towards (Once you reach rank 8 there is no more progression).
A user cannot progress beyond rank 8.
The only acceptable range of rank values is -8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8. Any other value should raise an error.
The progress is scored like so:

Completing an activity that is ranked the same as that of the user's will be worth 3 points
Completing an activity that is ranked one ranking lower than the user's will be worth 1 point
Any activities completed that are ranking 2 levels or more lower than the user's ranking will be ignored
Completing an activity ranked higher than the current user's rank will accelerate the rank progression. The greater the difference between rankings the more the progression will be increased. The formula is 10 * d * d where d equals the difference in ranking between the activity and the user.

tulip plover
wise loom
wise loom
tulip plover
#
            if(activity_rank == self.rank-2):
                self.progress +=1```
tulip plover
#

elif((activity_rank == self.rank-1 and self.rank-1 !=0) or (self.rank ==1 and activity_rank in [-1,2] )):
self.progress +=1

wise loom
#
        elif (activity_rank,self.rank) == (-1,+1) or (activity_rank * self.rank > 0  and activity_rank == self.rank - 1 ):
somber heath
#

@weary lion πŸ‘‹

weary lion
#

Hi

candid spire
#

Hello πŸ‘‹

vocal basin
#

thielocracy is doing everything it can to look worse than Russia

candid spire
#

Thielocracy?

vocal basin
#

payment processor also

#

whatever it's named

#

paypal

plain dagger
#

yeah

vocal basin
#

@peak depot bcantrill once mentioned how someone asked him to show he's over 18 in very recent years

plain dagger
#

one of the techno lords

plain dagger
#

opal, where did he sya that?

vocal basin
#

Thiel is a very open nazi and fascist

#

very

#

he's pro-eugenics

plain dagger
#

i know he is like the gavin benson character from silicon valley

#

and hes like obsessed with being inmortal

candid spire
#

To be honest the Young Man in Germany was the result of the year of sanction on Germany

plain dagger
#

i do believe in the technolords, oh mighty lords please forgive me for my sins such as owning something that you dont

vocal basin
#

dictatorship leadership devours itself/its allies faster than whoever it oppresses

#

(for an example, see what's happening within pro-war part of Russia)

somber heath
#

@random tartan πŸ‘‹

#

@mighty cairn πŸ‘‹

#

!voice

wise cargoBOT
#
Voice verification

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

wise loom
#

@candid spire you never talk?

somber heath
#

@long dragon πŸ‘‹

long dragon
#

Hello

candid spire
wise loom
candid spire
#

It is difficult to find a phone with personality πŸ˜•.
Very few phones under 6.1 inch diagonal

peak depot
candid spire
#

Is hemlock busy lately?

peak depot
#

yes

woeful blaze
#

morning

#

got some sleep

#
import math
import pygame as pyg



class Player:
    def __init__(self):
        self.player_pos = pyg.Vector2(0,0)
        
    def Player_Movement(self,delta_time):

        keys0 = pyg.key.get_pressed()
        if keys0[pyg.K_w]:
            self.player_pos.y -= 2* delta_time
        if keys0[pyg.K_s]:
            self.player_pos.y += 2* delta_time
        if keys0[pyg.K_a]:
            self.player_pos.x -= 2* delta_time
        if keys0[pyg.K_d]:
            self.player_pos.x += 2* delta_time

        return self.player_pos

    def draw(self,surface,color,rect_dimentions):
        
        pyg.draw.rect(surface,color,pyg.Rect(self.player_pos.x,self.player_pos.y,*rect_dimentions))



class Monster:
    def __init__(self,player_pos):
        self.Monster_pos = pyg.Vector2(0,0)
        self.player_pos = pyg.Vector2(0,0)

    def follow_player (self,Monster_pos,player_pos):
        distance = self.Monster_pos - self.player_pos

        print(distance)
        
    def draw(self,surface,color,rect_dimentions):
        
        pyg.draw.rect(surface,color,pyg.Rect(self.player_pos.x,self.player_pos.y,*rect_dimentions))

how can I get the Player_pos for Monster?
also how is everyone

wet lotus
#

why i can't speak

calm heron
#

!voice

wise cargoBOT
#
Voice verification

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

woeful blaze
#

Does anyone know how to unpack a dictionary after importing it it's for my game

#

from settings import Game_Running
from settings import *game_colors

storm jewel
#

Myer's algorithm

vocal basin
#

purplesyringa did something JSON-parsing-related too

#

google gets the intent so wrong

#

so, yeah, seems to be a real unsolved problem

#

not even remotely solved

#

@storm jewel do you control the data storage or are you querying something external?

#

I mean is it local

#

in-memory is as local as it can be

#

so you control how the data is represented

#

yeah, then a lot of work there is about data structures

#

filtering and searching isn't really that algorithm-heavy, most of it is about how the data is structured

#

one common example for searching is stuff like search by keywords;
you need store an index that allows you to somehow find entries based on those keywords, you can't just "algorithmically search" through it without involving extra structures

#

for searching by a single keyword/tag it's fairly trivial

#

it's an example of how extra structures are necessary for search, not a solution to your problem

#

how much data are you dealing with? (approximately)

#

gigabytes

#

so, small/medium search set + infrequent queries, right? (can afford a scan)

#

how many per second?

#

(scan = look through all data)

wispy pine
#

Hlo any Indian My first time on discord

vocal basin
#

I think you shouldn't really ask it to evaluate something

#

instead have some other metric to go by

#

@wind raptor .sort_by(|a, b| llm(format!("please sort {a}, {b}")))

harsh star
#

hello

#

just joined

vocal basin
#

I guess if you scan, you are actually kind of aiming for ranking rather than filtering

#

this might simplify it a bit

lavish rover
#

@wind raptor will be on in a bit if you want to work on git

harsh star
#

he is probably just happy to be back

vocal basin
#

are there mechanisms for DI in Ocen

#

dependency injection

#

reflection should be enough for it

#

for webby stuff having DI is very convenient
(maybe there's a way to invent some weird hacky mechanism that Ocen can facilitate okay-ish-ly)

#

offloading the action of providing arguments (dependencies) to some external thing that figures out how to provide (inject) them

#

the general idea of being able to say "I want this, give it to me, I don't really care how" in code (in a convenient way)

lavish rover
#

maybe I'm just dense but that sounds like a function no? code example pls?

#

i could just google it too

vocal basin
lavish rover
#

how's that different from say a lambda or passing a function pointer

vocal basin
#
@get("/settings")
def get_settings(
    user: CurrentUser,
    db: DataBase,
):
    ...
vocal basin
#

so you can't just have something in closure

#
@app.get("/settings")
def get_settings(  # not aware of `SQLite`
    user: CurrentUser,
    db: DataBase,
):
    ...

app[DataBase] = SQLite("./stuff.db")  # not aware of `get_settings`
#

@lavish rover can't you push over HTTPS with a token?

lavish rover
#

i was thinking more ssh keys, i don't remember

wind raptor
#

!stream 1145811320621510738

wise cargoBOT
#

βœ… @manic basin can now stream until <t:1754856371:f>.

vocal basin
#

password access was removed

#

when password=site sign on password

#

I think it now defaults to new smart token/oauth2 thingy with a git credentials manager when HTTPS auth is required

#

where it redirects you to the website

vocal basin
#

(on top of oauth2)

#

so it works with websites other than github sometimes

#

do alt right
do whom again?

#

another option: listen to something with incoherent lyrics

#

grindcore 🀍

#

is GitHub still SHA1-only?

#

iirc Forgejo supports SHA2

#

@lavish rover you should add {1 + 2 = } syntax from Python

#

!e

print(f"{1 + 2 = }")
wise cargoBOT
lavish rover
#

i use it all the time in py just never got around to it

#

PRs welcome πŸ™‚

vocal basin
#

VSCode 2
noway the sequel

manic basin
#
# TODO 4: Calculate commission (2% of sales over $1000)
print("\nCommission Report:")
total_commission = 0
for i in range(len(days)):
    day = days[i]
    sale = daily_sales[i]
    
    # TODO: Calculate commission
    if sale > 1000:
        commission = 0  # TODO: Calculate 2% of amount over $1000
    else:
        commission = 0
    
    total_commission += commission
    print(f"{day}: ${commission:.2f}")

print(f"Total weekly commission: ${total_commission:.2f}")```
lavish rover
#

!help

distant quail
#

How to get a remote sde job in europe?

lavish rover
fleet tide
#

@wind raptor hai

wind raptor
urban abyss
#

Applied for a role at Spotify, start your bets now on how long the rejection email will take to turn up πŸ˜„

somber heath
#

@wise shale πŸ‘‹

#

!voice

wise cargoBOT
#
Voice verification

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

wise shale
#

sup

#

my voice dont work

#

i need help with a scrip

#

cript

#

can you accept my friend request?

somber heath
#

!code

wise cargoBOT
#
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.

wise shale
#

its complicated

#

im working on a macro

#

based on image recognition

#

problem is when it goes to the 2nd step the element it doesnt click the button

#

on the game

#

i think the game doesnt see the clicks as valid

#

because when i nudge my mouse it works fine

#

but pyton cant do it

#

python with import tkinter as tk
from tkinter import messagebox
import pyautogui
import time
import threading
import webbrowser
import os
import configparser
import keyboard
import random

wise cargoBOT
wise shale
#

i have the images in the same folder

#

to help u understand it moves the mouse perfectly

#

i dont think so because the button after that works

#

but not the second button you need to click

#

i can send the pictures

#

i mean it goes to the image and does click

somber heath
#

@fair otter πŸ‘‹

wise shale
#

but my mouse esnt update

#

i tried making it 5 times

#

still doesnt update the mouse

#

it does it once but i tired multiple times

#

still same result

#

would be easy if i could screenshare

#

is it possible i could try focus window

#

no my macro is only interacting with npcs

#

i did have a cleaner version

#

i can send that

#

ai has helped with this btw

#

its mostly my code

#

but ai has been used in places

wise cargoBOT
# wise shale

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

wise shale
#

alrigiht thanks

#

do ou think i can send a video?

#

to show u whats wrong

#

@somber heath

wise loom
#

Guys I received a DM from @wise shale
I don't know what to tell him

#

He is asking me if I'm "any good with Python"

somber heath
#

@sleek brook πŸ‘‹

fair otter
#

Bro unmute voice

#

Perm

#

@somber heath

somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

fair otter
#

25mesaag ?

somber heath
#

@dusk lily πŸ‘‹

#

!voice

wise cargoBOT
#
Voice verification

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

dusk lily
#

Of course it make sense

#

Yes sure you are right

#

Yes people are coming in and out for no reason I understand

#

Sorry I did not Heard you πŸ™ƒ

#

Would be a total nightmare I guess

#

Yup

#

Are you working today ?

#

Nice plans

#

You work as a freelancer ?

#

I mean like for yourself ?

#

Oh no problem 😊

#

It’s currently almost 6 in the morning at my place

#

Kinda difficult Yeah

#

Ahahah

#

I’m not a patriot don’t worry

#

This clichΓ© is real btw

#

πŸ˜‚

#

Honestly I do not like the French mentality

#

Yeah πŸ˜‚

#

You are american ?

#

No you sound british

#

πŸ˜‚

#

Wow Nice !

#

I Know some people there

#

Your accent is Perfect

#

You got that accent Perfect too

#

I’m laughing hard

#

Yeah it’s kinda hard I mean the balance is not good

#

πŸ˜‚

#

You seems very frustrated πŸ˜‚

#

But I understand you

#

Do you wanna call ?

#

Maybe it Will be easier to talk

#

Okey that’s fine

#

Yup

#

Yup

#

It’s not a problem I Will have to Wait πŸ˜‚

#

You live in a Great country

#

The only things I do not like in Australia are the spider and snake

#

Damn

#

You sound like the Australian Chuck Norris who fights threats with his bare hands πŸ˜‚

#

I hate this πŸ˜‚

#

I have to go ! such a pleasure to talk to you ! Have a Nice day or evening !

#

Bye bye !

fleet tide
#

@somber heath

#

hai

#

gotta be here 3 days to talk

#

:c

#

sadge

#

a friend shoed me a game called "farmer was replaced"

#

and you gotta code drones to do stuff

#

what?

#

i am bored

fleet tide
#

hai

#

@tacit crane

#

good

somber heath
#

@frigid atlas πŸ‘‹

cinder mirage
#

!voice

wise cargoBOT
#
Voice verification

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

somber heath
#

@serene sigil πŸ‘‹

wise loom
#

Go to http://brilliant.org/BranchEducation/ for a 30-day free trial and expand your knowledge. Use this link to get a 20% discount on their annual premium membership.

Integrated Circuits, CPUs, GPUs, Systems on a Chip, Microcontroller Chips, and all the other different types of microchips are the brains of all the devices and technology that we...

β–Ά Play video
#

Possibly the best video I saw during 2025

quiet moat
#

Hello guys

wise loom
#

@peak depot your uni is fully online?

peak depot
#

yes

wise loom
#

accepting of foreign students?

peak depot
#

no

somber heath
#

@kind cloud πŸ‘‹

static tree
#

@somber heath hey

somber heath
#

@prisma scarabπŸ‘‹

vocal basin
#

very recognisable sigh

#

@upper basin you in this particular case

somber heath
#

@lilac topazπŸ‘‹

lilac topaz
#

yo

#

wsp

urban abyss
#

Also applied for a role at Monzo, let's see how that goes..

upper basin
#
inverse = unitary_layer[-(i + 1)][1].conj().T

if inverse.shape[0] == 4:
    disentangled_mps.gate_split_(inverse, (i - 1, i))
else:
    disentangled_mps.gate_(inverse, (i), contract=True)
upper basin
vocal basin
#

such Absurd Issue (AI)

small cypress
#

I'm starting to learn python rn how can I learn fast and where?

vocal basin
#

in general, such issues are insta-reject

#

multiple issues with <...>
no, try again, learn how to use GitHub

#

off-by-user-error

#

hackerone is filled with AI-made reports

#

you can hide contents

#

and you can delete them now, yes

vocal basin
#

@upper basin or make a bot that auto-deletes their issues

#

(make them waste effort)

#

πŸ’₯

upper basin
#

Or based on content?

vocal basin
#

account

upper basin
#

Hehe

vocal basin
#

rather than banning

upper basin
#

I love it.

#

"I shant kill you. I shall leave you alive, to suffer in the futility of your existence."

lilac topaz
#

def get():
    url = "https://discord.com/"
    response = requests.get(url)
    print(response.status_code, response.text)
    
    if response.status_code == 200:
        print("Works")
    else:
        exit(0)
        
get()``` simple api req
#

@somber heath what can u add on to this

#

well idk

#

0 means 0 erros

#

i believe

#

oh ok

#

so just a pass or no else

vocal basin
#

no else

#

I wonder how .text is implemented

#

since it's probably not a field

lilac topaz
#

it like sends

vocal basin
#

likely @property

lilac topaz
#

the soruce code

#

into the terminal \

#

like the css

#

and java

vocal basin
#

probably javascript not java

lilac topaz
#

yea

vocal basin
lilac topaz
#

i meant javcascript

#

i say java for short

#

cus i think people know what im sayin

#

but i always correct them

#

i know there diffrent langs but i feel thats slang for it

vocal basin
#

Java is very separate from JavaScript, and it should be that way

#

Oracle should abandon the JavaScript trademark

lilac topaz
#

do u think i should say

#

nodejs

#

instead

vocal basin
#

ecmascript

lilac topaz
#

or just javascript

vocal basin
#

also javascript is often mentioned as just js

lilac topaz
#

i get messed up

#

like

vocal basin
#

iirc lit. "JS" isn't copyrighted by Oracle

lilac topaz
#

those mess me up whenever im talking abt websites and they think im talking abt the java language

vocal basin
lilac topaz
#

js would be better ig

vocal basin
#

Java used to be ran in browsers too

#

JavaScript outcompeted it

lilac topaz
#

i dont think it matters but like

vocal basin
lilac topaz
#

yea people should know if im talking abt websites

#

its javascript

vocal basin
somber heath
#

@dark jewelπŸ‘‹

lilac topaz
minor timber
#

Hello @somber heath

lilac topaz
#

it can

vocal basin
somber heath
#

@whole bearπŸ‘‹

lilac topaz
#

or do u have a fav

minor timber
#

Intellij @lilac topaz

lilac topaz
vocal basin
#

I don't write any Java code;
but if I were to do so, either IntelliJ IDEA or Eclipse

#

Eclipse is slightly newer than IntelliJ IDEA

lilac topaz
#

its smoother with typing

whole bear
#

Hi

lilac topaz
#

i just feel like other ides dont have a smooth typing feature like vscode

#

so i stick with it even if im maining visual studio for csharp projects

#

or c++

#

just paste the code into it afer im done

minor timber
#

@lilac topaz what do u mean by smooth typing feature?

lilac topaz
whole bear
#

the most beautiful thing is vscode

lilac topaz
#

yes

#

i agree

vocal basin
#

for C++, I only use VSCode

minor timber
vocal basin
#

I abandoned VS proper in 2022

lilac topaz
#

the smooth typing si why i main it

lilac topaz
vocal basin
lilac topaz
#

yk

vocal basin
lilac topaz
#

or u can just use vim

minor timber
#

Hmm

lilac topaz
#

type stuff

vocal basin
#

neovim+termux

#

best text editor on a phone

lilac topaz
#

neovim on phones

#

never kneewe that

vocal basin
#

makes it easier to navigate text

#

since you don't need stuff like extra arrow keys

lilac topaz
#

vim is hell

#

i lowkey

#

like nano better

#

😈

vocal basin
lilac topaz
#

isnt that the one for sql

#

and php

#

cus they all have similar names

vocal basin
#

IntelliJ IDEA

#

the first one does not look newer

lilac topaz
#

i dont like old ides

#

i like modern

vocal basin
#

out of those two

lilac topaz
vocal basin
#

this one is newer than both of those

lilac topaz
#

well

#

all of them do the same thing

#

at the end of the day

vocal basin
#

speaking of VSCode, @somber heath, do you remember the Red with a certain font?

#

peak miscustomisation so far

lilac topaz
#

is there smooth typing on those ides

vocal basin
#

(I meant do you remember the screenshot and just how horrible it looked)

lilac topaz
#

do u think if u know javascript

#

will u learn type script easier

somber heath
#

@midnight ospreyπŸ‘‹

vocal basin
#

!charinfo xa

wise cargoBOT
lilac topaz
#

@

#

@somber heath

vocal basin
#

okay so not Cyrillic

lilac topaz
#

what

#

its a scam gambling site

vocal basin
#

they get filtered more slowly

lilac topaz
#

the site is called bemlex

#

and its a scam

#

they make u think ur winning and u have to pay a fee to depo

vocal basin
#

so they just get banned for spam

lilac topaz
#

yes

#

exaclty

vocal basin
#

but now I think they end up somewhere in code jam channels

lilac topaz
#

dont gamble

#

its a trap

#

trust me

vocal basin
#

want to gamble => play minesweeper instead

lilac topaz
#

i lost enough already

#

lost 15k

#

so yea

vocal basin
lilac topaz
#

just code one

vocal basin
#

I did

lilac topaz
#

that makes u winn forever

#

so u dont have to feel like u lose

vocal basin
lilac topaz
#

u can make a simpkle casino game

#

but only gamble if ur rich

vocal basin
#

who needs casino when you can have minesweeper

lilac topaz
#

minesweeper is a game called mines

#

on those sites

#

idk if u heard of it

#

more u click more money u get

vocal basin
lilac topaz
#

and if u bomb u lose it

vocal basin
#

do numbers work there

lilac topaz
#

im glad i quit

#

yes

vocal basin
#

very CSS page

lilac topaz
#

u make it on a site

vocal basin
#

very casino

lilac topaz
#

im not really a master at js

#

but html and css are pretty easy

vocal basin
#

page which has neither JS nor CSS

#

just HTML and HTMX

lilac topaz
#

only html\

#

dang

#

bro

vocal basin
#

all the logic is done via HTMX

lilac topaz
#

htmx

#

huh

#

nice

vocal basin
#

I could've actually moved the template generation to the server

#

however that would be more difficult

lilac topaz
#

htmx easier than js

#

or something

vocal basin
#

HTMX isn't necessarily easier

#

but it's more concise

#

it uses some amount of JS inside

#

but it's a very tiny library

lilac topaz
#

i never really heard of it

vocal basin
#

HTMX is mostly for fetching pieces of the page

#

rather than local-first interactivity

lilac topaz
#

oh so like

#

java but html collab

#

basiclly

vocal basin
#

example of how Forgejo uses it:
when you click one of these buttons, it only re-fetches the contents of a button instead of reloading the whole page to update the number

lilac topaz
#

oh okay

#

so how does one learn htmx

vocal basin
#
lilac topaz
#

alright

vocal basin
#

what is even happening

#

@somber heath YT?

scarlet halo
vocal basin
#

that also reduces variety

#

which is kind of dangerous

paper wolf
#

what u guys talking about

vocal basin
#

even negative traits have some positive effects sometimes

#

like there is a reason why you wouldn't want to remove the sickle trait entirely from the population

somber heath
#

@ocean turret πŸ‘‹

topaz depot
#

hello

scarlet halo
#
vim.opt.number = true
vim.opt.relativenumber = true
topaz depot
#

14 messages

#

im trying to get voice chat access

#

dang

vocal basin
topaz depot
#

@scarlet halo how do u get screenshare access?

scarlet halo
topaz depot
#

ok

scarlet halo
#

i am unstoppable

topaz depot
#

totally

scarlet halo
#

lol

vocal basin
topaz depot
#

never seen such code

#

looks intresting

paper wolf
topaz depot
#

what is that code editor

scarlet halo
topaz depot
#

why not use something like vscode or pycharm

#

is he not on windows

scarlet halo
#

endeavour os (arch linux based)

#

hyprland as a de

topaz depot
#

cuz i was thinking of installing linux mint