#voice-chat-text-0

1 messages · Page 443 of 1

vocal basin
#

the latter

#

Karjakin got banned, then Karjakin complained to Putin

#

I'll attempt to connect on a phone but I can't guarantee success

#

@quartz beacon democracy

vestal flare
#

hiiii

vocal basin
#

absolutely nothing got created to "import-replace" chess.com

#

zero attempts

#

Karpov?

#

systematically systematic

#

Karjakin got "raised by" the regime

#

his career got paid by the ruling party

steep vortex
#

Yeh?

vocal basin
#

@quartz beacon not only Turkey

#

wrong ping

short owl
#

rub tabasco on wire @peak depot

scarlet halo
#

Yes

vocal basin
#

(or in two hours if not successful)

woeful blaze
#

Hello

short owl
#

I got a free laptop , cuz doggy bit power wire

quartz beacon
short owl
#

observing the madness from the side of the road

vocal basin
#

presumably not

quartz beacon
sleek summit
#

ooo

#

h i t l e r

dreamy totem
#

First time really talking here

willow light
#

Ayuh

earnest lodge
#

hello

#

<<py>>

#

<<end>>

somber heath
#

@languid scaffold 👋

languid scaffold
#

i cant use voice chat bc i havent sent 50 messages yet in the server

#

rip

#

hows it going

#

boredom

#

writing a flashcard program rn adding new things as i learn lol

#

its pretty fun

#

everytime i learn new things for python

#

i add a little multiple choice questionnaire

#

so far not too much just a question asking what are strings in python, what is the keyword used to define a function, stuff like that

somber heath
#

@severe spoke 👋

severe spoke
#

hi

#

gtg

#

just dm me

somber heath
#

I've no need to.

whole bear
#

Hello @somber heath @wind raptor @obsidian dragon

#

Is is a bug or is this feature of the windows 11?
Display scale : 125%


On Display Scale : 100% it works as intended but on Display 125% it appears as in the screen

#

@somber heath Which OS do you use?

whole bear
#

Here it works as intended

whole bear
#

How can I change DPI?

whole bear
whole bear
#

@obsidian dragon How do I change DPI?

#

There are no such a option called DPI but there is an option to Scale

#

@visual leaf Hello !

somber heath
#

@visual leaf 👋

whole bear
#

The main reason, why I do not like to use Linux it has no support for my hardware, it has very limited support

#

And it limits the true potential of my machine

upper basin
whole bear
whole bear
somber heath
#

@calm lake 👋

calm lake
somber heath
#

@flat hornet 👋

flat hornet
#

helo

astral coral
#

hey

severe spoke
#

yo

somber heath
#

@waxen saffron 👋

whole bear
#

@woeful salmon Are you from bangladesh?

somber heath
#

🎉 👦 🏃‍♂️‍➡️

slender sierra
#

Hi)

primal shadow
#

Hello

#

Goodbye

whole bear
#

@flat hornet Nae Nae * * * *

peak depot
#

Mämmi
Finnish Easter dessert
Mämmi is a traditional Finnish dessert, eaten around Easter. Mämmi is traditionally made of water, rye flour, ground malted rye, salt, and dried, ground Seville orange zest

primal shadow
#

Fermentation is a type of redox metabolism carried out in the absence of oxygen. During fermentation, organic molecules (e.g., glucose) are catabolized and donate electrons to other organic molecules. In the process, ATP and organic end products (e.g., lactate) are formed.
Because oxygen is not required, it is an alternative to aerobic respirati...

#

This is a list of fermented foods, which are foods produced or preserved by the action of microorganisms. In this context, fermentation typically refers to the fermentation of sugar to alcohol using yeast, but other fermentation processes involve the use of bacteria such as lactobacillus, including the making of foods such as yogurt and sauerkra...

#

Can ferment all sorts of things

whole bear
#

@wise loom Life always find a way!

#

New way to screw free user to charge more money

#

Almost all of the company

#

@rugged steeple Hello bruh!

rugged steeple
primal shadow
#

welcome

rugged steeple
wise loom
primal shadow
#

What brings you this way? Do you have much experience with python, programming?

rugged steeple
primal shadow
#

School or self led/

rugged steeple
primal shadow
#

a fun path

#

one I went down myself

vocal basin
#

oh wait wrong elixir presumably

rugged steeple
#

how can I speak in the voice rooms? cuz I cant

whole bear
#

AF has library on her Mind full of every possible lanuguage and it's use case!

whole bear
#

thrice

#

and you can speak

rugged steeple
vocal basin
whole bear
#

Eid is going on

rugged steeple
whole bear
whole bear
vocal basin
#

I should try actually using Erlang/Elixir/Gleam

#

the live code upgrade part is interesting

#

I wonder if Gleam supports it well enough

whole bear
rugged steeple
whole bear
#

Make sure to obey the leader of the Discord

vocal basin
#

I'm not the domain lead of voice here, Hemlock is

whole bear
#

You are active

rugged steeple
whole bear
#

so you bare the responsibility

vocal basin
#

bear

primal shadow
#

You'll get there

whole bear
primal shadow
#

the 72 hours is the toughest one to pass, but if you wait, it'll happen with time

whole bear
#

AF

rugged steeple
#

@peak depot Morocco

whole bear
#

@rugged steeple Say "I heil fuher!"

vocal basin
#

don't~~, and also you misspelled that again~~

whole bear
#

@rugged steeple To speak you need to be in server at least 3 days and have 50 message and more.
Than only you can verify for #voice-verification

rugged steeple
vocal basin
#

@peak depot I missed the context, was it sealant that smelled of vinegar?

#

we had some repairs happen, and that was quite a noticeable effect

hearty knot
#

meep meep

whole bear
gentle flint
rugged steeple
primal shadow
#

what's the recipe for?

#

and how many does it serve

peak depot
#

spicy lentil soup

