#voice-chat-text-0

1 messages · Page 59 of 1

fierce summit
#

And it's like torture

terse light
#

why can't I hear anything

rugged root
#

I don't know

#

People were talking a moment ago

#

And now

terse light
#

yeyeye weird

fierce summit
#

I hate php, and it's difficult for me to program

somber heath
rugged root
#

Check your audio settings, make sure your output is pointing to the right device

terse light
#

cause I remember checking something like ai voice that trains you to speak

rugged root
#

@warm jackal There's a sophomoric joke in there some where

#

@amber raptor Yo

#

@zenith radish Fury is missing you

#

@mild quartz Yo

mild quartz
#

yo

rugged root
#

Odd that they're bothering with PHP

#

As it's not heavily used as much as it used to be

#

I would assume the focus would be JS

fierce summit
#

Js was earlier this semester

rugged root
#

Ah gotcha

fierce summit
#

They teach both frontend and backend

rugged root
#

It's why we have two channels

fierce summit
#

I'm struggleing with programming login stuff

terse light
#

I am fucking dumb

#

lol

rugged root
#

I'm so glad he said layoffs instead of employees

somber heath
rugged root
#

Apparently Amazon sloughed off 18k, from what mustafa said

somber heath
#

"I just want to feel what it's like to be loved!"

rugged root
rugged root
#

@willow lynx What'd you ask?

rugged root
#

It happens

terse light
#

LMAO

#

I was listening to the song from phone

willow lynx
rugged root
#

@amber raptor You can't be serious

terse light
#

so I thought how can I listen to music but not sound from discord

rugged root
#

No

#

It's not

#

God damn it

terse light
#

.<

rugged root
#

I will end Fury for this

#

Sorry, not to you

#

Man I miss being able to speak

terse light
rugged root
somber heath
#

If you carve a coffee bean to have a face, is that a coffee mug?

rugged root
#

I like smaller companies, others may like bigger

#

And there's no real way to know if it's a good place for you without being there or looking out for things that you personal desire

#

@mild quartz Next level baiting

#

He's also on a walk with is dog, is my guess

#

@amber raptor Don't do it

#

It's a trap

#

@warm jackal You'd think they'd be compartmentalized, right?

#

Even without the larger namespacing

#

.env files are dope

#

Huh

#

Didn't know there was a dedicated library for it

#

TIL

fierce summit
#

does anyone know php?

rugged root
#

I'm.... now realizing I don't know exactly what I mean either

#

So much baiting going on right now

#

It's unreal

#

I'm saying like..... the terminology. When I hear env-variables, I think whatever is the current given scope

#

Like for a container, it's just those things given to it, for you're OS it's those, etc

whole bear
#

ERROR: Could not find a version that satisfies the requirement discord_components (from versions: none)
ERROR: No matching distribution found for discord_components

rugged root
#

@mild quartz You would become Colonel Panic himself

whole bear
#

help

#

ERROR: Could not find a version that satisfies the requirement discord_components (from versions: none)
ERROR: No matching distribution found for discord_components

rugged root
#

Try using an older version of Python. Like if you're using 3.11, try 3.10

#

May just be that there isn't a version for 3.11 yet

terse light
#

I understand none of it

#

🙂

rugged root
#

@midnight agate Carefully

#

!d os.environ

wise cargoBOT
#

