#voice-chat-text-0

1 messages · Page 353 of 1

vocal basin
#

so that it provides noise in the output, just for fun, influences absolutely nothing

#

add entertainment into the compiler

lavish rover
vocal basin
#

I've just realised I have another cursed codebase to shove into the AI

#

this time with 0 docs to begin with

vocal basin
#

perfection

vocal basin
#

!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.

vocal basin
#

okay

#

I wonder if those are even up-to-date enough to know what RPITIT is

sour imp
vocal basin
#

RAM getting somewhat high usage percentages

#

(((I know this is not physical RAM and not actual usage)))

vocal basin
#

300 iq comment right there

#

isn't even correct

#

or rather entirely irrelevant

#

on the "example of writing code" level of irrelevant

#

i uh

#

accidentally interrupted it

#

all the output

#

gone

sour imp
wind raptor
#
0 0 0 0 4 4 4 4 4 4 4 4 4 0 0 0 0 0 0
0 0 0 4 1 1 1 1 1 1 1 1 4 0 0 0 0 1 0
0 0 4 1 1 1 4 1 1 1 1 1 4 0 4 2 1 0 0
0 4 1 1 1 4 1 4 1 1 1 1 4 4 4 2 2 1 0
0 0 4 1 1 1 4 1 1 1 1 1 4 0 4 2 1 0 0
0 0 0 4 1 1 1 1 1 1 1 1 4 0 0 0 0 1 0
0 0 0 0 4 4 4 4 4 4 4 4 4 0 0 0 0 0 0

@lavish rover

sour imp
lavish rover
sour imp
whole bear
#

What is the extension?

#

dm it to me

#

@lone mist

hearty knot
#

how about Roy G Biv

sour imp
sour imp
whole bear
lavish rover
sour imp
wind raptor
gilded echo
#

HUH

#

okay

#

thanks

#

are u kidding i cant talk cuz i didnt yap?

#

💀

gilded echo
#

animal experiments are shid

#

not cool

gilded echo
#

"here" where

#

SKULL

#

in germany they cost 5 euros per package

#

open it alone

#

i wanna yap

#

chromium >

#

:D

wind raptor
#

!stream 732291998274420828 1h

wise cargoBOT
#

✅ @sour imp can now stream until <t:1725766930:f>.

lavish rover
wind raptor
#

!stream 464388569566281728

wise cargoBOT
#

✅ @placid kernel can now stream until <t:1725765416:f>.

gilded echo
#

can i just ask here for code help :D

gilded echo
#

no worries

#

im doing my frist git repo, but i am confused what style.css is i figured it out ( i didnt )

#

lol more cringe i am making a custom theme for vscode

#

( anime )

#

im shy im just gonna ask here

#

but i am lost basically

wind raptor
#

!stream 464388569566281728 30M

wise cargoBOT
#

✅ @placid kernel can now stream until <t:1725769232:f>.

balmy venture
#

@placid kernel

#

@wind raptor

gilded echo
#

yea

#

but my problem is with the custom image im adding , im confused on where to put it

#

its in an image folder for now

balmy venture
#

@placid kernel

gilded echo
#

ahh but since i wanna make it public it has to be in the folder so the path is the image file

#

thats sick

#

🤝

balmy venture
#

can someone give me feedback on a text-based rpg ive been making? im 14 and need some feedback from some REAL devs :)

#

hahah thanks ive started python learning using grok

#

no its an australian thing

#

ill dm u the code :)

sour imp
#

!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.

balmy venture
#

wait hold up

#

use vscode?

#

its based off d&d

#

hope u like it :)

#

Sweet!!!! thats really cool!

#

are u running the game?

#

yep

#

im a dude

#

gulp

#

your alright bro!

#

not really... i watched a yt tut on how to do the battle loop

#

i didnt copy and paste yeah i just didnt really know how to start lol

#

yeah i need some more user freindly responses

#

yeah i appreciate it dude

#

ahh thats a good idea

#

yeah the main idea for the random was just in battle you can miss, crit etc

#

ok. im trying to make the code and the output a lot more readable

#

yeah i wrote all that down thanks for feedback. in terms of gameplay so far, anything i could add to story/

gilded echo
#

is there a shortcut to restart vscode?

#

tyty

#

mhm

#

💀

#

okay thanks

#

🤝

balmy venture
#

ill definately work on what you said, i also want to add a inventory to the game. on that shows the amount of gold u have and stat effects. as u said, this is a long term project so i can work towards these goals

sour imp
# balmy venture ill definately work on what you said, i also want to add a inventory to the game...

as a starter piece of code/recc.:

class Inventory:
    def __init__(self):
        self.items = {}
        self.gold = 0
        self.status_effects = []

    def add_item(self, item, quantity=1):
        if item in self.items:
            self.items[item] += quantity
        else:
            self.items[item] = quantity

    def remove_item(self, item, quantity=1):
        if item in self.items:
            self.items[item] -= quantity
            if self.items[item] <= 0:
                del self.items[item]
            return True
        return False

add more logic here but want to give you a starter idea
balmy venture
#

thanks mate! i have a little idea, but the only thing i have a problem i have is how i would call the inventory without user input

sour imp
balmy venture
#

ill try it out

gilded echo
#

goodnight kastien

balmy venture
#

haha thanks im a bit nervous some things i cant understand im tryna make it work

#

