#voice-chat-text-0

1 messages · Page 132 of 1

woeful wyvern
rugged root
#

I'm back to not being sure what to make

#

This annoys me

woeful wyvern
#

Perhaps a small device...

rugged root
#

Yeah you're right, I see it

gentle flint
#

@young matrix thou echoeth most bounteously

#

@woeful wyvern

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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

woeful wyvern
maiden skiff
#

I'm so tired😫

#

I only slept three hours in two days

gentle flint
#

well go to bed then

maiden skiff
amber raptor
#

@rugged root Their game doesn't make any sense

rugged root
#

How so

amber raptor
#

the game mechanics are messy

rugged root
#

Fair

#

I don't have a lot else to do right now, though

amber raptor
#

I wrote some code against it

#

What is confusing about dotenv?

rugged root
#

It's not loading stuff. Unless I'm trying to do it wrong

#

Yep

#

I'm a moron

amber raptor
#

one second

#
import dotenv
dotenv.load_dotenv()```
#

it will read .env file

rugged root
#

So mad at myself

#

Got a meeting

amber raptor
#

"You aren't gonna need it" (YAGNI) is a principle which arose from extreme programming (XP) that states a programmer should not add functionality until deemed necessary. Other forms of the phrase include "You aren't going to need it" (YAGTNI) and "You ain't gonna need it" (YAGNI).Ron Jeffries, a co-founder of XP, explained the philosophy: "Alwa...

rugged root
#

Not a bad philosophy

woeful wyvern
vocal basin
#

I think it should at least be saved somewhere

#

to join later

#

> global lpfn
any concrete reason why?

#

what do you mean by "it does not work"?

whole bear
#

What is this used for?

#

@woeful wyvern

vocal basin
whole bear
#

So keybinds

woeful wyvern
vocal basin
woeful wyvern
#

20

vocal basin
#

what is the purpose of hookId?

#

stopping the threads?

#

where is _listener.start()/_listener.stop() used?

#

driver should probably be passed to __init__

#

instead of setting it this way

#

it seems to make sense to turn QuickCo.loadConfig into a factory method

#

QuickCo.from_config

#

that would return an instance of QuickCo

#

to avoid this

vocal basin
#

!d int.from_bytes

wise cargoBOT
#

classmethod int.from_bytes(bytes, byteorder='big', *, signed=False)```
Return the integer represented by the given array of bytes...
vocal basin
stuck furnace
#

Is a factory, as you're using the term, the same thing as an alternative constructor?

vocal basin
vocal basin
#

I think some languages like C# can allow two totally separate constructors, but not sure

#

they often seem to just end up delegating the work to another constructor anyway

vocal basin
#
class SomeClass:
    @classmethod
    def from_something(cls, something) -> Self:
        return cls(something.field, something.method())
#

cls is a class not an instance

#

it is

#

!e

from typing import Self

class SomeClass:
    @classmethod
    def from_something(cls, something) -> Self:
        print(cls, something)
        raise NotImplementedError

SomeClass.from_something("example")
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | <class '__main__.SomeClass'> example
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 9, in <module>
004 |     SomeClass.from_something("example")
005 |   File "/home/main.py", line 7, in from_something
006 |     raise NotImplementedError
007 | NotImplementedError
stuck furnace
#

Class methods just bind the class as the first argument when you get them.

vocal basin
#

!e

from typing import Self

class SomeClass:
    @classmethod
    def from_something(cls, something) -> Self:
        return cls()

class DerivedClass(SomeClass):
    pass

print(SomeClass.from_something("example"))
print(DerivedClass.from_something("example"))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | <__main__.SomeClass object at 0x7f7789468810>
002 | <__main__.DerivedClass object at 0x7f7789468810>
vocal basin
#
class SomeClass(ABC):
    @classmethod
    def from_something(cls, something) -> Self:
        return cls.from_two_values(something.field, something.method())

    @classmethod
    @abstractmethod
    def from_two_values(cls, value0, value1) -> Self:
        raise NotImplementedError
#

that demonstrates one of the purposes of factories: abstraction

from_two_values removes the dependency on what arguments __init__ takes

gentle flint
woeful wyvern
vocal basin
#

!e

from abc import ABC, abstractmethod
from typing import Self

class SomeClass(ABC):
    @classmethod
    def from_something(cls, something) -> Self:
        return cls.from_two_values(something, something)

    @classmethod
    @abstractmethod
    def from_two_values(cls, value0, value1) -> Self:
        raise NotImplementedError

class TwoFields(SomeClass):
    def __init__(self, field0, field1):
        self.field0 = field0
        self.field1 = field1

    @classmethod
    def from_two_values(cls, value0, value1) -> Self:
        return cls(value0, value1)

    def __repr__(self):
        return f"{self.__class__.__name__}({self.field0!r}, {self.field1!r})"

class OneTuple(SomeClass):
    def __init__(self, tuple_):
        self.tuple_ = tuple_

    @classmethod
    def from_two_values(cls, value0, value1) -> Self:
        return cls((value0, value1))

    def __repr__(self):
        return f"{self.__class__.__name__}({self.tuple_!r})"

print(TwoFields.from_something("example"))
print(OneTuple.from_something("example"))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | TwoFields('example', 'example')
002 | OneTuple(('example', 'example'))
vocal basin
#

TwoFields.__init__ and OneTuple.__init__ have different signatures

#

it sometimes makes sense with concrete examples,
or with codebase which had been changing for a long time

#

abstract class

gentle flint
vocal basin
#

should it be a script? (replying to VC)

#

or should it be a service instead?

#

.

rugged root
#

@lunar haven If we're just watching a video wouldn't it be better to just link the video rather than streaming it?

vocal basin
#

@junior ermine how often is the script started?

#

and if it's paid/restricted, don't stream it

amber raptor
rugged root
#

When why not just link said course

gentle flint
amber raptor
rugged root
#

Let me rephrase it then. If all you're doing is streaming a video, then please hop off stream

vocal basin
#

not new

#

I think this should be one thread which processes an event stream

rugged root
#

If you keep fighting me on this I'm just going to revoke the perms entirely

woeful wyvern
vocal basin
#

> overhead for the event stream
way less than the overhead of starting new threads

rugged root
#

Streaming is a privilege, not a right. If someone is going to be streaming, it should be coding, giving or receiving help, something suitably beneficial or interesting to the server. Watching a video that you can simply link to is not beneficial

#

