#voice-chat-text-1

1 messages Β· Page 54 of 1

misty sinew
#

because i feel involve in coding

#

@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?

sly pond
#

!rule 4 ?

coarse hearthBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

sly pond
#

please πŸ™‚

misty sinew
#

@drowsy adder

#

rule 4

sly pond
#

Them's the rules πŸ™‚ I like listening

#

He should also speak english...

#

the rules πŸ™‚

misty sinew
#

this is englishman server

sly pond
#

You're free to speak any language in private calls, but in the public chat, the moderators request English

tawny lily
misty sinew
#

no other language

#

only english

sly pond
#

It's OK, practice English and it gets bette

misty sinew
#

US english

tawny lily
misty sinew
#

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

sly pond
#

F2P is the worst thing to happen to gaming

marsh lodge
#

Truly

#

F2P = Free to Pay

misty sinew
#

bye tc all

sly pond
#

5 oclock is near!

marsh lodge
#

Huzzah!

misty sinew
#

Quack

haughty wadi
#

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

haughty wadi
#

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 shrug

lost pollen
#

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?

azure plaza
#

hai

#

hai opal

#

hai furry

stuck bluff
#

@mortal swiftπŸ‘‹

mortal swift
stuck bluff
# 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. πŸ™‚

mortal swift
#

Thanks.

tender wagon
#

gm sup

real mango
#

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

proud sentinel
#

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

tawny lily
#

name TEXT UNIQUE

proud sentinel
#

can you help me?

tawny lily
proud sentinel
#

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

tawny lily
#

what is the command

#

first upgrade your pip

proud sentinel
#

% pip install tensorflow==2.9.0

tawny lily
#
pip install --upgrade pip```
#

first upgrade pip

proud sentinel
#

Requirement already satisfied: pip in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (25.0.1)

tawny lily
#

somethime it gliches

#

do the upgrade twice

#

now install

misty sinew
#

Good evening!

proud sentinel
#

can it because i have a patcher
?

tawny lily
#

Download the file than manually build

proud sentinel
#

how can i do that

#

i am newbie

#

@tawny lily

tawny lily
#

i never done it

#

check youtube

subtle pumice
sturdy frost
#

Encabulator videos abound.

marsh lodge
marsh lodge
misty sinew
#

road to 50 messages πŸ›£οΈ

misty sinew
sturdy frost
#

Chatting about Encabulators

#

It's just a flesh wound

subtle pumice
rare pebble
marsh lodge
stuck bluff
#

@chrome bloom πŸ‘‹

#

@rustic surge πŸ‘‹

slender zenith
#

@stuck bluff done let's wait now fingers crossed

mild flume
#

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

slender zenith
#

@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 😭

mild flume
#

@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

thin lintel
mild flume
#

I think it's called Give Me the Brain

#

Can't remember now

#

Ah yeah, "Give Me the Brain!"

slender zenith
mild flume
#

@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

thin lintel
#

I remember seeing these at some point in my life

mild flume
#

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

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @last wind permanently.

mild flume
#

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

hearty heath
#

πŸ‘‹

mild flume
#

Sup to all nerds

slender zenith
mild flume
#

@true valley It's such a good game

mild flume
#

Steve Jackson Games are great

stuck bluff
mild flume
#

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%

slender zenith
mild flume
#

@astral spoke 🐻

tawny lily
#

how are you

mild flume
#

Hanging in there

#

Same ol' same ol'

slender zenith
#

@stuck bluff for some reason I have a tendency to stick my finger where it don't belongπŸ˜‚

mild flume
#

Wanting Monster Hunter Wilds to be out already

tawny lily
#

first time trying Login With Discord thinge

mild flume
#

Like as OAuth?

tawny lily
#

Yah

#

Web

#

to login

last wind
#

@mild flume Why the voice mute, the latest time I have received a voice mute was a year ago..

mild flume
#

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

last wind
astral spoke
#
    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]
mild flume
#

That looks clean to me

hearty heath
#

except: πŸ‘€

mild flume
#

Yeah that'd be the main fix

#

except makes more sense

#

But just specify the type

#
        except ValueError:
            logger.error("Not a number!")
            continue
tawny lily
#

environment = environments[region]

mild flume
#

Yeah

#

Outside of the loop?

#

Gotcha

astral spoke
#
Please choose which country's Amazon you want to access!
 0.     UK
 1.     USA
 2.     Germany
 3.     Italy
 4.     Canada
 5.     France
Country #: 1
mild flume
#
    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

hearty heath
#

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())

mild flume
#

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

astral spoke
#
    "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",
    },
mild flume
#

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 ^

mild flume
#

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?

hard dirge
#

Multivitamin should fix that

mild flume
#

The pedants duke it out

#

I love it

hard dirge
#

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

mild flume
#

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

hard dirge
#

no worries

mild flume
#

No it's just fun watching you and Plome duke it out, @astral spoke

hard dirge
#

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

β–Ά Play video
mild flume
#

Damn it, one sec again

#

Lots of issues today, it seems

hard dirge
#

this is the video I am watching btw

mild flume
#

@true valley

#

Within the same execution?

#

Slysst

astral spoke
hard dirge
#

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

jagged hawk
#

yoo wassup opal plome hem and magical

#

oh its you didnt sound too good

mild flume
#

!e

from random import randint

number = randint(0, 10)
print(number)
print(number)
coarse hearthBOT
mild flume
#

Hmm

#

It's happening somewhere else then

jovial cradle
#

hello boys and gals

mild flume
#

Sup

jovial cradle
#

Got a show recommendation for you Hemlock, if you like mitchell and webb look, it's one of their earlier skit shows called Bruiser

mild flume
#

Oooooooooo

#

I'll have to look

#

I love David Mitchell so much. That dude is hilarious

jovial cradle
#

Aye he's great, there's David Mitchell's Soapbox as well, which is so low production value it makes me laugh

mild flume
#

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

ornate cobalt
#

Hi @delicate wren

mild flume
#

Doesn't sound familiar

thin lintel
delicate wren
#

can you do the very cursed way and multi-inherit?

#

praying that the methods don't collide

astral spoke
# hearty heath Here's how I might do it πŸ‘€ ```py def repeated_input(prompt, backup_prompt): ...
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'
ornate cobalt
#