whole bear
gentle flint
whole bear
rugged steeple
whole bear
bleak copper
#

carrots are $1 per pound

vocal basin
#

I don't remember such level

#

I stopped at the space invaders level

#

all adjacent to it I completed

#

also, yes, you can "cheat" and add custom instructions

#

it's your computer, no one is stopping you

placid jackal
vocal basin
#

proprietary architectures 📈

#

@peak depot the cat came with bluetooth pre-installed?

placid jackal
#

found it...

vocal basin
#

seems like my total steam gaming hours + minesweeper gaming hours on record crossed over 10'000 hours

ripe viper
gentle flint
placid jackal
ripe viper
# gentle flint

that's a big lawn mower, but $21k for it is still too much.

gentle flint
ripe viper
vocal basin
#

@peak depot yes

upbeat bobcat
#

Hello everyone!

vocal basin
#

"you can see with the horse"

#

horsetorch

vocal basin
#

I've just realised a funny similarity;
between Trump managing to bankrupt casinos and another Russian politician managing to bankrupt a competitive poker association

#

both sure take some executive effort to accomplish

jade mountain
#

@vocal basin

vocal basin
#

I've seen that already

jade mountain
#

:(

vocal basin
#

time to play a broken unfinished game

#

why tf did it start on the second monitor

#

where's the hard funny difficulty

#

okay the first gameplay thing being a 10 second timer where I have to navigate through inventory to prevent dying is definitely not what I expected from a normal difficulty

whole bear
#

@vocal basin How tall are you?

vocal basin
#

allegedly, 186~188cm

whole bear
#

6"2

#

damn

#

you are super tall for girl

vocal basin
whole bear
whole bear
#

I think anything between 60 to 75 would be healthy for you

#

54 would be skinny

#

Are all the russian woman as tall as you?

#

I mean is it average over there?

vocal basin
#

Netherlands have high average heights

whole bear
vocal basin
whole bear
vocal basin
#

python3 in minesweeper lol

#

I have a somewhat high pvp record against them iirc

whole bear
#

Good!

#

Why do you love Minesweeper so much?

vocal basin
#

core mechanics are simple enough that I can almost always focus on thinking about something other than the game

#

I don't really compete on minesweeper.online after reaching top 500

whole bear
#

Damn

vocal basin
#

~2 years ago I managed to keep top 7 season rank for several days

whole bear
#

LOL

#

As if it's normal for you!

vocal basin
#

I dropped to top 87 by the end of the season

whole bear
#

Alright, I gotta run. Catch you later!

tepid edge
#

@vocal basin , do you know of a service akin to render.com where I can host a non-HTTP TCP server for free?

vocal basin
#

haven't encountered any of that sort

#

at least, like, any big brand thing

#

I might've actually heard of some that was like "you can host it yourself but it also happens to be running on this domain: ..."

tepid edge
#

that would be fine

#

I assume it's a fairly niche use case

vocal basin
#

lmao the description for the other project of this sort

tepid edge
#

ah, that looks great for my use case (wanting to run the protohackers checks)

vocal basin
tepid edge
#

I was making it more complicated by looking for hosting servers where I really needed a tunnel

#

thank you for both lessons :)

vocal basin
#

very credible sources, especially the black circle

#

3 years seems like

#

ChatGPT allows me to search so that works considerably better

#

I'm trying to rephrase it for Gemini 2.0 Flash so that it can understand that I want existing solutions not how to build it

#

it does know what bore is but isn't volunteering it as one of the results

#

Rust forum, it's just very low contrast

vocal basin
#

I asked for alternatives, it did not suggest bore then either

#

I'm witnessing typographical hell
keyword for what's the reason: Cloud Translation API

#

it translated Gemini

#

and everything else

#

it understands that it's not a nominative noun

#

judging by how it kept the uppercased first letter

#

(Twins ~= Близнецы ~= Gemini)

#

rarely ever

#

Microsoft has some hand-translated and some well-translated automatically

#

but I do generally prefer English documentation

vocal basin
#

Wikipedia often has maths/programming articles differing a lot between English and Russian

#

B-Trees are better explained in Russian from what I remember

#

many other structures and algorithms too

#

for some, there just doesn't exist an English equivalent

#

prefix function being an example

tepid edge
#

судо апт-гет инсталл -да неовим

vocal basin
#

апт-жет if it was transliterated by Microsoft
probably with either or

#

it prefers g like in general over g like in get

vocal basin
vocal basin
#

iirc English uses maximal arity of the tree whereas Russian uses minimal

#

why I don't like it:

#

(the English one)

#

it's actually always m/2+1/2

#

although I think the Russian version stopped labelling it as "order"

#

m = 2t - 1

#

m is what the English version uses, t is what the Russian one does

#

without any label given to t anymore

#

just a parameter

vocal basin
#

oh wait no

#

just minimal

#

ugh it's so confusing

vocal basin
#

peak article structuring practice:
main disadvantages are listed under the "main advantages" section

#

English B-Tree article evolved noticeably since I last read it

tepid edge
vocal basin
#

concurrent Go is often more performant than concurrent C++

#

if you even believe in concurrent C++ existing

#

Clang is LLVM

#

GCC and MSVC generally aren't

#

if you make a great C API, it's likely you'll be able to expose that API in Python

#

Python and Rust are good for building stuff on top of the underlying C

frosty shell
#

I wonder if there are python bindings for Rust and Go

vocal basin
#

for Go: afaik existent but non-idiomatic

frosty shell
vocal basin
#

"Go doesn't want you calling Python from it or to be called from Python"

#

from what I understand, C APIs for Go code aren't a priority for the language

frosty shell
#

yeah

vocal basin
#

combining multiple GCs together is not the happiest experience

#

Number is a fake class

#

yeah

frosty shell
vocal basin
#

!e

print(issubclass(bool, int))
wise cargoBOT
vocal basin
#