Especially when you're watching it at 2x speed

woeful wyvern
#

Yes, well, presumably so

#

It should be assumed that the eventHandler does stuff synchronously

vocal basin
#

assuming this

woeful wyvern
#

There are 3 different ones in the repo that all do things pretty similarly

woeful wyvern
vocal basin
#

listener should be an instance of a class not a module, to avoid confusion

rugged root
#

Fine, go ahead gof

vocal basin
rugged root
amber raptor
#

No

#

the rule was fine

woeful wyvern
vocal basin
woeful wyvern
#

Which eventHandler is thatr?

vocal basin
woeful wyvern
#

Performance wise?

rugged root
#

Go ahead and stream

vocal basin
#

you're doing OOP anyway, just a masked and wrong version of it

amber raptor
#

ughhhhhhhhhhhhhhhhhhhhhhhh

woeful wyvern
vocal basin
#

it would be less incorrect, which is more important

#

and "faster" on these scales is totally irrelevant

woeful wyvern
#

Fair enough

woeful wyvern
rugged root
#

k

amber raptor
vocal basin
#

this part of code is not entirely correct

#
try:
    action = self.actionKeys[key["vkName"]]
except KeyError:
    pass
else:
    action()
#

to avoid accidentally catching KeyError from inside action()

woeful wyvern
#

Yes, true

vocal basin
woeful wyvern
woeful wyvern
vocal basin
#

yes, it will return instantly, and action will be executed later

#

if you want it faster, then two separate points of threading:

#

one thread processes events and does eventHandler logic
other thread(s) process actions scheduled by the first one

vocal basin
#

preact

#

petite-vue

vocal basin
woeful wyvern
#

!d dict.get

wise cargoBOT
#

get(key[, default])```
Return the value for *key* if *key* is in the dictionary, else *default*. If *default* is not given, it defaults to `None`, so that this method never raises a [`KeyError`](https://docs.python.org/3/library/exceptions.html#KeyError "KeyError").
vocal basin
woeful wyvern
vocal basin
#

do_nothing is more expressive

woeful wyvern
#

Should that be a global do_nothing = lambda: None then?

vocal basin
#
def do_nothing():
    pass
woeful wyvern
#

Other than syntax, is there really any difference?

#

On 100 million runs they seem to perform pretty similarly

vocal basin
#

!e

def do_nothing():
    pass

print(do_nothing)
print(lambda: None)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | <function do_nothing at 0x7fd23cad8680>
002 | <function <lambda> at 0x7fd23cad84a0>
woeful wyvern
#

!e

def do_nothing():
    pass

print(do_nothing() is (lambda: None)())
wise cargoBOT
#

@woeful wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
woeful wyvern
#

Looks pretty similar to me

#
one = lambda: None
def two(): pass```
rugged root
rugged root
#

!e

ham = lambda: None

print(ham)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

<function <lambda> at 0x7f2c22038680>
woeful wyvern
#

!e