You cannot sort an array of dict it would seem

delicate wren
#

shouldn't it just be list(range(len(...))) when it's a list and not a dict?

#

or just range(len(...)) even

ornate cobalt
#

They display the options so why do it that way?

cobalt kestrel
#

Guys

ornate cobalt
#

Enumerate seems right unless I'm missing what part you are talking about lol

cobalt kestrel
#

Can anyone teach me to how to code

ornate cobalt
cobalt kestrel
#

How to code a discord (self-bot) only for entertainment purposes

cobalt kestrel
ornate cobalt
#

terms

delicate wren
cobalt kestrel
ornate cobalt
astral spoke
#

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

ornate cobalt
#

!rule 5

coarse hearthBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

cobalt kestrel
#

I'm very noob in coding

delicate wren
cobalt kestrel
#

Like I only know print("hello world")

#

Can you even teach me little coding

stuck bluff
#

We're talking about you.

delicate wren
#

it might be reasonable to split the code into two separate functions or even classes

astral spoke
ornate cobalt
coarse hearthBOT
cobalt kestrel
#

Uhm guys pls can anyone teach me coding

ornate cobalt
#

There you go :)

ornate cobalt
mild flume
ornate cobalt
#

But I'm not totally sure the purpose of the code so idk HAHA

#

!resources

coarse hearthBOT
#
Resources

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

cobalt kestrel
#

I mean not print I mean like real coding like idk about await, return like that one

mild flume
#

I spelled it wroung

#

My b

ornate cobalt
#

resauces

true valley
#

GET THE SAUCE/

#

The Re-Sauce

cobalt kestrel
#

Guys how can I learn real coding

hearty heath
#

Hey

#

How goes?

ornate cobalt
coarse hearthBOT
#
Resources

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

delicate wren
mild flume
#

@thin lintel Even if they are, I'm still going to offer help

delicate wren
#