os.environ```
A [mapping](https://docs.python.org/3/glossary.html#term-mapping) object where keys and values are strings that represent the process environment. For example, `environ['HOME']` is the pathname of your home directory (on some platforms), and is equivalent to `getenv("HOME")` in C.

This mapping is captured the first time the [`os`](https://docs.python.org/3/library/os.html#module-os "os: Miscellaneous operating system interfaces.") module is imported, typically during Python startup as part of processing `site.py`. Changes to the environment made after this time are not reflected in [`os.environ`](https://docs.python.org/3/library/os.html#os.environ "os.environ"), except for changes made by modifying [`os.environ`](https://docs.python.org/3/library/os.html#os.environ "os.environ") directly.

This mapping may be used to modify the environment as well as query the environment. [`putenv()`](https://docs.python.org/3/library/os.html#os.putenv "os.putenv") will be called automatically when the mapping is modified.
rugged root
#

Found it

whole bear
#

Thanks a lot

rugged root
#

That end up being the issue?

whole bear
#

@rugged root
Thanks a lot

rugged root
#

That's the best I really have, sorry

#

@midnight agate From the context of the coder, if these things have ways to get them, it doesn't matter where they're stored, why they're mapped that way, etc.

#

That'd be my point

#

You guys get his point, no reason to pick him apart

#

Very stable. Horses everywhere

#

He's muted

#

I cannot type to save my life right now

#

I cannot

amber raptor
rugged root
#

Ah, neat

amber raptor
#

It’s like dict get vs variable[key]

rugged root
#

True, but if it doesn't exist it'll pitch a fit, won't it?

#

No no

#

Like

#

Oh wait, is that how it treats it?

#

Right

#

I'm unsure if os.environ is treated as a default dict or standard

#

I didn't look that hard at it

#

That's pretty standard procedure

#

To use .get

#

Eh

#

Fair

#

Wasn't think about ol' tusky

#

On the plus side, all this typing is going to pump my message count numbers back up

#

@molten pewter It wouldn't be quiet if I could use my mouth

#

I'm in agreement there

#

Yarp

#

.get() I think is slightly more performant?

#

Right right, sorry

#

I was thinking .getenv()

#

Know what I mean, not what I say

#

In most cases, the get variety feels more appropriate

#

Fair

#

Yeah yeah

#

I wish the terms were more consistent regarding error handling

#

I mean it doesn't matter

#

Just annoys me

#

@amber raptor Later, bud

#

catch, except, expect....

#

The fact that Rust has expect compared to Python's except throws me off every time

#

Start typing one "Oh doy, wrong language"

#

Eh

#

Rarely

#

But now that it's in my head

#

ADHD is a bitch

#

Oh for sure

#

In that case it makes sense

#

More of a gripe about catch and except

#

Python isn't really suited to that sort of structuring. Rather... designed with that style in mind

#

Very much more a functional style thing

#

Functional with hard structure

#

Yeah the unwrapping the structure and going from there

#

Err or Ok

#

And expect implies what Rust makes you do; cover all the bases

#

Ooo, good question

#

Does lisp?

#

Hmm

#

Optional

#

It might now

#

Uhhhhhhhh

#

Pure wouldn't be the necessity for optional

#

The result only matters in the context of what you're handling

#

So

#

It is

#

It's a paradigm

#

Functional, OOP, all of those are paradigms

#

They are concepts that we use to structure and design around it

#

JavaScript has elements of Prototype and Functional programming paradigms, for example

#

Yep

#

But it does have functions as first class citizens, which is very functional

#

I think so

#

But not 100% sure

molten pewter
#

"Pure is a modern-style functional programming language based on term rewriting. It offers equational definitions with pattern matching, full symbolic rewriting capabilities, dynamic typing, eager and lazy evaluation, lexical closures, built-in list and matrix support and an easy-to-use C interface. The interpreter uses LLVM as a backend to JIT-compile Pure programs to fast native code.

Pure is the successor of the author's Q language. It offers many new and powerful features and programs run much faster than their Q equivalents. It also integrates nicely with a number of other computing environments, most notably Faust, Pure Data, Octave, Reduce and TeXmacs. A fairly extensive collection of addon modules is available, which makes Pure usable as a compiled scripting language for a variety of purposes."

rugged root
#

No no no

#

We aren't talking about Pure language

#

Pure Functional programming paradigm

#

First time I'm hearing of it, yeah

molten pewter
#

Pure, successor to the equational language Q, is a dynamically typed, functional programming language based on term rewriting. It has facilities for user-defined operator syntax, macros, arbitrary-precision arithmetic (multiple-precision numbers), and compiling to native code through the LLVM. Pure is free and open-source software distributed (m...

rugged root
#

That's still the programming language

warm jackal
#

Idempotence (UK: , US: ) is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. The concept of idempotence arises in a number of places in abstract algebra (in particular, in the theory of projectors and closure operators) an...

#

In computer programming, a pure function is a function that has the following properties:
the function return values are identical for identical arguments (no variation with local static variables, non-local variables, mutable reference arguments or input streams), and
the function has no side effects (no mutation of local static variables, non-...

rugged root
#

And that snippet links back to the one x10 linked

#

So good example would be

#

Looking up a value in a database

#

Those would explicitly unpure

#

Oh go for it

#

If you've got it ready

#

All you

#

Sort of

#

If it's consistent per input (the inputs being the 1 that the user is adding and the existing number, say 999_999_999_999), the it would be pure

#

You're feeding the function the exact same inputs and always getting the exact same outputs

#

Ah, gotcha

#

My brain wasn't taking it as an exception itself, I was thinking it converts it to inf or something

#

That's my b

#

Well aren't you fancy

#

He has it

#

I have no idea

#

I'm.... flattered?

crisp raven
rugged root
#

@molten pewter Has anyone ever told you that you're a dork?

crisp raven
rugged root
#

@molten pewter There's no way that your wife hasn't called you a dork

crisp raven
rugged root
#

Fair

#

How's it going, @willow lynx?

#

I don't get what the problem is with using that particular nomenclature, Fury

willow lynx
rugged root
#

@warm jackal Be honest, you're just trying to make sure you have something you can hold over his head. Make him pay with interest

#

@molten pewter What's wrong with using "pure" to describe this concept?

#

Sure, but both terms have to be thoroughly explained

#

I think in both cases, you're not going to have a term that is going to be "Oh, instantly know what that means"

#

Fury is impotent?

#

@molten pewter Asking for a friend ^

#

!d random.random

wise cargoBOT
#

random.random()```
Return the next random floating point number in the range [0.0, 1.0).
rugged root
#

Wait, it CAN'T be 1?

#

Huh

#

TIL

#