what are you working on @placid kernel

somber heath
#

👋 @scarlet zenith

quartz beacon
upper basin
#

Greetings Opal dear.

#

Hope you're having a nice day thus far.

vocal basin
#

obviously what you need is an embedded prolog runtime

#

(that's what the borrow checker and trait solver have, to some extent)

somber heath
#

Ooh.

#

!pypi pyre

wise cargoBOT
#

A framework for building scientific applications

Released on <t:1716272456:D>.

somber heath
#

Neat.

quartz beacon
#

@twin tiger

round stratus
vocal basin
#

yes it uses pickle

vocal basin
#

which is why you shouldn't load arbitrary models

#

@verbal zenith dtrace

#

erroring?

#

in control panel

#

there's a flag to enable dtrace

#

yeah it does the same as command most of the time

round stratus
twin tiger
#

nice

vocal basin
#

WSL+perf

#

I don't like mixing wsl with vsc

#

if you need vsc inside wsl, use docker

#

+nightly

twin tiger
#

Can i try small lm's on windows from a terminal with python/jupiter
will a 2080 super suffice

upper basin
vocal basin
#

@verbal zenith rustc --version

twin tiger
#

Can I train small-scale models from scratch?
like 500m params or less?

upper basin
#

What would be the type of the params?

vocal basin
#

brb

twin tiger
#

Or if it's easier maybe mistral or smth

upper basin
#

So, depending on what quantization you're using, it will indicate what amount of VRAM you need.

vocal basin
#

recently rust also started checking traits for if they're used

upper basin
#

You can use lower quantization (smaller parameter range of values, so less accurate) to fit your hardware.

#

Ok, so you have 8GB.

twin tiger
upper basin
#

More bits means more digits, which provides more accuracy.

#

For some context, you can also have a look at huggingface to see the conventional sizes.

vocal basin
twin tiger
#

I'm pretty sure it would be float32
I have 8gb vram, and 16gb ram

formal ember
#

no ones talking or i cant hear?

upper basin
upper basin
#

I actually have a code that calculates this iirc.

#

Though mine was for hosting cost, but you can just substitute the hosting hours with the number of hours to train.

#

I'll try to find it and send it to you.

twin tiger
#

DId someone imply pytorch outputs the weights only, but then something else is needed to convert it to full LM

#

Sure no worries

upper basin
#

You would usually just save the weights, and load them into a model when you want to host it.

#

Weights themselves are just a bunch of floats. You need to put them into the model to perform inference.

upbeat bobcat
#

Can I not make these comers round?

whole bear
rose lance
#

@terse rose

terse rose
#

Wassup?

upbeat bobcat
willow gate
#

@upbeat bobcat hello

upbeat bobcat
#

How are you?

willow gate
upbeat bobcat
willow gate
#

be back

stark river
#

skill issue

upbeat bobcat
somber heath
#

@warm forum 👋

#

@wraith helm 👋

wraith helm
#

I am fine how are you

#

@stoic chasm

#

F no one fell for rage bait

#

trying this on 3 different servers

#

I agree about it

#

js is a pschological SCP hazard

#

cognitohazard

#

js made me debug

#

That i missed parenthesis for a function call

#

2 hours straight

#

at least python tells me at runtime

#

js was like: UNDEFINED

somber heath
#

@indigo kindle 👋

wraith helm
#

my honest reaction after finding out that i was missing () for toArray: 🔪

#

this was back when I was learning to program stuff

stark river
wraith helm
#

I used to code in java 🙂

#

and since that day I hate JS

wraith helm
#

🤡

whole bear
stoic chasm
#

debugger;

wraith helm
#

Imagine using debugger for a 100 LOC

#

SIMPLE PROGRAM

#

just converting form data to json

wraith helm
#

😹

#

HAKI is overrated in onepiece

stark river
whole bear
somber heath
#

@river crescent 👋

wraith helm
stark river
#

Write modern js not ancient js

wraith helm
#

== and ===

#

exists 🤡

#

only way to fix js

#

is to rewrite js

#

and disable legacy support

stoic chasm
#

From ChatJippity

def numbers_up_to(n):
    yielding i for i in range(n)
whole bear
stark river
#

I was focusing more on error catching part rather than what sucks

wraith helm
#

okay

stoic chasm
#

yield from (i for i in range(n))

wraith helm
#

btw python has monads now?

wraith helm
#

😂

#

don't tell me whitespace is your fav lang

#

IS IT?

stark river
#

Favorite python. Most used js

wraith helm
#

*args and **kargs

#

are worse imo

#

it was confusing for me at start

wraith helm
whole bear
wraith helm
#

no

#

JS is in it's separate league

stoic chasm
wraith helm
#

corporates forces us to use JS

#

COPE-COPERATES

#

python is async? since when?

#

ya

#

BUT NOT async by default

#

makes no sense

#

?

stoic chasm
#
async def main():
    print('hello')
    await asyncio.sleep(1)
    print('world')
wraith helm
#

fast API FOR MONEY

#

i saw many job posting with fastAPI

#

and django

#

in requirements

#

?

#

Btw guys

#

how do you deal with

#

product mangers at your job

#

@quartz beacon we will call you Jikky

#

the postman

#

lmao

#

@stoic chasm just ignore

whole bear
#

!paste

wraith helm
#

@stoic chasm no you are not

#

usually when people say lib or dem

#

they usually means

#

extremist

#

@somber heath @stoic chasm just ignore it

#

let it go

somber heath
#

No.

wraith helm
#

time ain't gonna rewind

somber heath
#

You don't get to tell me to ignore this.

wraith helm
#

okay

upper basin
#

"It stands for Application Programming Inter- Oh ok."

stark river
#

what did i miss

wraith helm
cinder vale
#

is this internet beef?

stark river
#

oh that guy
i purposefully blocked him a long time ago
not bc he offended me
but so that i dont offend him.. bc he gets offended so easily.. or pretends to get offended

wraith helm
#

no more like dwelling on past

wraith helm
cinder vale
#

you misgenered?

wraith helm
#

in 15 sec yes and then they leaving before @stoic chasm could clear up things

stark river
#

no

formal ember
#

weird world to live in tbh.

quartz beacon
#

cool.

stark river
#

he just watched a few wrong internet videos and now he thinks getting offended easily is the correct way to behave

quartz beacon
still herald
#

@upper basin

upper basin
still herald
#

I went through that ocw

quartz beacon
still herald
#

And it's not practical

#

It's just theoretical

upper basin
quartz beacon
#

and also saying i'm "easily offended"

upper basin
#

People call me AC, but I'm not an air-conditioner. I know they mean no harm, so it's silly to get upset.

quartz beacon
#

-_-

upper basin
still herald
#

Yo AC

upper basin
#

I mean no offense to you, but changing the entire way we speak is quite difficult, especially when we're talking, not typing.

supple dune
#

And not make a huge deal over it

wraith helm
#

My A.C needs GAS

upper basin
#

You need to know that we are your friends, and don't mean to offend you, so if we say sth like "bro" or "man", it's not to misgender you. It's simply how we've developed a habit to speak.

wraith helm
#

@still herald that will cost you 1 TRILLION $

upper basin
#

Hemlock has said this before too. Hanlon's razor is literally for moments like these.

whole bear
upper basin
#

If we say sth you don't like (even when it's as simple as just 49 saying "ahh man") you can just assume ignorance, and move on. It's rarely malice.