another part of behaviour that differs

mild flume
#

Kill them with kindness

#

Yep

delicate wren
mild flume
#

@ornate cobalt It is, but the only thing we can do is have Discord handle it

#

The responsibility is theirs

cobalt kestrel
mild flume
#

I think there're some resources pinned in the #discord-bots channel

delicate wren
mild flume
#

Classist

#

Odds are good it's how they're searching for it

#

Yep

delicate wren
#

however much I might dislike Java, this might be the very appropriate usecase for such OOP

mild flume
#

Same

mild flume
#

It's how I got started in Python again

#

Discord bot

#

That was my first project

astral spoke
coarse hearthBOT
misty sinew
#

Can anyone help me with gh?

mild flume
#

Ooo, I forgot that Discord's built in thing has an option for diff

delicate wren
mild flume
#

Same

misty sinew
delicate wren
#

never used it, never heard anything good about it

mild flume
#

@true valley They're meant to be cheap and easy to do, not good

misty sinew
#

I was going through github docs and cheatsheet for git

delicate wren
#

gh cli is mostly for stuff like PRs

misty sinew
#

and it told be to install gh using winget

#

to clone the cresidential from git

mild flume
#

Wait what?

#

Link

#

Oh you mean to make the pgp/gpg key stuff?

misty sinew
#

let me share

delicate wren
mild flume
#

Flesh foods

delicate wren
#

using git as cred store for non-git things is normal; you ensure the same credentials are both in git and gh

jovial cradle
#

GitLab CI doesn't have a dynamic options feature for pipeline vars, this sucks

misty sinew
#

why?

#

I like cli

#

as I used to be linux user

sly pond
#

A mixed meat tube

misty sinew
#

I mean it's makes less click for me

#

I would use cli over gui

sly pond
#

per googs

misty sinew
#

but what makes gitlab cli sucks? @jovial cradle

delicate wren
#

(CLI and CI are separate things)

misty sinew
astral spoke
coarse hearthBOT
mild flume
drowsy adder
#

πŸ™‚

jovial cradle
delicate wren
#

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

mild flume
#

Gotcha

misty sinew
delicate wren
#

iirc something auth-related

mild flume
#

I thought you were looking at my repo or something

misty sinew
#

My bad

mild flume
#

And was really confused because I know I don't have a check for that for anything

jovial cradle
#

Not a big fan of Primeagen, a lot of drawing on a whiteboard and yapping lol

mild flume
#

Dude, for the longest time, I kept writing "Pythong"

#

I have no idea why

mild flume
#

Ooop, update, one sec

delicate wren
misty sinew
#

Is it really useless?

jovial cradle
#

I find a lot of the programmer twitch personalities a bit crap, low level learning is good though

ornate cobalt
#

!e

x = 1
print(isinstance(x, int))
delicate wren
#

t3.gg is quite knowledgeable, and he has actual direct influence on the ecosystem

misty sinew
#

share me

astral spoke
#

@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'';
delicate wren
coarse hearthBOT
delicate wren
#

he's more focused on web dev

mild flume
#

In Python, it's usually better to fail forward. Catching the errors and what not

mild flume
#

It's why I'm typically not huge on using isinstance()

jovial cradle
#

i find in a lot of cases it's "those that can't do: teach" thing

delicate wren
mild flume
#

That's me

jovial cradle
delicate wren
#

I don't think either of the two focus on teaching

mild flume
#

That's 100000% me

ornate cobalt
#

!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})
coarse hearthBOT
jovial cradle
#

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

mild flume
#

Usually

elder wraith
jovial cradle
#

there's that Johnathon Blow guy also, who made one well known game and is now a guru

mild flume
#

That name sounds familiar

delicate wren
#

Jai dev

#

how many years until open source? who knows

mild flume
#

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

astral spoke
mild flume
#

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

astral spoke
mild flume
#

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

mild flume
#

"Yeah it's perfectly fine you bastard"

elder wraith
#

well, my interest is over

misty sinew
#

Those stranger are repressed folks

mild flume
#

Ah yeah, Selenium makes it a bit....

#

Hmm