Thought it was straight up 0 to 1

#

Yep

#

@patent yacht Sup

#

How goes it

#

If priests who deal with evil spirits make sure they stay in shape, would that be their exorcise regimen?

#

Vocally

#

^ x10 in real life

#

Actually

#

I think he's of different nationality in different areas

#

Probs

#

I think they're all Scandy, though

#

You're good

#

I'll take the time to get ready to be surprised

#

Did ML have it?

#

Eh

#

Yep

#

Anywhere

#

Also think about safety

#

Not thinking about safety is a good way to get shanked

#

Yes, because I'm white

#

I would only because of where I'm at

#

Yet

#

It's on the list

#

Countries not recognized by the UN. You mean "countries" like.... Taiwan? @molten pewter

#

It's not a country, it's a territory, @warm jackal

#

Yep

#

And they claim it

#

FIFA is bizarre anyway

#

HA

#

The FIFA security council

#

Not this time

#

@molten pewter NOW who's spouting propaganda

#

It is

#

Depending on the side you're on

#

Well

#

Math isn't

#

The fact that Lucky is adorable

sharp urchin
#

i sapot china :()

rugged root
#

-mono tone- Oh man, this conversation is so deep

#

It was a thought experiment

#

It was never a thing actually done

#

Neither did Schrodinger

#

He made that one as a joke

#

He believed in the concept of Schrodinger's Flea

#

@molten pewter Bullshit. If you turn around and then look back at a cat they absolutely teleport

#

Crafty bastards

#

True

#

Wait, you're saying IBM is not recognized globally?

#

Despite how much it has influenced computers as we know them

#

Wait why were they drawing

#

Thought they were playing chess

#

Watson I would say isn't

#

DeepBlue and AlphaGo are certainly world wide known

#

Nor an embassy

#

Coincidence?

#

I think not

sharp urchin
#

drop an oil droplet

#

and there will be bases

#

soon

rugged root
#

^^^^^^^^^^

#

America is like an oil shark

sharp urchin
#

and mass propoganda

rugged root
#

Smell it for miles on end

#

@patent yacht No, it is not

crisp raven
sharp urchin
#

mass murderer is what i would say

rugged root
#

For one, all of it's information is from 2021 and back

sharp urchin
#

ik

rugged root
#

It was a joke, Fury

sharp urchin
rugged root
#

@patent yacht Sure, but the next time you come against the same issue, YOU won't know how to fix it

#

Good

#

Okay, good then

molten pewter
#

jokes are funnier when they have an element of truth.

rugged root
#

It's a resource for a reason

#

Eh

sharp urchin
#

what truth?

#

destabalising middle east

#

\for oil

#

u dont accept it?

#

not true?

rugged root
#

Majority of the reason

#

They're barely different

dark swan
#

!voiceverify

rugged root
#

It just shifted

#

Sure sure

#

Hey Kirti

#

Iraq of ribs

sharp urchin
#

kills millions

#

and then calls others

#

te*******

rugged root
#

And so modest about it

#

@final crane What's your question

molten pewter
#

The justification for the war in Iraq was "weapons of mass destruction"

rugged root
#

Do you have to pay for it that end?

dark swan
#

can someone verify me to talk

sharp urchin
rugged root
#

@dark swan I don't typically make exceptions for the voice gate

molten pewter
#

but we all know that was a thin veil, for oil and military contracts.

dark swan
#

waiting 3 days is a joke

rugged root
#

It's for good reason

dark swan
#

ill send you paypal lol

rugged root
#

You can participate with VC in the same way I am currently: listen and type.

dark swan
#

yikes

final crane
willow lynx
#

Can i look for friends here

sharp urchin
#

yeh

rugged root
#

I consider you a friend here, Kirti

final crane
dark swan
#

sheesh

molten pewter
#

The voice gate certainly can be funny. But it's not the funniest of jokes.

rugged root
#

@dark swan So what brings you to the server

sharp urchin
#

python

molten pewter
#

I prefer Hemlocks puns.

final crane
rugged root
#

The voice gate is there because we had what I call hit and run trolls. People would join the server, join voice chat, scream at the top of their lungs, and then leave

#

This was happening 8+ times a day

sharp urchin
#

:()

rugged root
#

I will end you

dark swan
#

i fully understand you're reasoning

sharp urchin
#

:{

rugged root
dark swan
#

Im just trying to educate someone rather than typing

willow lynx
#

I kind of feel depressed and lonely

final crane
sharp urchin
#

embed failure!!!!!:)))

#

bs

rugged root
#

I would say it's not far off, honestly

#

@patent yacht Have patience

warm jackal
rugged root
#

If the comments are for yourself, then try not to speak over others, is the main point I want to make, joiverx

sharp urchin
#

i wanna scream after you have mentioned abt kids

#

:()

rugged root
#

That's an amazing way to never get voice perms again

#

Just sayin'

#

And I hate doing that to people

sharp urchin
#