whole bear
supple dune
# upper basin You need to know that we are your friends, and don't mean to offend you, so if w...

There's also the reality that gender is socially attributed based on observed signaling. If you're signaling ambiguously, people will interpret ambiguously. If you're signaling in line with a gender you're not, then people will interpret your gender as consistent with your signals. And if they're nice? They'll adjust when you correct them. However that gender perception is a reflexive property, so you can't expect people to immediately completely recontextualize you mentally, and never get it wrong, after just telling them once.

upper basin
#

Once you understand we don't mean malice, you will be much less stressed out, and can actually relax when you join the vc.

whole bear
stark river
#

abay bsdk chota likh

supple dune
#

Psh, coding is the only thing in life

#

.>

wraith helm
upper basin
supple dune
#

Fair enough.

#

nahhh

#

lol

upper basin
#

I will call Jikky they if they wish, but I may slip every now and then and say he, but if you're going to get rude and upset just because someone said he or man or guy, it'll make it very hard for everyone.

supple dune
#

you're fine, other than your depression

#

I'd offer a hug, but that'd be awkward cuz this is the internet. But the sentiment is there.

whole bear
#

hi

wraith helm
#

@still herald a suggestion from me. just pick a damm thing and just do it

upbeat bobcat
supple dune
#

syllabus?

whole bear
#

whats up?

wraith helm
supple dune
#

I'm so confused too @still herald

whole bear
supple dune
#

Ah, that's the essence of getting good

#

<.<

wraith helm
supple dune
#

problem solving and research skills

whole bear
#

grt

supple dune
#

having a good core problem solving methodology, then working on your information capture and search skills

supple dune
#

is key

#

know where to look to find the info you want

#

you don't need to know it all

#

if you don't like learning things, don't learn things

#

it's that easy

#

the world needs walmart workers

wraith helm
#

LMAO

#

the roast

supple dune
#

It's hard for everyone

stark river
supple dune
#

literally everyone goes through this valley of miserableness

#

so you're not alone

upbeat bobcat
supple dune
#

everyone in this chat has experienced what you're going through

whole bear
#

ik

wraith helm
#

@still herald what he says is tru @stoic chasm

whole bear
#

but idk

wraith helm
#

what you know but you don't know?

whole bear
#

ourself

#

hehehe

wraith helm
#

lmao

supple dune
#

oof

whole bear
#

lma

supple dune
#

💔

whole bear
#

heartbreak

#

tf

supple dune
#

buying data instead of scraping it yourself

#

tragic

#

.>

whole bear
#

buying is expensive?

supple dune
#

That's called capitalism

#

<.<

#

All jobs are this

#

at their core

whole bear
#

or its cheap

wraith helm
#

and looting things is crime

supple dune
#

either you're the one making the money

#

or someone is making money off of you

#

.>

whole bear
#

do scraping n make money

wraith helm
still herald
supple dune
#

it's the raw material for decisionmaking

whole bear
#

buyers

supple dune
#

that's excellent

whole bear
supple dune
#

python has some wonderful web scraping libraries

whole bear
#

companies buy data alot

#

startups

#

new onw

supple dune
#

it sounds like you're more focused on the outcome, than on the capabilities you're gaining

wraith helm
#

@still herald just make something. a lots of people making at something