one = lambda: int("a")
def two(): int("a")
one()```
wise cargoBOT
#

@woeful wyvern :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     one()
004 |   File "/home/main.py", line 1, in <lambda>
005 |     one = lambda: int("a")
006 |                   ^^^^^^^^
007 | ValueError: invalid literal for int() with base 10: 'a'
rugged root
#

!d gc

wise cargoBOT
#
gc

This module provides an interface to the optional garbage collector. It provides the ability to disable the collector, tune the collection frequency, and set debugging options. It also provides access to unreachable objects that the collector found but cannot free. Since the collector supplements the reference counting already used in Python, you can disable the collector if you are sure your program does not create reference cycles. Automatic collection can be disabled by calling gc.disable(). To debug a leaking program call gc.set_debug(gc.DEBUG_LEAK). Notice that this includes gc.DEBUG_SAVEALL, causing garbage-collected objects to be saved in gc.garbage for inspection.

The gc module provides the following functions:

rugged root
gentle flint
rugged root
#

¯_(ツ)_/¯

gentle flint
#

schrödinger's cat ≟ dead

woeful wyvern
rugged root
#

DEZERT OFFICIAL SITE
http://www.dezert.jp/

完売音源集-暫定的オカルト週刊誌②-
発売日: 2016年11月23日(水)

【変態盤】
--完全限定生産-特殊パッケージ2枚組仕様--
パッケージ :ALBUM(CD+DVD)
価格:¥ 8.000(税抜) / ¥8.640 (税込)
品番:SFG-004

CD収録内容
1.「変態」
2.「切断」
3. 遮光事実
4. MONSTER
5.「不透明人間」
6.「絶蘭」
7. 脳みそくん。
8. さくらの詩
9. ストロベリー・シンドローム
10.「死刑宣告」
11. リリィさんの美容整形術
12.「告白」
13. 肋骨少女
14.「遺書。」
15. Ghost

DVD収録内容
2016年6月...

▶ Play video
gentle flint
#

that cat be chillin

desert wolf
#

/a/ [a] "Mann" (man)
/e/ [e] "Haus" (house)
/i/ [i] "Kind" (child)
/o/ [o] "Hose" (pants)
/u/ [u] "Hut" (hat)

/p/ [p] "Papa" (dad)
/t/ [t] "Tisch" (table)
/k/ [k] "Kuh" (cow)
/m/ [m] "Mutter" (mother)
/n/ [n] "Nase" (nose)
/f/ [f] "Fuß" (foot)
/s/ [s] "Schule" (school)
/ʃ/ [ʃ] "Schnee" (snow)
/χ/ [χ] "Bach" (stream)
/pf/ [pf] "Pfanne" (pan)
/ts/ [ts] "Zitrone" (lemon)
/tʃ/ [tʃ] "Buch" (book)
/r/ [r] "rot" (red)
/l/ [l] "Licht" (light)
/j/ [j] "ja" (yes)
/ʁ/ [ʁ] "Hund" (dog)

#

/a/ [a] "asa" (morning)
/i/ [i] "ichi" (one)
/u/ [u] "utsukushii" (beautiful)
/e/ [e] "eki" (train station)
/o/ [o] "omoshiroi" (interesting)

/p/ [p] "pan" (bread)
/t/ [t] "takai" (high)
/k/ [k] "kawaii" (cute)
/m/ [m] "mizu" (water)
/n/ [n] "natsu" (summer)
/s/ [s] "sakura" (cherry blossom)
/ɕ/ [ɕ] "shinbun" (newspaper)
/h/ [h] "hito" (person)
/j/ [j] "yama" (mountain)
/w/ [w] "watashi" (I, me)

rugged root
#

brusque

gentle flint
proud estuary
#

let me guess

gentle flint
#

Nyhetsmorgon i TV4 från 2017-06-22: Språkakuten om att ha svenska som andraspråk och vad man ska tänka på för att undvika de vanligaste inlärningstabbarna. Och hur vet man när det ska vara "EN" eller "ETT"? Språkakutens Sara Lövestam ger sina bästa tips. Bland annat: "personer och djur är nästan alltid en". Patrik Hadenius visar vad en stressnur...

▶ Play video
proud estuary
#

i cant talk in here because i have not sent enough messages in the server

#

ok bye then not like i was hoping i could meet new friends or anything

rugged root
#

You still can

#

When we're in VC we're watching the text chat as well

#

Found a good example

gentle flint
desert wolf
# gentle flint https://nl.wikipedia.org/wiki/Sommeltje

Yōkai (妖怪, "fantoom", "geest", of "monster") zijn bovennatuurlijke wezens uit Japanse mythologie en folklore. Ze vormen een klasse van de obake.
Yōkai is een verzamelnaam voor een groot aantal wezens die onderling sterk verschillen in uiterlijk, gedrag en kenmerken. Bekende subgroepen zijn de kwaadaardige oni en de kitsune.

Ork

Een ork (Engels: orc) of aardman (Engels: goblins) is een mythologisch wezen. Het zijn vaak kwaadaardige, domme en trolachtige wezens, die het kwade belichamen. Ze komen voor in verhalen, sprookjes, boeken, films, computerspellen en muziek.
Aardmannen en hun verwanten komen veelvuldig voor in de mondelinge overlevering van Noordwest-Europa. Zo i...

woeful wyvern
limpid umbra
#

swedish popcorn - what can i say...........

#

is Maro the head of twitter now ?

#

did you file 300 resumes today

#

500 ????

#

thats hard to do

#

loop

#

hope you get a cool job

#

i get jobs by accident - not by qualifications

#

nope im not

#

im just a random idea generator

#

zero - its a good time

#

more time to build a garden

#

tech jobs ? im not worthy to be called programmer

#

need C code minimum these days

gentle flint
#

maroloccio rapidly deleting messages

limpid umbra
#

fresh garden herbs this year ... maybe

gentle flint
#

to cover his tracks

#

so kind

#

do you want some fetucci

limpid umbra
#

fresh home made pasta - on my todo list

gentle flint
#

i don't know why I said fetucci

#

I meant fettuce

#

guess it was some sort of cross between fettucce and fettucine

limpid umbra
#

flat noodle if from a box

#

fresh is ..... mama mia perfecto !!!

woeful wyvern
#

!e

ඞ = True
print(ඞ)
wise cargoBOT
#

@woeful wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
gentle flint
#

anyway I meant this

limpid umbra
#

i did same with scallops

gentle flint
#

now I'm hungry

#

fuck

#

this was a bad idea

limpid umbra
#

i have some big cement blocks outside to use

#

garden exercise program

#

cilantro doesnt last long

grim marsh
fierce stratus
#

Hello!

#

how its going?

#

how are you doing?

warm vapor
#

Hey opal how are you?

fierce stratus
#

why its so?

#

something happened?

#

doing fine, was sick last few days, but now its better

#

yeah

warm vapor
#

do you know a guy uploaded files to youtube in video format to store it on the servers

fierce stratus
#

oh, sorry to hear that

#

when did it happen?

warm vapor
#

yea i am trying to code it buts facing many errors

fierce stratus
#

I see

#

so you worked in hotel?

#

okay, well I think in this field its easier to find another job

#

compared to IT field

#

are you too young?

#

oh boy

#

dont give shit about this hotel

#

maybe its even better that you are not working there

#

you may find it as motivation to get better job

warm vapor
#

well we can also do it in music format right like different set of binaries for different sounds

#

we can find libs on pip

#

i was going to ask the same question

#

ahh valorant, genshin and I was playing Metro series

#

wbu?

#

Trying to center text for last 10 mins

#

new to frontend..

#

i have to update it but i am going on a trip so i cannot play

#

I tried asm there are soo many versions of it

#

3 ig

#

It was really hard

#

WHAT DOCS?

#

how did you learn python with docs

#

oh yea he is a legend

dense meadow
#

Hello

warm vapor
#

eivl helped me a lot when i got here

dense meadow
#

I am currently building a CLI

#

So I was busy

warm vapor
#

he was gonna do a fastapi workshop

dense meadow
#

Oh ok

vocal basin
#

I've fixed the thing, now paths are more correct

vocal basin
vocal basin
#

"space-filling" as in:
if this random walk goes on forever, each point on the plane will eventually be as close as possible to the path

vocal basin
#

so, like:
it's impossible to find a circle that's never crossed by the path

#

(circle with a positive radius)

warm vapor
#

I gtg see you later

#

bye

vocal basin
#

still stuck figuring out how distribution of the variance depends on the mean and difference between first and last points

#

at least, thankfully, this problem does not in any way depend on the number of dimensions

#

anything can be calculated independently per dimension, and then added/multiplied to get the total result

woeful wyvern
#

Distribution of the mean would be the same as the size of a standard deviation, right?

vocal basin
#

what do you mean by "the size of a standard deviation"?

#

mean of all points on the path is normally distributed
differences f(a)-f(b) between any two points f(a),f(b) on the path f are normally distributed (if a and b are fixed)

#

whereas variance is not normally distributed

#

discord crashed

vocal basin
#

maybe I should check whether it makes any sense mathematically before continuing to assume that

somber heath
#

@potent frost 👋

dense meadow
#

Helloooo

vocal basin
#

@peak nebula interactive SQL environment?

#

that'd be database-specific

#

are you using Docker?

#

how is the database deployed?

#

DBA is BS job

whole bear
#

redacted

#

i nuked my chat history and i cant join vc now

vocal basin
whole bear
#

understandable

#

i'll just talk enough to vc again

rocky yew
whole bear
vocal basin
# vocal basin how is the database deployed?

so, for DB update there are two parts:
DB migration <-- this is what developers are mostly responsible for
DB software update <-- what operators are mostly responsible for

key word "mostly"

#

first is mostly done by developers because:
it's done in software

#

it's described with code

#

usually SQL

rocky yew
#

thanks Alisa

vocal basin
#

person who knows database well and can guide and help other devs -- good
person who has to review every single schema change, especially in a large company -- bad

#

wait, Florida is now more dystopian on that matter than Russia?

#

"control freak"

#

funnily, assembly language is more correct, afaik

#

it's called "assembler" in some other countries

#

though

#

rather

#

as in "[language of ]assembler"

#

well, at least it's not open plan office

#

complex searches are quite hard to handle

#

filtering is somewhat ineffective

#

though if you know you get, like, at least 1% of all data, then fine

#

(if you don't need to do a lot of few-results searches)

#

brb

buoyant aspen
#

Anybody with God of war three activation key or registration key?

#

No !? Not an ideal task!? 👍 Okay

fierce stratus
buoyant aspen
#

Oh okay.......it's very well fabricated though

calm hearth
#

@somber heath Hey man!

#

What are guys choppin' off?

vocal basin
#

analysing some distributions

#
# mean, std, c (I don't remember why it's `c` but it's the last point)
def msc(arr):
    return np.array([arr.mean(axis=0), arr.std(axis=0), arr[-1]])
A = 256
R = 100
L = 100
P = 1
pmean, pstd, pc = np.concatenate([msc((P*np.random.standard_normal((A**2, R)) / A).cumsum(axis=0)) for _ in range(L)], axis=1)
fig = plt.figure()
ax = fig.add_subplot(projection='3d')
ax.scatter(pmean, pc, np.log(pstd), s=.5)
#

when will I start properly naming and formatting code in jupyter?
probably never

#

this produces a 2D path which I'm analysing (or an equivalent to it)

plt.plot(
    (np.random.standard_normal(A**2) / A).cumsum(axis=0),
    (np.random.standard_normal(A**2) / A).cumsum(axis=0),
)
#

"equivalent to it" rather because it generates points in a different order

vocal basin
#
const some_function = () => {};
uncut meteor
#
let obj = {
  myFunc: function() { }
};
#
let obj = {
  myFunc: function () { }
};
tall lance
#

is there a difference here

vocal basin
#

are you sure this works only with function?

tall lance
#

bruh

#

ig you can decorate the function

#

and provide the obj with the decorator

vocal basin
#

the difference I know is:
functions are reordered as if they were defined before everything else

#

(afair)

uncut meteor
#
x = {
  val: 15,
  y: function() { this.val = 13 },
  x: () => { this.val = 12 },
} 
#
x = {
  val: 15,
  y: function() { this.val = 13 },
  x: (state) => { state.val = 12 },
} 
vocal basin
# vocal basin

funny how in Russian docs that part comes before everything else

uncut meteor
#

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

zenith radish
vocal basin
#

making a discord as a beginner is kind of:
you fill fail a lot, because async and other stuff
but if you figure that out, you will have a lot of experience and knowledge usable in different projects

zenith radish
#
require 'discordrb'

bot = Discordrb::Bot.new token: '<token here>'

bot.message(with_text: 'Ping!') do |event|
  event.respond 'Pong!'
end

bot.run```
vocal basin
#