hmm:{

rugged root
#

@warm jackal With how huge JavaScript and Node exploded I doubt it

#

Even with the amount of time they've been around

dark swan
#

@rugged root can i just speak for 5 mins lol

rugged root
#

Oh trust me, I know

#

I know

#

Oh no no

#

Wouldn't think that far behind

#

But I feel like likely that NPM sprinted past it

dark swan
rugged root
#

@warm jackal Undoubtedly

dark swan
rugged root
#

You can ping them and communicate with them this way

sharp urchin
#

yall like keventers?

#

wait its british as far as ik

#

its a company for tasty milk shakes

#

*smoothies

#

you guys dont have it in your states/countries?

rugged root
#

I do love smoothies

#

@uncut mountain Yo

#

Yeah, it's feast or famine when it comes to workplace happiness

uncut mountain
#

Hi

rugged root
#

@molten pewter Stay at home dad is pretty good

molten pewter
#

the best

rugged root
#

Ghost pings are the worst

#

Be the solution not the problem

#

Someone pings you or messages you but deletes their message

#

Still shows you have a notification

#

Yes

#

Doesn't work if I'm watching the channel

rugged root
#

Or do a strikeout and say "my bad"

#

new discord, who dis

#

I do a bit

#

What's your SQL question

#

Or someone who does it for work

#

So... Me

#

But not the earliest I've seen

#

Few days before me

sharp urchin
#

was that the reason for you to become the admin?

rugged root
#

Buddy of mine had us swap from our Skype group to Discord a while ago

sharp urchin
#

cuz you were one of the first

rugged root
#

Well.... however old my account is ago, I guess

#

Skype and TeamSpeak3

#

Those were mah jam

rugged root
#

No no

#

Separate friend group

#

?

#

Eh

#

Lemon and Eivl do every now and then

#

And I would be talking if I was back in my office

#

@molten pewter No no, it's fine you bastard

#

Some of our younger ones are students

#

My ADHD requires it

sharp urchin
#

agree

#

is it a paid job as well?

#

i mean some mods in server are paid as well

rugged root
#

PFFF

sharp urchin
#

am not sure if this is the case here as well

rugged root
#

No, we're entirely a volunteer outfit

#

We do this because we love it

sharp urchin
#

ohkk

#

nice

rugged root
#

Purely for the sake of the community

sharp urchin
#

i appreciate it

#

thank you:)

gentle flint
rugged root
#

@patent yacht proof of concept malware is still not acceptable here

#

"It's bad don't do it"?

#

Disruptive, deceptive, or destructive to other people's information, property, etc.

#

It's in the name

#

Malicious software

#

Malware

#

Reiterate

#

Yet

#

One of these days I'm just going to remember how to make soft symlinks without having to look them up every time

#

@gentle flint What're you up to

#

It depends on what can is
@molten pewter It's something you put food in

warm jackal
rugged root
#

I think they have it aliased as such

#

For the longest time, I thought it was script kitties

#

Oh der, it's literally mklink

#

Mmm..... no it's a bit weird

warm jackal
rugged root
#

Or it gets out of control before you can learn

warm jackal
rugged root
#

Source to target

#

HA

#

Nope

#

Not sure actually

gentle flint
#

went to schiphol this afternoon and took some photos

rugged root
#

Is that a place or....

gentle flint
#

amsterdam airport

#

third biggest in europe

#

the place where all the noisy planes over my house go to

#

also my new headphone cushions arrived

#

so I can finally wear my headphones for a full day again without oain

#

anyway, gonna go eat smth

#

cya

rugged root
#

I'll be back later, have to focus for a bit

gentle flint
hoary olive
gentle flint
#

@wet parcel

wet parcel
gentle flint
#

@rugged root can @fierce summit please share screen for a bit

rugged root
#

!stream 494575788377636874

wise cargoBOT
#

✅ @fierce summit can now stream until <t:1674074320:f>.

gentle flint
#

thx

rugged root
#

Yep, be on shortly anyway

dense nebula
#

good evening guys

rugged root
#

!stream @fierce summit 1h

wise cargoBOT
#

✅ @fierce summit can now stream until <t:1674080060:f>.

vocal basin
#

I have PC powered through the non-uninterruptible part of UPS
because the thing can't output more than 600W from its battery (PC's power supply eats 1KW)
though UPS does help with power surges by cutting the power output gracefully

#

my previous PC power supply (~600W input) got burned by GPU

#

(GPU needed 250W, CPU needed 75W; power supply with its 60~70% efficiency failed)

dusk raven
gentle flint
vocal basin
#

!d subprocess.Popen

wise cargoBOT
#
class subprocess.Popen(args, bufsize=- 1, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=True, shell=False, cwd=None, env=None, ...)```
Execute a child program in a new process. On POSIX, the class uses [`os.execvpe()`](https://docs.python.org/3/library/os.html#os.execvpe "os.execvpe")-like behavior to execute the child program. On Windows, the class uses the Windows `CreateProcess()` function. The arguments to [`Popen`](https://docs.python.org/3/library/subprocess.html#subprocess.Popen "subprocess.Popen") are as follows.

*args* should be a sequence of program arguments or else a single string or [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object). By default, the program to execute is the first item in *args* if *args* is a sequence. If *args* is a string, the interpretation is platform-dependent and described below. See the *shell* and *executable* arguments for additional differences from the default behavior. Unless otherwise stated, it is recommended to pass *args* as a sequence.
vocal basin
#

Popen allows most control

vast light
#

Someone free to give a hand ?

torn star
somber heath
#

!e ```py
class A:
def init(self):
print('A')