I would presume int is a Number subclass

#

bool is such by transitivity

tepid edge
#
>>> from numbers import Number
>>> isinstance(True, Number)
True
vocal basin
#

if it was int but not Number, that'd be weird

#

do I remember correctly that True ^ True is False not 0?

#

!e

print(True ^ True)
wise cargoBOT
pseudo prawn
#

hi whats up

vocal basin
#

!e

print(False << 0)
print(False << 1)
print(True >> 0)
print(True >> 1)
wise cargoBOT
vocal basin
#

yes

#

!e

print(~True)  # approximately true
wise cargoBOT
vocal basin
#

!e

print(~True == hash(~False))
wise cargoBOT
vocal basin
#

this might be getting into the esoteric territory

worthy plank
#

!e

print(~True == hash(~False))
wise cargoBOT
worthy plank
#

Xd

vocal basin
#

it's a bit weird that it is but for Python that does seem to make sense

#

if you want a really strict type system, it shouldn't be coerceable either

#

it's just that in languages like Rust that are close to C it makes sense to provide C-like type conversions at least in some way

#

I should get back to hitting postgres with hammers trying to make it work

#

I managed to get queries to under 1ms of the actual query processing

#

with a few milliseconds overhead of postgres trying to figure out what it even has to do with what I'm giving it

vocal basin
#

I was getting 0.05ms on simpler queries with fewer rows in the tables

#

so 0.5ms with a million rows might be acceptable

#

(million rows in the table not fetched)

#

sqlx giving instant feedback on query correctness is really great

#

presumably, the way rust-analyzer is running proc macros, it doesn't even wait for the file to be saved

#

postgres is not happy

vocal basin
#

so allegedly the performance wins aren't coming from above-the-filesystem caching

#

I still haven't started writing a SQL autoformatter that I planned to make

#

existing ones aren't good enough

#

so I prefer to format it manually in a style that makes it easier for me to read and write

brazen crystal
#

No module named 'importlib.metadata'

vocal basin
#

importlib issues -> loading cogs in discord.py? pithink

#

what version of Python are you using?

#

!d importlib.metadata

wise cargoBOT
languid scaffold
#

rip

#

atill haven't sent enough messages to talk

timid iris
#

@vocal basin when you are bored what do you make / work on

vocal basin
#

idk if I'm ever bored anymore

#

!pypi scarletio

wise cargoBOT
vocal basin
#

you can always do like the author of this and reimplement the entire underlying library stack yourself

languid scaffold
#

i been practicing python for a month

#

its fun

vocal basin
#

tbf I'd rather write Python than Tcl

timid iris
#

luau

vocal basin
#

derivative of Lua

#

they even ported React to it

#

added +=

languid scaffold
#

after a year or two of python imma learn html and javascript

vocal basin
#

you can just ```lua it, should cover most of the syntax

timid iris
#
local part: Part = workspace:FindFirstChild("Part") :: Part
vocal basin
#

postgres-style casts

timid iris
#

local potentialPart: Part? = foo.Part

#
for key, item in items :: {[string] : Part | Decal} do:
   print(key, item)
#
local letter = never | 'A'
            'B' | 'C'
vocal basin
#

!d typing.Union

wise cargoBOT
#

typing.Union```
Union type; `Union[X, Y]` is equivalent to `X | Y` and means either X or Y.

To define a union, use e.g. `Union[int, str]` or the shorthand `int | str`. Using that shorthand is recommended. Details...
vocal basin
#

like in TypeScript and Python

#

not really a pipe operator, instead just or

#

type unions are easier to work with in TS than in Python

#

!e

from typing import Literal
print(Literal["a"] | Literal["b"])
wise cargoBOT
vocal basin
#

!e

from typing import Literal
print(Literal["a", "b"])
wise cargoBOT
vocal basin
#

hmm I thought those two should output the same thing

#

Literal["a"] only matches "a"

timid iris
#
if c == 'a':
vocal basin
#

you'd be using that anyway

timid iris
#

chr('a')

vocal basin
#

one part is for typing

#

the other for runtime

#

mypy

#

and pyright

#

pyright doesn't go into dependencies as deep

#
def example(x: Literal["a"] | Literal["b"]) -> int:
    match x:
        case "a":
            return 1
        case "b":
            return 2
    # never reaches this line when used correctly
timid iris
#

would a union work?

#

in that case

vocal basin
#

| and typing.Union do almost the same thing

timid iris
#

what is the difference

vocal basin
#

just returns a different thing

#

!e

from typing import Union
print(Union[int, str])
print(int | str)
print(Union[int, str] == int | str)
wise cargoBOT
vocal basin
#

HTML

#

the world is doomed, everything is going to be Electron now

vocal basin
#

Chrome + Node.js

#

!kindling

wise cargoBOT
#
Kindling Projects

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

languid scaffold
#

make a movie website

vocal basin
languid scaffold
#

lol

vocal basin
#

everything labelled nix/flake, just ignore for now

#

in case of Python, you rarely ever build a project

#

wheels are only involved during publishing

#

it is building, but that's almost exclusively a library thing to do

timid iris
vocal basin
#

mostly docs

#

or another Scheme

#

using gotos probably

#

although

#

[] is just while

#

proper regex isn't recursive

#

depends

#

https://docs.rs/regex guarantees O(MN)

timid iris
vocal basin
#

I just don't have any project ideas anymore
(excluding things that I actually need, e.g. aforementioned SQL autoformatter)

#

for example,

it should convert

CREATE TABLE table1(column1 text PRIMARY KEY, column2 bigint NOT NULL, column3 text NULL);

into

CREATE TABLE table1
    ( column1 text   PRIMARY KEY
    , column2 bigint NOT NULL
    , column3 text       NULL
    )
    ;
soft axle
#

I'm learning SQL at the moment for a class, and I find it pretty easy, but Im having trouble with different flavors of it?