#

"Destroyer of Spirits"

delicate wren
mild flume
#

Its main intent was for testing

#

Was it something like Puppet?

#

I think I know which one you mean

delicate wren
#

puppeteer
pyppeteer

mild flume
#

That's the one

ornate cobalt
mild flume
#

Ah that's the one

#

Yeah

misty sinew
#

Thanks for help, bye

delicate wren
#

I've seriously misused it once because couldn't find a better way to render html to png

mild flume
#

@astral spoke Have someone on fiver just get it manually

#

Or get an intern

#

No no

#

Your OWN intern

#

Like for your life

delicate wren
delicate wren
#

also I remember having used it in C#

ornate cobalt
mild flume
#

Going to keep getting up and down, up and down

#

Busy tech day

#

I like it

#

I totally thought you said "mushroom bong"

delicate wren
#

(biome?)

mild flume
#

@ornate cobalt Mushroom bomb?

#

I hadn't heard of those

#

Ah okay, biome

#

No I legit wasn't sure

delicate wren
#

"I'm hearing better than you do because I'm not hearing anything"

mild flume
#

You really are

#

Friggin' ninja

ornate cobalt
mild flume
#

You know you'll do it again

#

You'll get the hunger, the craving

#

You'll come crawling back

delicate wren
#

I need to release the new minesweeper version because it's finally 2024 today

mild flume
#

"Hey man, just another hit. Give me some of that good good canvas"

delicate wren
#

(||rust editions||)

ornate cobalt
#

1 < self.add(1,2) < 3

#

1 < self.add(1,2)
self.add(1,2) < 3

mild flume
#

@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

ornate cobalt
delicate wren
#

maybe use a temporary value

#

just share it between two sides

#

do not desugar to just two comparisons

mild flume
#

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?

elder wraith
mild flume
#

This is driving me insane, I may actually want to start making these Tortoise ORM models by hand from the Pydantic models

delicate wren
#

codegen it

mild flume
#

I can't find an easy way to generate Tortoise models from either the OpenAPI spec or from Pydantic ones

delicate wren
#

why would it be generated from openapi

mild flume
#

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)

delicate wren
#

you just want to store stuff as is for now? without designing relations and all that?

mild flume
#

Well other than the initial pydantic model stuff

mild flume
#

An agent has a ship that has cargo, etc

delicate wren
#

that's the part that sounds ungeneratable

mild flume
#

@elder wraith So ah.... You wouldn't be willing to make a space engineers server...

#

I'm kidding

mild flume
#

I've done dumber things with my time

delicate wren
mild flume
#

What do you mean by codegen?

ornate cobalt
#

Here

#

let me show you the code

mild flume
#

Yes

#

It was a joke

#

Oh wow

#

Surprised they've held up that long

delicate wren
mild flume
#

Yeah

#

Boy howdy do I ever

delicate wren
#

parse it and generate orm code

mild flume
#

That's the part where I'm unsure how I'd do it

ornate cobalt
#
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
delicate wren
#

!d ast

coarse hearthBOT
#
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.

ornate cobalt
#

And here's how it does that btw

delicate wren
#

or tree-sitter

mild flume
#

@elder wraith Still a hell of a bargain

#

Right right

#

Would hope so

coarse hearthBOT
#

src/vm/compiler.rs line 67