class B(A):
def init(self):
print('B')

A()
B()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A
002 | B
somber heath
#

!e ```py
class A:
def init(self):
print('A')

class B(A):
pass

A()
B()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A
002 | A
somber heath
#

!e ```py
class A:
def init(self):
print('A')

class B(A):
def init(self):
A.init(self)
print('B')

A()
B()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A
002 | A
003 | B
somber heath
#

!e ```py
class A:
def init(self):
print('A')

class B(A):
def init(self):
super().init()
print('B')

A()
B()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A
002 | A
003 | B
somber heath
#

@molten bronze We could hear you.

molten bronze
#

django

#

css

somber heath
#

Django Unchained. Amazing movie.

molten bronze
#

first time

#

but is more html and css

somber heath
#

@tidal bolt 👋

undone frost
somber heath
#

Lysithea is a prograde irregular satellite of Jupiter. It was discovered by Seth Barnes Nicholson in 1938 at Mount Wilson Observatory and is named after the mythological Lysithea, daughter of Oceanus and one of Zeus' lovers.Lysithea did not receive its present name until 1975; before then, it was simply known as Jupiter X. It was sometimes call...

white geode
#

Hello

uncut mountain
#

Hey @undone frost

somber heath
#

!e py iterable = 'MASH' result = '*'.join(iterable) print(result)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

M*A*S*H
somber heath
#

!e py iterable = 'MASH' print(*iterable, sep='*')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

M*A*S*H
somber heath
#

!e py iterable = ['square', 'orange', 'pear', 'banana'] result = ', '.join(iterable) print(result)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

square, orange, pear, banana
somber heath
#

!e py iterable = ['square', 'orange', 'pear', 'banana'] print(*iterable, sep=', ')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

square, orange, pear, banana
somber heath
#

@whole bear 👋

sharp urchin
#
print(",".join(["omicron", "pi", "rho"]))```
somber heath
#

!e py iterable = [1, 2, 3, 4] result = '*'.join(iterable) print(result)But wait, there's more...

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: sequence item 0: expected str instance, int found
somber heath
#

!e py iterable = [1, 2, 3, 4] result = '*'.join(str(v) for v in iterable) print(result)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

1*2*3*4
somber heath
#

@warm mason 👋

warm mason
#

hii

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

warm mason
#

ok seems like today is not my day

#

I will remain silent then

#

how is it going everybody? I'm new here. Also a python noob.

#

I agree with the Opal mate

#

0-0 awesome

#

ok prob N1:

#

can't get a job

#

day 1 of looking tho

#

oh no D:

somber heath
warm mason
#

the java guys got it better?

#

oh the grid of resistors thing. A teacher of mine once made a dinosaur and made us calculate it

sharp urchin
#

aight

warm mason
#

I see

sharp urchin
#

next is java for me

#

done:)

warm mason
#

he made one out of resistors

#

crazy old man

#

yeaa

#

sure

#

np

#

okok

#

yea

somber heath
#

!code

wise cargoBOT
#

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.

warm mason
#

!code

somber heath
#
print('Hello, world.')
print('Goodbye.')```
warm mason
#

how did you do that

#

oh okok

#

'''
def f():
'''

#

ok

#
def f():
  
#

oh like this

#
f(*)
#

I haven't touch a python code since august because of my finals and I now feel dumber than ever hahahaha

#

brb

sharp urchin
#

i am sorry to hear that

#

but yes i have the same vision

#

to take pain now or take a massive problem later on

#

hmm

warm mason
#

I'm back!

#
def f(Nlist):

    result = Nlist[0]
    for i in Nlist:

        if result < i:
            result = i

    print(result)


number_list = [-1, 0, 1, 2, 2]

f(number_list)
#

yes

#

oh so It must take multiple args then

#

brb

somber heath
#

@blissful fog 👋

warm mason
#

okok

somber heath
#
f(1)
f(1, 2)
f(1, 2, 3)```
warm mason
#

come again?

#

right at it!

sharp urchin
#

brb...gotta find the error in my code

warm mason
#
def f(*args):

    result = args[0]
    for i in args:

        if result < i:
            result = i

    return result


print(f(1, 0, 2, 3, 4, -1))
#

;D

#

never used "*args" before

#

sure tell me

#

yea

#

don't worry about that mate. I came here to learn and motivate myself to code more not to get offended. I appriciate the help

#

the max func would have been good as well. I totally forgot about that one. I will write it again

#

you just confused the frick out of me mate. aren't they both 8?

#

ohh that makes sense