vocal basin
#

there are existing SQL parsers written in Rust

#

I only need SQLite and PostgreSQL support

soft axle
#

rust 🤮

vocal basin
#

Rust feels and is way easier for me to write than Python and many other languages

#

extremely high productivity compared to anything I did before

#

I do have a job

#

I'm rewriting some Python and C++ stuff into Rust

#

or rather redesigning the whole thing, not just fixing poor choices of the implementation language

#

I'll gladly help you set up uv instead of anaconda

#

@timid iris what did you want to stream? (I couldn't hear)

timid iris
vocal basin
#

!stream 950555789133766698

wise cargoBOT
#

✅ @timid iris can now stream until <t:1743364681:f>.

timid iris
tepid edge
#

still reading text chat, can't listen to voice for a bit because I need to focus

tepid edge
#

just doing a little protohackers to get familiar with asyncio

#

and then do it again in rust or java

#

haven't decided yet

vocal basin
#

"I do not 'notion', I do not 'confluence', I do not 'wiki', I do not 'comment', I do not 'document'. I just read the code."
or
"I do not 'notion', I do not 'confluence', I do not 'wiki', I do not 'comment', I do not 'document'. I just remember."
or
"I do not 'notion', I do not 'confluence', I do not 'wiki', I do not 'comment', I do not 'document'. I just forget."

timid iris
#

how did you find that resource

vocal basin
#

there are alternatives to asyncio

#

one of the Discord API wrappers is using a custom async runtime

timid iris
vocal basin
#

purpose-built for that specific wrapper

wise cargoBOT
#
Nuh-uh.

No documentation found for the requested symbol.

vocal basin
#

!pypi hata

wise cargoBOT
#

A powerful asynchronous library for creating Discord bots in Python.

Released on <t:1742414767:D>.

vocal basin
#

!pypi scarletio

wise cargoBOT
vocal basin
#

it's not really good but it's existent

#

typing is, however, not existent

#

all the typing information there is in docstrings

#

in a project-specific format

tepid edge
#

yikes

soft axle
#

uhh alisa

#

by chance do you ever vc?

#

i was gonna ask how you think I should organize my python notes 😅

#

ik. boring and dumb.

vocal basin
#

!d docstring

wise cargoBOT
#

A string literal which appears as the first expression in a class, function or module. While ignored when the suite is executed, it is recognized by the compiler and put into the __doc__ attribute of the enclosing class, function or module. Since it is available via introspection, it is the canonical place for documentation of the object.

vocal basin
#

!pypi sphinx

soft axle
#

?

wise cargoBOT
#

Python documentation generator

Released on <t:1740954719:D>.

timid iris
#

alisa i am quite intimidated by the sheer amount of packages there are in python

soft axle
#

No i meant my personal notes on google docs and such

timid iris
vocal basin
#

I highly recommend storing notes alongside code

#

or even inside it

timid iris
#

and its baffling how there are so many libs i fear that i may not be fully updated with which tend to make their way into modern programs

vocal basin
#

versioned using Git

timid iris
soft axle
vocal basin
#

you shouldn't store code in google docs

#

use Git hosted on GitHub/GitLab

soft axle
#

versioned using git?? 😭
I only learned the basics of Git and I HATE it because I don't have a good enough background with file management and operating systems

vocal basin
#

if you, for whatever reason, want to use a non-Git service, the only sensible option that I'm aware of is Notion

soft axle
vocal basin
soft axle
#

like defining different functions and methods in different libraries, etc

tepid edge
#

it's super worth it

soft axle
vocal basin
#

if you use VSCode, there's a built-in functionality for uploading the project to GitHub

soft axle
#

Ya, I did see that.

#

But like does version control matter or something I need to do? if there was only ever one version, from start to finish, and I do not need previous versions?

#

I wanted to upload project on GitHub to have something to show for whatever skills

vocal basin
#

if you want to upload just one file instead of many, another option is to use GitHub Gist

#

as it doesn't involve creating a repository

#

you should probably just go and do it, there isn't really that much to discuss upfront

vocal basin
#

having those changes reflected in the project history is quite useful

soft axle
#

Can i ask what you mostly do? @vocal basin

#

with coding, python, etc. (web development, analytics, game development, etc.)

#

I always ask this question to people here because its always interesting how we are similar yet very different in terms of our skillsets and how we utilize python or other languages, usually in combination

vocal basin
tepid edge
#

basically anywhere that does serious software development uses version control

#

even if you don't need to collaborate with others, being able to revert changes or incrementally change stuff without having to have a separate version of your code alone is worth using VCS

vocal basin
# vocal basin I don't really think there's any particular field

networking (from configuring routers to high-level communication patterns), web (from messing HTTP itself, to APIs to HTML), infrastructure (both writing things to manage it myself and managing existing services), databases (using and writing), CLI tools (mostly for developer experience), devops (automated builds, deployment, etc.), error detection algorithms (because I have background in mathematics), data synchronisation (yes, I'm going to put this thing separately, because I worked on it for way too long), cybersecurity (because no one else bothers)

#

this is a non-exhaustive list of things that I had to do at one job that I've worked at for only 1.5 years so far

tepid edge
#

cybersecurity (because no one else bothers)
I strongly relate

vocal basin
#

JS lambda?

#

JS is easier to sandbox

#

obviously it shouldn't include the lambda:/()=> part or else it's nightmare to write

#

the main issue there is opaqueness imo

#

I'm assuming the policy is only editable by users who have full access anyway

#

otherwise, yes, obviously never do that

#

I think some sort of sandboxed-ish SQL thing might even be more sane there

#

not for security, but just not to break everything else

vocal basin
vocal basin
tepid edge
woeful blaze
#

can any one hrar me

vocal basin
#

doesn't seem so

woeful blaze
#

darnit

woeful blaze
#

How is everyone doing today?

stone canopy
#

Do we all not have permission to speak ?

woeful blaze
#

yes @wise loom

vocal basin
#

@fast gyro 👋

vocal basin
#

||heapq||

vocal basin
#

yes

#

!stream 297800369554194432

wise cargoBOT
#

✅ @fast gyro can now stream until <t:1743372148:f>.

vocal basin
#

!d heapq

wise cargoBOT
#

Source code: Lib/heapq.py

This module provides an implementation of the heap queue algorithm, also known as the priority queue algorithm.

Heaps are binary trees for which every parent node has a value less than or equal to any of its children. We refer to this condition as the heap invariant...

vocal basin
#

it's part of the standard library

lapis sundial
#

first element is its priority is what im thinking

#

so the first in list

#

would you still need to set the priority queue if already has a priority element

primal shadow
#

it was so simple

#

🤦

vocal basin
#

the heap is there so that you don't have to build that big list

lapis sundial
#

pretty sure its the same thing

vocal basin
#

heap is more efficient

#

but more limited

#

@fast gyro you're supposed to store ||lists|| in a heap not elements

#

@fast gyro it's a linear representation of a linked list

#

that'd be O(N^2) complexity if you just do it one by one

#

I've just made such a cursed solution but it somehow works

lapis sundial
#

you're sorting the lists before it gets to heap?

vocal basin
#

they're already sorted

#

the task is to merge already sorted linked lists

#

into one big sorted linked list

lapis sundial
#

wouldnt it just be easier if he uses the first element of each list into a heap list ...

vocal basin
#

which can be done with O(1) extra memory

#

since you get a list of ListNodes, ||you can heapify in-place||, which, tbf, is a bit of a hack but does work

lapis sundial
vocal basin
#

implementation is somewhat non-trivial

#

heapq doesn't support a key=

vocal basin
lapis sundial
lapis sundial
#

okay so ur comparing which node is greater and putting that into a greater list correct ? @fast gyro

#

wheres the part where it sorts the greater list in order

vocal basin
#

no allocations

lapis sundial
#

this part,

lapis sundial
lapis sundial
#

first check if the merge is being done correctly

#

print the nodes being merged, see what the output is then

vocal basin
#

I made it shorter

#

btw, yes, clippy will yell at line 6

#

I'll go fix it

#

I don't remember what the rule is called exactly

vocal basin
lapis sundial
vocal basin
lapis sundial
#

the merge part looks fine except for this..

vocal basin
lapis sundial
#

9-22..

vocal basin
#

I should merge merge and from_values into one function

vocal basin
#

still under construction

#

all three

#

I might move the blog there

#

GitHub Pages

#

with Astro

lapis sundial
#

GitHub pages??

vocal basin
#

GitHub has a free HTML hosting thing

#

you can just deploy from a repo

lapis sundial
vocal basin
#

I think so

#

it's all client-side code anyway, just HTML

#

there is nothing server-side being hosted

vocal basin
#

@wind raptor I think I finally figured out the SQL things I was working on

#

now it performs okay

#

some JOINs needed to be transformed into WHERE (SELECT)s

#

for now only working on postgres

#

because better observability and query plan debugging

#

those where there's at most one row and only that row's (non-)existence matters

astral coral
#

hewy guys

vocal basin
#

ugh I'm trying to fit API methods in some sort of a hierarchy and it's not working

#

it's too non-hierarchical

lapis sundial
#

anyone know if older git versions have to be explicit. Such as a parent folder not being a git repo, but having the same name as a git repo. Ex, parentfolder SC -> repo parent folder "SC" -> repo folder "sc" . but in repo the sub folder is capitalized... even with changes

vocal basin
#

are you on Linux?

lapis sundial
vocal basin
#

Windows does some very weird things to filenames

lapis sundial
#

repo was made within VScode

#

yeah it seems to be like that

#

even when being really explicit

vocal basin
#

have you tried doing that without /*?

lapis sundial
#

had to have someone else do it on their end for changes to occur but even then issue still persists.

lapis sundial
#

might be because the parent dir is not within the repo

vocal basin
#

where is .git?

lapis sundial
#

gives the option

lapis sundial
vocal basin
#

this this the file structure?

Desktop/
  StackCastle/
    stackcastle/
      .git/
#

or this?

Desktop/
  StackCastle/
    .git/
    stackcastle/
lapis sundial
vocal basin
#

in either of those two cases it has nothing to do with Git

#

unless you're messing with worktrees

lapis sundial
vocal basin
#

just rename the directory like you would do that in Windows normally

lapis sundial
#

when wanting to push

vocal basin
#

you want it to look like this, right?

Desktop/
  Stackcastle/
    .git/
    stackcastle/
#

are you hosting it on GitHub? or somewhere else?

lapis sundial
lapis sundial
vocal basin
#

did you copy the repo into itself?

#

or is it something nestedly named intentionally?

lapis sundial
vocal basin
#

!d functools.total_ordering

wise cargoBOT
#

@functools.total_ordering```
Given a class defining one or more rich comparison ordering methods, this class decorator supplies the rest. This simplifies the effort involved in specifying all of the possible rich comparison operations:

The class must define one of `__lt__()`, `__le__()`, `__gt__()`, or `__ge__()`. In addition, the class should supply an `__eq__()` method.

For example:
vocal basin
#

@tepid edge

#

can you show what you were trying to fix initially -- how it looks in GitHub?

lapis sundial
#

gives unneccesary complexity when wanting to import functions

vocal basin
#

you have this

.git/
stackcastle/
  Stackcastle/
    ...

you want this

.git/
stackcastle/
  ...

right?

vocal basin
#
git mv stackcastle/Stackcastle/* stackcastle
#

then without the /*

lapis sundial
#

wrong folder hold up

vocal basin
#

also yes

lapis sundial
#

even then

vocal basin
#

how many files are in that directory?

#

have you considered just moving the directory normally and re-git adding everything?

lapis sundial
vocal basin
#

just move the files manually to wherever they need to me, that's going to be easier

lapis sundial
#

alr

#

how is manually moving everything way easier while command line causes issues...

lapis sundial
spare galleon
#
import math
import time

class Passiveincome:
    
    def __init__(self, number):
        self.number = number
        
    def passive_counter(self):      
        self.number += 1
        time.sleep(1)
        
    def __str__(self):
        return str(self.number)
        
    def __add__(self, other):        
        return Passiveincome(self.number + other)
    
    def __iadd__(self, other):
        self.number += other
        return self
    
    def __radd__(self, other):
        return other + self.number
    
    def __eq__(self, other):
        return self.number == other


PASSIVEVENT = USEREVENT + 1

if event.type == PASSIVEVENT:
    main_counter += input_passive_income
    print(f"main counter is {main_counter}")
```ohhh god i remember making this years ago, its a class that gets passed into itself to create a passive income system for a clicker game
#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.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.

spare galleon
wild sonnet
#

Can also try marimo

astral coral
#

fuck yeah, listening to the Andrew Hulshult remixes of the OG Doom scores

astral coral
#

better image -

upper basin
#

!e

a = []
if a:
  print("yeh")
wise cargoBOT
vocal basin
#

the one you're working on?

#

okay

#

@somber trail please read our #rules and #code-of-conduct regarding publicly visible profiles (including profile descriptions)

#

@tepid edge it's automated and not a crawler => violates Terms of Service of the platform in question

tepid edge
#

!rule

wise cargoBOT
#

The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.

vocal basin
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

tepid edge
#

I got misled by the screenshot

#

which talked about "the forum"

#

nvm

vocal basin
#

it was the user offering to provide help saying that they won't help on ToS breaking stuff

#

iirc

tepid edge
#

yeah I realize now that that's probably from the ToS of the site in question

#

and I was just slow on the uptake

#

mb

tepid edge
#

it's not possible to change the tags on a forum/help post after submitting it right?

upper basin
#

If you're worried, we usually just read the title, not the tags.

tepid edge
#

I haven't seen anything that would allow me to

#

I am only slightly hopeful anyone will have an answer given how niche my problem is

upper basin
#

And the staff themselves are quite diversely skilled. If they don't respond, one of the many other community members probably will.

#

Give them time to read.

tepid edge
#

oh I'm not complaining by any means

upper basin
#

I know.

#

I'll be back in a bit, AF.

vocal basin
#

I'm committing cursed networking stuff right now using mikrotik

obsidian dragon
vocal basin
#

yeah, that is a bit odd

upper basin
#

Added detection range.

#

Wondering what alert should do (when they are shooting at Banjo, but then lose sight of him). Right now it's like "Oh well, out of range. Back to my patrol. Whistles heartily".

vocal basin
vocal basin
#

add assertions

#

actively check the state

#

@upper basin if I understand correctly, learning how to deal with this bs is the point

upper basin
#

If you can avoid it, avoid it.

#

At work, people have to show proof they are working.

#

Quite literally, all of bachelor group projects was me coming up with the project, delegating imaginary tasks (because people never did anything), and then doing them myself, making a presentation, and if we HAD to do presentation with multiple people, to train them to read off the slide.

#

Until I made my own projects independently from uni, I never got a good team, a responsible team.

#

I got that in some of my hackathons, and projects.

vocal basin
#

cats are audibly asserting their priority over the meeting

upper basin
#

Honestly, if they don't work is fine with me. What's not fine is when they start arguing, and slowing the project for no reason or not listening to presentation (my image processing group presentation got lower marks because this girl in my team refused to look at the presentation in advance, and then tried to read off her phone and basically had to say I can't do it.).

primal shadow
#

Controls should depend on life

#

animation should continue wihtout life

golden sonnet
#

helloo👋

wind raptor
#

!stream 1297071424992841859

wise cargoBOT
#

✅ @humble idol can now stream until <t:1743429707:f>.

upper basin
#

I'll be back after dinner.

#

I think I'm close to the issue.

primal shadow
#

Is this live action vibe coding?

rugged root
#

I sort of exist

#

That's the best I can offer today

sour imp
#

Reptar:

vocal basin
#

@sour imp did they name it Clippy

#

though that'd be more for Word

primal shadow
#

Push to talk is also pretty goiid

#

good*

#

IDK

#

doesn't really make "sense" to me

#

seems like...a bug more than a feature

vocal basin
#

isn't it just voice state change

primal shadow
#

I can stream when muted

#

I can unmute myself when streaming?

#

but then if I remute... no stream?

vocal basin
#

discord doesn't auto-stop the stream so does the checks on state changes

sour imp
primal shadow
#

So is the stream not dying when the permission runs out a bug or feature/

#

Sounds like a bug

#

I get every other friday

#

and my wife on the other weeks

#

so every week

#

we get a big check or a little check

#

Many places don't get checks anymore

#

so paycheck is 🤷

#

I don't remember the last time I got a check

#

Steam is great

#

PS5 has cost you many experiences

#

Experiences 🙂

#

a headache is an experience

#

remove bad gif

#

the bunyans

#

no idea what the message is

#

so let's ignore that part

#

The better bunyan

#

AI wouldn't be so smooth

#

AI would be warping all the other features

rugged root
#

!stream 1297071424992841859

primal shadow
#

this is human laziness

#

100%

wise cargoBOT
#

✅ @humble idol can now stream until <t:1743432179:f>.

primal shadow
#

The whole face would be wobbling around

#

if it were AI

#

not a fan of that style

languid scaffold
#

mornin chat

dire pebble
#

colorUpLim = np.array([(hue+10)%180, (x := saturation+50) if x <= 255 else 255])

languid scaffold
#

i smashed my keyboard playing cod so now i type with this until further notice

primal shadow
#

x is undefined

#

we need more lines to understand where you get x from?

vocal basin
#

!d numpy.where

wise cargoBOT
#

numpy.where(condition, [x, y, ]/)```
Return elements chosen from *x* or *y* depending on *condition*.

Note

When only *condition* is provided, this function is a shorthand for `np.asarray(condition).nonzero()`. Using [`nonzero`](https://numpy.org/devdocs/reference/generated/numpy.nonzero.html#numpy.nonzero) directly should be preferred, as it behaves correctly for subclasses. The rest of this documentation covers only the case where all three arguments are provided.
primal shadow
#

yes

vocal basin
#

you can't ternary the numpy

#
np.where((x := saturation+50) < 255, x, 255)
primal shadow
#

Yes there is!

#

If you want to NEVER be able to maintain it

#

make it like so

vocal basin
primal shadow
#

The less code you write, the less maintenance you can do

#

so you're saving yourself future effort

dire pebble
#

colorUpLim = np.array([(hue+10)%180, x if (x := saturation+50) <= 255 else 255])
This the appropriate syntax

vocal basin
#

!d numpy.clip

wise cargoBOT
#

numpy.clip(a, a_min=<no value>, a_max=<no value>, out=None, *, min=<no value>, max=<no value>, **kwargs)```
Clip (limit) the values in an array.

Given an interval, values outside the interval are clipped to the interval edges. For example, if an interval of `[0, 1]` is specified, values smaller than 0 become 0, and values larger than 1 become 1.

Equivalent to but faster than `np.minimum(a_max, np.maximum(a, a_min))`...
vocal basin
#

use this

primal shadow
#

"feels good" until you revisit

#

in about 8 minutes

vocal basin
#

you're reimplementing np.clip

vocal basin
primal shadow
#

You can do whatever you like, but making code "legible" is infinitely more useful than making code "look cool"

#

It's OK, it's inevitable to learn this concept if you keep up with programming

#

I used to love oneliners

#

Made me feel so smart

#

but revisiting them

#

often left me feeling dumb

#

so I don't do that anymore

rugged root
#

Then the Fire Nation attacked

primal shadow
#

And there was much steam

dire pebble
primal shadow
#

firefox does that too I think

#

They stole it

#

People defend using edge 😱

vocal basin
primal shadow
#

It's so insane they don't use the browser you use

#

I know

#

MADNESS

#

Next you're gonna find out we don't all drive the same make/model

languid scaffold
vocal basin
#

clearly legibile

vocal basin
#

note: image is the result of the code, not a part of the code

#

if you use duckduckgo, you use bing ¯_(ツ)_/¯

#

Antarctica government clearly

soft osprey
#

i need help n python

primal shadow
soft osprey
#

k

vocal basin
#

betting ads in CSGO are truly something
Russian company advertising to Russian users with Russian actors and Russian memes
during a European tournament using English language

languid scaffold
#

i lost 15lbs with that Hiroshima i just dropped

#

nuh uh

wind raptor
#

tmi

languid scaffold
#

nuh uh

#

get some sleep og

soft osprey
vocal basin
#

what do you need help with?

wind raptor
soft osprey
#

it

#

the issue is i wanna have some condition be trigerred but it aint working it always triggered even if it is not supposed to be

vocal basin
#

@rugged root what was the last okay Pixel phone? 7? 8?

#

I forgot already

wind raptor
#

We need a bit more context than that. Do you have a code snippet? @soft osprey

rugged root
#

@minor flame Check the #voice-verification channel. That'll tell you what you need to know about the voice gate

soft osprey
#

print("hello user")
need= input("calculator(c) or weight converter(w): ")
if need.upper() == "C"or"CALCULATOR":
first = input("first: ")
second = input("second: ")
sum = float(first) + float(second)
print("Sum:" + str(sum))
print("done")
mood= input("do you wanna know your weight (y) or (n): ")
if mood.upper() == "Y"or"YES":
weight = float(input("weight: "))
unit = input("in kg(k) or lbs(l): ")
if unit.upper() == "K":
converted = (weight // 0.45)
print("weight in pounds:" + (str(converted)))
print("done")
else:
converted = (weight * 0.45)
print("weight in kilograms:" + (str(converted)))
print("done")
else:
print("okay and you're done")
elif need.upper() == "W"or"WEIGHT"or"WEIGHT CONVERTER":
weight = float(input("weight: "))
unit = input("is it in kg(k) or lbs(l): ")
if unit.upper() == "K":
converted = (weight // 0.45)
print("weight in pounds:" + (str(converted)))
else:
converted = (weight * 0.45)
print("weight in kilograms:" + (str(converted)))
print("done")
mood2= input("do you wanna add numbers aswell yes(y) or no (n): ")
if mood2.upper() == "Y" or "YES":
first = input("first: ")
second = input("second: ")
sum = float(first) + float(second)
print("Sum:" + str(sum))
print("done")
else:
print("okay and you're done")

#

here you go

wind raptor
#

Where is it failing?

vocal basin
#

I bought 8 because 9 is way too expensive for me

#

at least with the resell price

#

iPhone has a higher risk of not working in Russia currently

soft osprey
#

if it isnt yes or y the else should trigger but it proceeds to ask weight

primal shadow
#

But I did go from a $100 motorola

vocal basin
#

presumably all the ads xiaomi phones have are paying for their low price

primal shadow
#

It was a nice step

#

It made financial sense

amber raptor
vocal basin
#

I considered getting a Motorola phone of around the same price as the Pixel

amber raptor
#

China is another place that could start happening

primal shadow
#

$530 or so for a year of service + a phone, instead of my old rate of... 396 a year for service

#

and next year my service will be significantly cheaper, since I won't have a phone bundled into the price

soft osprey
primal shadow
#

help us help you

#

answer the question instead of repeating the request

#

🙂

#

then we can do more for you

amber raptor
#

Let him do his own homework

wind raptor
#

if mood.upper() == "Y"or"YES": It's this line

#

or doesn't work like that

vocal basin
#

@rugged root maybe that's Spanish

wind raptor
#

you need to restate the argument

#

if mood.upper() == "Y" or mood.upper() == "YES":

vocal basin
#

out of recent phones seems like Pixel are the only ones that are available here

primal shadow
#

I prefer if thing in list

#

isntead of if thing == one or thing == two or thing == three

vocal basin
#

uppercasing is a bit more canonical given the history of character sets

#

you just remove a bit

soft osprey
vocal basin
rugged root
#

I like if "yes".startswith(mood.lower()):

vocal basin
#

though probably a tuple or a set instead of a list

soft osprey
wind raptor
#

No

wind raptor
#

Which is why is doesnt

soft osprey
#

see if it works

languid scaffold
#

also jus lyk even if you type ''w'' for weight conversion it still pulls out a calculator

wind raptor
#

!or-gotcha

wise cargoBOT
#
The or-gotcha

When checking if something is equal to one thing or another, you might think that this is possible:

# Incorrect...
if favorite_fruit == 'grapefruit' or 'lemon':
    print("That's a weird favorite fruit to have.")

While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.

So, if you want to check if something is equal to one thing or another, there are two common ways:

# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
    print("That's a weird favorite fruit to have.")

# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
    print("That's a weird favorite fruit to have.")
wind raptor
#

check this out @soft osprey ^^

soft osprey
rugged root
wind raptor
#

No problem!

rugged root
#

Or what do you mean

vocal basin
rugged root
#

Oh wait what?

#

I guess that's not terrible if you want it as your default, though

#

Didn't think about that

languid scaffold
#

'' vs ' '

primal shadow
#

Home defense?

#

With an AR15?

#

lol

#

Shotgun or a pistol...

#

maybe an SMG but that's just... lol

vocal basin
primal shadow
#

More like CQ Offense

languid scaffold
#

i see what he did there

primal shadow
#

Why is Microsoft shitty?

soft osprey
# wind raptor No problem!

bro now it wont ask me if i wanna use the calculator after i chose the weight converter it just ends after telling me the weight

primal shadow
#

The 90's called, we foudn out then

#

not much has gotten better since

#

overall they've gotten worse?

vocal basin
primal shadow
#

github, code stealing for AI

#

how generous of them

#

Ah

#

good raitonaly

#

No, I'm saying shittiness is shittiness

#

🤷

upper basin
primal shadow
#

Microsoft is one of the biggest evils

upper basin
#

Makes a good resource.

primal shadow
#

IT does

#

they have private repo access

#

lol

vocal basin
#

Codeberg is a good place just not for big commercial stuff

rugged root
#

I'm legitimately asking, I haven't kept up with that

vocal basin
#

@sour imp they do it for AI not with AI

astral coral
primal shadow
#

I'm not

#

so let's not use "everyone" because as mall subset

#

the vast majority of internet users are not scraping the internet

#

the VAST majority

#

And just because some people do not care about the standards an expectations, does not make it ok

#

no matter how big these assholes are

#

the "lesser of two evils" is such a strange way to justify terrible behavior

#

how about "say no to evil"

vocal basin
#

"maybe we should unSEO our websites"

primal shadow
#

When discussing shitty business practices

vocal basin
#

ChatGPT is very highly priced

soft osprey
wise cargoBOT
primal shadow
#

$200 is so much for a consumer!

vocal basin
#

expensive and not profitable => others are very unlikely to be profitable either

primal shadow
#

Because people won't pay $500 a month if it's not beneficial

#

And?

#

Everyone has outside investors...

#

all these AI startups]

#

fighting for funding

#

not from magic portals, from VC

vocal basin
#

how much of Chinese AI companies' finances are government subsidies pithink

primal shadow
#

Why should they not be chatting with us?

#

Scaling can be a bitch

#

that's where profits fall

#

If they haven't scaled to infinity

#

then it doesn't count for rabbit

#

Nope, it's impossible

primal shadow
#

you're wrong, he's right

#

that's it

#

There's no profitable unicorns

#

If you win the argument with Rabbit, you should be at work

#

lol

primal shadow
#

winning a battle with Rabbit

#

👆

languid scaffold
#

🍉

primal shadow
languid scaffold
#

🍗

#

vocal basin
#

investors not caring about profitability during initial investment is quite a common thing

primal shadow
#

No money

#

Gotta spend to make

languid scaffold
#

scared money dont make money

amber raptor
#

Sure but if you have profitable AI company, investors should be lining up to chuck money at you to scale to the moon since current companies are losing money at insane rate

vocal basin
#

nothing bad with being late at adopting a technology

languid scaffold
#

does china have the real ai

vocal basin
#

Deepseek was trained within China, but training data for it was questionably sourced

primal shadow
#

No one has real AI

#

So paying several people a few hundred k a year should be easy

#

since they're making a profit

#

This is madness IMO

amber raptor
#

What is madness

primal shadow
#

Your demands

#

and expectations

#

"Scale to the moon"

#

means not millions?

#

I imagine billions if we're to the moon

amber raptor
#

Scaling as in it seems to be beyond small business

upper basin
#

Fancy autocomplete?

amber raptor
primal shadow
#

AI does what?

#

What can I rely on AI for?

upper basin
#

Ok.

languid scaffold
#

i personally dont thinks its ''better'' prolly just more modern imo i could be wrong tho

#

idk much abt ai

open moth
#

i wanna cry so hard rn
i had to spend 4 hours debugging code. at last realised i was using wrong endpoints.

vocal basin
#

@wind raptor @rugged root I think something has has gone wrong lmao

amber raptor
#

Someone took out role check?

astral coral
#

@vocal basin !voice :L