#voice-chat-text-1
1 messages Β· Page 54 of 1
@drowsy adder How old are you?
Damn π
your older than me
19
graduated
cs major
bsc
3 year
nope
I'm earning good
10k USD
passive
year round
I live in India
Yes but they are 0.1%
@drowsy adder What do you do in kotlin?
!rule 4 ?
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
please π
Them's the rules π I like listening
He should also speak english...
the rules π
this is englishman server
You're free to speak any language in private calls, but in the public chat, the moderators request English

It's OK, practice English and it gets bette
US english
bangladesh is good place
with full of wrong people
so does india
I hate free to play game
that has in app purchase
cause they do real harm
to the gamer
F2P is the worst thing to happen to gaming
bye tc all
5 oclock is near!
Huzzah!
Quack
oh I can type in here, cool
I haven't been in the server for 3 days so I can't speak yet. I'm just working on a project and thought I'd find other devs to talk to
what's the project
trying to create a edtech startup. AI teaching based on how the student thinks/learns overtime using network analysis
alot based on assumptions but also some grounded ideas on education, trying to make an mvp and seeing what college students think about it 
Hi
cant talk
do you know where I can learn the under the hood of loops
I know its very slow so I am trying to understand why?
@mortal swiftπ
?
I like to give a wave to people who don't have the voice role, becaue they're the ones who often don't know that we have an accompanying text channel as opposed to the Discord baked-in ones.
So you can still join in. π
Thanks.
gm sup
would like to talk sometime
loil
well there is more to that than waht you are desctibing
I mean thats simple stattisics
you can have a 10 day forcats lol
hmmmm
I hope that I can talk soon
hey i have a problem i cant install tensor flow i have open core patcher installed for sequoia
ERROR: Could not find a version that satisfies the requirement tensorflow==2.9.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.9.0
it shows that
name TEXT UNIQUE
can you help me?
With what
i cant install tensor flow i have open core patcher installed for sequoia
ERROR: Could not find a version that satisfies the requirement tensorflow==2.9.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.9.0
it shows that
% pip install tensorflow==2.9.0
Requirement already satisfied: pip in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (25.0.1)
Good evening!
can it because i have a patcher
?
Download the file than manually build
https://www.youtube.com/watch?v=RXJKdh1KZ0w @marsh lodge
Encabulator videos abound.
several hours of refactoring my old factory
road to 50 messages π£οΈ
I could listen to this all day LOL
https://www.youtube.com/watch?v=ZB5ig6vpQug @umbral rose
Funny scene from Monty Python and the Holy Grail...
Which game is this?
Satisfactory!
@stuck bluff done let's wait now fingers crossed
Hello
Yep
No-talk-lock
@stuck bluff How dare you talk about my lack of ability like that. I'd tell you off but I'm bad at that, too
I love the random things
"Not Going to Try Your Website: The Musical"
@thin lintel "It's either food now or your flesh now."
@last wind Yo
Last time I checked, ye
An age that will never happen again
God I wish I could speak, I love doing that voice
@stuck bluff "I like it when the red water comes out"
@last wind Means the fridge is set too cold
It would solve the frozen food issue
Yarp
@stuck bluff I already tried one thing
As you might know python3 cmd and python cmd or key word what ever we call it points to different versions of python but didn't work π
@last wind ^
Trying to figure out how to convert Pydantic models into Tortoise models.
It's sharing the brain cell currently
It's a singular pool for any ginger cat
GIVE ME THE BRAIN, THE CUSTOMER IS WRONG
I think it's called Give Me the Brain
Can't remember now
Ah yeah, "Give Me the Brain!"
Brain not found 404
@last wind If you're going to interrupt again, I will mute you.
There was already a conversation going on
And perhaps if you had listened to it, then you might have been entertained
Some of the cards
I remember seeing these at some point in my life
!vmute 956167389010075678 After reviewing your infraction history, you've been given chances to behave yourself. And since you still have not been able to control yourself, your voice permissions are being removed.
:incoming_envelope: :ok_hand: applied voice mute to @last wind permanently.
There we go
@astral spoke I perma muted from my side
It's a non issue now
@true valley Sup nerd
@hearty heath Sup other nerd
π
Sup to all nerds
@stuck bluff this can happen when power saving is ON sound cards tend to act weird on power saving mod on Linux happened to me
@true valley It's such a good game
...
Steve Jackson Games are great
I use power saving mode all the time or it can die. It works fine. It was because it was grinding. Some apps are memory hogs.
Fury your mic is quiet again
Weird, I'll tweak it on my end then
@tawny lily I forgot to "sup nerd" you
@stuck bluff I mean I can hear him, I just had to turn him up to 200%
Exactly but because of that now I know how sound cards turns digital signal to analog
@astral spoke π»
@stuck bluff for some reason I have a tendency to stick my finger where it don't belongπ
Wanting Monster Hunter Wilds to be out already
What was his name?
first time trying Login With Discord thinge
Like as OAuth?
@mild flume Why the voice mute, the latest time I have received a voice mute was a year ago..
Yes, and your behavior hasn't changed
If you wish to appeal it, send a message to the @crisp hazel bot, if you don't mind
We can discuss it there
Who said? I have not played music or did anything from the latest voice mute.