#

I would take the position as a variable and return it as a tuple.

#

would that be reasonable?

#

yep

#

my func would take the first 8 as the result not the second one. To take the last 8 I would add an equal to the comparison.

#

I'm from Argentina.

#

that's why my eng so dumb haha

#

😄

#

Messi

#

ohhh

stray niche
warm mason
#

you are from Napoles!!! that's great.

#

here is god. If you watch any of the matches at the world cup the people were singing about him

#

well gotta go. Nice talking to you all.

#

hope next time I can actually speak haha

stray niche
#

Hello

#

Skyy

#

Okay byee

gentle flint
somber heath
#

@lofty ermine 👋

gentle flint
somber heath
#

@silent plume 👋

#

@uncut steppe 👋

warm jackal
#

@rugged root Still got more left!

somber heath
warm jackal
#

Was it just a dry joke? =P

somber heath
#

"HOT" looks visually similar to "NOT", especially when blurred.

somber heath
#

The PID knows where it is at all times. It does this by knowing where it is not and by subtracting where it is not from where it was.

#

Scene three, act two.

#

@dark olive 👋

dark olive
#

thanks👋

somber heath
#

@terse shadow 👋

terse shadow
somber heath
#

@void palm 👋

void palm
short bluff
#

hello

zenith radish
frosty star
#

hey allll

#

hmmm

#

what did I made last

#

OH

#

I made donuts

#

deep fry

#

lemme find some pictures

spring hatch
#

😋

#

import doughnuts

whole bear
#

Hii

frosty star
somber heath
#

@leaden swallow @grizzled tapir 👋

whole bear
#

What's up

frosty star
#

they were really good

#

nope

#

this was fresh from the pan

whole bear
#

Yah

#

Anyone help to me in python

frosty star
#

brb

leaden swallow
somber heath
#

You'll need to tell us about the problem first before we can commit to saying we can help you.

whole bear
#

Bro i can't type coding

#

i am Beginner

somber heath
#

So you're looking where to get started?

whole bear
#

Can you help me

terse light
whole bear
#

You suggest me which language i try first

somber heath
#

Python is an excellent beginner language.

#

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

whole bear
#

?

somber heath
#

I will refer people to Corey Schafer's YouTube playlists for Python videos.

gentle flint
whole bear
#

Python is best for beginners

#

?

gentle flint
#

it's good

whole bear
#

Or java

gentle flint
#

so is javascript

#

don't start on java

whole bear
#

my friends says python is difficult

gentle flint
#

anything is difficult when you first begin

whole bear
#

so I am confusion

gentle flint
#

if your friend thinks python is difficult, they'll probably think java is even more difficult

frosty star
gentle flint
#

that a language is easier than other programming languages doesn't necessarily mean it's easy

#

programming is just hard at first

#

there's a reason it's a speciialised job

whole bear
#

👍

#

I ask 1 question

#

?

gentle flint
#

u just did

whole bear
#

For hacking which os is best

gentle flint
#

linux in general is better for experimenting with computers and how they work

whole bear
#

Kali linux

gentle flint
#

keep in mind that we will not help you break into systems etc in this server

#

or advise you on it

whole bear
#

No i not hacking others system

frosty star
#

i like using vim for quick things on the server

#

its quite convenient sometimes

gentle flint
#

I use it for git commits

whole bear
#

I only prepare me in hacking carear

gentle flint
#

not helping

#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

gentle flint
#

I don't care what you're using it for

frosty star
#

brb now my cat demands to be let out

gentle flint
#

nor will the admins or mods

#

no help on hacking

whole bear
#

Ok

#

Can you accept my request

gentle flint
#

I don't really do friends on discord much

#

so I'd rather not if it's all the same to you

whole bear
#

Plz

gentle flint
#

No.

whole bear
#

Why

gentle flint
#

I just said why.

peak raven
#

Hi everyone, can I get help with this?
when I try to runPython on VS Code & Xcode, it shows me this error messages, how to fix it?

I use macOS Monterey

whole bear
#

You know any discord channel where i learn things for hacking

gentle flint
#

dude

#

how many times do I have to tell you

somber heath
gentle flint
#

no help on hacking

somber heath
#

Oh, the first one.

gentle flint
somber heath
#

I don't use that IDE, but I expect it'll be a configuration problem. You'll probably need to poke around in the settings.

whole bear
#

@gentle flint Ok bro i don't say anything about hacking

gentle flint
#

excellent

gentle flint
#

did it complain then too?

peak raven
#

yes

gentle flint
#

oh

#

that's annoying

#

what if you run it from the terminal?

whole bear
#

@gentle flint You are stay all time in this server

gentle flint
#

sometimes

hasty fulcrum
#

yooo

#

sup

peak raven
hasty fulcrum
#

Any idea how to fix this?

gentle flint
#

I mean the macos terminal

whole bear
#

I can't seen Maroloccia livestream

#

Only i will seen loading screen

peak raven
gentle flint
#

so can you change vscode so it runs it with python3?

