#voice-chat-text-0

1 messages · Page 560 of 1

craggy vale
#

🤣 hahah

livid niche
icy wind
#

@somber heathThankyou, see you again

somber heath
#

!e ```py
try:
raise ValueError

except (ValueError, TypeError):
print("Caught")```

wise cargoBOT
somber heath
#

!e ```py
try:
raise TypeError

except (ValueError, TypeError):
print("Caught")```

wise cargoBOT
livid niche
#

what is a type error

somber heath
#

!e int(object)

wise cargoBOT
# somber heath !e int(object)

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     int(object)
004 |     ~~~^^^^^^^^
005 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'type'
livid niche
#

@somber heath i altered it, i didnt fix the print statement yet tho.

a = None
def setValue():
     global a
     print("Pick number\n")
     num=input("Num:\t")
     try:
         num.isdigit()
         a = int(num)
     except ValueError:
         print("invalid input")
setValue()

print("the number is " + f"{a}")
#

if you put a letter into the input the print would say None

#

cuz a = None

#

by default

#

id prefer the program to kill its process if the value error happens

livid niche
#

ah whats the better thing to do

#

@somber heath i used return a lot in C, it tells kernel what the exit code is right?

somber heath
#

!e ```py
def foo():
return "Hello, world."

bar = foo() # think: bar = "Hello, world."
print(bar)```

wise cargoBOT
livid niche
#

@somber heath oh yeah ive done while loops before in bash

somber heath
#

break & continue.

livid niche
#

yeah there is break and continue

#

there is also exit

#

@crystal fox i tried to avoid sudo as much as i could but at that point i had to do it, so i put empty var checks

somber heath
#

!e ```py
class MyClass:
pass

foo = MyClass()
bar = MyClass()

print(MyClass)
print(foo)
print(bar)```

wise cargoBOT
livid niche
#

@crystal fox yeah in hindsight i realize that, i will prolly fix that later, its a year old script lol.

somber heath
#

!e py print("hEllO, wOrLd") print("hEllO, wOrLd".upper()) print("hEllO, wOrLd".lower()) print("hEllO, wOrLd".title())

wise cargoBOT
livid niche
#

@somber heath am i able to do while true

livid niche
#

@somber heath i tried to learn lisp but i couldnt really grasp it really well, havent moved beyond banging shit together until it works in my emacs config

#

@somber heath lisp has lists, i got stuck on that

somber heath
#

!e py my_list = [] print(my_list) my_list.append(123) print(my_list) my_list.append(456) print(my_list)

wise cargoBOT
livid niche
#

@somber heath hm how do i trigger type error

livid niche
somber heath
#

@spark owl 👋

spark owl
livid niche
#

@somber heath ill admit i zoned out while i was writing code of lists to play with the concept

#

i was about to post it but it doesnt work sadly

#

@somber heath i think i zoned out before instances were described, ill be more careful to not go to my text editor this time

somber heath
#

!e ```py
class MyClass:
def foo(self):
print("Hello, world.")

instance = MyClass()
instance.foo()```

wise cargoBOT
livid niche
#

instance.foo() prints hello world?

somber heath
#

!e ```py
class MyClass:
def init(self):
print("Hello, world.")

instance = MyClass()```

wise cargoBOT
livid niche
#

!e

a = 0
list = []
while a < 12:
    print(a)
    a += 2
    list.append(a)
else:
    print(a)
print(list)
wise cargoBOT
livid niche
#

oh ig i put that in my repl wrong

somber heath
#

!e ```py
class MyClass:
def init(self, value):
print(value)

instance = MyClass("Hello, world.")```

wise cargoBOT
pliant verge
livid niche
#

it didnt work in my repl

pliant verge
#

the start of the esp 🙂

crystal fox
livid niche
somber heath
#

!e ```py
class MyClass:
def foo(self, value):
self.var = value

def bar(self):
    print(self.var)

instance = MyClass()
instance.foo(123)
instance.bar()```

wise cargoBOT
livid niche
livid niche
crystal fox
#

!e

[print("Fizz"*(i%3==0)+"Buzz"*(i%5==0) or i) for i in range(10)]
wise cargoBOT
dry jasper
# crystal fox

how do you like the book so far? would you recomend it?

crystal fox
somber heath
#

!e ```py
class Person:
def init(self, name, age):
self.name = name
self.age = age

def greet(self):
    print(f"Hello. My name is {self.name} and I am {self.age} years old.")

sally = Person("Sally", 19)
peter = Person("Peter", 17)
peter.greet()
sally.greet()```

livid niche
#

@crystal fox btw did you see the funny bug we discovered in the REPL of python 3.13-14

wise cargoBOT
livid niche
#

is grabbing name from the instance

#

right

#

@somber heath i thought you were talking about coal miners

#

@somber heath i think i do

#

lemme try to write a class program

somber heath
#

!e py foo = [] bar = [] baz = foo print(foo == bar) print(foo is bar) print(foo is baz)

wise cargoBOT
livid niche
#

@somber heath variables are pointers to the objects in memory but they are not the objects themselves, is that correct recall?

humble bramble
#

how is a empty list a kind of string

#

does it store it as '[]'

#

string box

paper wolf
crystal fox
#

!e