they're both worse versions of each other

zenith radish
vocal basin
#

being anti-OOP depends on what you define as OOP

#

message passing is OOP too

#

@whole bear "enterprise style"?

#

kernels have their own notions of objects

#

(often)

#

and then there is Haskell-ish/maths objects/classes
and Rust's traits/objects

zenith radish
#

Interfaces and structs

vocal basin
#

I have no clue what I'm doing but the line seems to fit

#

there's also German inventor
forgot his name

#

The Z3 was a German electromechanical computer designed by Konrad Zuse in 1938, and completed in 1941. It was the world's first working programmable, fully automatic digital computer. The Z3 was built with 2,600 relays, implementing a 22-bit word length that operated at a clock frequency of about 5–10 Hz. Program code was stored on punched film....

#

> The Z3 was demonstrated in 1998 to be, in principle, Turing-complete.
60 years after being designed

rugged root
#

Just want to say I appreciate everyone here. You folks make running the voice chat worth while

#

@eager kraken Yo

eager kraken
#

hey

rugged root
#

How's it going

eager kraken
#

its fine

rugged root
#

@vocal basin Welcome back

eager kraken
#

tbh im new here an trying to learn python so yeah

vocal basin
#

trying to understand where -0.8956 comes from

rugged root
vocal basin
rugged root
eager kraken
wind raptor
rugged root
#

!resources

wise cargoBOT
#
Resources

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

rugged root
#

I personally recommend "A Byte of Python" that's on there.

wind raptor
rugged root
#

I was already typing it

#

You just saved me the rest of the text

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

0.8961037010828107
wind raptor
#

No problem

wind raptor
rugged root
#

Beat me to the gif

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

-0.8958797346140275
eager kraken
rugged root
#

How so?

wind raptor
#

Did you get into JS?

rugged root
#

It's a sickness, any time I hear JS I have to drop that link. It's so good

eager kraken
#

so i shifted to learn python

rugged root
#

Fair

eager kraken
#

no i didnt get into js

wind raptor
#

JS is the programming language behind that. HTML and CSS are just markup langs but do feel like programming langs the way they are set up

rugged root
#

JS is the heavy lifter in most frontend things anymore

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

-0.8956847909917398
vocal basin
#

for now I'll believe this is the correct value

rugged root
#

Maybe

#

With rounding it wouldn't be right still

whole plank
#

i dont have permissions to say hi lol

#

hi

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.

whole plank
#

ill think about it

wind raptor
whole plank
#

ill prolly get the 50 messages here

vocal basin
whole plank
#

actually idk yall aren't talking about anything serious

#

are yall coding?

vocal basin
wind raptor
vocal basin
#

I have no way to get more precision there

#

I have this as a "dataset"

wind raptor
#

ahh, gotcha

vocal basin
#

I can, like, do the maths and calculate the exact value
but guessing is more fun

uncut meteor
#

!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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

rugged root
whole plank
#

cool thanks

rugged root
#

@gleaming lotus

whole plank
#

im trying to learn by osmosis, i think ill stick to general for now

gleaming lotus
#

File "/home/swastik/Downloads/Project/backend/builder-insert.py", line 18, in enter_details
name_input = name.get()
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

rugged tundra
#

programming to construction noises
https://www.youtube.com/watch?v=AB4Ov9t4aq4

There was road works happening down the street. They were so loud and annoying I had to record it and post it to my fans. #construction #sounds