gentle flint
peak raven
hasty fulcrum
gentle flint
#

I assume

hasty fulcrum
peak raven
#

Without changing anything in VS Code settings

gentle flint
#

vscode can make settings per project

#

so that's not so strange

frosty star
#

a am arting

#

making artt

#

art-ing

gentle flint
#

doesn't change the fact that it's a vscode setting

frosty star
#

its a word I learn from opal

somber heath
#

It's not a proper word, of course, but it is a good word.

frosty star
#

i agree.

sharp urchin
#

despite of havin 10 ppl

peak raven
gentle flint
#

I've never used Xcode so idk about that

#

but the fact that it runs python3 on your terminal means that python3 is installed

#

so you can just set vscode to run it with python3

frosty star
#

raising my cat

molten pewter
frosty star
#

pigeons?

frosty star
frosty star
#

woah it has a hairstyle

#

oh its the feathers

frosty star
#

haay

gentle flint
#

@tender wraith

wise cargoBOT
#

Voice verification

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

gentle flint
#

read the embed above

tender wraith
#

!voiceverify

#

Hello guys

whole bear
#

Dinner

tender wraith
#

Where are you from

foggy plover
#

@somber heath remember that glitch i told you about, when a student got like 100+ points on a 80 points test?

whole bear
#

Australia

peak raven
whole bear
#

And you

tender wraith
#

NIce

tender wraith
#

Are you a student or working professional?

whole bear
#

Student

foggy plover
tender wraith
#

NIce what do you study

foggy plover
#

this time its 300+

somber heath
#

Oh, right. Yes.

#

Ffs.

tender wraith
#

Which one of you has the highest IQ

foggy plover
#

i dont

somber heath
#

People need to get their shit together, I swear.

tender wraith
#

My IQ is 50

#

Is that good?

whole bear
#

Programming

tender wraith
#

Im hoping to increae my IQ by osmosis

#

Will it work?

whole bear
#

Yah

tender wraith
#

AHh okay nice

whole bear
#

Bro your country name

#

?

tender wraith
#

UK

#

UK, London

whole bear
#

Nice

tender wraith
#

I am 2x Mathematical olympiad Gold medalist

#

Is that good?

whole bear
#

Wow

tender wraith
#

Sorry, im autistic also

peak raven
#

how old are you guys?

tender wraith
#

27

whole bear
#

Amazing

tender wraith
#

you?

peak raven
#

32

tender wraith
#

Okay semo

#

Do you think you ar egood or something Semo

whole bear
#

21

tender wraith
#

Why you say 32? which is > than 27?

peak raven
#

It’s okay

whole bear
#

21<27

peak raven
#

It’s just a number

tender wraith
#

Ooohhhh

#

You mean you are 32 years of age?

peak raven
whole bear
tender wraith
#

Okay i have a riddle for you guys

#

Are you ready for an IQ test?

peak raven
#

go ahead

whole bear
#

?

peak raven
#

it seems to be so hard

gentle flint
whole bear
#

Where is question for semo

#

@tender wraith ?

spring hatch
#

───────⚪───────────────────○ 🔊
0:24 / 2:21 ◄◄⠀▐▐ ⠀►► ⠀

peak raven
gentle flint
#

nope, sorry

whole bear
#

😑

somber heath
#

!resources

wise cargoBOT
#
Resources

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

peak raven
somber heath
#

Or are we talking about specific disciplines?

whole bear
#

Okay

tender wraith
#

There are 88 doors, behind each door there is a person with X amount of money. You are given Y amount of money where two conditions hold true: Y > X or Y < X. Everyone richer than you are lined up consecutively. Everyone poorer than you are also lined up consecutively. Find a strategy and the least number of doors you would need to open in order to find the first person who is richer than you.

peak raven
tender wraith
#

If you can solve this problem, your IQ is > 130

#

Atleast, 130.

#

Give it a try.

#

I also made this question up, so dont bother to google.

whole bear
#

Ok

#

I also try

#

Answer in number or alphabet

peak raven
tender wraith
#

There are not ordered in descending or ascending order

#

Its a difficult one btw

frosty star
#

Hey opal

#

I drew

#

Feet

#

For real this time i drew them

whole bear
#

176

frosty star
#

I’ve got space on the paper to drew them 😆

tender wraith
#

How did you get 176

whole bear
#

Magic

#

😅

tender wraith
#

Its a search optimization problem yes

whole bear
#

Okay give some time

tender wraith
#

brb

frosty star
#

I'm really bad at these sort of problems 😦

#

brb

whole bear
#

You tell the answer

somber heath
#

3124 5 9678. 3, 8. Min 1, max 2.

peak raven
#

you need it in Python?

whole bear
#

@midnight agate hey

#

Guys i face some problem in this server when i go to seen some live in vc the stream is loading continuously

tender wraith
#

No its search optimization problem

#

You dont need probability here

#

Its not coding which is difficult

#

Its solving the abstract problem

#

As a software developer

#

Give it a try, even if you dont get it. Its still good to learn

tender wraith
somber heath
#