foo = []
bar = []
print(foo.__dir__)
print(bar.__dir__)```
wise cargoBOT
livid niche
#

!e

class count:
    def __init__(self, num, inc, ceil):
        self.num = num
        self.inc = inc
        self.ceil = ceil
    def numincrementer(self):
        while self.num < self.ceil:
            print(self.num)
            self.num += self.inc
        else:
            print(self.num)
wise cargoBOT
livid niche
humble bramble
#

its a cliche relatively simple interview question

somber heath
#

!e

class count:
    def __init__(self, num, inc, ceil):
        self.num = num
        self.inc = inc
        self.ceil = ceil
    def numincrementer(self):
        while self.num < self.ceil:
            print(self.num)
            self.num += self.inc
        else:
            print(self.num)

c = count(5, 1, 10)
c.numincrementer()
wise cargoBOT
crystal fox
humble bramble
#

i would like to know more about static methods

crystal fox
#

well, "simple" form

somber heath
#

!pep8

wise cargoBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:

livid niche
#

you mentioned i named it weirdly

#

so i said oops

somber heath
#

PascalCase

humble bramble
#

is it the same thing where u have caps first letter it means its a

somber heath
#

snake_case

humble bramble
#

class

somber heath
#

SCREAMING_SNAKE_CASE

humble bramble
#

naming constructors with a capital

somber heath
#

camelCaseBlah

mighty linden
humble bramble
#

no wonder i do it

#

ahaha

livid niche
#

!e

class NumCount:
    def __init__(self, num, inc, ceil):
        self.num = num
        self.inc = inc
        self.ceil = ceil
    def numinc(self):
        while self.num < self.ceil:
            print(self.num)
            self.num += self.inc
        else:
            print(self.num)

c = NumCount(5, 1, 10)
c.numinc()
wise cargoBOT
livid niche
humble bramble
#

i wanna know how can i call a method of a class in another method of same clas , but without a object

#

or like maybe just call a method without object

somber heath
#

!e ```py
class Tally:
def init(self):
self.value = 0

def increment(self):
    self.value += 1

def get(self):
    return self.value