supple dune
#

if you focus on the capabilities more, you'll be able to pivot to better outcomes

whole bear
#

yeah

#

right setesh

wraith helm
#

man I honestly hate this job market

#

I want to switch

supple dune
#

I think motivation is often a challenge

whole bear
#

yeah do startup

wraith helm
#

I am tried of shit at my current company

tawny knot
whole bear
#

i am switching to finance

#

most probably

supple dune
#

but coding is a capability not an outcome

#

no matter what you want to do in life

wraith helm
#

@stoic chasm @still herald but it is related to hackers

supple dune
#

coding helps you do it better

whole bear
#

become mafia and make money

supple dune
#

#FightClub

wraith helm
supple dune
#

Coding is deadlier than nukes >.>

whole bear
#

i mean start service provider companies get work done in less and make more

wraith helm
#

will help me to demand

supple dune
#

nukes are chumpshit

wraith helm
#

1 TRILLION DOLLARS

supple dune
#

drones > nukes

#

mass murder <<< selective mass murder

#

<.<

stark river
#

"one death is a tragedy. one million deaths is a statistic" - stalin

whole bear
#

..

wraith helm
#

thats what my boi andrew tate said @stoic chasm @still herald

whole bear
#

ok

wraith helm
#

@stark river

supple dune
#

okay, gotta go make shaw lunch

wraith helm
#

where do you live?

supple dune
#

gonna take off for a bit

#

bye folks!

stoic chasm
#

mmm

supple dune
#

it's totally your fault @still herald

#

this is why nobody likes you

wraith helm
#

man this guy againt went afk @stark river

supple dune
#

you always mess everything up

#

forever

wraith helm
#

you existining @still herald

supple dune
#

:p

#

lol

whole bear
#

:p

supple dune
#

have fun

whole bear
#

lol

wraith helm
#

you living 😂

supple dune
#

don't be so sad

whole bear
#

u too

supple dune
#

you're a nice creature

whole bear
#

whom

#

sara

supple dune
#

yes

wraith helm
#

damm

whole bear
#

damn

stark river
#

first tell where u live 🫷

wraith helm
stark river
#

if you cant tell then dont ask anyone else . simple rule

wraith helm
#

jk

whole bear
tawny knot
whole bear
wraith helm
whole bear
#

😂

wraith helm
#

@stark river was asking cause you gave gali in hindi

#

😂

stark river
#

yea so

wraith helm
#

nothing just ignore

#

just got curious seeing someone write in hindi

#

and being a nerd

#

bye

whole bear
#

what is hindi?

#

anyone tell me

#

plz

wraith helm
whole bear
#

ok

#

u indian?

wraith helm
#

ya

whole bear
#

ok

#

nice

#

i like modi and meloni

#

together

wraith helm
#

I KNEW IT

#

LMAO

whole bear
#

i just saw reels got viral

#

just back

vocal basin
#

@lavish rover doesn't standard lib ship with symbols by default?

#

I remember them having to cut those out in some update

#

oh wait wrong chat

#

okay nvm it was the opposite

vocal basin
vocal basin
#

damn the internet is confusing

sour imp
whole bear
sour imp
sour imp
#

FACTS

whole bear
#

it says -2+2=5 which is false

#

we can prove this because

#

-2 and 0 have a differential of -2

#

2 and 0 have a differential of 2

#

since -2 and +2 are of same value when looked at in modelus, for example |-2| = |2|

#

we can say that the only difference is the sign (+ and -)

#

proven by the axiom of
𝒱₁ = -2
𝒱₂ = +2
|𝒱₁| = |𝒱₂|

#

sooooo

#

basicly they are equal

#

further proving it by the axiom of:
∓𝒩+𝒩 = 𝟘

#

SOOOO

#

Now we know that -2+2 is 0

#

now what we are given is ∓𝒩+𝒩≠5

#

SOOO

#

Now we can prove that if 𝒩=2 and the result is 5, using the formula we should be able to have a difference of 𝕒𝕟𝕤-0=0 when applying the formula ⨍(𝓃) = ∓𝓃+𝓃, so ⨍(2) should be 0, so if ĵ = ⨍(2) then Δĵ = 0, Δĵ - ĵ should be 0 but instead its 5!!!!

#

SO THE ANSWER IS WRONG

#

𝔓𝔯𝔬𝔳𝔦𝔫𝔤 𝔬𝔫𝔠𝔢 𝔞𝔫𝔡 𝔣𝔬𝔯 𝔞𝔩𝔩 𝔱𝔥𝔞𝔱 -2+2 𝔡𝔬𝔢𝔰 𝔦𝔫𝔡𝔢𝔢𝔡, 𝔲𝔫𝔡𝔢𝔯 𝔞𝔫𝔶 𝔠𝔦𝔯𝔠𝔲𝔪𝔰𝔱𝔞𝔫𝔠𝔢𝔰 𝔞𝔫𝔡 𝔬𝔲𝔯 𝔠𝔲𝔯𝔯𝔢𝔫𝔱 𝔲𝔫𝔡𝔢𝔯𝔰𝔱𝔞𝔫𝔡𝔦𝔫𝔤 𝔬𝔣 𝔪𝔞𝔱𝔥𝔢𝔪𝔞𝔱𝔦𝔠𝔰, 𝔡𝔬𝔢𝔰 𝔫𝔬𝔱 𝔢𝔮𝔲𝔞𝔩 5!

