#voice-chat-text-0
1 messages · Page 59 of 1
why can't I hear anything
yeyeye weird
I hate php, and it's difficult for me to program
There is activity.
Check your audio settings, make sure your output is pointing to the right device
oh that makes sense
cause I remember checking something like ai voice that trains you to speak
@warm jackal There's a sophomoric joke in there some where
@amber raptor Yo
@zenith radish Fury is missing you
@mild quartz Yo
yo
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
Js was earlier this semester
Ah gotcha
They teach both frontend and backend
It's why we have two channels
I'm struggleing with programming login stuff
I'm so glad he said layoffs instead of employees
...and again.
Apparently Amazon sloughed off 18k, from what mustafa said
"I just want to feel what it's like to be loved!"
I could look but I don't know enough about PHP to really be useful
@willow lynx What'd you ask?
Was it pointing to the wrong device like I said?
It happens
nah I just had the speaker on mute
LMAO
I was listening to the song from phone
Just asked which company is best to work for
@amber raptor You can't be serious
so I thought how can I listen to music but not sound from discord
.<
your own
Eh... it really depends. Each person fit different environments better than others.
If you carve a coffee bean to have a face, is that a coffee mug?
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
does anyone know php?
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
ERROR: Could not find a version that satisfies the requirement discord_components (from versions: none)
ERROR: No matching distribution found for discord_components
@mild quartz You would become Colonel Panic himself
help
ERROR: Could not find a version that satisfies the requirement discord_components (from versions: none)
ERROR: No matching distribution found for discord_components
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
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.
Found it
Thanks a lot
That end up being the issue?
@rugged root
Thanks a lot
@fierce summit https://github.com/mhxion/awesome-discord-communities/#php
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
There is also getenv that won’t throw if env variable doesn’t exist.
Ah, neat
It’s like dict get vs variable[key]
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
"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."
No no no
We aren't talking about Pure language
Pure Functional programming paradigm
First time I'm hearing of it, yeah
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...
That's still the programming language
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-...
In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions. It is a declarative programming paradigm in which function definitions are trees of expressions that map values to other values, rather than a sequence of imperative statements which update the running state o...
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?
@molten pewter Has anyone ever told you that you're a dork?
just need to know if this is possible. again, i am reaching it from the github so I am not sure how I would do this, I am just using this for video editing (since im a video editor) and I know a minimal amount of code
@molten pewter There's no way that your wife hasn't called you a dork
just message me here, ill be right back
Fair
How's it going, @willow lynx?
I don't get what the problem is with using that particular nomenclature, Fury
I am just hanging out here
@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
random.random()```
Return the next random floating point number in the range [0.0, 1.0).
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
i sapot china :()
-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
and mass propoganda
i posted a question on #1035199133436354600
here is the message link:
https://discord.com/channels/267624335836053506/1065305479271677992
mass murderer is what i would say
For one, all of it's information is from 2021 and back
ik
It was a joke, Fury
not a joke anymore💀
@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
jokes are funnier when they have an element of truth.
!voiceverify
It just shifted
Sure sure
@dark swan Gotta do that in #voice-verification
Hey Kirti
Iraq of ribs
The justification for the war in Iraq was "weapons of mass destruction"
Do you have to pay for it that end?
can someone verify me to talk
which can not be justified
@dark swan I don't typically make exceptions for the voice gate
but we all know that was a thin veil, for oil and military contracts.
waiting 3 days is a joke
It's for good reason
ill send you paypal lol
You can participate with VC in the same way I am currently: listen and type.
yikes
Can i look for friends here
yeh
I consider you a friend here, Kirti
sheesh
The voice gate certainly can be funny. But it's not the funniest of jokes.
@dark swan So what brings you to the server
python
I prefer Hemlocks puns.
Failed to load resource: the server responded with a status of 500 () isaaks-ai-bot3.onrender.com/:1
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
I will end you
i fully understand you're reasoning
:{
Im just trying to educate someone rather than typing
I kind of feel depressed and lonely
Yeah I changed my mind, I agree too that it makes sense npm winning
If the comments are for yourself, then try not to speak over others, is the main point I want to make, joiverx
That's an amazing way to never get voice perms again
Just sayin'
And I hate doing that to people
hmm:{
@warm jackal With how huge JavaScript and Node exploded I doubt it
Even with the amount of time they've been around
@rugged root can i just speak for 5 mins lol
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
l
What's your question?
@warm jackal Undoubtedly
I want to talk to someone in vc
You can ping them and communicate with them this way
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?
I do love smoothies
@uncut mountain Yo
Yeah, it's feast or famine when it comes to workplace happiness
Hi
@molten pewter Stay at home dad is pretty good
the best
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
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
was that the reason for you to become the admin?
Buddy of mine had us swap from our Skype group to Discord a while ago
cuz you were one of the first
Well.... however old my account is ago, I guess
Skype and TeamSpeak3
Those were mah jam
.
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
PFFF
am not sure if this is the case here as well
Purely for the sake of the community
dis cord
@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
ln -s! =DDD
Oh wait, you're in an OS where the air blows through windows.... WIndblows!
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
That's not the same though? That's the join-link ntfs-only thingy, no?
Or it gets out of control before you can learn
End result behaves similar though, I give you that
not much
went to schiphol this afternoon and took some photos
Is that a place or....
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
I'll be back later, have to focus for a bit
Can I see
your manager is looking
https://chat.openai.com/ @fierce summit
@rugged root can @fierce summit please share screen for a bit
!stream 494575788377636874
✅ @fierce summit can now stream until <t:1674074320:f>.
thx
Yep, be on shortly anyway
good evening guys
!stream @fierce summit 1h
✅ @fierce summit can now stream until <t:1674080060:f>.
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)
!d subprocess.Popen
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.
Someone free to give a hand ?
!e ```py
class A:
def init(self):
print('A')
class B(A):
def init(self):
print('B')
A()
B()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
!e ```py
class A:
def init(self):
print('A')
class B(A):
pass
A()
B()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | A
!e ```py
class A:
def init(self):
print('A')
class B(A):
def init(self):
A.init(self)
print('B')
A()
B()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | A
003 | B
!e ```py
class A:
def init(self):
print('A')
class B(A):
def init(self):
super().init()
print('B')
A()
B()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | A
003 | B
@molten bronze We could hear you.
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...
Hello
Hey @undone frost
!e py iterable = 'MASH' result = '*'.join(iterable) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
M*A*S*H
!e py iterable = 'MASH' print(*iterable, sep='*')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
M*A*S*H
!e py iterable = ['square', 'orange', 'pear', 'banana'] result = ', '.join(iterable) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
square, orange, pear, banana
!e py iterable = ['square', 'orange', 'pear', 'banana'] print(*iterable, sep=', ')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
square, orange, pear, banana
@whole bear 👋
print(",".join(["omicron", "pi", "rho"]))```
!e py iterable = [1, 2, 3, 4] result = '*'.join(iterable) print(result)But wait, there's more...
@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
!e py iterable = [1, 2, 3, 4] result = '*'.join(str(v) for v in iterable) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
1*2*3*4
@warm mason 👋
hii
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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:
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
aight
I see
!code
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.
!code
print('Hello, world.')
print('Goodbye.')```
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
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
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
@blissful fog 👋
okok
f(1)
f(1, 2)
f(1, 2, 3)```
brb...gotta find the error in my code
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
Cool
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
@lofty ermine 👋
@rugged root Still got more left!
"I, too, enjoy a splash of Cholula Not Sauce!"
I don't get the joke reference xP
Was it just a dry joke? =P
"HOT" looks visually similar to "NOT", especially when blurred.
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 👋
thanks👋
This is the hardest one so far, and I'm in love with ukulele now :)
Tab:
https://www.patreon.com/posts/39448292
Tutorial:
https://youtu.be/ThQ9OMkrLZA
Fingerstyle Version:
https://youtu.be/q-sD6Eg8r-w
Guitar Riff On Bass:
https://www.youtube.com/watch?v=w-kEbrgsuvA
@terse shadow 👋
👋
@void palm 👋
hey!
hello
CUTE
hey allll
hmmm
what did I made last
OH
I made donuts
deep fry
lemme find some pictures
Hii
@leaden swallow @grizzled tapir 👋
What's up
brb
hello!!
What's up?
You'll need to tell us about the problem first before we can commit to saying we can help you.
So you're looking where to get started?
Can you help me
don't ask to ask
You suggest me which language i try first
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
?
I will refer people to Corey Schafer's YouTube playlists for Python videos.
depends on the question
it's good
Or java
my friends says python is difficult
anything is difficult when you first begin
so I am confusion
if your friend thinks python is difficult, they'll probably think java is even more difficult
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
u just did
For hacking which os is best
linux in general is better for experimenting with computers and how they work
Kali linux
keep in mind that we will not help you break into systems etc in this server
or advise you on it
No i not hacking others system
I use it for git commits
I only prepare me in hacking carear
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
I don't care what you're using it for
brb now my cat demands to be let out
I don't really do friends on discord much
so I'd rather not if it's all the same to you
Plz
No.
Why
I just said why.
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
You know any discord channel where i learn things for hacking
That's not really an error message.
no help on hacking
Oh, the first one.
what have you set your python interpreter to?
could be you need to be running it with python3 instead
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.
@gentle flint Ok bro i don't say anything about hacking
excellent
I already run it with Python3
did it complain then too?
yes
ok I will try
@gentle flint You are stay all time in this server
sometimes
This from terminal
Any idea how to fix this?
Here’s it, good
so can you change vscode so it runs it with python3?
in the top screenshot here it is using python instead of python3
how to change it to python3 in vscode?
I did it for Xcode and it showed me this
it's a vscode setting
@spring hatch
I assume
It’s run with python3 in a different file
Without changing anything in VS Code settings
doesn't change the fact that it's a vscode setting
its a word I learn from opal
It's not a proper word, of course, but it is a good word.
i agree.
despite of havin 10 ppl
Okay, and Xcode?
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
raising my cat
pigeons?
for real tho that's pretty incredible
yeah it is
haay
@tender wraith
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
read the embed above
Dinner
Where are you from
@somber heath remember that glitch i told you about, when a student got like 100+ points on a 80 points test?
Australia
is that enough to get the fundamentals?
@gentle flint
https://www.coursera.org/specializations/python?
And you
NIce
Let's pretend I do. (Sorry!)
Are you a student or working professional?
Student
no problem, I was able to get a screenshot before it was removed
NIce what do you study
Which one of you has the highest IQ
i dont
People need to get their shit together, I swear.
Programming
Yah
AHh okay nice
Nice
Wow
Sorry, im autistic also
how old are you guys?
27
Amazing
you?
32
21
Why you say 32? which is > than 27?
It’s okay
21<27
It’s just a number
yes, i answered you for this
go ahead
?
it seems to be so hard
───────⚪───────────────────○ 🔊
0:24 / 2:21 ◄◄⠀▐▐ ⠀►► ⠀
@gentle flint do you have any idea about this?
nope, sorry
😑
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
That's OK no problem
Or are we talking about specific disciplines?
Okay
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.
Come on, we gonna sleep 😴 💤
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.
Okay I will give it a shot after the prayer InSha-Allah
176
I’ve got space on the paper to drew them 😆
How did you get 176
Its a search optimization problem yes
Okay give some time
brb
You tell the answer
3124 5 9678. 3, 8. Min 1, max 2.
Is it like The Monty Hall problem?
you need it in Python?
@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
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
How did you arrive to that solution?
Are the doors lined up?
Yes
Is the goal to find one door who is richer?
The first person, behind a door
So any richer?
Okay, there may be some confusion here
The lowest number door, which stands behind a person who is richer
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.
Finding the start of the richers if they're in the righthand group?
Yes
Or seperate problem?
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.
Is the money in coin or notes or what?
It doesnt matter
Or is it people with bank accounts?
It doesnt matter, lets say notes
Arson becomes out of the question, then.
lol
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.)
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.
The voice chats are dead 😦
Its not dead it is sleeping 😌
hi
@somber heath imma head out
bye
@peak pollen 👋
That would depend on if you're doing something I can help with.
What are you doing?
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
#microcontrollers would be the people I'd be speaking with. Check the, aha, pins of that channel.
it isnt too complicated tho, its just some buttons and some leds
You're using a pi/arduino, etc?
https://paste.pythondiscord.com/wirivobeyu
yeah I am, here's my code btw, uh it should be easy to read hopefully just dont mind the bad code
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
!e py import random choices = random.choices([True, False], k=7) print(choices)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[True, True, True, True, False, False, False]
i dont really understand this part
is there anything simpler?
?
i see
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
False
didnt see
!d 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.
ty
But only if you wanted to check if a value was in a given pool of values.
You want > there.
Maybe.
Sorry Opal, didn't mean to dump that on top of your explanation
Quite fair.
lol
That's always annoying
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
Good morning
interesting
Wow
😳