tally = Tally()
print(tally.get())
tally.increment()
print(tally.get())```

wise cargoBOT
livid niche
#

ah so what i did was unsafe

humble bramble
#

!e

class patterns:

    def simple_triangle_pattern():
        """
        Purpose: this prints simple triangle that looks like a right angled triangle
        """
        for i in range(0, n):
            print("*" * (i + 1))

patterns.simple_triangle_pattern(5)
wise cargoBOT
# humble bramble !e ```py class patterns: def simple_triangle_pattern(): """ ...

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 10, in <module>
003 |     patterns.simple_triangle_pattern(5)
004 |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
005 | TypeError: patterns.simple_triangle_pattern() takes 0 positional arguments but 1 was given
livid niche
mighty linden
humble bramble
#

oh

#

so instead of a class i make it a module so i have liek pretty functions in oen place

#

instead of a class

livid niche
#

so it has different behaviors you can call upon within the object

humble bramble
#

so methods without object are modules

#

!e

n = 5
class patterns:

    def simple_triangle_pattern():
        """
        Purpose: this prints simple triangle that looks like a right angled triangle
        """
        for i in range(0, n):
            print("*" * (i + 1))

patterns.simple_triangle_pattern()
wise cargoBOT
livid niche
#

not meant to bake the whole cake

humble bramble
#

ah so unless i want like factories i need classes but if its just u want reusable functions go with modules

#

generic vs custom ig

livid niche
#

@somber heath do you feed the orphans bottles of gin pithink

humble bramble
#

gin in juice boxes

#

everything is clases

#

every object has ... class

livid niche
#

oops

#

are classes meant to integrated into functions instead of baking the whole cake? @somber heath

humble bramble
#

u write classes in a functin ?!?!?!?

#

wtf

#

but u will use them anyways

#

u cant escape the matri x

livid niche
#

@somber heath what are some practical uses for classes

#

@somber heath you would create an instance of monster for goblins and then turn that into a class?

#

is it possible to nest classes

#

@somber heath ah so you wouldnt make a generic monster class

humble bramble
#

curiosity !

livid niche
#

@somber heath ive heard of inheritance, i only vaguely understand it

open pine
livid niche
#

@somber heath ive never used those

peak depot
#

Froge, you see that opal reads all your messages and follows the chat, you don't have to tag him in every sentence

somber heath
#

!e ```py
class A:
foo = "foo"

class B(A):
pass

print(A.foo)
print(B.foo)```

wise cargoBOT
somber heath
#

!e ```py
class A:
foo = "foo"

class B(A):
bar = "bar"

print(B.foo)
print(B.bar)```

wise cargoBOT
livid niche
#

is it possible to do an if else statement for inheritance

#

or is that bad idea

humble bramble
#

!e ```py
class A:
foo = "foo"

class B(A):
bar = "bar"

print(B.foo)
print(A.bar)```

wise cargoBOT
somber heath
#

!e ```py
class A:
foo = "foo"
bar = "bar"

class B(A):
foo = "FOO"

print(A.foo)
print(A.bar)
print(B.foo)
print(B.bar)```

wise cargoBOT
humble bramble
#

!e ```py
class A:
foo = "foo"
bar = "bar"

class B(A):
super().init(foo)
foo = "FOO"

print(A.foo)
print(A.bar)
print(B.foo)
print(B.bar)```

wise cargoBOT
# humble bramble !e ```py class A: foo = "foo" bar = "bar" class B(A): super().__ini...

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 5, in <module>
003 |     class B(A):
004 |         super().__init__(foo)
005 |         foo = "FOO"
006 |   File "/home/main.py", line 6, in B
007 |     super().__init__(foo)
008 |     ~~~~~^^
009 | RuntimeError: super(): no arguments
humble bramble
#

but why is dunder doing here

#

class Parent:
def init(self, name):
self.name = name

class Child(Parent):
    def __init__(self, name, age):
        super().__init__(name)  # Calls Parent's __init__
        self.age = age
peak depot
#
like this
humble bramble
#

!e

   class Parent:
        def __init__(self, name):
            self.name = name

    class Child(Parent):
        def __init__(self, name, age):
            super().__init__(name)  # Calls Parent's __init__
            self.age = age
wise cargoBOT
charred ginkgo
#

!e

var = bytes(range(255))
var = var + 1000```
wise cargoBOT
# charred ginkgo !e ```py var = bytes(range(255)) var = var + 1000```

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     var = var + 1000
004 |           ~~~~^~~~~~
005 | TypeError: can't concat int to bytes
humble bramble
#

are we talking about cake cake

#

so is the fire hose

#

the fire hose

#

...

peak depot
paper wolf
#

9 months later:...

paper wolf
somber heath
paper wolf
#

!e

a = bytes("meh","utf-8")
print(a[2])
print(ord("h"))
charred ginkgo
wise cargoBOT
somber heath
#

!e py value = (1000).to_bytes() print(value)

wise cargoBOT
# somber heath !e ```py value = (1000).to_bytes() print(value)```

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     value = (1000).to_bytes()
004 | OverflowError: int too big to convert
somber heath
#

!e py value = (1).to_bytes() print(value)

wise cargoBOT
somber heath
#

!e py value = (10).to_bytes() print(value)

wise cargoBOT
paper wolf
#

cus 1000 is not a a byte

charred ginkgo
paper wolf
#

byte is just 255 at most

#

@somber heath

humble bramble
#

a byte is a character

#

wait its vice versa

#

nvm

livid niche
#

a byte is a byte

paper wolf
#

but character can be larger than a byte

charred ginkgo
humble bramble
#

but its really hydrogens and oxygens

livid niche
paper wolf
#

!e

print(bytes([255,255,16,1]))
wise cargoBOT
paper wolf
#

like this

charred ginkgo
humble bramble
#

yeah

#

its 1 byte

charred ginkgo
livid niche
humble bramble
#

int is 4

#

and idk the rest

#

float is 32 ...?

paper wolf
#

it just convert a array of number into byte string

#

depending

livid niche
#

you can store a character as a singular bit but that is not ASCII or UTF-8 standard

charred ginkgo
humble bramble
#

we can store it in 1 bit ?

#

no way

charred ginkgo
paper wolf
#

what????

livid niche
paper wolf
#

@charred ginkgo wdym user input??? why yo u

livid niche
#

this is what you get with a nibble

paper wolf
#

why you need bytes for that

livid niche
charred ginkgo
humble bramble
#

ohh its a catttt

#

shes cute\

paper wolf
#

dont use chatgpt lol

#

who the heck use bytes to get user input on python lol

livid niche
#

you use input()

#

im pretty sure

#

not bytes

#

😭

charred ginkgo
#

How do I make a program for taking a password from the user?

paper wolf
somber heath
humble bramble
#

wait what ? u use input for input

#

there is one way

paper wolf
#

or you can just enforce your OS to dont echo the input

somber heath
#

!d getpass.getpass

wise cargoBOT
#

getpass.getpass(prompt='Password: ', stream=None, *, echo_char=None)```
Prompt the user for a password without echoing. The user is prompted using the string *prompt*, which defaults to `'Password: '`. On Unix, the prompt is written to the file-like object *stream* using the replace error handler if needed. *stream* defaults to the controlling terminal (`/dev/tty`) or if that is unavailable to `sys.stderr` (this argument is ignored on Windows).

The *echo\_char* argument controls how user input is displayed while typing. If *echo\_char* is `None` (default), input remains hidden. Otherwise, *echo\_char* must be a single printable ASCII character and each typed character is replaced by it. For example, `echo_char='*'` will display asterisks instead of the actual input.
paper wolf
#

thats lame

#

do the raw way

charred ginkgo
crystal fox
paper wolf
#

i remember making something similar

charred ginkgo
paper wolf
#

what?

charred ginkgo
paper wolf
#

what....

charred ginkgo
humble bramble
#

i verrified voice and i lost my ears

paper wolf
#

i mean something like, you hide the thing you type

paper wolf
charred ginkgo
humble bramble
#

ik but my discord gltiched ig

paper wolf
charred ginkgo
paper wolf
#

yeah ofc since im not a mind reader ._.

crystal fox
somber heath
livid niche
#

when they were born

#

/j

#

@sharp raft i use it too

#

and i do stuff in an alpine vm

#

like emails

#

@crystal fox shes not scolding him so i wouldnt say its mean

livid niche
#

@crystal fox are these like apartment rats youve tamed?

paper wolf
#

my braincell was resigning

livid niche
#

@crystal fox out of curiosity do lab rats have health issues

paper wolf
#

always

somber heath
#

Original video by Space Captainz on TikTok: https://vm.tiktok.com/ZSJcKsE3w/

"VOTE FOR PETS" 🎟️ TOUR TICKETS 2025 🇦🇺🇪🇺🇬🇧
📍Dates, cities & ticket links at https://thekiffness.com

🇦🇺 Australia (September)
🇪🇺 Europe (October / December)
🇬🇧 UK (December)

👕 The Kiffness Merchandise: https://thekiff...

▶ Play video
livid niche
#

i figured lab rats would be the worst of all the domestic rats

crystal fox
livid niche
#

but i might be wrong

paper wolf
#

here we have a rat so large you can describe it as 2 moths old cat

#

its a wild rat

livid niche
paper wolf
#

we breed things to give us the lease horrible looking

livid niche
#

bull terriers

#

💀

#

pugs, borzois, and bull terriers are the most cursed dogs weve bred

paper wolf
#

what is borzois?

somber heath
#

Hose goat.

paper wolf
#
#

what the

livid niche
paper wolf
#

its the let me do it for youuuu

sharp raft
#

they're discussing pugs and pitbulls

paper wolf
#

*animal breeding

#

human have been delete bunch of breed of animals and plants that we just want

livid niche
#

hm yes nice firmware

#

ill have to go now, i am american, so its 6 AM for me @somber heath

paper wolf
#

a

#

!doc pynput.keyboard.Listener

wise cargoBOT
#

class pynput.keyboard.Listener(on_press=None, on_release=None, suppress=False, **kwargs)```
A listener for keyboard events.

Instances of this class can be used as context managers. This is equivalent to the following code...
paper wolf
#

@crystal fox

#

@somber heath

somber heath
#

tkinter or something else might be an option

#

Text input fields.

paper wolf
#

okay discord bugged out again....

somber heath
#

obj.after

#

Not sure of what the base class is called

#

Widgets have it.

paper wolf
#

im not making a UI application....

somber heath
#

Okay

paper wolf
#

its a terminal based

somber heath
#

@crystal fulcrum 👋

crystal fulcrum
somber heath
#

I did hear you, but getting to the point where I could talk to you before you left took too long.

#

Meu.

#

Hey, Osyra.

obsidian dragon
#

!paste @crystal fulcrum

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.

crystal fulcrum
paper wolf
obsidian dragon
#

BIG FONT

crystal fulcrum
#

e1tab

obsidian dragon
#

The Logistic Regression model achieves 81.5% accuracy in predicting customer
churn. The model performs better at identifying customers who will stay
(90% recall) than those who will leave (58% recall). This suggests room for
improvement in detecting at-risk customers, possibly through feature engineering
or trying more complex algorithms.

#

@crystal fulcrum

somber heath
#

I am here

paper wolf
#

hello open are you here with us???

somber heath
crystal fulcrum
paper wolf
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

paper wolf
#

```txt
text
```
into

text```
crystal fulcrum
wise cargoBOT
somber heath
#

Gargantuan.

paper wolf
somber heath
#

Too much time has passed. I don't remember what specifically was said.

stray pewter
#

endianness

somber heath
#

Zero padding.

#

Big end, little end, probably a Gulliver's Travels reference.

somber heath
paper wolf
#

@stray pewter u trapped someone lol

stray pewter
#

yes

stray pewter
paper wolf
#

"since when" 😭

stray pewter
#

a while

paper wolf
#

you asking too much question lol

#

._.

#

that kind of discussion is how youll get banned

stray pewter
#

<@&831776746206265384>

winter trellis
#

k chill

#

i'm srry

#

@stray pewter i'm rlly srry

#

chill out

primal shadow
#

1/2 afk

#

no sound atm

#

will be back soon

#

#No-Coding

whole bear
#

Ahum what are you doing?

brisk bridge
#

hi

patent jungle
#

hi

somber heath
#

@patent jungle 👋

patent jungle
#

what are u guys up to ?

somber heath
#

Nothing useful.

patent jungle
somber heath
#

I know. It's very boring and uninteresting.

patent jungle
#

not useful != not interesting

somber heath
#

True enough.

patent jungle
somber heath
#

@prime beacon 👋

patent jungle
#

intrest is kinda specific to each person i guess

prime beacon
patent jungle
somber heath
#

Hi hi, @bitter furnace.

patent jungle
#

hi @bitter furnace

somber heath
#

@bitter furnace You might want to mute yourself when you're not talking or turn on push to talk.

peak depot
#

@bitter furnace please use krisp or mute yourself, we hear alot of background noice coming from you

prime beacon
#

What are your projects currently underway?

somber heath
#

Avoiding loud people.

craggy vale
jaunty brook
#

Why some people shift vc chat 0 to vc chat 1?🤧

proud tiger
#
print("just realized this exists")
gentle flint
wise cargoBOT
amber raptor
#

Well, this is going off the rails

primal shadow
primal shadow
gentle flint
primal shadow
gentle flint
#

wielmoersleutel

proud tangle
#

sales these days be like

#

going on lenovos website is like peering into an alien dimension

#

where the numbers are made up and the stats don't matter

junior grotto
#

Why did you die when you entered Live Code Help?

vocal basin
#

@rugged root outside memes

#

2

dense ibex
#

!user

wise cargoBOT
#
jake (himynameisjake)
User information

Created: <t:1580002257:R>
Profile: @dense ibex
ID: 670802831678373908

Member information

Joined: <t:1609774606:R>
Roles: <@&267630620367257601>, <@&764245844798079016>, <@&764802720779337729>

Activity

Messages: 16,825
Activity blocks: 4,052

Infractions

Total: 4
Active: 0

dense ibex
#

!user 473859714162360320

wise cargoBOT
#

You may not use this command on users other than yourself.

vocal basin
#

@frosty garnet Google didn't "call them out on things Google uses"

#

they found a bug in a rarely used part of ffmpeg they don't directly depend on

#

, since ffmpeg is a giant project with mixed levels of seriousness

proud tiger
vocal basin
proud tangle
#

sha-hulud is not really a normal problem

vocal basin
#

npm is just simpler to use than pip, both from installation side and from making packages side

#

=> more packages

mighty linden
#

isnt there a way to check all the vulnerabilities in the dependent packages.... automatically?

#

i think devops do that...

proud tangle
#

!mute 1434076469251932221 vc spam

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @cosmic rain until <t:1764441008:f> (1 hour).

gentle flint
frosty garnet
gentle flint
proud tangle
#

Concentration of resources and vulnerability is what gives rise to parasites

#

In an abstract sense

frosty garnet
#

i understand... i'm looking for exhaustive remediation and prevention docs.

proud tangle
#

the NPM ecosystem is very full of unaudited code (Vulnerability) as well as as resources (huge amounts of CI and deployment to basically the entire world)

#

the sheer potential R of an NPM package is multiple orders of magnitude worse than any other platform

#

@frosty garnet your mic is incredibly quiet btw

#

I have you turned up but still hard to hear

#

Basically, it's just an Inevitable

#

If you have X people in an enclosed space, each potentially cross-pollinating, then it's simply too easy to get compromised

#

You have to prevent that kind of interaction. You can't have projects with 1000+ rapidly updated dependencies

#

1000+ never-updated dependencies works. 10 rapidly updated depencies works.

#

Using the dependencies in an environment absent of secrets works

frosty garnet
#

are you suggesting there is no remidiation recommendation or policy changes to prevent such worms?

proud tangle
#

Not exactly

#

I'm saying there's no easy remediation to prevent this class of problem

gentle flint
proud tangle
#

There are quite a few ways that you can block sha-hulud and similar

#

I, personally, am not vulnerable

#

I do not have secrets stored where it looks, and I have strong firewalling that would catch it's exfiltration attempts. But I trade a lot for this, and it's inconvenient to do so, and impractical for people who arent security nuts

#

Like, think of it like a cold

#

You can't get rid of the common cold, because it spreads too easily and the people spreading it don't care

proud tangle
#

Yes, you could pass policy to get rid of it. You separate everyone for six weeks, vaccinate, clean everything, and it dies. It's gone.

gentle flint
proud tangle
#

And then another shows up later because the problem isn't the virus it's the environment

#

Python doesn't have this problem because it's dependency foothold is much smaller

#

To solve this, JS needs either:

  • a functional standard library, official or unofficial
  • less of a vibe code attitude
  • to actually respect security and security controls
gentle flint
#

less of a vibe code attitude
because of course that's about to happen

proud tangle
#

Teh standard library will eat away the masses of packages that can be exploited. The vibe code attitude would allow you to protect secrets. And actual security and respect would allow you to install packages without running system-access install scripts, which are the primary vector

gentle flint
#

considering the path that for instance NX is taking I do not have high hopes

proud tangle
#

There was a similar malware to sha-hulud that hit actually the minecraft modding community last year

#

It died very quickly because the distribution platform pulled affected packages and the possible R value was low

#

A python maintainer has push access to maybe 1-4 packages. And they do not update very often

#

Javascript, this is minimum double digits, and frequently triple

#

with frequent updates to bump dependencies and similar

#

The reality is the JS ecosystem is operating in safety debt

#

and it needs to stop doing that to not get exploited

#

But as everyone here realizes, that's a pipe dream

#

so it's just fucked

#

I fully expect the solution to this to be "just containerize everything and let the malware run"

proud tangle
#

I guess

#

to sum it all up

#

Reality is not O(n)

#

Reality is O(nlogn)

proud tangle
#

100 packages is not 10 times less safe than 10.

gentle flint
peak depot
gentle flint
proud tangle
#

Now, they definitely make their planes too small for tall peopel to sit properly

dry jasper
primal shadow
#

The galah (; Eolophus roseicapilla), less commonly known as the pink and grey cockatoo or rose-breasted cockatoo, is an Australian species of cockatoo and the only member of the genus Eolophus. The galah is adapted to a wide variety of modified and unmodified habitats and is one of Australia's most abundant and widespread bird species. The speci...

vocal basin
#

fancy defaults

primal shadow
#

The blue jay (Cyanocitta cristata) is a passerine bird in the family Corvidae, native to eastern North America. It lives in most of the eastern and central United States; some eastern populations may be migratory. Resident populations are also in Newfoundland, Canada; breeding populations are found across southern Canada. It breeds in both decid...

#

Cardinalidae (sometimes referred to as "cardinal-grosbeaks" or simply "cardinals") is a family of New World-endemic passerine birds that consists of cardinals, grosbeaks, and buntings. It also includes several other genera such as the tanager-like Piranga and the warbler-like Granatellus. Membership of this family is not easily defined by a sing...

#

and the male cardinal

gentle flint
primal shadow
#

specifically the Eastern Bluebird

#

Goldfinches for yellow

gentle flint
primal shadow
vocal basin
#

we have some very common bird locally and we have no idea what exactly it is

primal shadow
#

Grackle, fun name

#

and a cool look

patent mural
#

sup chat

vagrant fulcrum
patent mural
#

why did u delete

#

sup

#

two times

vagrant fulcrum
#

idk

vocal basin
#

@primal shadow outsource everything to insurance corporations

#

who needs police anymore

#

waiting for insurance companies to become PMCs

short owl
#

Is that you with the reindeer ?? @peak depot

peak depot
#

no

short owl
#

its a cool pic

vocal basin
#

Kevlin Henney nearly had a breakdown when someone at a conference to "what do you use Fibonacci numbers for?" answered "story points"

nimble trail
#

hello gentlemen

#

Hello gentle

gentle flint
#

gentlepeople

nimble trail
#

hello peoplegentle

#

hello

#

ez pz

#

first try

gentle flint
#

"greetings and salutations"

nimble trail
#

I am english pro

#

ooo I like that one

gentle flint
#

i stole it from opalmist

nimble trail
#

ezpzlmnsqz

#

what have you guys bveen up to?

gentle flint
nimble trail
gentle flint
#

well, it's certainly not english

nimble trail
#

wairt

#

finnish

#

?

gentle flint
#

no lol

#

it is indeed dutch

nimble trail
#

Idk Im just a spanish man with a rocket launcher

#

perkele

gentle flint
nimble trail
#

I had a friend in Helsinki

#

Ate him

#

no..

livid niche
gentle flint
gentle flint
livid niche
#

it looks like drunken german imo

nimble trail
nimble trail
#

awawa

vocal basin
livid niche
#

oh wow ive been saying perkele wrong

#

i was saying per-kelly

nimble trail
#

me right now

#

erm actually its "un momento"

gentle flint
vocal basin
#

@peak depot yes

#

@peak depot python_is_trash iirc

gentle flint
vocal basin
#

@peak depot bim bim bam bam

#

classics

nimble trail
#

holyyy geeeked

#

😭

#

awesome.

#

dude what

#

is that a real thing

#

somewhere?

nimble trail
#

"voice gate failed" 💔

vocal basin
nimble trail
#

for for for for for

#

oh yeah I like those

livid niche
livid niche
#

damn these birds are school bullies

topaz harbor
#

Hello everyone 👋

livid niche
#

that pigeon is just minding its own business

topaz harbor
#

Any anything we are learning??

vocal basin
nimble trail
#

im trying to learn python

topaz harbor
nimble trail
#

thanks :D

#

Im mainly a bio guy but alot of the things I want to do are computer related

vocal basin
nimble trail
#

so it makes no sense for me not to learn it 😭 I wish I started earlier

nimble trail
vocal basin
nimble trail
#

u can tell its poly becase its pooping out tRNA

topaz harbor
nimble trail
#

you wanna learn a cool programming language

vocal basin
#

I looked up because ribo__some__ interacting with DNA didn't sound right, since it shouldn't be inside the nucleus

topaz harbor
nimble trail
#

ooooo, yeah that one is cool

#

Im getting into computational finance or whatever its called

#

so thats super important too

#

I mean for bio as well, or really anything

vocal basin
# nimble trail

this I don't remember at all but we did study it at some point

nimble trail
#

basically each codon is 3 bases

#

either UAGC

vocal basin
#

I know what it is, I just don't remember at all the contents of the table

#

... and I also forgot what short name for T is

nimble trail
#

u see the things that are outside of the bracket? those r amino acids that the RNA codon codes for

vocal basin
nimble trail
#

Met signals start

vocal basin
#

thymine (looked up now)

nimble trail
#

like as in tRNA

#

OHHH

vocal basin
#

in DNA

nimble trail
#

Yes thymine

#

its replaced with uracil in RNA

#

thats why u see U

winter trellis
#

can someone help me with this one

vocal basin
#

I probably forgot "thymine" exact same moment I learned it's also called "5-methyluracil", and that is just easier to remember given it replaces uracil

nimble trail
# nimble trail

the ones labeled stop signal the ribosome to stop running the code

vocal basin
winter trellis
#

nope

vocal basin
#

then start doing that

nimble trail
#

should you use venv?

#

is that good practice

winter trellis
#

k nvm i'm using it

winter trellis
vocal basin
winter trellis
#

how?

vocal basin
#

what packages do you currently have installed?

heavy zenith
#

in the message doesn't it alr say

vocal basin
#

mediapipe

mighty linden
#

Right version of protobuf needed

vocal basin
#

which other thing requires protobuf -- that is unclear

mighty linden
#

Pip list

winter trellis
#

oh so should i reinstall the correct version

vocal basin
#

or did some other package you installed require it?

winter trellis
#

while i was installing TensorFlow it came along with it

mighty linden
#

See if it's there when you do pip list

vocal basin
#

if you have an option to fully nuke the venv and re-do everything from scratch,
you can try installing everything in one single command

mighty linden
#

Else do a lower version of tensor and mediap...

vocal basin
winter trellis
#

mm

mighty linden
#

Older version of tensorf.... is safer

vocal basin
winter trellis
#

should i reinstall all my latest packages into older ones?

mighty linden
#

Do pip uninstall.....

#

On those

#

And reinstall

vocal basin
#
  1. make a list of all packages you need
mighty linden
#

Yeah

winter trellis
#

this is the version i'm using

nimble trail
#

can I delete everything with pip

vocal basin
nimble trail
#

like nuke all packages with pip

#

or whatever they are called

vocal basin
mighty linden
#

You don't have to just uninstall the one's that messing

#

Probably the tf

nimble trail
#

☹️

mighty linden
#

Then on global you can uninstall

#

And reinstall

vocal basin
nimble trail
#

ah okey

vocal basin
winter trellis
vocal basin
#

eh, this might do a bit more than necessary

#

including uninstalling pip itself

#

which is suboptimal

nimble trail
#

yeah that wouldnt be good

mighty linden
#

Just

#

pip uninstall tensorflow

nimble trail
#

real

#

what was that

#

lmao

winter trellis
#

💀it's tellin me to choose between both of the packages

#

lol

#

anyone help me pwease

#

@heavy zenith

#

@primal shadow

#

@vocal basin

#

@nimble trail

#

anyone pwease?

heavy zenith
#

IDK

winter trellis
#

pwease

vocal basin
#

to be compatible wit what tensorboard wants

winter trellis
#

it's tellin me to choose one

vocal basin
#

although maybe tensorboard isn't as strict

#

your main conflict there is between tf and mediapipe

heavy zenith
#

✂️

winter trellis
#

it is

vagrant fulcrum
winter trellis
vocal basin
winter trellis
#

pip install tensorflow==3.11.2

vocal basin
#

... why is it 2.20 then

winter trellis
#

idk

vocal basin
#

are you specifying which tensorboard version to install?

winter trellis
#

yea

mighty linden
#

mediapipe==0.10.3
tensorflow==2.11.0

vocal basin
winter trellis
#

nope

vocal basin
#

3.11?

winter trellis
winter trellis
vocal basin
#

something not sure what causes an older tensorflow to get installed

winter trellis
#

it's 00:58am

#

n i'm 13yrs

heavy zenith
#

nuke venv and reinstall

winter trellis
#

is it gud for me to stay awake

mighty linden
#

Bro enjoy your childhood

winter trellis
mighty linden
#

I mean sleep if you are tired 😩😴

winter trellis
#

nah i'm gud

winter trellis
mighty linden
#

Ment sleep.... Cultural differences....

#

Humor.... Idk

winter trellis
#

nah i'm gud

mighty linden
#

Did it work?

winter trellis
#

yea finally YIPEE

#

thx yall for helping me

#

now i gotta get some sleep

#

salute to all my commrades

mighty linden
#

Good night 🌆

vocal basin
haughty turtle
#

Hi

heavy zenith
vocal basin
#

now I have to guess what kind of C++ compiler it expects

heavy zenith
#

none hopefully

vocal basin
#

clang didn't work

#

maybe Zig will work

nimble trail
woeful blaze
#

hello how are you today @primal shadow

primal shadow
#

Another lovely day

lavish gazelle
#

What we doing @vocal basin @heavy zenith

vocal basin
wise scroll
#

Why I can't speak in VC

vocal basin
#

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

vocal basin
#

I think I'm hearing only of the two people in the VC
interesting failure case

lavish gazelle
vocal basin
#

it'll be more funny if I don't specify

whole bear
#

She?

#

@lavish gazelle Is he calling you she?

vocal basin
#

it's now entirely broken

whole bear
#

I'm confused 🤔

#

Okay

#

I thought Borje might be a biological man identifies as woman

vocal basin
#

"biological man" is not a valid phrase

#

(doesn't really make sense, given biology)

#

((there are so many separate factors: chromosomes, hormones, anatomy, and they all aren't necessarily lining up))

whole bear
#

@heavy zenith what are you talking about?

#

Say it bro

#

Yes

vocal basin
#

Discord being weird

whole bear
#

Light could b cream

vocal basin
#

don't question others' gender identity, even as a joke

lavish gazelle
#

I am lolz

#

Is my voice beautiful???

whole bear
dry jasper
#

virus show

whole bear
#

@lavish gazelle Ig they were mocking you in german?

#

German and Russian are two languages which sounds terrifying

whole bear
#

He is Austrian

#

As far as I know

vestal merlin
#

@somber heath you're in VC fairly early today

somber heath
paper wolf
somber heath
#

@drowsy tree 👋

vocal basin
#

we can just pretend e umlaut is o umlaut, like in Cyrillic

#

ё

#

I usually pronounce ö like i in bird, side-effect of о/ё pairing in Cyrillic

#

that sound

#

ö has two pronunciations

#

apparently

vocal basin
heavy zenith
#

süße Träume

#

süßer Traum

vocal basin
#

German ö is apparently like i in bird with NZ accent

heavy zenith
#

der Traum

#

das Mädchen

#

süßes Mädchen

vocal basin
paper wolf
#

how do you type the decorators...

vocal basin
#

Greek

paper wolf
#

its builtin on the keyboard?

vocal basin
paper wolf
#

probably....

#

idk the term

vocal basin
#

on-screen keyboards and some other tools have support for that

#

@somber heath yes

#

diacritics are separate characters usually

paper wolf
#

how you type that....

vocal basin
heavy zenith
#

öäüß

paper wolf
#

how do you type those

vocal basin
vocal basin
heavy zenith
#

qwertz

paper wolf
#

how do you have different a's

paper wolf
paper wolf
#

but how you type it

vocal basin
#

!charinfo öäü

wise cargoBOT
paper wolf
#

a:

#

how...

vocal basin
#

!e

print("\N{latin small letter a with diaeresis}")
wise cargoBOT
paper wolf
vocal basin
#

if you're willing to remember that

#

diaeresis is a different interpretation of two dots above

#

diaeresis means pause not sound alteration

#

coöperative

#

!e

print("\N{latin small letter i with diaeresis}")
wise cargoBOT
heavy zenith
#

hör mal

vocal basin
#

and `naïve'

#

in English those mean breaking syllables apart

#

co-operative

#

na-ive

heavy zenith
#

kooperativ

paper wolf
#

most word on english is a amalgamation of other language

#

NEIN

vocal basin
#

!e

print("a\N{combining diaeresis}")
wise cargoBOT
vocal basin
#

@somber heath ^

#

!e

print("~\N{combining diaeresis}")
wise cargoBOT
vocal basin
#

somber heath
#

!e

print("@\N{combining diaeresis}")
wise cargoBOT
heavy zenith
#

#

vocal basin
#

paper wolf
#

#

heavy zenith
#

hho

vocal basin
#

markdown headers, but don't overuse them

heavy zenith
#

paper wolf
#

# lergest
## second to the largest
### 3rd to the largest

vocal basin
#

!e

print("@\N{Combining Ring Below}")
paper wolf
#

!e

print("~\N{collon diaeresis}")
wise cargoBOT
vocal basin
#

ugh

wise cargoBOT
# paper wolf !e ```py print("~\N{collon diaeresis}") ```

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

001 |   File "/home/main.py", line 1
002 |     print("~\N{collon diaeresis}")
003 |           ^^^^^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1-20: unknown Unicode character name
vocal basin
#

doesn't work

vocal basin
#

combining

#

combining diaeresis

#

!e

print("~\N{combining tilde}")
wise cargoBOT
paper wolf
#

!e

print(":\N{combining diaeresis}")
wise cargoBOT
vocal basin
#

tails

#

1 in 1024

heavy zenith
vocal basin
#

or rather 1 in 2048

#

because that includes the first guess

#

1 in 1024 is the probability that all 11 are same

vocal basin
#

"also, sadly, I don't think" [end of sentence]

#

that time when zeptofine got to know some of what I listen to

#

this

#

@somber heath just Australian vegan music

#

the band are somewhat DxE supporters

somber heath
#

@cerulean crow 👋

cerulean crow
#

yes

#

what does a brother has to do get voice permissions

vocal basin
#

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

cerulean crow
#

got it

vocal basin
#

woohoo round number

#

yes

#

the standards organisation

#

I don't really know if Apple wants that to be doable

paper wolf
#

@tough acorn

vocal basin
#

@heavy zenith quark names?

tough acorn
vocal basin
#

those are quark flavours

paper wolf
#

quarks dont have spin property i know

vocal basin
#

they do iirc

#

half per each

#

@heavy zenith they all have same spin value, it's the charge that differs

paper wolf
#

hmmm soo atom has spin, electron has spin and the particle that builds the electron has a spin...

vocal basin
#

it adds up kind of

paper wolf
#

@faint raven you are talking or its just a background noise?

#

@heavy zenith cus 🍲

vocal basin
#

typical hadrons have half spin because quarks are half spin, and those hadrons have 3 quarks

#

3+2N quarks, if we account for all the quantum weirdness

#

(3+N quarks and N antiquarks)

heavy zenith
#

I don't think that's completly correct

paper wolf
#

im saying if apple dont have ios download dont look for other

vocal basin
#

gluon is a boson, so it has whole spin

#

non-half

#

and those are temporary-ish anyway

heavy zenith
#

We perform the first Lattice calculation about the charmed hadron spin decomposition using overlap fermions on a 2+1 flavor RBC/UKQCD domain-wall gauge configurations at 0.083 fm with 300 MeV pion mass. It is found that the contributions of quark spin to the spin of 1S, 1P charmonia and also proton-like triple heavy quark state are comparable with the expectation of non-relativistic quark model. Such an observation provides evidence that the non-triviality of proton spin decomposition mainly arises from the relativistic effects of the light quark. Conversely, the substantial gluon angular momentum contribution in the spin state with triple heavy quarks at the charm quark mass, remains significant, highlighting the ongoing importance of the gluon in the realm of charmed baryon physics.

paper wolf
#

am i the only one hear noise on longlivethequeen's audio?

#

@heavy zenith

vocal basin
#

the half/non-half specifically is relatively simple-working

#

(not in its mechanism, in its results)

paper wolf
#

@faint raven on macOS its easilly doable on iOS its a different topic

#

infact you can flash other OS on mac device

paper wolf
#

no embed 😭

#

oh its pdf...

heavy zenith
#

(3)

vestal merlin
#

waiting for more people to show up lol

livid niche
#

yo

#

pigeons are my favorite

#

@somber heath do you like pigeons

#

opal did you know we've been breeding pigeons since the bronze age

#

its only until the 20th century when we ditched them

#

yeah for the most part weve ditched pigeons

#

societally and industrially weve cast them away

#

they just stick around cuz they adapt to urban environments well

#

@somber heath USA did similar thing in the 70s iirc, they did successfully put microphones on the pigeons, but unfortunately they kept getting "intercepted" by birds of prey

#

yeah weve done all kinds of weird shit

#

like putting nitro glycerin in a fucking cigar lmao

#

and it failed to kill the target at the time (fidel castro)

proud tangle
#

o/

#

pidgeons and protonmail?

livid niche
#

i love pigeons

proud tangle
#

Pidgeons are great

#

I'm a pass on protonmail though

#

Multifactor, but it mainly falls on the fact that their security model matches the classic US government controlled project line

livid niche
#

@somber heath echidnas are one of the few monotremes left which is unfortunate

proud tangle
#

oh yeah chat control is disgusting

#

oh yeah

#

anything is better than gmail or outlook

#

I use fastmail, for what that's worth

#

Yup

#

the "Save the puppies, kittens, and babies act of 2025"

#

Inside: a constant march of nazi flags

#

Google's evil floof_shrug

#

right

#

Screw microsoft for that

#

right

#

and tbh

#

a monstary is probably not the owrst place for that

#

especially if the monestary accepts taht

#

Not yet™

#

The american medical bringing-hell-to-earth coalition is working hard on that

#

nurse practitioner is a term

sharp egret
#

Hi👋
New here

proud tangle
#

It's the latest attempt to work around the legal restrictions on doctors and drop their pay

#

Nurses have it probably the second worst out of all jobs

#

Yep

#

And the US healthcare system is an infinite tax on everyone feeding righ tinto the admins

#

which of cours eis why this all happened

#

nothingcould go wrong

livid niche
#

is it possible to do two operations in one line? @somber heath

livid niche
#

yeah in python

#

like do two prints in one line

somber heath
#

!e py print("abc"); print("123")

wise cargoBOT
livid niche
#
name = input("What is your name?\n"
                "Name:\t")
print(len(name)); print(name)
proud tangle
#

Or you could just do

#

!e ```py
name = "test"
print(len(name), name, sep="\n")

wise cargoBOT
livid niche
#

oh yeah string concatenation

proud tangle
#

There's really no sane defintion of "operation"

#

Yeah. You can also split a single print call over several lines

#

really it doesn't matter. You should choose the option taht's the easiest to understand and code

livid niche
#

how do you write a module

#

im guessing what you mean is if you wanted to print the entirety of shakespeare on the screen, you wouldnt write it inside the python file, you would store it in plaintext and import some modules for reading text files?

#

oh nice

proud tangle
#

As opal said, but you've got it pretty correct

livid niche
#

i thought python needed an imported function for reading files

proud tangle
#

and honestly I find myself leaning towards pathlib fro that stuff anyway because usually it's not just one file