#

@sour imp

sour imp
#

its 3

whole bear
# sour imp its 3

I swear, to our lord and savior, 𝓜𝓞𝓣𝓗𝓔𝓡 𝓕𝓤𝓒𝓚𝓔𝓡

#

I just spent the last 15 minutes proving that -2+2 is not 5!!

#

LMFAO

#

Proving the Falsehood of "-2 + 2 = 5"

The statement “-2 + 2 = 5” is clearly false, and we can easily prove this.

First, consider the absolute values of -2 and +2:

  • The absolute value of -2 is 2, and the absolute value of +2 is also 2. In other words, when considering their magnitudes, |-2| = |2|, so the only difference between these numbers is their sign.

Next, based on the well-established axiom that:

  • For any real number N, we have -N + N = 0.

Applying this axiom:

  • Let N = 2, then -2 + 2 = 0. Therefore, the expression -2 + 2 equals 0, not 5.

Now, we are presented with the false claim that:

-2 + 2 = 5

This contradicts the axiom, as the correct evaluation gives 0, not 5.

Further proving this, consider the function f(n) = -n + n. Substituting n = 2 into this function yields:

f(2) = -2 + 2 = 0

The difference from the expected result is:

Δ(f(2)) = f(2) - 5 = 0 - 5 = -5

This shows a clear discrepancy between the true result (0) and the false claim (5).

Thus, we can conclusively state that:

-2 + 2 ≠ 5

This irrefutably proves that under any circumstances and within the framework of mathematics as we understand it, -2 + 2 does not and cannot equal 5.

spark girder
#

@sweet sorrel I haven't hit the requirements to voice verify

#

Kinda just in here waiting for someone to come by

#

I am, I'm working on it rn lol

#

But I also need to be active for "3 10-minute blocks"

#

Which I assume they mean like 3 periods where I've sent a number of text in 10 minutes

#

Sucks cause I'd love to talk, it's nice to talk to people. Sucks just typing

somber heath
#

@vivid prism 👋

vocal basin
#

@verbal zenith iter_mut?

#

@verbal zenith first, remove shrink_to_fit

#

then try running what you have again

#

@verbal zenith .push locks an RwLock each time?

#

that's way worse than reallocation

#

oh wait

#

it's vec of locks not a lock of a vec

#

.iter_mut then .retain

#

and no shrinking

#

shrinking is only for when the system is under memory pressure

#

and not for a frequently modified value

#

you're rediscovering JS memory leaks

#

or rather reinventing

#

(JS closures capture the whole outer scope)

#

@verbal zenith you can collect when the number of objects exceeds k*(number of objects after last collect) with k being something like 2

#

so that it's not so frequent

#

don't capture the scope, capture values

#

don't go the JS way

#

pull what you reference from inside the function

#

!e

a = 123
def f():
    print(a)
print(dir(f))
wise cargoBOT
# vocal basin !e ```py a = 123 def f(): print(a) print(dir(f)) ```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

['__annotations__', '__builtins__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__getstate__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__type_params__']
vocal basin
#

!e

a = 123
def f():
    print(a)
print(f.__globals__)
wise cargoBOT
# vocal basin !e ```py a = 123 def f(): print(a) print(f.__globals__) ```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

{'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7f3a1b1acda0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/main.py', '__cached__': None, 'a': 123, 'f': <function f at 0x7f3a1b3e6ac0>}
vocal basin
#

hmm

#

!e

a = 123
b = "do not capture"
def f():
    print(a)
print(f.__globals__)
wise cargoBOT
# vocal basin !e ```py a = 123 b = "do not capture" def f(): print(a) print(f.__globals__)...

:white_check_mark: Your 3.12 eval job has completed with return code 0.

{'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7fe14fcc8da0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/main.py', '__cached__': None, 'a': 123, 'b': 'do not capture', 'f': <function f at 0x7fe14ff02ac0>}
vocal basin
#

okay so that's just from the module

#

yeah I know

#

just checking for what globals shows

#

traverse all unknown variable accesses from inside the function, yes

#

(in Rust syntax)

|| {
    println!("{a}"); // captures a
    let b = 123;
    println!("{b}"); // does not capture b
    let c = |d| println!("{d}"); // does not capture d
}
#

I think Python will default to reading from globals

#

that's why function order definition doesn't matter

#

although

#

hmm

#

for inside the function, it knows all locals

#

so it can infer

#

!e

def add():
  def inner(y):
    return x + y
  x = 1
  return inner

print(add()(2))
wise cargoBOT
vocal basin
#

this is what you meant I assume

#

otherwise inner captures nothing

verbal zenith
#

!e

def add():
  def inner(y):
    return x+y
  x = 1
  return inner

print(add()(2))
vocal basin
#

as one of the options:
when parsing a statement/expression, pass in what the outer scopes contain;
after parsing, it returns what variable names it references

#

I used to work on a project where we did that, yes

#

with sets

#

gc is for dealing with cycles

#

@verbal zenith you know that weak count is always at least 1, right? at least internally

#

all strong references together are considered as holding a single weak reference

#

when strong count hits 0, the value is dropped in place

#

when weak count hits 0, the ArcInner is deallocated

vocal basin
#

@verbal zenith inside of arc?

#

mutate

#

make_mut

#

but

#

that won't affect other values