NodeKind::BinaryOperation(op, lhs, rhs) => {```
mild flume
#

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

delicate wren
#

it's not a binary operation when you want chaining of comparisons

mild flume
#

That's the kicker

delicate wren
#

needs to be a separate thing

mild flume
#

Or was that for Haven, sorry

ornate cobalt
#

I suppose it truly isn't binary lol

#

but kind of?

mild flume
#

Later Rab

ornate cobalt
#

Anyways yeah that's probably the clearest way of doing it

mild flume
#

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

delicate wren
mild flume
#

In fairness, there were 4 people in the channel when I said that

tame leaf
#

@stuck bluff holy shit there's a lot of people pretending to be you

pale harbor
#

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!

stuck bluff
mild peak
#

aaaa

misty sinew
#

Bo’o’wo’ah

frozen hull
#

Hey

#

Can I speak

misty sinew
frozen hull
quick hazel
frozen hull
#

Ohkish

stuck bluff
coarse hearthBOT
#
Voice verification

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

halcyon abyss
#

@stuck bluff

long surge
#

hello

delicate wren
#

VC0 ig

hardy tapir
#

.

golden herald
#

hello @long warren

#

good

woeful canopy
#

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?

silent torrent
#

no

woeful canopy
#

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

stuck bluff
#

@hoary yarrow@coarse hill πŸ‘‹

#

@stoic mesaπŸ‘‹

woeful canopy
#

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

woeful canopy
#

accurate

#

if i shove my foot down the muffler will that suffocate my car?

#

@quaint cape

#

a flashlight

#

hahaha

#

fleshlight

#

i already know

quaint cape
#

yup

stuck bluff
#

Yes, let's keep it...le sigh...server appropriate.

woeful canopy
#

yes

#

opal, tell em

stuck bluff
#

I know the video you're referencing...and yes...it's hilarious.

woeful canopy
#

oh no

#

i hope

#

i get cancer its his fault

quaint cape
#

revolving door by tate mcrae

stuck bluff
#

No.

woeful canopy
#

@quaint cape the song isnt bad

stuck bluff
#

It's not simply a matter of understanding the code, it's also about understanding how apt it is.

woeful canopy
#

but its not my style

stuck bluff
#

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())

coarse hearthBOT
stuck bluff
#

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.

woeful canopy
#

@noble pawn get out

stuck bluff
#

@noble pawnYou're welcome to join us for the conversation. πŸ™‚

noble pawn
#

im aight thanks tho

stuck bluff
#

Very well.

#

Persist as you did, however, and you'll lose the option. πŸ™‚

woeful canopy
#

i hear british man

stuck bluff
woeful canopy
#

yes

stuck bluff
#

Not quite.

woeful canopy
#

no?

#

oh

#

what was that accent

#

australian?

#

oh

#

bye

thin lintel
#

@delicate wren do you have any tips on setting C++ on vsc?

delicate wren
#

oh, look, new error

delicate wren
white vine
#

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

delicate wren
#

you're using these, right?

delicate wren
thin lintel
#

dam

delicate wren
#

(in command pallette)

white vine
#

yea

#

these are the options I get when I try run it

#

Iv tried all of them and they dont work

delicate wren
#

are you using cmake?

white vine
delicate wren
white vine
#

I am only using vsc and that msy toll that they have on their webpage

#

I got these installed

delicate wren
#

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

white vine
#

ok Ill try

delicate wren
#

I've selected this thing

#

seemed to work

#

likely slightly newer in your case

#

this one seems to work too

white vine
#

ok I think it works now

#

thanks a bunch

umbral rose
#

!ban 1008463220543066184 Not respecting other user's pronouns after repeatedly being corrected and told to at least just use their name instead.

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied ban to @silent dirge permanently.

tame leaf
shell mural
shell mural
#

Your are very beautiful bahahah

#

Ah mdrrrrrrrrrrr

#

call me raphael !

tame leaf
shell mural
#

πŸ˜‚

tame leaf
shell mural
#

No I like you !

tame leaf
shell mural
#

he's got too much beard

#

πŸ˜‚

tame leaf
shell mural
#

Cute rabbit ^^

tame leaf
shell mural
#

a rabbit that develops into a python hahaha

tame leaf
marsh lodge
#

Huckleberry

tame leaf
marsh lodge
#

Huckleberry

tame leaf
#

my experience with ratj

#

sassss

#

context: he just pissed there

#

πŸ’…

pale pivot
#
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")
}
subtle pumice
#
#

@stuck bluff ^^

runic gull
#

What are you guys working on

#

what do yall think of zylabs

umbral rose
#

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]

clear sage
marsh lodge
#

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

Price

$14.99

Recommendations

3382

β–Ά Play video
last wind
stuck bluff
#

@zinc inlet You alright in here?

wary fable
tame leaf
#

@delicate wren hop on here

#

:3

delicate wren
#

in a few minutes

tame leaf
#

πŸ‘‹

delicate wren
tame leaf
#

lmao 😭

jade terrace
#

OMG FOOD IS AMAZING

tame leaf
#

yes

#

i agre

jade terrace
#

hmmm could do with some more sleep tbh

#

woke at 4am ¬¬

delicate wren
#

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

stuck bluff
#

@rain sonnet πŸ‘‹

tame leaf
delicate wren
#

ah

#

I found the reason

stuck bluff
#

@snow marten πŸ‘‹

delicate wren
#

I accidentally allowed mic access
and that somehow broke audio output

stuck bluff
#

Ah, yes. Allowing audio fucks up audio. This makes sense.

delicate wren
#

allowing mic access provides output selection also, seems like

#

it's supposed to look like this

stuck bluff
#

@digital stone πŸ‘‹

digital stone
#

hi

odd wharf
#

i love cats

hollow quail
#

me too

still radish
#

i miss juicewrld

dire roost
#

p!music

limber aurora
gleaming pond
#

Hi

stuck bluff
#

@tame leafSpectacular.

#

Yes, and I do not.

#

One day, celebrations will be had.

tame leaf
stuck bluff
#

Ah, yes.

delicate wren
stuck bluff
#

Honda Civic?

delicate wren
#

it's some very cursed map from reddit

#

or somewhere else

stuck bluff
#

Oh. Yes. So it is.

tame leaf
stuck bluff
#

Isn't that Madagascar, too?

#

Hm. Not quite Madagascar.

delicate wren
#

I have no idea

#

might be

#

yes I did

stuck bluff
#

I think I'll send it to Clari.

#

I expect they'll get a kick out of it.

#

it does that

tame leaf
delicate wren
#

needs to be separate messages,
and the overall image count shouldn't be too high

stuck bluff
#

@red forgeπŸ‘‹

#

One.

#

They've been doing it to a few people.

red forge
#

hii

delicate wren
stuck bluff
#

Someone said it looked like corn.

red forge
#

why i cant speak

#

man

stuck bluff
#

!voice

coarse hearthBOT
#
Voice verification

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

red forge
#

..........

tame leaf
red forge
#

!voice

tame leaf
red forge
#

wow

#

i am not spamming

stuck bluff
#

The information is all there in the channel. πŸ™‚

#

In short.

red forge
#

hahahahahaha

#

thats not

#

you r soo cool

red forge
#

hey i want to make a project in python but

#

i don't understand what to do

#

i am not good at python

stuck bluff
#

Do you have a specific project in mind?

red forge
#

i am a beginner

red forge
delicate wren
#

!resources

coarse hearthBOT
#
Resources

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

delicate wren
#

!kindling

coarse hearthBOT
#
Kindling Projects

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.

delicate wren
delicate wren
stuck bluff
#

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.

red forge
#

i have to know about python library like pandas or pytorch

stuck bluff
#

Bury your head in documentation. Experiment. Have fun.

#

Play.

#

Through play, learning.

red forge
stuck bluff
#

Experience?

red forge
#

yep

stuck bluff
#

Study, practice.

#

But fun.

red forge
stuck bluff
#

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.

red forge
#

wait

#

i am coming

stuck bluff
#

@granite nicheπŸ‘‹

granite niche
#

Hayyy man

stuck bluff
#

@trim zephyrπŸ‘‹

trim zephyr
#

hello

#

weren't you solving problems for people for a long time

#

i did came here earlier

stuck bluff
#

Sometimes I might solve a problem.

trim zephyr
#

u know after a month

#

i solved atleast 40 leetcode problems

#

by my own

#

but unfortunately in java

stuck bluff
#

That's fine.

#

The solution is the process whereby, not the language which specifies the process.

trim zephyr
#

language does matter when allocating memory tho

stuck bluff
#

A correct answer to a question is as valid in Chinese as it is in English where both languages are understood.

trim zephyr
#

which is more understandable English perhaps won't be a point i think

cedar dust
#

Hello everyone i hope i can learn alot from here and if posible eventually help others (i just joined)

stuck bluff
#

You probably can.

#

But who knows? Maybe a boulder will fall on your head.

#

I can't see the future.

trim zephyr
#

hehe

cedar dust
#

Also can someone pls tell me how to use discord cause i just downloaded it for this group

stuck bluff
cedar dust
#

Thanks

trim zephyr
#

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

stuck bluff
#

When tired, do not.

trim zephyr
#

i have exams tomorrow

stuck bluff
#

DO NOT.

trim zephyr
#

haha

stuck bluff
#

Especially immediately before exams.

#

It's more important to be rested.

trim zephyr
#

i doubt so

stuck bluff
#

Putting off sleep in lieu of study is an equation with a negative net result.

trim zephyr
#

otherwise we don't get that pressure

#

that's the only day when we'd study

stuck bluff
#

A foolish approach.

trim zephyr
#

oh i am good with logo designing and blender

stuck bluff
#

Study well in advance.

trim zephyr
#

ok

#

but i dont get the dopamine while coding

#

only if i use the unity engine

#

yea

stuck bluff
#

Putting off sleep impairs your ability to recall, including things you know.

trim zephyr
#

yes u see

stuck bluff
#

It makes you stupid, inhibiting reasoning.

trim zephyr
#

yes like right now im

stuck bluff
#

@zealous badgerπŸ‘‹

trim zephyr
#

i just wanted a moral boost so i wanted to show something related to design

#

is it okay to share

stuck bluff
#

An image?

#

Do.

trim zephyr
#

vdo

#

remarks?

stuck bluff
#

It's a little busy in spots.

#

Like you're throwing too much together at once.

#

In design, often, less is more.

trim zephyr
#

huh what should i reduce

#

i need some idea

stuck bluff
#

Reduce overlap.

trim zephyr
#

oh then i might use another logo of mine instead

delicate wren
#

@fluid canopy what is the question?

trim zephyr
#

wait can i show the other one

stuck bluff
#

Do.

stuck bluff
fluid canopy
#

Its python related task on codewards

#

wars

#

the task itself is difficult to understand

#

I can copy/paste?

stuck bluff
#

@trim zephyrImagine your animation as like a poem, a flowing river, a wisp of air tumbling through the trees.

delicate wren
#

!paste

coarse hearthBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

delicate wren
#

also you can link the problem so that it's easier to understand the goal

trim zephyr
#

poem huh how

delicate wren
#

(problem=task in this context)

stuck bluff
#

Nor frenetic.

fluid canopy
#

'

coarse hearthBOT
# fluid canopy

Please react with βœ… to upload your file(s) to our paste bin, which is more accessible for some users.

trim zephyr
#

im not getting way too much idea from utube

fluid canopy
#

test.assert_equals(elections_winners([1, 3, 3, 1, 1], 0), 0)

trim zephyr
#

but indeed i have to visualize like you said

delicate wren
#

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

fluid canopy
#

test.assert_equals(elections_winners([1, 3, 3, 1, 1], 0), 0)

stuck bluff
trim zephyr
#

agree

fluid canopy
#

for me, I dont understand how the output can be 0 then there 3 og #1 voters

delicate wren
#

do you understand that a candidate can win if and only if they can win when all non-voters vote for them?

delicate wren
trim zephyr
#

is the questions just asked now follows methods like naive bayes model

#

to find probability

fluid canopy
delicate wren
#

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

fluid canopy
#

I get that but another test example is test.assert_equals(elections_winners([5, 1, 3, 4, 1], 0), 1)

delicate wren
#

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

fluid canopy
#

oooooooh

#

they are positons

#

with counted votes depends

#

on what k is

delicate wren
#

length of the array is the number of candidates

fluid canopy
#

k is the seconf argument

delicate wren
fluid canopy
#

I understand, party ns and what is represented is how many votes they have

#

what who will win based on k votes

stuck bluff
#

Tense.

#

But present.

#

@tame leaf Yoo hoo

fluid canopy
#

thank yuo for the help

#

you*

fluid canopy
#

for statements and if statements, what a world to learn

stuck bluff
#

@paper totemπŸ‘‹