Subscribe to the channel: https://www.youtube.com/channel/UCiGj5D4x0s6PJnflNwIAk0A
See more of my portfolio on my website: https://sunvillesounds.com
Twitter: https://twitter.com/SunvilleSounds

-Relaxa...

▶ Play video
rugged root
#

name isn't anywhere where that function can see it

#

It's inside of another function, and you'd have to let the enter_details() function know about it via global, like how you have khasra

vocal basin
#

enter_details doesn't set it, so should see it anyway

#

take_input is always called before enter_details

rugged root
#

But it still needs global inside enter_details in order to see that it's defined elsewhere

vocal basin
#

ah, yes
if it's not pre-set

#

though

#

idk

#

!e

def f():
    global x
    x = 426
def g():
    print(x)
f()
g()
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

426
rugged root
#

The fuck?

vocal basin
#

name.lower() probably returns None
which is the problem

rugged root
#

Wait

#

!e

def f():
    print(x)
    
def g():
    global x
    x = 426
f()
g()
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 7, in <module>
003 |     f()
004 |   File "/home/main.py", line 2, in f
005 |     print(x)
006 |           ^
007 | NameError: name 'x' is not defined
rugged root
#

That's what's going on

#

!e

def f():
    global x
    print(x)
    
def g():
    global x
    x = 426
f()
g()
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 8, in <module>
003 |     f()
004 |   File "/home/main.py", line 3, in f
005 |     print(x)
006 |           ^
007 | NameError: name 'x' is not defined
rugged root
#

This is why I hate globals

rugged root
#

It's not

vocal basin
#

!e

def f():
    print(x)
    
def g():
    global x
    x = 426
g()
f()
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

426
rugged root
#

Oh right hmm

#

Derp

terse needle
rugged root
#

Yeah, I see I'm wrong

#

Right

vocal basin
rugged root
#

Is it?

#

Hold on

#

ipython

vocal basin
#

name.lower() is None because it's Label

rugged root
#

Ooohhhhhhhhhhhhh

#

Forgot that those are in-place

vocal basin
#

C++ is a committee-made mess

#

but, like, not really wrong mess

#

just large

#
docker run python:2
#

> Interface support is normally restricted to Microsoft Windows.
alleged by wikipedia

rugged root
#

Normally

#

Yeah

vocal basin
#

> There is also an experimental ASIO driver for Wine, WineASIO

#

Asio is a freely available, open-source, cross-platform C++ library for network programming. It provides developers with a consistent asynchronous I/O model using a modern C++ approach.
Boost.Asio was accepted into the Boost library on 30 December 2005 after a 20-day review. The library has been developed by Christopher M. Kohlhoff since 2003....

rugged root
#

@gleaming lotus What's up?

gleaming lotus
#

thank u so much man

rugged root
#

You got it fixed?

#

All thanks should go to AF

gleaming lotus
#

i couldnt figure out why my code fked from days

gleaming lotus
#

thanks so much guys

vocal basin
#

for safe and fast concurrency
"just use Rust"

gleaming lotus
#

love u guys

willow lynx
#

Hi @rugged root

rugged root
#

How's it going?

#

You talking this thing?

amber raptor
rugged root
#

Wait....

#

That kind of looks like the language spread

#

The colorful ones match

uncut meteor
#

looks better with mine @rugged root

zenith radish
rugged root
#

Also holy crap that's a lot of languages

terse needle
uncut meteor
#

F

terse needle
#

care to explain

uncut meteor
#

Patreon ► https://patreon.com/thecherno
Twitter ► https://twitter.com/thecherno
Instagram ► https://instagram.com/thecherno
Discord ► https://thecherno.com/discord

In this video we're talking about copying in C++. Copying objects (and data) is commonly necessary in C++, and to properly facilitate that for our custom types, we need to add someth...

▶ Play video
hearty scroll
rugged root
#

Fair, MDN is gold

terse needle
zenith radish
amber raptor
#

@rugged root

terse needle
vocal basin
zenith radish
vocal basin
#

io.StringIO is often used

terse needle
uncut meteor
rugged root
#

Unfortunately doesn't cover everything

terse needle
#

biggest thing I have contributed code to

#

it's so nice seeing your pr in the version changelog

slate light
vocal basin
slate light
rugged root
#

That dog looks like he farted and is just waiting for their friend to smell it

#

Just that self satisfied smile

vocal basin
#

"tetris-style minigame"

rugged root
#

Oh god

#

As a requirement to unlock your computer

vocal basin
#

10**(10**100) ig

rugged root
#

@swift valley Which editor do you use again?

#

Can't remember

swift valley
#

For work, VSCode
For personal projects, Emacs

rugged root
#

Gotcha gotcha

slate light
rugged root
#

This AI gen'd?

slate light
#

yep

rugged root
#

It's really sick looking

slate light
#

Im getting better everyday

rugged root
#

Index finger looks a bit funky

slate light
#

for sure

rugged root
#

And apparently the US has acquired all the countries, judging by the stars

slate light
#

yee is difficult to change the flag

rugged root
#

Yeah I remember trying to futz with fine details when messing with the fine tuned models

#

I unfortunately don't have the patience to get really really good at it

wind raptor
#

What do you guys think of Foxhole?

alpine elbow
#

@wind raptor The player strikes are hilarious

rugged root
#

That's a thing?

#

As in like

#

People protesting the game?

rugged root
#

Huh

alpine elbow
#

Day of defeat - source 👌

amber raptor
rugged root
#

We're looking to adopt a password management system for our firm. Anyone have any experience - Hey @stuck furnace - with password managers at that scale? Ideally looking for one that can set roles or permissions so that business services doesn't have access to the audit team's passwords and vice versa

#

Was just saying hi, not expecting you to answer that question

ivory horizon
#

`import asyncio

async def counter(name: str):
for i in range(0, 100):
print(f"{name}: {i!s}")
await asyncio.sleep(0)

async def main():
tasks = []
for n in range(0, 4):
tasks.append(asyncio.create_task(counter(f"task{n}")))

while True:
    tasks = [t for t in tasks if not t.done()]
    if len(tasks) == 0:
        return

    await tasks[0]

asyncio.run(main())`

mortal burrow
#

KeePassXC

ivory horizon
#

The above snippet is awaiting task 0 as always. The execution flow is one by one right it is not taking the benefit of concurrency.
found it in a tutorial

stuck furnace
#