versed heath
#

!paste

azure anvil
versed heath
jovial iris
#

Hello

#

what kinda noise ?

#

Ohh im on some third party client rn

#

streaming is pain in sass in linux so for that.

jovial iris
#

oscar sounds like a dogs' name.

rugged root
#

Does kind of, ye

jovial iris
#

is he using vim keybindings ?

long light
#
print("test")```
gentle flint
long light
#
print("test")```
#

!e

print("test")```
wise cargoBOT
jovial iris
gentle flint
#

o

fair vale
#

why can i still not talk ive been in this discord for like almost a week now???

wise cargoBOT
#
Voice verification

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

vocal basin
#

@wind raptor I added a very cursed feature to that grid I made

#

so that makes the hovered square bigger

#

but still keeps everything else's proportions square

wind raptor
#

@lavish rover

somber heath
#

@mental cape 👋

mental cape
#

i cant speak im sorry

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.

mental cape
#

yeah ik

#

just too lazy

#

yk

#

actually you good python?

#

you good with python???

#

i mean like advanced databased managment

#

using sqlite n stuff

#

oh

#

ohk

vocal basin
somber heath
mental cape
#

yeah ill try them too

vocal basin
#

for sqlite I mostly just recommend reading the docs

#

of sqlite itself specifically

mental cape
#

wait up ill explain

#

cherry no speak brotha

#

just

#

alive

#

maybe

#

woke up?

#

ive been awake

#

i didnt WAKE up

#

4 days straight of cpp and getting static-electrocuted

#

no sleep

vocal basin
#

not just separate tables?

mental cape
#

oh

#

idk how to do thaT

sour imp
#
I'm working on a school communication system called CEPA (Computerised Enhanced Public Announcement), which aims to manage teacher announcements and timetables across classrooms. Each classroom has a device 'CEPA Device' connected to a central master (CEPA Master), and announcements are sent based on teacher location data 


(Fixed Time Table - FTB, Adjustment Time Table - ADJ, Teacher Presence Table - TPT).

I need help with creating and managing multiple Python-based databases and scripts for-

Creating the Fixed Time Table (FTb)- Input and store weekly schedules for all classrooms.
Handling the Adjustment Time Table (ADJ)- Manage daily changes (teacher absences or replacements).
Managing the Teacher Presence Table (TPT)- Track whether each teacher is present or absent daily via RFID scanning.
Generating the Teacher Location Table (TLT): Combine FTB, ADJ, and TPT to track real-time teacher locations for accurate message delivery.
Automating Announcements- Send period-chamge announcements based on real-world time, and direct teacher-specific messages to the correct classroom based on TLT.
I would appreciate assistance in building the logic for database management, user interfaces, and Python-to-Arduino (ESP8266) communication.
mental cape
#

oooohhhh wow

#

could you write that in chat?

vocal basin
#

if you're making a de-novo system, you probably need multiple tables not multiple DBs

sour imp
vocal basin
#

```text
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
```

mental cape
#

ooooh ok noted

#

but what's de novo?

vocal basin
#

new

#

from scratch (-ish)

mental cape
#

uhm it means new? de-novo = og?

vocal basin
#

as opposed to continuously maintaining and upgrading an existing system

mental cape
#

oooo yeah thats right

#

back to topic?

#

yes i need multiple tables

vocal basin
#

SQL has JOINs for pulling data from multiple tables in a single SELECT statement

mental cape
#

but i also want them to be cross referenced w each other to determine a person's location

somber heath
#

@gray grove 👋

vocal basin
vocal basin
#

I know higher-level and lower-level details of DBs but not the SQL level

#

somehow

somber heath
#

!voice @gray grove

wise cargoBOT
#
Voice verification

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

vocal basin
#

maybe I just don't like the language

mental cape
#

@vocal basin hey any help is still help

#

want the project details yopu guys?

#

you*

sour imp
#

!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.

mental cape
#

this is sort of simple low level start up for my own school

#

that...is not viable

#

nor is it cost effective

#

in terms of hardware costs the whole school can be equiped for about 300-350 dolla

#

us

#

ok so i just had >2000 word block and just pasted it in smth called the paste bin?

#

how do i get you guys to check it out

#

?

somber heath
#

The instructions are in the above.

mental cape
#

this works?

#

just for context i live in India

#

so that why theres rupees

#

@sour imp wont that require a big, BIG team to do?

fair vale
#

!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.

mental cape
somber heath
#

@dawn sigil 👋

mental cape
#

he gon tho

dawn sigil
#

hello

mental cape
#

hey guys

#

read the bin yet?

#

ummmm

fair vale
mental cape
#

it would be
alien_color = input("What is the color of your alien?\t")
if alien_color == 'Green' or 'green':
print('Great Job, 5 Points')
elif alien_color == 'Yellow' or 'yellow':
print('Good job, 2 Points')
else:
print('Wrong Answer, Try Again Please')

somber heath
#

!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.")
mental cape
#

correct me if im wrong

#

ohhhhh

#

ohhhkkk

#

yeah i forgot part after 'or'

#

hey

sour imp
#

hey

mental cape
#

have you read the file yet?

#

No im not asking you to help but give me some opinions on this

#

because im going ffor it solo

#

no no need to apologize

#

i was just a little too optimistic thinking everyone would have the expertise in this specific field

#

im sorry

somber heath
#

@vale salmon 👋

vale salmon
mental cape
#

look i have already done the arduino and hardware side of things. AND i also have already made proper planning map FOR this. the first prototypes have already being made and basically everything other than this database handling

#

i worked w the arduinos and girlfriend made the entire prototype's code in python. the script asked for an input using tkinter as gui and then used the serial library to send them to an arduino which then frwd it to all the CEPA's wirelessly

#

but she has no experience in this too

#

i mean the db handling stuff

#

and she cant help because of her tests so

sour imp
mental cape
#

had to explore other options

sour imp
mental cape
#

welp imma go too bye guys thanks for the help

somber heath
#

@storm smelt 👋

willow gate
#

@somber heath hello!!!!!

upbeat bobcat
#

@quartz beacon It is made my brother who is graphic designer

#

sword

quartz beacon
#

@somber heath are you coming back? 🥺

upbeat bobcat
#

it is louder than usual

somber heath
#

@vocal basin 👋

vocal basin
#

the other one

#

did it default to pinging me because recent?

#

the UI

somber heath
#

@grim hatch 👋

vocal basin
#

cat

#

living there

#

Voronezh

somber heath
#

https://en.wikipedia.org/wiki/Voronoi_diagram I wonder if there's a relation, here.

In mathematics, a Voronoi diagram is a partition of a plane into regions close to each of a given set of objects. It can be classified also as a tessellation. In the simplest case, these objects are just finitely many points in the plane (called seeds, sites, or generators). For each seed there is a corresponding region, called a Voronoi cell, c...

vocal basin
#

iirc that's a colour

vocal basin
somber heath
#

@sterile pumice👋

vocal basin
#

for watching YouTube, I use Tor

#

works well enough

#

I'm content with 1080p60fps, so not complaining

somber heath
#

@tawdry mica 👋

vocal basin
#

most don't support; most just don't care

tawdry mica
somber heath
#

brb

#

@kind trout Here we go.

#

I did that the other day, too.

vocal basin
#

alive fish is better for logistic purposes

#

, quite cynically

#

average as in mean or median

#

@quartz beacon "average <human description> is quite mean...
because 'mean' is a synonym for average"

#

statistical humour

quartz beacon
#

bebe hemlock

upbeat bobcat
#

hemlock is in pfp

quartz beacon
vocal basin
#

I, for some time, had pronouns set to AF/AF on some server (before that server got deleted lmao)

rapid chasm
quartz beacon
quartz beacon
#

(i'm the dudes who use linux :3)

whole bear
#

Nonchalant

whole bear
obsidian dragon
unique holly
#

hello

#

how can i chat in voice chat ?

obsidian dragon
#

!voice @unique holly

wise cargoBOT
#
Voice verification

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

unique holly
#

thankyou mister

quartz beacon
unique holly
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

whole bear
unique holly
#

guys, I'm voice verified, but still can't chat in voice chat, any idea why?

quartz beacon
whole bear
unique holly
#

oohh okay

#

lemme try

somber heath
#

@atomic gust 👋

quartz beacon
whole bear
quartz beacon
somber heath
#

Remembering you're also dealing with things at the hexadeximal level, often, so values from 0-255 inclusive.

somber heath
#

So if you need to pick out things at the bit level, it can get annoying.

versed heath
somber heath
#

Ukulele.

versed heath
#

@quartz beacon so this is one register and there is going to be more of them it is 64 bits long and i want to calculate how many bytes the thing is lets say i have 100 of these zells

somber heath
#

@whole bear Bits in a byte.

#

bbl

quartz beacon
#

he fel 😔

versed heath
whole bear
versed heath
somber heath
#

@molten pasture 👋

#

@quasi frost @jaunty rain 👋

jaunty rain
#

#

Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:

You have sent less than 50 messages.
You have been active for fewer than 3 ten-minute blocks.

somber heath
#

@violet ibex 👋

violet ibex
#

unfortunately i dont have perms to unmute myself

#

@rich bison aaj yaha

#

hum to aae rehte hai

somber heath
rich bison
#

alright

violet ibex
rich bison
#

ok im verified now cool

somber heath
#

@jagged herald 👋

#

@torn rain 👋

violet ibex
#

@torn rain 👋

jagged herald
#

yo

#

i cant speak

#

no roles

upbeat bobcat
#

!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.

violet ibex
#

@jagged herald 👋

jagged herald
#

You are not currently eligible to use voice inside Python Discord for the following reasons:

You have been on the server for less than 3 days.
You have sent less than 50 messages.
You have been active for fewer than 3 ten-minute blocks.

#

I ve been doing automation in Java, API

#

REST ASSURED framework

#

i m learning Python, i want to make something cool using maybe OpenAI

#

i already went through syntax tutorial

#

i have no experience with AI

#

only OOP

#

Im not bad with math, but im not also trying to build AI. I want to use AI APIs to do stuff with my DB maybe using LangChain framework

#

Oh, i have no issue with that, i have 5 years of OOP experience. I went through the python syntax

#

it took me 15 minutes to understand differences in Java syntax to python and use the logic i had with Java and c#

#

im familiar with the basics i mean

#

my job is to make automation API scripts

#

but i wanna make something outside of that, some cool little project using openAI

#

like using the already made APIs instead of me creating the AI if i dont sound confusing

#

You mentioned a Discord bot, i think i d actually start with making one. That sounds interesting enough

#

i see i see

#

thanks

#

cool, i ll look around and see whats gonna help me

#

What made me confused is that in py, you dont need to set the int, string etc to a variable

#

im not sure if that is like advanced or could be confusing from the readability perspective

rugged root
#

Bit of both at times

#

Benefit is that you don't have to futz with it

jagged herald
#

Like obviously its smart that py recognizes every type, but also when im looking at it, i dont know what is supposed to be

#

im using intelij ultimate

#

its pretty good

#

what did you say?

#

pywhat?

rugged root
#

PyCharm

jagged herald
#

ah, nah, jsut intelij

rugged root
#

They also have a community edition

#

@unique holly

unique holly
#

Oh okay

#

Thanks

rugged root
#

!stream 779371565501513759

wise cargoBOT
#

✅ @azure anvil can now stream until <t:1725980049:f>.

willow gate
#

@still herald its bug i think i also face same issue

rugged root
midnight birch
vocal basin
#

@rugged root
SassaaS?

#

🐍 language

rugged root
#

Snek as a Ssssssssservice

vocal basin
#

make another css preprocessor, name it HISS

#

compiler hisses each time it's angry

rugged root
#

Oh I loooove it

#

"Wait, why does your compiler have a sound file"

#

"Don't worry about it"

ruby fossil
#

how do i get the permission to speak in VC?

rugged root
#

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

ruby fossil
#

awesome thank you!

vocal basin
#

I forgot scrum was even real

#

fake agile as a framework

stuck furnace
#

Yo 👋

ruby fossil
#

okay too easy will do!

sage basalt
#

anyone wanna make a project together that will like look shiny in a resume?

vocal basin
rugged root
#

Do you have plans for said project or....

ruby fossil
#

what kind of project?

jovial iris
#

Gosh, love manjaro :0

sage basalt
vocal basin
#

finally found it

sage basalt
sage basalt
vocal basin
jovial iris
#

pip ? python3-pip ?

rugged root
#

Performance Improvement Plan

#

Pretty much your job saying "Get your shit together or get out"

ruby fossil
jovial iris
silk dust
ruby fossil
#

the tech start up I was at just had mass layoffs after telling all of us we were getting bonuses xD

sage basalt
ruby fossil
sage basalt
#

on both cases i have like 5 years of exp

#

what should be better?

#

website might be great

ruby fossil
sage basalt
#

wanna build together?

#

@rugged root can you give some ideas that actually will look great?

jovial iris
#

Money is Passion.

rugged root
peak depot
#

thanks again @upper basin ❤️

versed heath
vocal basin
#

@stark river how about you wait those five years and let him actually do what's important now

still herald
#

Who is causing toxic environment?

#

I'll beat that person, tell me the name

rugged root
#

For context, Davis is having an issue with toxicity at his work place. We're looking at the situation from different perspectives

still herald
#

Hmm oh

upper basin
still herald
#

Davis be toxic too

vocal basin
#

@rugged root "League is still a bit behind from Dota in that regard"

rugged root
#

Smaller community to a less approachable game

vocal basin
#

if everyone at work is behaving whatever bad way and you care about noone there, just behave as what makes you feel better;
to some, being toxic is the way to make themselves feel less bad;
but to many it's not

rugged root
#

@peak depot We finished

vocal basin
#

Markdown mentioned

#

install markdownlint

rugged root
#

!stream 425552190283972608

wise cargoBOT
#

✅ @peak depot can now stream until <t:1725987784:f>.

vocal basin
#

headers generate anchors

#

you can refer by them

#

@peak depot [^3]

rugged root
#

@verbal zenith What is your avatar. I see it's Sonic but I can't quite see it right

vocal basin
#

cat shark

#

@plome iirc footnotes generate reverse links by default

#

might depend on the renderer

stuck furnace
vocal basin
#

@gentle flint @peak depot on some renderers it puts this ↩︎ thing

#

when doing [^footnote] in use and [^footnote]: in definition

vocal basin
gentle flint
vocal basin
#

okay time to nuke the project and uninstall mkdocs

#

lmao

still herald
#

I don't wanna be in vc, i just wanna chat here

#

I want to burn away the world

rugged root
#

Fair enough

#

You can chat here, nothing wrong with that

vocal basin
still herald
#

except I don’t since I hate fire

peak depot
#

i think the numer would be better

vocal basin
#

there is the number

#

1 in that case

#

hmm

#

although

#

ig what you do there is not really footnotes

#

yeah, then anchors

vocal basin
#

ig it tries to keep it standard-adjacent

#

@rugged root what about decremental games

still herald
#

Can I tell a secret

rugged root
#

What is said secret?

ruby fossil
#

lets hear it

vocal basin
still herald
#

Since I'm busy doing a crazy working hour job from last month, i don't remember crying. As I'm a crybaby I haven't cried from last month properly

stuck furnace
#

I found out the other day that barbers get hair splinters

ruby fossil
#

well dang, I understand that. something that always helps me is watching a sad or overly happy movie.

still herald
#

Hmm

#

I don't feel anything

gentle flint
ruby fossil
still herald
peak depot
ruby fossil
# still herald I don't feel anything

something that helps me, is writing down every thought that passes through my mind. I set aside time to just throw up every thought and feeling regardless of how much it makes sense. Could be words, could be a doodle. Helps with my writers block too.