print("Please choose which country's Amazon you want to access!")
regions = environments.keys()
region = 0
for i, region in enumerate(regions):
print(f" {i}.\t{region}")
while True:
try:
choice = int(input("Country #: "))
except:
logger.error("Not a number!")
if choice in range(len(regions)):
region = choice
break
environment = environments[region]
That looks clean to me
except: π
Yeah that'd be the main fix
except makes more sense
But just specify the type
except ValueError:
logger.error("Not a number!")
continue
environment = environments[region]
Please choose which country's Amazon you want to access!
0. UK
1. USA
2. Germany
3. Italy
4. Canada
5. France
Country #: 1
for i, region in enumerate(regions):
print(f" {i+1}.\t{region}")
Hmm?
You can just do the same thing but on the other side
They're sorted by insertion order
Yes they are
Oh sets aren't
Dicts are
I misunderstood
@stuck bluff Why?
It was added to the spec the version after
As I said
Here's how I might do it π ```py
def repeated_input(prompt, backup_prompt):
yield input(prompt)
while True:
yield input(backup_prompt)
def choose(prompt, options):
print(prompt)
for i, option in enumerate(options):
print(f"{i:>3}. {option}")
for response in repeated_input('', 'please enter a number '):
try:
return options[int(response)]
except (IndexError, ValueError):
continue
choose('favourite cake? (pick a number)', 'carrot chocolate vanilla'.split())
tee hee
@stuck bluff Rolling out a blueprint, "Alright lets assemble this thing..."
Opal, it's been 8 years
Let it go
Did I hear you slap your own hand?
Yep, knew I heard it
Ah okay
"UK": {
"base_url": "https://www.amazon.co.uk",
"account_list_selector":"nav-link-accountList",
"sign_in_selector": '#nav-flyout-ya-signin > a.nav-action-signin-button',
"email_selector": "ap_email_login",
},
Wait, dafuq? It's not listed in the type details on the docs
I know I read it in one of the change logs....
This is going to bug me
Yep, I'll be damned. That's weird, where did I hear that it was made standard now....
"First this one, then this one... Man I'm going to get exhausted by the time this is done." @stuck bluff
Jewcy @thin lintel
@raven orbit ^
The look of slow realization on his face
Yes
@raven orbit It's just a light affectionate nibble
HA
HA (again)
The Rabbit salt
So good
Collagen?
Multivitamin should fix that
r = requests.get(url)
text = r.text
print(text)
individual_words = text.split()
print(individual_words)
random_number = randint(0,len(individual_words))
print(individual_words[random_number] + str(random_number))
how can random_number be called twice and give diffrent results
I am very confused becase on the video I am watching one of the random numbers is creating a word and another is creating numbers
3.9?
It's relatively recent
I was close
r = requests.get(url)
text = r.text
print(text)
individual_words = text.split()
print(individual_words)
random_number = randint(0,len(individual_words))
print(individual_words[random_number] + str(random_number))
@astral spoke Compared to 3.4, I mean
Sorry, put it in the code block so I can see it a bit better
no worries
No it's just fun watching you and Plome duke it out, @astral spoke
In this one we'll build a random username generator using python and the requests library!
Here's the url --
https://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain
If you have any suggestions please let me know! What do you think of the new set up? Working on fixing the audio echo a bit more too.
Thanks so much for a...
this is the video I am watching btw
https://stackoverflow.com/a/58184835 ffs... =(
yes that's why i am confused
unfortuantly I have to dip though my job just called and asked me to go work
We set up cameras and help old people use thier printers lol
Thank you for looking at it with me thought @mild flume ttyl
!e
from random import randint
number = randint(0, 10)
print(number)
print(number)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 3
002 | 3
hello boys and gals
Sup
Got a show recommendation for you Hemlock, if you like mitchell and webb look, it's one of their earlier skit shows called Bruiser
Aye he's great, there's David Mitchell's Soapbox as well, which is so low production value it makes me laugh
I just love when he pops up from time to time on QI
Yarp
@stuck bluff The game only works when everyone plays it right
As soon as someone says "Nah" then everything falls apart
And if ENOUGH people do that, and especially if they get to be the people orchestrating it all, then our checks and balances are worthless
@true valley
Hi @delicate wren
Doesn't sound familiar
should
have
used
Rust
can you do the very cursed way and multi-inherit?
praying that the methods don't collide
def choose(options, prompt: str, /, display_lambda=lambda x: x):
"""Support both lists and maps through the use of `display_lambda`"""
print(prompt)
sorted_options = sorted(options.keys() if isinstance(options, dict) else options)
for index, option in enumerate(sorted_options):
print(f"{index}.\t{display_lambda(option)}")
def requested_input(prompt: str):
while True:
yield input(prompt)
for response in requested_input("Please enter a number representing one of the above options: "):
try:
chosen_option = sorted_options[int(response)]
return options[chosen_option] if isinstance(options, dict) else chosen_option
except (ValueError, IndexError, KeyError):
continue
This is what I got so far. Two notes, the 2nd invocation (a list of dicts) fails w/below error:
Traceback (most recent call last):
File "/home/x10an14/Documents/github/bulkKindleUSBDownloader/bookp.py", line 344, in <module>
sys.exit(main())
^^^^^^
File "/home/x10an14/Documents/github/bulkKindleUSBDownloader/bookp.py", line 318, in main
device = choose(devices, "Please choose which device you want to download your e-books to!", lambda x: x['deviceAccountName'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/x10an14/Documents/github/bulkKindleUSBDownloader/bookp.py", line 248, in choose
sorted_options = sorted(options.keys() if isinstance(options, dict) else options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'dict' and 'dict'
You cannot sort an array of dict it would seem
shouldn't it just be list(range(len(...))) when it's a list and not a dict?
or just range(len(...)) even
They display the options so why do it that way?
Guys
Enumerate seems right unless I'm missing what part you are talking about lol
Can anyone teach me to how to code
Yes. You can teach you how to code
How to code a discord (self-bot) only for entertainment purposes
...
terms
(this is just, like, a brute-force way to unify lists and dicts in that case)
I mean just trying to learn
Against discord tos can't discuss that
It seems to be the fault of an eager ternary (the x if y else z statements). I should assume it's a list, until I check if it's a dict, instead of the other way around
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
Uhm then can you teach me coding python
I'm very noob in coding
options passed into sorted directly should never happen as far as I understand
This is legal... Triggerhappy? https://www.tomsguide.com/tablets/e-readers/hurry-download-your-kindle-ebooks-before-amazon-wont-let-you-anymore
We're talking about you.
it might be reasonable to split the code into two separate functions or even classes
Derp, you are absolutely correct... That's where I should levarage the lambda
!e
x = "Hello"
y = "World"
print(x, y)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello World
Uhm guys pls can anyone teach me coding
There you go :)
I think you've over complicated it tbh tho
!resouces We can guide you to some good resources we have! I typically recommend "A Byte of Python", which is free on its respective site
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
where bot message
I mean not print I mean like real coding like idk about await, return like that one
resauces
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I think enumerate-print should probably not happen when input is a list
@thin lintel Even if they are, I'm still going to offer help
another part of behaviour that differs
since you can just print the number of options instead and have effectively the same information
@ornate cobalt It is, but the only thing we can do is have Discord handle it
The responsibility is theirs
When I try to put discord-bot on it then it shows 0 results
I think there're some resources pinned in the #discord-bots channel
I'm still leaning towards a class-based approach
however much I might dislike Java, this might be the very appropriate usecase for such OOP
Same
A hands-on guide to Discord.py
It was on there
Here's the original code https://github.com/xyzzy-foo/BulkKindleUSBDownloader/blob/master/bookp.py, and here's my git diff so far
Click here to see this code in our pastebin.
Can anyone help me with gh?
Ooo, I forgot that Discord's built in thing has an option for diff
this sounds like something out of Das Kapital
What exactly does github cli does?
never used it, never heard anything good about it
@true valley They're meant to be cheap and easy to do, not good
I was going through github docs and cheatsheet for git
gh cli is mostly for stuff like PRs
let me share
you need it only when you're really having GH as the central piece of your workflow but you don't have time to build your own tooling
wdym?
Flesh foods
using git as cred store for non-git things is normal; you ensure the same credentials are both in git and gh
yes i did
it's same
GitLab CI doesn't have a dynamic options feature for pipeline vars, this sucks
A mixed meat tube
but what makes gitlab cli sucks? @jovial cradle
(CLI and CI are separate things)
Hmm
Click here to see this code in our pastebin.
@ornate cobalt
CI not CLI π
I don't remember what was the specific issue some highlighted about gh CLI; I haven't heard much about it outside of both Primeagen and t3.gg complaining
Gotcha
Okay
iirc something auth-related
I thought you were looking at my repo or something
My bad
And was really confused because I know I don't have a check for that for anything
Not a big fan of Primeagen, a lot of drawing on a whiteboard and yapping lol
Damn
Ooop, update, one sec
I mostly stopped watching him by now
Is it really useless?
I find a lot of the programmer twitch personalities a bit crap, low level learning is good though
!e
x = 1
print(isinstance(x, int))
share me
@misty sinew
createFileAndSwitchFile = pkgs.writeShellApplication {
name = "create-and-switch-file-link";
text = ''
sourceFile=''${1:-NOT_GIVEN}
linkTarget=''${2:-NOT_GIVEN}
if [[ "$sourceFile" == "NOT_GIVEN" ]] || [[ "$linkTarget" == "NOT_GIVEN" ]]; then
echo "$(dirname "''${0}") requires 2x arguments, respectively <source file>, and <path of symlink pointing to source file>." >&2
exit 1
fi
if ! [ -r "''${sourceFile}" ]; then
touch "''${sourceFile}"
fi
ln --symbolic \
--relative \
--force \
--no-target-directory \
"''${sourceFile}" \
"''${linkTarget}"
echo "Overwrote any potentially pre-existing symlink @ ''${linkTarget} with a symlink to ''${sourceFile}" >&2
'';
};
switchProfile =
sourceFile:
let
script = "${createFileAndSwitchFile}/bin/create-and-switch-file-link";
in
''!${script} "${sourceFile}" "$HOME/.config/gh/hosts.yml" && ${gh}/bin/gh auth status'';
also very opinionated, but somewhat careless at times
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
he's more focused on web dev
In Python, it's usually better to fail forward. Catching the errors and what not
hmm
It's why I'm typically not huge on using isinstance()
i find in a lot of cases it's "those that can't do: teach" thing
and, unlike Primeagen, ~90% of the comment section is people arguing against what he said, and that's something he supports
Ohh oh oh oh Me
That's me
not some variation of "<quote> goes so hard"
I don't think either of the two focus on teaching
That's 100000% me
!e
def test(x):
if isinstance(x, list):
print(x)
elif isinstance(x, dict):
print(f"Dict: {x}")
test([1,2,3,4])
test({1: 2, 3: 4, 5: 6})
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [1, 2, 3, 4]
002 | Dict: {1: 2, 3: 4, 5: 6}
i'd put good money on comments section being so full of quotes from the video nowadays is down to the sheer number of bots
Usually
casting and catching bad casts is generally better
there's that Johnathon Blow guy also, who made one well known game and is now a guru
That name sounds familiar
Dict's wouldn't let you do that anyway
Wait
Wait wait
@astral spoke Can you not use .get()?
Rather than the subscription?
And I can give you the perms if that'd be easier for you
You have them
Ignore the hemlock
He already had it perma
Ah okay
Yeah I forgot he got grandfathered in
I would not have that on one line, personally
That's a bit chunky for a return
My previous is the end result after the inspiration given here
Ahhhhh
Okay
Where is the link to the code?
I'm not seeing it on the Tom's Guide page
Or I'm blind, which is also likely
The first link here
"Yeah it's perfectly fine you bastard"
well, my interest is over
Those stranger are repressed folks
please I don't want to explain webdriver migration one more f___ing time
Its main intent was for testing
Was it something like Puppet?
I think I know which one you mean
puppeteer
pyppeteer
That's the one
Thanks for help, bye
I've seriously misused it once because couldn't find a better way to render html to png
@astral spoke Have someone on fiver just get it manually
Or get an intern
No no
Your OWN intern
Like for your life
(wasn't even using python binding, but spawned a node process instead)
also I remember having used it in C#
Going to keep getting up and down, up and down
Busy tech day
I like it
I totally thought you said "mushroom bong"
(biome?)
@ornate cobalt Mushroom bomb?
I hadn't heard of those
Ah okay, biome
No I legit wasn't sure
"I'm hearing better than you do because I'm not hearing anything"
You know you'll do it again
You'll get the hunger, the craving
You'll come crawling back
I need to release the new minesweeper version because it's finally 2024 today
"Hey man, just another hit. Give me some of that good good canvas"
as in not 2021
(||rust editions||)
@delicate wren, for context, Haven is making his own language, and he's trying to see if there's a better way to handle this. Currently, in order to do this check, he'd have to call that method twice. @ornate cobalt can correct me if I'm wrong
expands to the later
Minecraft servers. Free. Forever. Your very own Minecraft server, the only one that stays free forever.
maybe use a temporary value
just share it between two sides
do not desugar to just two comparisons
Would you just have to... what's the term, lexer? Tweak the lexer to check to see if there are two expressions that touch the same value and go from there?
Discover on demand Minecraft servers with exaroton.com. Our unique pricing model allows you to only pay for the time your server is active, giving you unmatched control and flexibility.
This is driving me insane, I may actually want to start making these Tortoise ORM models by hand from the Pydantic models
codegen it
I can't find an easy way to generate Tortoise models from either the OpenAPI spec or from Pydantic ones
why would it be generated from openapi
I need the model coverage
It's the SpaceTraders thing I'm futzing with
I've gotten the client all done (I did pretty much all of it by hand because I'm picky)
you just want to store stuff as is for now? without designing relations and all that?
Well other than the initial pydantic model stuff
I'll need the relations as part of it
An agent has a ship that has cargo, etc
that's the part that sounds ungeneratable
@elder wraith So ah.... You wouldn't be willing to make a space engineers server...
I'm kidding
By hand it is
I've done dumber things with my time
then adjust manually
What do you mean by codegen?
I'm not sure how to go about it tbh
Here
let me show you the code
you have pydantic stuff, right?
parse it and generate orm code
That's the part where I'm unsure how I'd do it
1 < 2 < 3
001 | 0x01 Const | 0000 = Integer(1)
004 | 0x01 Const | 0001 = Integer(2)
007 | 0x07 Less
008 | 0x01 Const | 0001 = Integer(2)
011 | 0x01 Const | 0002 = Integer(3)
014 | 0x07 Less
015 | 0x0b And
016 | 0x0e Pop
!d ast
Source code: Lib/ast.py
The ast module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like.
An abstract syntax tree can be generated by passing ast.PyCF_ONLY_AST as a flag to the compile() built-in function, or using the parse() helper provided in this module. The result will be a tree of objects whose classes all inherit from ast.AST. An abstract syntax tree can be compiled into a Python code object using the built-in compile() function.
And here's how it does that btw
or tree-sitter
src/vm/compiler.rs line 67
NodeKind::BinaryOperation(op, lhs, rhs) => {```
The question is, do I really want to go through the trouble of figuring out how to do it with ast, or would it be faster to just start going by hand
it's not a binary operation when you want chaining of comparisons
That's the kicker
needs to be a separate thing
Or was that for Haven, sorry
Later Rab
Anyways yeah that's probably the clearest way of doing it
Going to poke my head in on the crew down in Code/Help
If you want to join, you move first
I can get in there when it's full
very accurate mathematics
In fairness, there were 4 people in the channel when I said that
@stuck bluff holy shit there's a lot of people pretending to be you
Hi everyone! Iβve just completed an Audio Recorder Script that records, compresses, and emails audio automatically. Check it out here: [GitHub Repo Link]. Iβd love to get your feedback and suggestions!
Yes, it was a thing a while back.
aaaa
Boβoβwoβah
You can
you need to chat more to speak in voice chat
Ohkish
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hello
VC0 ig
.
helo
@main garden why have you been coding for so long
brother is asking which finger is the index finger
not gonna lie
im also confused
@silent torrent have you checked out what Magey is making?
no
damn
you should ask him when hes online
he made it with python
@main garden depends what state you are
isnt
in america
some states is illegal to record without the other persons consent
though i think that only works if both people are in the same state
@silent torrent i got a mic
im just too scared to speak online
if someone guesses the number im thining of between 1-100 ill make Pancake run 5 km with a faster pace than normal
@main garden
@quaint cape how do i turn my car on
accurate
if i shove my foot down the muffler will that suffocate my car?
@quaint cape
a flashlight
hahaha
fleshlight
i already know
yup
Yes, let's keep it...le sigh...server appropriate.
I know the video you're referencing...and yes...it's hilarious.
revolving door by tate mcrae
No.
@quaint cape the song isnt bad
It's not simply a matter of understanding the code, it's also about understanding how apt it is.
but its not my style
A list of 500 what?
@silent torrent
Does it need to be mutable?
Load it up from a normal text file?
Yes.
You can open the file, read the file into a string or sequence of strings, and assign a variable to that string/sequence.
You can still iterate through it this way.
Say you have a file that looks something like...
apple
pear
orange```
with open('words.txt') as file:
words = file.readlines()```
There you go.
Actually...
hold on, I might have made a booboo, but it's about that simple
I need to double check.
Ah. Almost.
with open('words.txt') as file:
words = file.read().splitlines()```
Does that suit?
If you wanted, you could do file.read().strip().splitlines()
A bit chainy, but meh.
Strips whitespace from either end of the string.
newlines, spaces, etc
tabs
Because sometimes people will write the last word then hit enter to have a new line and call it a day.
!e py text = '''apples pears oranges ''' print(text.splitlines())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['apples', 'pears', 'oranges']
Oh, no, that still works.
Anyway, so long as your words file is reasonably well behaved, it'll be fine.
This lets you keep your data out of your Python modules.
@noble pawn get out
@noble pawnYou're welcome to join us for the conversation. π
im aight thanks tho
i hear british man
Me?
yes
Not quite.
@delicate wren do you have any tips on setting C++ on vsc?
oh, look, new error
I have written it before in someone DMs, will copy it from there now
Hii
yea I am trying to use vsc to run C++ but it wont work properly
I tried downloading that msy software that they tell you too on the vsc webpage but no luck
it wont allow me to do basic outputs or anything
for some reason it's not letting me to connect to vc1
dam
on Windows?
yea
these are the options I get when I try run it
Iv tried all of them and they dont work
are you using cmake?
not sure what that is
have you installed the extension pack?
I am only using vsc and that msy toll that they have on their webpage
I got these installed
cmake: quick start
from command pallette
(ctrl+shift+p)
in this step, select "create from compilers"
if you accidentally exit the dialogue, just wait until it finishes initialising, then delete the files it generated and start over
ok Ill try
though seems like it's resumable
I've selected this thing
seemed to work
likely slightly newer in your case
this one seems to work too
!ban 1008463220543066184 Not respecting other user's pronouns after repeatedly being corrected and told to at least just use their name instead.
:incoming_envelope: :ok_hand: applied ban to @silent dirge permanently.
It's your PP ?
Your are very beautiful bahahah
Ah mdrrrrrrrrrrr
call me raphael !
π
No I like you !
Cute rabbit ^^
a rabbit that develops into a python hahaha
Huckleberry
def foo(ok: bool): Result<i32, str> => match ok {
true => Ok(42),
false => Error("error")
}
def bar(): Result<i32, str> {
let res0 = foo(true)!
let res1 = foo(false)!
return Ok(res0 + res1)
}
def main() => match bar() {
Ok => println("ok"),
Error => println("error")
}
https://sdkman.io/ @umbral rose
@stuck bluff ^^
In May 2021, Sonova Holding AG, a Swiss cochlear implant and hearing aid manufacturer, acquired Sennheiser's consumer audio division, which produces a range of headphones and home entertainment speakers, for β¬200 million.[24][25]
Build circuits using a variety of components from different manufacturers, like microcontrollers, memory, logic gates, and LCD screens. Write code in a compact and powerful assembly language where every instruction can be conditionally executed. Read the included manual, which includes over 30 pages of original datasheets, reference guides, and...
$14.99
3382
cute
@zinc inlet You alright in here?
Oh, so the enshittification countdown has begun
in a few minutes
π
lmao π
OMG FOOD IS AMAZING
grrr
still not working
okay, I've given up on Chrome, Firefox is the way to use Discord now
now works
something is wrong with the sound though
@rain sonnet π
@snow marten π
I accidentally allowed mic access
and that somehow broke audio output
Ah, yes. Allowing audio fucks up audio. This makes sense.
allowing mic access provides output selection also, seems like
it's supposed to look like this
@digital stone π
hi
i love cats
me too
i miss juicewrld
p!music
Are you obese
Hi
Ah, yes.
Honda Civic?
Oh. Yes. So it is.
I think I'll send it to Clari.
I expect they'll get a kick out of it.
it does that
needs to be separate messages,
and the overall image count shouldn't be too high
hii
Someone said it looked like corn.
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
..........
!voice
hey i want to make a project in python but
i don't understand what to do
i am not good at python
Do you have a specific project in mind?
i am a beginner
think so
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
things to read/watch/learn
things to try building
I describe Python as akin Lego in a sense. You learn what individual pieces exist. Then you learn how to fit them together. Then you learn how to fit those combinations together.
Cover the foundations. Learn enough of the smaller things. Eventually, you know about enough of them that you can start to see how to make the bigger stuff.
i have to know about python library like pandas or pytorch
Bury your head in documentation. Experiment. Have fun.
Play.
Through play, learning.
how do you know
Experience?
yep
yaa
The more you know, the more gravity for other knowledge you can exert.
You start to understand where to look.
You can start to intuit things you haven't studied directly.
Because patterns.
Synergism.
Knowledge of one thing improving knowledge of another.
@granite nicheπ
Hayyy man
@trim zephyrπ
hello
weren't you solving problems for people for a long time
i did came here earlier
Helping people solve problems, usually.
Sometimes I might solve a problem.
u know after a month
i solved atleast 40 leetcode problems
by my own
but unfortunately in java
That's fine.
The solution is the process whereby, not the language which specifies the process.
language does matter when allocating memory tho
A correct answer to a question is as valid in Chinese as it is in English where both languages are understood.
which is more understandable English perhaps won't be a point i think
Hello everyone i hope i can learn alot from here and if posible eventually help others (i just joined)
You probably can.
But who knows? Maybe a boulder will fall on your head.
I can't see the future.
hehe
Also can someone pls tell me how to use discord cause i just downloaded it for this group
Perhaps. https://support.discord.com/hc/en-us
Thanks
what to do when u come to a state where code seems to be easy but ur tired enough to solve those problems or you feel lightheaded
coz earlier i was learning sql
When tired, do not.
i have exams tomorrow
DO NOT.
haha
i doubt so
Putting off sleep in lieu of study is an equation with a negative net result.
A foolish approach.
oh i am good with logo designing and blender
Study well in advance.
Putting off sleep impairs your ability to recall, including things you know.
yes u see
It makes you stupid, inhibiting reasoning.
yes like right now im
@zealous badgerπ
i just wanted a moral boost so i wanted to show something related to design
is it okay to share
It's a little busy in spots.
Like you're throwing too much together at once.
In design, often, less is more.
Reduce overlap.
oh then i might use another logo of mine instead
@fluid canopy what is the question?
wait can i show the other one
Do.
That's not necessary.
Its python related task on codewards
wars
the task itself is difficult to understand
I can copy/paste?
@trim zephyrImagine your animation as like a poem, a flowing river, a wisp of air tumbling through the trees.
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
also you can link the problem so that it's easier to understand the goal
poem huh how
(problem=task in this context)
Focus on how it flows. It shouldn't feel jarring or disturbed.
Nor frenetic.
Please react with β
to upload your file(s) to our paste bin, which is more accessible for some users.
im not getting way too much idea from utube
test.assert_equals(elections_winners([1, 3, 3, 1, 1], 0), 0)
but indeed i have to visualize like you said
Elections are in progress!
Given an array of numbers representing votes given to each of the candidates, and an integer which is equal to the number of voters who haven't cast their vote yet, find the number of candidates who still have a chance to win the election.
The winner of the election must secure strictly more votes than any other candidate. If two or more candidates receive the same (maximum) number of votes, assume there is no winner at all.
Note: big arrays will be tested.
just we don't have to scroll to read
test.assert_equals(elections_winners([1, 3, 3, 1, 1], 0), 0)
Rhythm. Beat. Timing.
agree
for me, I dont understand how the output can be 0 then there 3 og #1 voters
do you understand that a candidate can win if and only if they can win when all non-voters vote for them?
strictly more votes than any other candidate
is the questions just asked now follows methods like naive bayes model
to find probability
1 is much of than 3
If two or more candidates receive the same (maximum) number of votes, assume there is no winner at all
candidate[1] and candidate[2] can't be both winners in any scenario there
because all votes were already given
and they ended up in a tie
I get that but another test example is test.assert_equals(elections_winners([5, 1, 3, 4, 1], 0), 1)
5 > 4
whenever you see 0 as the second argument, that means you're looking at the only final result
5 is strictly highest
it doesn't matter that it isn't the majority
length of the array is the number of candidates
k is the seconf argument
at least sounds like it is the case
I understand, party ns and what is represented is how many votes they have
what who will win based on k votes
for statements and if statements, what a world to learn
@paper totemπ