I've been playing that a lot lately just to zone out 😄

#

So you just add an if X to the end of the case.

#

But as Hemlock said, it still needs that pattern part.

rugged root
#

The example the PEP gives:

match command.split():
    case ["go", direction] if direction in current_room.exits:
        current_room = current_room.neighbor(direction)
    case ["go", _]:
        print("Sorry, you can't go that way")

@mortal burrow

slate light
#

panda

#

bitdeffender

slate light
somber heath
rugged tundra
#

@zenith radish

amber venture
# somber heath

what is this called?, if i may ask?
I guess i missed some part of convo

#

woahh, okayyy

#

thats creative 🙂

rugged tundra
stuck furnace
#

I think he was in Silicon Valley? pithink

surreal epoch
#

this voice chat looks super chill :)

#

i'm afraid i dont have the permission to talk yet :/

wise cargoBOT
#
Voice verification

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

surreal epoch
#

thats great!

#

OpalMist, I just read your bio :D quite inspiring

stuck furnace
#

Yeah I hate that 😔

#

Just list your prices on your website! lemon_angrysad

surreal epoch
#

Boys, I've just bought "Automate The Boring Stuff With Python" as an absolute beginner and its arriving tomorrow joe_salute

rugged tundra
#

Why does the voice command not include the criteria? Unsure how many characters are required to explain voice verification.

Possibly it can be explained in the voice command description??

@rugged root

#

Been wondering about that for a year...

#

I thought there was a reason....

#

Can we have a ticket made to address this?

rugged root
#

!source

wise cargoBOT
surreal epoch
#

guys, I have quite the noobie question but ive been dying to ask this: What program do you use to program Python? Pycharm or....?

rugged tundra
#

Started with Pycharm, switched to Visual Studio Code

stuck furnace
surreal epoch
#

is IDLE the python shell thingy?

#

oh alright!

rugged tundra
#

Visual Studio Code handles every language I have thrown at it thus far.

somber heath
rugged tundra
#

Prefer to stay in one environment.

somber heath
#

Read evaluate print loop.

surreal epoch
#

I'm learning alot in this voice channel

rugged root
#

That's the great thing about here

#

You pick up a lot

red peak
rugged tundra
rugged root
#

Although we do end up just chatting and chilling a lot as well

surreal epoch
rugged tundra
#

If not, may provide resources to setup environment.

surreal epoch
#

is there like a good tutorial teaching Github? I see all professional programmers use it but its quite difficult to grasp as a beginner

stuck furnace
#

Something I use the REPL for is interactively writing regression tests. Essentially load the file with python -i whatever.py, and test it interactively, then copy and paste the transcript into a text file and run it with doctest 😄

#

I'm light theme in the daytime, and dark theme at night.

#

I think dark text on a light background is easier to read in daylight.

#

@rugged tundra Have you read Thinking Fast and Slow?

mortal burrow
rugged root
#

Snagging the link

stuck furnace
#

@rugged root Erm, it's about the psychology of biases essentially.

rugged root
#

But always ask questions

stuck furnace
#

The whole book revolves around a model that divides thought into two modes: system 1 (fast and intuitive thought), and system 2 (slow, careful thought).

mortal burrow
#

I think the section on priming is not accurate.

stuck furnace
somber heath
stuck furnace
#

Well there is an economic remedy for that. It's called "internalising the exernality".

#

I.e. tax things that affect third parties negatively.

#

And subsidise things that affect third parties positively.

#

Greenhouse gas emissions should be taxed so that their price reflects their true cost.

rugged root
#

Sure, but you still have the environmental impact

#

Businesses are short sighted, odds are good that they'll see that it's cheaper to pay the tax for a 5 year projection than it would be to set up a cleaner fuel

stuck furnace
rugged root
#

I suppose

stuck furnace
#

@zenith radish lemon_angrysad

#

Are you ok @somber heath? 😄

somber heath
molten pewter
#

""In the U.S., the return of top wealth inequality has been particularly dramatic, with the top 1% share nearing 35% in 2020, approaching its Gilded Age level" compared with less than 25% in 1970, the report noted. "

karmic obsidian
#

what is this voice chat about ?

karmic obsidian
#

I agree @zenith radish

#

I agree @rugged tundra

stuck furnace
#

I kind of like the idea of a "universal minimum inheritance" 😄

rugged root
karmic obsidian
#

wealth can never be distributed equally

terse needle
#

"From each according to [their] ability, to each according to [their] needs"

karmic obsidian
#

survival of the fittest ? @terse needle ?

terse needle
karmic obsidian
#

UNTILL YOU HAVE BANKS YOU CAN NEVER DO JUSTICE IN A COUNTRY TO EVERYONE IN A COUNTRY )

#

I don't agree @rugged tundra

#

banks are the mother of all evil in our society ))

somber heath
#
class Ass:
    pass