Are the doors lined up?

tender wraith
somber heath
#

Is the goal to find one door who is richer?

tender wraith
#

The first person, behind a door

somber heath
#

So any richer?

tender wraith
#

Okay, there may be some confusion here

#

The lowest number door, which stands behind a person who is richer

somber heath
#

Okay, then it's binary search. Divide and conquer.

#

The least number of doors would be 1, but you couldn't know you had your target unless you did some verification.

#

Though I'd check the lowest door, first.

#

Because if that's the group with the richers, then that's the door.

tender wraith
#

Yes you would use binary search

#

Ready for part 2?

somber heath
#

Finding the start of the richers if they're in the righthand group?

tender wraith
#

Yes

somber heath
#

Or seperate problem?

tender wraith
#

Same problem

#

But this an added compelxity

#

If you were to open two doors in which behind both, there stands a person richer than you. Then you immediately lose all your money. What strategy would you adopt to find the lowest door number which holds a person richer than yourself without losing all your money? And what is the lowest number of doors opened in order to find this door?

The 2 doors richer than you do not have do occur sequentially. Relative to your door opening or relative to the line of doors.

somber heath
#

Is the money in coin or notes or what?

tender wraith
#

It doesnt matter

somber heath
#

Or is it people with bank accounts?

tender wraith
#

It doesnt matter, lets say notes

somber heath
#

Arson becomes out of the question, then.

tender wraith
#

lol

sturdy panther
#

Linear search from one side or the other. Too much walking otherwise.

#

And... I think edge case of everyone being richer is impossible to detect? (Oh, nevermind. Misunderstood it.)

somber heath
#

50:50 you can get it first go, depending on the if the richers are in the upper or lower group.

#

If you don't get it first go, then your linear search ends up killing you when you run into the other end of the richers, travelling left.

#

I'm sleep.

tender wraith
#

The voice chats are dead 😦

frosty star
#

Its not dead it is sleeping 😌

unique holly
#

hi

#

@somber heath imma head out

#

bye

somber heath
#

@peak pollen 👋

peak pollen
#

a little?

somber heath
#

That would depend on if you're doing something I can help with.

#

What are you doing?

peak pollen
#

im doing stuff that involves like gpio pins I am very new to python and I have no clue what I am doing

#

i also just joined the server so I cant really talk

somber heath
#

#microcontrollers would be the people I'd be speaking with. Check the, aha, pins of that channel.

peak pollen
#

it isnt too complicated tho, its just some buttons and some leds

somber heath
#

You're using a pi/arduino, etc?

peak pollen
#

yeah, but i dont know how to do any of that

#

my main problem is making it loop as well as making my button2 play one of my sequences

#

button2 is linked to my randint number thing that would give i a number then because i==3 for example it would turn on those leds and give you coins through variable x

#

nope

#

im still in highschool and I have a due date

#

i have to use what is given to me through my teacher

#

yeah

#

i am so screwed

#

yes they are

#

its a slot machine

#

nope never

#

yeah I am

#

@somber heath is it alright if I friend you and talked to you?

#

alr thats fine

#

another thing is, im using i to play a sequence from 1 to 50, to display the number of coins you have in binary

#

using leds

somber heath
#

!e py import random choices = random.choices([True, False], k=7) print(choices)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

[True, True, True, True, False, False, False]
peak pollen
#

is there anything simpler?

#

?

#

i see

somber heath
#

!e py print(1 > 5)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

False
peak pollen
#

so i woujld do if x > 50, 51, 52, 53, 54

#

something like that?

somber heath
#

!d in

wise cargoBOT
#
in

6.10.2. Membership test operations

The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).

For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.

somber heath
#

But only if you wanted to check if a value was in a given pool of values.

#

You want > there.

#

Maybe.

sweet lodge
somber heath
#

Quite fair.

peak pollen
#

lol

somber heath
#

You're being more thorough.

#

I'm plodding along on mobile.

sweet lodge
#

That's always annoying

peak pollen
#

opal right now for me its kind off like a one time thing, im not actually planning to go into coding but I just took the course because it was fun

#

I guess its right to watch it

#

but rn im looking for more of a quick answer yeah

#

alright

#

thing is im kinda running out of time

#

i know

#

sorry I wasnt trying to

#

now that I think about it I actually have plenty of time

#

just my code has to work by monday

#

ok

#

we can keep going over it

#

better?

#

better as in it would you know

#

be better

#

it would make more sense?

#

lol

#

alr

#

yea

whole bear
#

Good morning

peak pollen
#

good night

#

lol

whole bear
#

?

#

Good morning

peak pollen
#

its 11 for me

#

pm

whole bear
#

1 For me

#

Am

peak pollen
#

interesting

whole bear
#

😀

#

Where are u

peak pollen
#

canada

#

where are u?

whole bear
#

Wow

peak pollen
#

cold here

#

very

whole bear
#

😳

peak pollen
#

@icy axle gn

#

or morning

#

or afternoon

#

@somber heath ima go watch some yt videos