a = {Ass()}
b = {Ass()}```
karmic obsidian
terse needle
karmic obsidian
#

not capitalism but banking system

molten pewter
#

I definitely try to go most places with a full cock

rugged root
#

Without context.......

molten pewter
#

sorry

#

The context was that we shouldn't go most places "half cocked"

rugged root
#

There we go

#

Labordor retriever

#

Influenca

mossy cedar
rugged root
#

No no no

mossy cedar
#

:,>

rugged root
#

Just doing puns

#

You're good

mossy cedar
turbid sandal
#

i need help

#

login_button = tk.Button(login_frame, text="Next", command=lambda: changes() if username_entry.get() == pit1.read() and password_entry.get() == pit2.read() else print("Invalid username or password"))
login_button.pack(padx=5, pady=5)

#

it not work

rugged root
molten pewter
#

I find most of my electricians under the sofa, but most of my plumbers under the car seat.

mossy cedar
# rugged root HA, all good dude

i actually feel better anyways bcz recently talked with a pakistani girl, her accent was so funny i couldn't take her seriously lmao

turbid sandal
#

lol

somber heath
turbid sandal
#

ok so...

#

login_button = tk.Button(login_frame, text="Next", command=lambda: changes() if username_entry.get() == pit1.read() and password_entry.get() == pit2.read() else print("Invalid username or password")).pack(padx=5, pady=5)

somber heath
#

Spread it out across several lines if you need to.

turbid sandal
#

how

somber heath
#

Also, remember how we talked about how a .pack call returns None, not the widget?

#

You want to assign the variable to the widget, then call the pack off the variable

somber heath
#

When you use lambdas, if you can't write them very, very simply, don't use them.

molten pewter
#

Those Governments organizations should go see the doctors about all those cuts, and especially that hemorrhage.

terse needle
#

Inverse Freddy Krueger

rugged root
#

For context

#

I have no specific plan or idea as to how things should be, other than helping people

#

That's always been my concern

#

Making sure people are taken care of, no matter their lot in life

terse needle
rugged root
#

I think it's wise but I always worry that those kinds of things will just be built into the prices of things where it becomes almost worthless

terse needle
#

Thats a good point

rugged root
#

"We know that people are going to have X amount of money, so we might as well up the prices"

#

But I'm also just very cynical

mossy cedar
#

"no you cant hear the texts"
the text:
U S A! U S A! U S A!

rugged root
#

Dude

#

I love ipython

#

It's so good

mossy cedar
zenith radish
mossy cedar
#

switching to rust in a year

rugged root
molten pewter
#

"after March 2024" ...

#

lol, it's A switch DS....

rugged root
#

You know what

#

I'm cool with that

#

Helps protect the screen at least

molten pewter
#

So many rumors, so little reliability.

rugged root
#

The base looks slightly thicker as well, potentially larger battery

#

But yeah, who knows

#

On the plus side, oh my god Tears of the Kingdom is great

molten pewter
#

so long switch pro, we have entered the switch 2 rumor mill.

zenith radish
#

This is what I imagine bangladesh like

terse needle
#

@zenith radish imagine if we replaced github workflows with an scheme-like lisp DSL 😩

zenith radish
#

But a CI framework based on lisp

#

Thas cool

terse needle
#

fr

zenith radish
#

Also Kj

#

check out penpot

terse needle
#

Yaml does suffice but it's not cool enough

zenith radish
#

Fully written in clj

terse needle
amber raptor
#

I'm going to shower then listen to LP terrible ideas

turbid sandal
#

@somber heath

#

help

#

it not work

somber heath
#

Don't nest defs unless you know why you want to.

#

You aren't calling your inner def.

#

Well done on the pack call stuff.

#

Separating that out.

terse needle
next orbit
#

YESS I have been voice chat verified

molten pewter
#

brb

terse needle
gentle flint
#

state of the screwdriver after turning 6 screws

#

not impressed

molten pewter
#

H131L5Uz3N3Agt

neon vigil
#

@rugged root can I stream :D

turbid sandal
#

i changed the readme file in my repo

#

butit did not update the description

#

what do i do

#

???

rugged root
#

!stream 418374628889853952

wise cargoBOT
#

✅ @neon vigil can now stream until <t:1684267918:f>.

amber raptor
#

Democracy sucks

stuck furnace
#

Hello

rugged root
stuck furnace
#

Cashier lol

amber raptor
stuck furnace
#

Oh really pithink

#

Erm, mercantilism, actually.

#

I think you're now classified as a "flawed democracy".

rugged root
#

Fair

mortal burrow
#

@neon vigil What are you working on?

neon vigil
#

the voice connections for discord bots

rugged root
#

Discord wrapper API, right?

neon vigil
#

yeye

rugged root
#

Sick

#

Hella sick, rather

mortal burrow
#

Are you coming up with the design yourself?

neon vigil
#

nope

molten pewter
neon vigil
#

i mean

#

i do follow docs

#

but a lot of design decisions are different from other wrappers

rugged root
#

No no

#

You were right LX

#

That was my exact thought

whole bear
#

do i have permission to send funni memes in chat

rugged root
#

If they're relevant and not too many

whole bear
#

:((

rugged root
#

We're not a meme dump

whole bear
#

me?

rugged root
#

No the voice chat

stuck furnace
#

That doesn't surprise me~

#

He tutted loudly

rugged root
#

Standard British response

stuck furnace
#

The worst form of scorn possible

rugged root
#

British disapproval is so strong

stuck furnace
#

The deep level tube trains are already loud enough to give you hearing damage

rugged root
#

Fair

stuck furnace
#

Heat just builds up; has no where to go.

#

They're using it to heat buildings now!

rugged root
#

What?

stuck furnace
#

Apparently 😄

#

Elizabeth line is still pretty cool

#

Charlie is a poor waif

#

I maintain that Facebook's success was largely due to the way the rolled the platform out.

#

I.e. starting with a few universities.

rugged root
#

Yeah true

stuck furnace
#

Then expanding to all universities, all schools, then everyone else.

rugged root
#

Progressive rollouts make a huge difference

stuck furnace
#

At least in that case, it meant they could achieve a critical mass of users at each stage.

#

Milenial 👀

rugged root
#

That's insane and brilliant

#

That's what I think of when I think hipster

molten pewter
#

Balenciaga?

zenith radish
quasi condor
zenith radish
quasi condor
gentle flint
quasi condor
zenith radish
stuck furnace
#

Brothel creepers?

zenith radish
rugged root
amber raptor
rugged root
#

Fair

stuck furnace
rugged root
#

It's too good not to be

#

HA

stuck furnace
#

I think when someone says their life has meaning, it means they have decided what their goals in life are.

rugged root
#

That tracks

#

The nihilist thing

thorn wharf
#

is?

rugged root
stuck furnace
rugged root
#

I don't know anymore

thorn wharf
stuck furnace
#

@thorn wharf echo

#

Sorry, @dense pike

thorn wharf
#

who is this

stuck furnace
#

There's definitely something about him

rugged root
#

Agreed

stuck furnace
#

Not necessarily. You assign handlers to loggers.

#

They could write to the console, but they could also send a message over the internet, write to a file, or anything you want.

neon vigil
somber heath
#

@frail jetty 👋

frail jetty
somber heath
#

@frail jetty Are you hearing me talking?

frail jetty
#

i cannot talk

#

i am doing my verification

#

yes

#

i think i have 3 days left until i am verified

#

thank you so much for the help bro!!!

#

so how long have you been in python or software engineering

somber heath
#

@frigid dove 👋

frail jetty
#

so your a full time software engineer?

frigid dove
#

Hiii

#

How are you.. ?

frail jetty
#

okay what advice would you give someone who wants to be a software engineer

frigid dove
#

Can I ask you a question.?

frail jetty
#

@frigid dove yes you can bro Opal is cool

frigid dove
#

I want to build my career in Artificial Intelligence.
So thats why I want to learn Python and I don't like the theoretical learning , I want to learn Python practically.. So, how to learn Python practically ..

vocal basin
#

"practically" and "theoretically" isn't that much different for programming

frigid dove
#

Ohk.. I understand.. Thank you

frail jetty
#

i am currently new to programming (began 2 months ago) still doing a bootcamp. I spend 18 hours studying a day and at least 288 hours a month... how long will it take to get a job exactly?

vocal basin
vocal basin
#

18 hours is too much

frigid dove
vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 744
002 | 288
vocal basin
#

ugh

#

third

#

too much

frigid dove
#

18 hours 😵‍💫

frail jetty
#

how long dose it take to become a developer? like to get a job.. I have a burning fire to get this

#

i do sleep 6 hours a day

vocal basin
#

there is no specific "learn this long => get a job" time

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

171.42857142857144
vocal basin
#

rounding down to 168 hours

vocal basin
frigid dove
#

Nice 👏

vocal basin
#
  • depends on what job
frail jetty
frail jetty
#

@somber heath what do you mean by quality? can you please explain

#

i see what you mean, and i agree with that statement

#

yes thats true! compound effect

heavy vale
#

please enable activities

frail jetty
#

i agree!

vocal basin
# frail jetty front end developer

maybe better to try to find an internship then
(paid internship, as in the company pays you)

look up what requirements companies have for interns
apply for internships, attend interviews
until you get there, make projects on your own (to demonstrate skills you have), attend free courses, explore stuff outside those courses

heavy vale
#

@somber heath

frigid dove
#

Are you a Native English speaker @somber heath

heavy vale
#

yeah

#

he is

frail jetty
#

how do you network with other people??

heavy vale
#

dc

frail jetty
#

lol haha

heavy vale
#

whats funny?

frail jetty
heavy vale
#

oh ok

#

i see ur new on this server

vocal basin
#

!e

from __future__ import braces
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     from __future__ import braces
003 |     ^
004 | SyntaxError: not a chance
frail jetty
#

@somber heath Thanks so much for the advice and your time brother! may God bless you! i think i am happy with the questions you answered and if i need any help. I will come back to you again

heavy vale
#

@somber heath what do u work i mean whats ur job?

#

oh ok

frail jetty
#

@somber heath yes i am getting back to coding and practicing! i am LOCKED IN!!! lets goo

vocal basin
#

I've recently been put in charge of helping someone learn front-end

#

not sure if I actually know enough about it but I'll try

frigid dove
whole bear
#

anyone knows why the output is always empty string here

def longestcommonprefix(strs):
    prefix = ""
    for i in strs:
        if len(i) < len(prefix) or len(prefix) == "":
            prefix = i
    
    total_word = len(strs)
    count = 0
    while count != total_word and len(prefix) > 0:
        count = 0
        for i in strs:
            if prefix == i[:len(prefix)]:
                count += 1
        if count != total_word:
            prefix = prefix[:-1]
    
    return prefix


name = ["flower","flow","flight"]
print(longestcommonprefix(name))
vocal basin
#

!e

def longestcommonprefix(strs):
    prefix = ""
    for i in strs:
        if len(i) < len(prefix) or len(prefix) == "":
            prefix = i
            print(f"{prefix = !r}")
    total_word = len(strs)
    count = 0
    while count != total_word and len(prefix) > 0:
        count = 0
        for i in strs:
            if prefix == i[:len(prefix)]:
                count += 1
        if count != total_word:
            prefix = prefix[:-1]
            print(f"{prefix = !r}")
    return prefix


names = ["flower","flow","flight"]
print(longestcommonprefix(names))
wise cargoBOT
#

@vocal basin :warning: Your 3.11 eval job has completed with return code 0.

[No output]
vocal basin
#

oh

#

it never sets prefix at all, apparently

whole bear
red peak
#

!e

print(len("")) == ""
wise cargoBOT
#

@red peak :white_check_mark: Your 3.11 eval job has completed with return code 0.

0
vocal basin
#

oh

#

you put it outside

#

it should be inside

#

!e

def longestcommonprefix(strs):
    prefix = ""
    for i in strs:
        if len(i) < len(prefix) or len(prefix) == 0:
            prefix = i
            print(f"{prefix = !r}")
    total_word = len(strs)
    count = 0
    while count != total_word and len(prefix) > 0:
        count = 0
        for i in strs:
            if prefix == i[:len(prefix)]:
                count += 1
        if count != total_word:
            prefix = prefix[:-1]
            print(f"{prefix = !r}")
    return prefix


names = ["flower","flow","flight"]
print(longestcommonprefix(names))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | prefix = 'flower'
002 | prefix = 'flow'
003 | prefix = 'flo'
004 | prefix = 'fl'
005 | fl
red peak
#

!e

print(len("") == "")
wise cargoBOT
#

@red peak :white_check_mark: Your 3.11 eval job has completed with return code 0.

False
vocal basin
#

!e

prefix = "example"
print(f"{prefix = !r}")
print(f"{prefix = }")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | prefix = 'example'
002 | prefix = 'example'
vocal basin
#

oh

#

it doesn't matter actually

#

!r doesn't do anything there

whole bear
#

lmao i am gettinf confused

vocal basin
#

!e

example = "example"
print(f"{example!r}")
print(f"{example}")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 'example'
002 | example
vocal basin
#

!r means repr

whole bear
#

oh got it

#

thank youuuu

#

i changed into len(prefix) == ""

#

thats why

#

it should be 0 thankss

#

or alternate prefix == "" only

vocal basin
#

though probably not with !r

#

!r is almost exclusively for debugging

#

just as repr

whole bear
#

oh thanks for info well thanks a lot even chatgpt suks XD

#

does anyone if im better off coding on windows

#

own all apple devices

#

comforttable in?

#

okay

#

i saw a thinkpad second hand x1 carbon for sale for $300usd

#

was thinking i should just get it

#

linux on windows or mac? 😂

#

haha

#

okay i'll just buy it its $300 💀

#

ive heard that if u install linux on macbook

#

u cant install osx back

#

lol then it voids my warranty i think

#

ix a 3rd gen 2015 x1 carbon really bad

#

should i just get a brand new

#

2022

#

sorry lots of questions LOL

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

fl
whole bear
#

i dont like mac tho windows 12 performance would be same as mac except that u can run games on it too. microsoft said the performance of windows 12 would be same as mac with more customization since they are building specific dedicated hardware specially for windows 12

vocal basin
#

windows 11?

whole bear
#

okayyyyy