#voice-chat-text-1

1 messages Β· Page 10 of 1

rugged veldt
#

Anyone ever heard of micropython?

#

talk about it

#

tell me what you know

#

I need know

#

but Im not that kinda dev\

arctic olive
#

Is it like python, but bit sized?

rugged veldt
#

dont try to get out it

#

lol brb yall

arctic olive
#

Ok...

delicate wren
arctic olive
#

Nice

#

what u guys talking about?

rugged veldt
#

aaahhh

delicate wren
#

@north shadow FFI?

#

call Python from Rust?

elder wraith
#

A Rube Goldberg machine, named after American cartoonist Rube Goldberg, is a chain reaction–type machine or contraption intentionally designed to perform a simple task in an indirect and (impractically) overly complicated way. Usually, these machines consist of a series of simple unrelated devices; the action of each triggers the initiation of t...

delicate wren
#

if it's a service, those should probably be two separate services, I guess

#

oh

#

it's an app

#

(hypothetically you can launch a subprocess if you can't get direct bindings working)

stuck bluff
#

@misty sinew πŸ‘‹

delicate wren
#

"FSB"

rugged veldt
#

Anybody here into flipper zero?

delicate wren
#

seems like more general-purpose

#

(but does include some potentially less legal capabilities)

rugged veldt
#

they say you can write programs for it in c, micro python, and c#

delicate wren
#

then Rust too probably

jagged hawk
#

AF hows minesweeper btw

delicate wren
#

not much progress this season (peak was top 948)
was spending way less time on it

#

as for coop minesweeper remake, it's at 0 lines of code written so far

jagged hawk
#

that would be cool

misty sinew
stuck bluff
#

@jagged heath πŸ‘‹

#

@placid anchor πŸ‘‹

#

@misty nymph πŸ‘‹

misty nymph
#

hey

#

cant find !voiceverify

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.

rugged veldt
#

I need to get my msgs up

stuck bluff
#

The planet is your limpet.

rugged veldt
#

lol limpet?

#

Man im gonna need to query that

mild flume
#

I'll be back on in a sec, I have to check on a copier

#

Because anything that puts toner on paper hates me

rugged veldt
#

haha

delicate wren
#

ordered?

#

!e

print(hash(-1))
print(hash(-1.0))
print(hash(-1.0+0j))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | -2
002 | -2
003 | -2
hearty heath
#

Heyy :)

#

Working on mahjong thing?

hearty heath
#

Yes yes I totally understand what you're talking about πŸ˜„

#

Ah right

#

Mahjong seems pretty complicated πŸ€”

#

Oh right

#

Ah right yeah

delicate wren
#

it's Java specifically, yes

#

AST seems more useful to modify/analyse existing python code

#

not sure if it's useable for DSLs

hearty heath
#

Yeah, for that you'd probably want something like Lark.

delicate wren
#

disclaimer just overlays part of the site

hearty heath
#

I'm watching a video about the rules of mahjong πŸ˜„

#

I'm not getting it tbh

#

Oh yeah, that was the top-comment on the video lol

#

"POV: you're trying to get 100% completion in yakuza"

#

The tiles look kind of edible, like blocks of fudge or something

delicate wren
#

I'd probably just describe the rules using classes
(and mostly in declarative way rather than imperative)

#

maybe add priorities to rules or something like that

#

not necessarily numerical

hearty heath
#

Jazz hands

#

brb

delicate wren
#

accidental speedrunning in minesweeper
(100 beginner games)

#

where are you running python?
on the server?

#

you're probably looking for RPC if you want "function calls"

#

FastAPI good

#

Flask is worse for large application

#

far worse

hearty heath
#

Ah Hemlock just left I think

delicate wren
#

GPT is not a tutor in any way

#

that's like

#

the opposite

#

it's irresponsible

#

and dumb

#

weight != mass

#

there's, like, too much nuance to phrase that riddle correctly

misty sinew
delicate wren
#

it's probably overinferring the context to be about 1kg vs 1kg

delicate wren
#

Haskell looks like magic sometimes

#

Haskell doesn't like mutability or side effects

delicate wren
#

Haskell actually tries to avoid referencing that "whole machine" object

misty sinew
#

Monad

delicate wren
#

that sounds like trolling

misty sinew
wise depot
#

"simple"

delicate wren
#

guess what is a monoid?
it's not a monoid

delicate wren
# misty sinew

in Haskell morphisms would usually be functions and objects would usually be types

#

you can define monads on higher-level objects (e.g. functors)
but I'm not sure Haskell allows that

#

probably doesn't

#

I mean

#

generics over Functors

delicate wren
#

(... for example, Functors)

#

classes are like categories in Haskell

delicate wren
#

but

#

Rust has at least three different primitive categories

misty sinew
#

(1 + 3 + 4)

#

(1 + 3) + 4

#
  • is associative
#

0 is the neutral element

delicate wren
misty sinew
#

=> The natural numbers and + are a monoid

delicate wren
#

I pretend FnMut doesn't exist

#

"if computer complains about your maths proof, your proof might have some issues"

#

yolo-oriented programming

misty sinew
#

Prolog

delicate wren
#

http instead of https to complete the joke

#

I should
implement Monad for stackless evaluation

#
enum Stackless<T> {
    Done(T),
    Pending(Box<dyn FnOnce() -> Stackless<T>>),
}
#

Rust

#

I have a similar thing in Python

#

dynamic dispatch

#

in more pythonic description (if only python allowed enums or generic type aliases)

Stackless[T] = (Literal['Done'], T) | (Literal['Pending'], Callable[[], Stackless[T]])
#

you just call on Pending until you get Done

#

3.12?

delicate wren
#

for quite large files

#

and I was kind of too lazy to rewrite recursive code with a proper data structure

#

no mutable stuff, perfect loop

while True:
    pass
misty sinew
#
def f(): f()
delicate wren
#

there is some very long one

misty sinew
delicate wren
#

oh, it refuses

#

spaces doesn't work

#

doesn't C require main?

#

depends on flags yes

#

one of IOCCCs was won by an empty C file

#

and compiler flags

delicate wren
#

I'm slowly starting to realise how much difficult the thing I'm trying to do actually is

#

error! returns ! probably

#

(Infallible)

#

or never

delicate wren
#

it is common on Rust discord

north shadow
fresh sky
drifting nimbus
#

nice

livid juniper
#

mic isnt working

#

srry

lilac wedge
#

yeah

twilit moss
#

i have problem

#

where can i sey what is my problem?

tacit jetty
delicate wren
rustic turtle
#

did you guys know this?

#
In recent years, there has been a movement to change the name of the default Git branch from "master" to "main" or another more neutral term. This is because the term "master" has been criticized as being insensitive to the history of slavery and oppressive power dynamics.

That being said, there is no technical reason why you cannot use either "master" or "main" as your default branch. It's largely a matter of personal preference and cultural sensitivity.

If you decide to switch to "main" as your default branch, here's how you can do it:

Create a new branch called "main" based on your current "master" branch: git branch main master.

Switch to the "main" branch: git checkout main.

Push the "main" branch to the remote repository: git push -u origin main.

On GitHub or other Git hosting service, change the default branch for the repository to "main".

Delete the "master" branch: git branch -d master.

Note that if you have any integrations or scripts that rely on the "master" branch name, you may need to update them accordingly.
#

very interesting

#

I was like... why use main or master.. lol

#

yah totally not a big deal at all, just interesting

#

parent child in my house is master/slave LOL

#

jp

#

oh man that is the truth.. I am the slave aren't I LOL

#

perhaps bad terminology

#

I don't use words like that around the little ones fyi

delicate wren
rustic turtle
#

I've been exploring the wonderful world of git via wsl

#

I cleared all the old garbage out of my github, prettied it up a bit and now I'm happily pushing commits directly from wsl πŸ™‚

#

I'm gearing up to be able to work with people who have actually coded in groups, its all new to me and we have SVN in place now I think?

#

SVL ? ....

#

like git but old school

#

no it is SVN

delicate wren
rustic turtle
#

they're all PLC and FB and mySQL

#

and SVN for version control

#

although frankly, they're not terribly excellent with that

#

I should go to bed its too late.

#

talk to you fine individuals on another day

stuck bluff
ashen harness
#

Hello

#

i

#

need

#

to send

#

50

#

messages so i can

#

talk to ppl

#

😦

#

its so weird

#

when

#

ppl are talking

#

and i cant talk to

#

them

#

lmao

verbal coral
#

everyone has to meet the requirements if I recall correctly idk

quaint cape
#

lol

#

same

#

here

#

I can't

#

talk

#

on

#

voice

#

chat

#

but

#

anyways

#

how's

#

everyones

#

day?

floral lagoon
#

It

#

Is

#

Good

#

Thank

#

You

#

Very

#

Much

#

How

#

Was

#

Yours

#

?

stuck bluff
#

@quaint cape @floral lagoon I've watched people have to wait for two weeks because of trying to do it that way.

#

You do you, though.

coarse hearthBOT
#

failmail :ok_hand: applied timeout to @floral lagoon until <t:1680858346:f> (10 minutes) (reason: burst spam – sent 8 messages).

The <@&831776746206265384> have been alerted for review.

stuck bluff
#

Let it not be said I didn't warn you.

floral lagoon
twin pelican
#

who came up with 50 message for speaking permission?

#

like why not 49

#

or 51

#

so basically I need 47 now right?

#

ops it got to 46

#

may I continue to 0?

#

is it against the rules that I'm doing this?

#

by the way it's 43

stuck bluff
#

@late raptor@misty sinewπŸ‘‹

misty sinew
#

why i cant speak

#

guys

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.

misty sinew
#

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

misty sinew
#

bro the system is so bad

#

why i need 50 msg to tallk

#

we are free

stuck bluff
#

Alas, it's something that became necessary on account of voice trolls who would come in and scream.

misty sinew
#

freedom

misty sinew
#

πŸ™‚ thers another sulotions

#

anyway i hope i get the acces soon as possible

stuck bluff
#

Yes. There are solutions. This is a speedbump, not a brick wall.

misty sinew
#

You have been active for fewer than 3 ten-minute blocks. ?

#

3 ten-minute blocks?

stuck bluff
#

This system requires that people engage in some social investment and have a measure of patience. This is something that is generally repulsive to the sorts of people who come in here to scream and make arseholes of themselves.

#

Having voice trolls come in every ten minutes is not pleasant and this system puts a stop to 99% of it.

#

While still allowing people in.

#

It means that you can't just do all 50 messages in 10 minutes.

#

Or less.

#

There has to be three ten minute windows in which there is activity and a total of 50 messages over those three periods and possibly beyond.

#

My suggestion is that you don't try to race toward it. Just slow down, smell the flowers, chat casually with people and enjoy yourself.

#

It will happen on its own, organically.

misty sinew
#

aaaa ok thank you

#

bro

rotund shadow
#

hello sohaib

paper phoenix
#

Hiii @mild flume helloworld

quaint cape
gaunt falcon
#

@ornate moon

#

hello

#

how are you doing

ornate moon
#

good

#

@gaunt falcon how about u

gaunt falcon
#

doing great

#

where are you fron

#

from

#

@ornate moon

ornate moon
#

Morocco

gaunt falcon
#

ok

#

so what is the best courier service there or internationally

ornate moon
#

tbh I don't know

gaunt falcon
#

ok np

#

what are you working on

#

hello @stuck bluff

light blaze
stuck bluff
#

@light blaze Perhaps your server needs to respond differently. Web browsers typically expect to be served up webpages.

#

I would talk to #web-development, because they'll be more practiced at doing this stuff.

#

Well, help post, then.

#

The one time I wrote anything webservery, it was a Frankenstein's monster.

misty sinew
#

yoo

#

how are y??

gaunt falcon
#

@misty sinew good?? hbu

stuck bluff
#

@wanton flume Could you please say that again?

wanton flume
#

Hello Jay,

I hope this email finds you well. I am a big fan of your work and I admire your mission to spread wisdom and positivity to the world.

I am writing to offer you my thumbnail design services for your YouTube channel. I am Milki Wasihun, a professional thumbnail designer and the founder of Oropyt, a creative agency that specializes in YouTube optimization.

I can work with various niches, such as personal development, health, and spirituality. I have noticed that you don’t change your thumbnails very often and I think I can help you attract more viewers with some eye-catching and engaging designs. I can also help you test different thumbnails and see which ones perform better.

I would love to work with you and help you grow your audience and impact. If you are interested, I can offer you a special deal: I will change 10 thumbnails for you every month for 50% off!

This is a limited time offer, so don’t miss this opportunity. If you want to see some samples of my previous work and my portfolio, please let me know and I will send them to you.

If you prefer, we can also hop on a voice call and discuss your needs and preferences in more detail. Just let me know what time works best for you and I will be happy to talk to you.

Thank you for your time and attention. I look forward to hearing from you soon.

Sincerely, Milki Wasihun

stuck bluff
#

Your microphone is at decent volume, you don't have any noise, your audio is a little bit muffled when you speak, but the main issue is not all of the audio seems to be coming through.

wanton flume
#

looks like a scam?

#

β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

#

β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

#

which ones should i change exactly

misty sinew
stuck bluff
#

Well, I can hear you fine, so. One sec.

#

You look like you're writing at a level where I'm not going to be able to tell you anything you don't already know.

#

Why wouldn't a company want people?

#

People mean opportunity.

#

What about up?

#

Yeees?

#

I am.

#

@unique raptor

#

No it is not.

#

Took you long enough.

#

I only go out for medical reasons.

#

I don't discuss that.

#

What percentage of the year needs to be completed before it's "almost the next year"?

#

What percentage?

#

Or number of months.

#

So....January, February, March, April...so three and change.

#

Three and change out of twelve months, Kemal.

#

Ta ta.

#

Hey hi.

#

@barren steppe πŸ‘‹

#

Which word?

#

Ah, yes.

#

It's a Britishism.

#

One ta is thanks.

#

Spoken.

#

That's right.

#

@misty sinewπŸ‘‹

#

@cursive pierπŸ‘‹

cursive pier
stuck bluff
#

My message was intended as greeting.

cursive pier
#

!voiceverify

#

!voiceverify

stuck bluff
#

I can speak, but the rain might have caused my internet to be a bit shitty. I can hear people fine, but other people were complaining, so I'm just listening and typing.

#

The voice verification command needs to be performed in the voice verification channel.

#

It will tell you that you haven't met the requirements.

#

@supple orbitπŸ‘‹

cursive pier
#

right

#

ty for the help

#

appreciate it

stuck bluff
#

Yo, 80.

#

Yahoy.

#

Mic check successful, 8080.

#

@pseudo raven

#

@ivory rampartHey hi. You're really noisy.

#

@wheat ravenπŸ‘‹

#

There was something familiar about the noise pattern, though.

#

@pseudo raven If you get disappeared, I'll be sad.

#

I've not been talking because the rain might have fucked things up. People were complaining.

#

So I'm just listening.

#

and typing

#

@dire caveπŸ‘‹

#

"How do I shot web?"

#

@night quarryπŸ‘‹

dire cave
#

hey

stuck bluff
#

What doesn't use ffmpeg when dealing with multimedia?

#

Yoy Osyra.

#

AT+GCAP

ivory rampart
#

Sorry

stuck bluff
#

@candid wolfπŸ‘‹

#

80, I'm always genuinely surprised you don't already have one.

#

There is an alternative to fracking on people's land.

#

Eminent domain.

#

Then it's not happening on their land.

#

Yes, I'm being facetious.

#

Oh, what, fracking reduced the value of your property? So sad.

gaunt falcon
#

anyone intersted in clash of codes

stuck bluff
#

@fair heron πŸ†“

#

U+1F193

stuck bluff
#

I am pleased.

gaunt falcon
#

yo yo @stuck bluff how are you doing

#

what 's going on

stuck bluff
#

Cooking.

gaunt falcon
#

what

#

didn't know you cook also

stuck bluff
#

Risotto.

gaunt falcon
#

i have heard of it

#

don't get offened

#

is it mashed rice

#

and seasoned to perfection

stuck bluff
#

Not mashed, no.

gaunt falcon
#

so i have never had rissoto

#

but only watched it on masterched

stuck bluff
#

Mhm.

#

They call it The Death Dish, here.

gaunt falcon
#

why

stuck bluff
#

Not that I make a habit of watching Masterchef.

gaunt falcon
#

people have it before death

stuck bluff
#

Because it trips up a lot of the contestants.

gaunt falcon
stuck bluff
#

It takes a practiced hand to do it well.

#

There's a fine line between soggy and chalky.

gaunt falcon
#

ok so you get that fine line

stuck bluff
#

But you can still have it soupy without being soggy.

gaunt falcon
#

that's an art

#

do sent me a pci

stuck bluff
#

Depending on the region of Italy you're in, you may or may not want it soupy.

gaunt falcon
#

i wnat to have it

stuck bluff
#

It won't be anything special to look at.

gaunt falcon
#

i will take a print out on edible paper and then have it

stuck bluff
#

I don't claim mastery of the dish, but I can do it a way I enjoy.

gaunt falcon
#

tomorrow

#

ok

stuck bluff
#

@rancid moth πŸ‘‹

rancid moth
#

Hey

#

You are quiet

stuck bluff
#

Am here, now.

rancid moth
#

Ok

verbal hazel
#

OK

delicate wren
#

(it's not an easy one)

#

((alegedly))

#

!code

coarse hearthBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

delicate wren
#

I'll be back in a couple of minutes
(need to stare into the abyss of fractals for some time)

azure knoll
#

whats im doing ?????????

#

dude explain me whats you ant exaclty ?

#

i swear my god im not trolling

#

dude

#

just explain me whats your proplem is ? @crystal aurora

#

just type your proplem

#

thats is it

#

i dont understand english man

#

then i can copy your proplem and i will go to google traduction

peak frigate
#

is everything fine here?

#

feel free to submit a @crisp hazel report with more context

azure knoll
#

they want mute me for no reseon

#

there a staff here explain your proplem ! @crystal aurora

jaunty trench
#

is it just me or is gofek's voice robot-like

azure knoll
#

just tell me mute yourself thats is it

misty sinew
#

why is his mic so bad

#

this guy is very wise

delicate wren
#

@crystal aurora a |= b for dictionaries shows more serious differences
(because it shows how it's not a = a | b)

delicate wren
#

now I'll try to make it O(N)

#

ChatGPT is very good at proving wrong statements.

misty sinew
#

guys

#

how do i convert a string to an operator

delicate wren
#

!e

def iadd(a, b):
    a += b
example = 0
iadd(example, 1)
print(example)
example = [0]
iadd(example, [1])
print(example)
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0
002 | [0, 1]
delicate wren
#

every Python object is passed "by reference" in C context and "by value" in Python context

#

__iadd__ for list/dict returns self

misty sinew
#

or is that for something else

delicate wren
plush shadow
#

lol

delicate wren
misty sinew
#

oh ok

delicate wren
#

there are two things that are usually correlated for __iadd__

#

mutability and returning self

#

yeah, it's quite good at lying about programming concepts

misty sinew
#

it says it doesnt work

delicate wren
#

it wasn't python syntax

misty sinew
#

oh

delicate wren
#

{"+": operator.add}

#

if this is ChatGPT, then fuck ChatGPT

plush shadow
#

that sounded like chat gtp

delicate wren
#

!e

def iadd(a, b):
    a += b
class C:
    def __init__(self, x):
        self.x = x
    def __repr__(self):
        return f'C({self.x})'
    def __iadd__(self, other):
        self.x += other
        return self
class D:
    def __init__(self, x):
        self.x = x
    def __repr__(self):
        return f'D({self.x})'
    def __iadd__(self, other):
        return D(self.x + other)
example = C(0)
iadd(example, 1)
print(example)
example = D(0)
iadd(example, 1)
print(example)
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | C(1)
002 | D(0)
delicate wren
#

fuck ChatGPT. no one cares what it says.
think for your fucking self.

plush shadow
#

oh wow.... wtf i just learned something

misty sinew
delicate wren
#

there is no concept in python of "passing by reference vs passing by value"

delicate wren
plush shadow
#

I'm relatively new to programming, and went briefly into memory efficiency, but never really seen an application appear like that. So kinda wild

delicate wren
#

the difference is only whether or not __iadd__ mutates the object

#

object can be mutable in both cases

#

for immutable objects, __iadd__ can't be mutating

#

for mutable objects, it is not guaranteed to be mutating

delicate wren
#

just to display it

#

!e

class C:
    def __repr__(self):
        return 'C()'
print(C())
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

C()
delicate wren
#

instead of

#

!e

class C: pass
print(C())
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

<__main__.C object at 0x7fe65d828110>
delicate wren
#
a += b
a = a.__iadd__(b)
#

!d operator.iadd

coarse hearthBOT
#

operator.iadd(a, b)``````py

operator.__iadd__(a, b)```
`a = iadd(a, b)` is equivalent to `a += b`.
delicate wren
#

@crystal aurora could you repeat?

#

I'd probably look into how TikZ does geometry in PDFs
(although it lives several layers of abstraction above PDF itself)

#

it's GPL 2

#

I completed the kata

#

(no spoilers because it's quite good and other people should attempt it)

#

there exists such thing as a selection bias.

#

weaker in what sense

#

I know what's more powerful than C++

#

C

#

even in C you can "pass by value" but still have the structure mutated

#

because it may have pointers

coarse hearthBOT
#

@candid garnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1 ['a', 'b']
002 | 1 ['a', 'b']
delicate wren
#

!e

from os import urandom
s = urandom(32).hex()
print(id(s))
s += "a"
print(id(s))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 140333271212848
002 | 140333271212720
delicate wren
#

I forgot how to do that

coarse hearthBOT
#

@candid garnet :white_check_mark: Your 3.11 eval job has completed with return code 0.

1 ['a']
delicate wren
#

sometimes

#

because

#

strings are mutable

#

if there is only one reference

delicate wren
delicate wren
# delicate wren

this shatters any idea of trying to apply principles of mutability/"passing by reference" to __iadd__ behaviour

#

if you want something that has strict += semantics, use Rust

delicate wren
#

!e

def real_pass_by_reference(__reference, __locals):
    __locals[__reference] += 1
example = 0
real_pass_by_reference("example", locals())
print(example)
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
delicate wren
#

well, the previous one was a reply

#

this one too in some sense

delicate wren
#

@pastel rapids colab is free with limitations

#

I just use JupyterHub

#

(self-hosted)

#

apache httpd?

#

Rust broke everything
who the hell now knows what's low-level, what's high-level when it exists

delicate wren
#

@pastel rapids the whole point of colab is the VM that you can access from anywhere
if you want something similar locally, you'd probably use JupyterLab

jaunty mauve
#

i am trying to make a subprogram which loops through an array

#

to try and find the corresponding grade

#

But i cant seem to find what my error is

#

it would be great if someone could help

fair heron
#

sup

delicate wren
#

it throws an error because you compare 50 to "83" instead of 83

#

also, you don't need range

#

you can do

for grade_letter, grade_score in grades:
    if user_in >= grade_score:
        return grade_letter
coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied timeout to @misty sinew until <t:1681260954:f> (10 minutes) (reason: burst spam - sent 8 messages).

The <@&831776746206265384> have been alerted for review.

peak frigate
#

!tvmute 473940630716940299 2w don't spam to get voice verified, as the guidelines clearly state.

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @misty sinew until <t:1682470090:f> (14 days).

topaz fractal
#

Why I cant speak in the voice chat?

delicate wren
#

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

topaz fractal
#

Do you know why my nickname is 'Dobro Opt'?

topaz fractal
delicate wren
#

did you mean "goodness"?

topaz fractal
untold plank
#

i am not able to join vc

#

why?

#

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

delicate wren
#

restart and retry

untold plank
#

ok

#

still name

untold plank
delicate wren
#

DNS configuration?

untold plank
#

can we make a private call

delicate wren
#

that usually depends on the specific registry you use

untold plank
#

i will share the screen

delicate wren
untold plank
#

ok

delicate wren
untold plank
#

yes

delicate wren
#

you would probably need A record if you have IPv4

#

if you use something like AWS, there might be simpler options

untold plank
#

If you already own a domain, please make these 2 changes in your DNS settings (should be found on your registrar's account):

Add an empty (@) A record with the value 34.96.116.138 (delete any other A records you have)

Add a 'www' CNAME with the value of im-router-service.com (without the http:// prefix)

If you are still not sure what to do you can just forward this email to your domain registrar and ask them to make the changes for you.

If you have any questions or need assistance, please do not hesitate to contact us by with your domain name, and 'Editor URL' (copy the URL from address bar while in the editor).

#

i have to do this

#

i have go daddy domain

#

i have domain name

delicate wren
#

you have IP already, right?

untold plank
#

yes

#

34.96.116.138

#

this

#

?

delicate wren
#

of that form, yes

untold plank
#

if i able to share screen then we can do it easly

delicate wren
#

there are two different types of a record

untold plank
#

i see some video on that but it didn't work

delicate wren
#

A and CNAME

#

A is domain -> IP

#

CNAME is domain -> domain

untold plank
#

@stuck bluff

#

hello

stuck bluff
#

@runic knoll Come test here?

runic knoll
#

how to test it here?

stuck bluff
#

The other voice channel.

runic knoll
#

ooh ok lol

runic knoll
delicate wren
#

I'm thinking about whether I should publish the data base thing I was building on PyPI
idk if it would be useful to anyone
though it might be

#

the main thing that goes for it was the ease of use

#

it's just a key-value store which requires almost zero configuration

#

"just use json" easily fails on power cuts

delicate wren
stuck bluff
#

"Building compilation database compile_commands.json"

delicate wren
#

ig

delicate wren
#

it doesn't even have proper name yet

#

another appealing thing is that all reads are sync
and writes can be either sync or async

async def _main(connection: DbConnection):
    value0 = connection.get('increment-0', 0)
    await connection.set('increment-0', value0 + 1)

    value1 = connection.get('increment-1', 0)
    connection.set_nowait('increment-1', value1 + 1)
    await connection.commit()
#

sync writes don't guarantee consistency until commit exits

delicate wren
#

hypothetically, a more robust, distributed solution could be built on top of it

delicate wren
#

because the current one has some specific details that aren't perfectly suitable for public docs

#

history of development and projects that use the that library

#

Erlang's built-in DB has quite a good name

#

Mnesia

#

as in opposite of amnesia

delicate wren
#

(that would help improving the Python implementation too)

#

the implementation I currently have is not as far away from clean state-machine-like code as it was in the early stages of development

misty sinew
#

hello
@pale pivot

#

i don't have voice verify

long pendant
#

I hear rust is taking off

#

@pale pivot Hey bro, how's life

stuck bluff
#

Rock music.

delicate wren
#

unions are rare due to extreme unsafety

hearty heath
#

Yeah that's a lot nicer.

eager tinsel
#

brb

wintry sparrow
#

What are we doing πŸ˜„

#

oh

#

i was muted πŸ˜„

#

Poor foreign women, who are actually for real πŸ˜„

dusty jetty
#

In computing, endianness is the order or sequence of bytes of a word of digital data in computer memory. Endianness is primarily expressed as big-endian (BE) or little-endian (LE). A big-endian system stores the most significant byte of a word at the smallest memory address and the least significant byte at the largest.
A little-endian system, ...

#

that

#

@misty sinew

wintry sparrow
#

What projects you working on? πŸ˜„

#

I work on my website & networking security...

#

https:// for secure...

#

& working on my own API

#

For twitch etc... in Python πŸ˜„

dusty jetty
#

cool story

wintry sparrow
#

What you say about API? πŸ˜„

dusty jetty
wintry sparrow
#

I added you @primal quarry maybe one time we can talk πŸ˜„

#

my soundboard broken

dusty jetty
#

didnt mean to b rude

wintry sparrow
#

API...

#

you GET it?

wintry sparrow
#

You in school?

#

Self study?

I self-studied myself...

dusty jetty
#

no i just code for fun

wintry sparrow
#

Ah, i dont do it for fun, i'm a developer πŸ˜„

mild flume
wintry sparrow
#

So what you trying to do or what you coding?

#

@dusty jetty

dusty jetty
#

nuffin right now

wintry sparrow
#

What you going call the language πŸ˜„

#

Set the API headers and parameters

headers = {
'Client-ID': 'client',
'Authorization': 'auth'
}
params = {
'user_id': user_id
}

Check if the user is currently streaming

streams_response = requests.get(streams_endpoint, headers=headers, params=params).json()
if 'data' in streams_response and streams_response['data']:
# If the user is streaming, get information about the most recent video from that stream
video_params = {
'user_id': user_id,
'first': '1',
'sort': 'time',
'type': 'archive'
}
videos_response = requests.get(videos_endpoint, headers=headers, params=video_params).json()
if 'data' in videos_response and videos_response['data']:
# If the user has recent videos from their stream, you can use the URL of the first video to broadcast it
video_url = videos_response['data'][0]['url']
print(f"The user is streaming and their most recent video is available at {video_url}")
else:
print("The user is streaming, but there are no available videos from their stream")
else:
print("The user is not currently streaming")

#

thats where im at related to python πŸ˜„

#

i have auth key but it dont work...

#

i have another code, it works if i put helix/stream

#

but not if i put my own client /stream

#

If i have 2 computers only & 1laptop...

What i do i need 2 linux, i want windows on laptop for school...

#

Harddrive! πŸ˜„

mild flume
#

I don't follow, are you asking what you would need to do to install Linux onto one of the computers?

wintry sparrow
#

Noo, im just considering how to set my eniovrement i have ubuntu but want a kali...

#

But there is so much data on the ubuntu now...

mild flume
#

Don't do Kali as a daily driver

#

It's a toolkit

wintry sparrow
#

yeah...

#

Where i put kali, on my laptop?

Can i use it for web development school then?

#

Not my gaming PC...

stuck bluff
#

Ninjas are for Halloween, not for the workplace.

mild flume
#

You have Kali as a virtual machine or installed on a flashdrive or something

stuck bluff
#

Don't develop on Kali.

mild flume
#

But yeah, it's not made to be a dev distro

#

It's just a set of security tools.

wintry sparrow
#

Kali works for school?

I might start in august...

& wouldnt it be difficult getting windows back?

I dont have bootable windows...

mild flume
#

Easy enough to make an install flashdrive for Windows

stuck bluff
#

Kali is something you throw onto a bootable usb or dvd and you boot up into it when you want to use its tools.

wintry sparrow
#

Okay i get my USB tomorrow πŸ˜„

#

i have a sata disk, i just change disk on my gamer?

stuck bluff
#

Or virtual box.

wintry sparrow
#

not a fan of virtual box

misty sinew
#

Yeah it's easier I'm my case I don't have to carry anything

wintry sparrow
#

Diffferent OS, different hardware...

misty sinew
stuck bluff
wintry sparrow
#

I just make bootable usb, i guess..

#

USB-pen recently became big worth for me...

mild flume
#

I have dozens for that reason

wintry sparrow
#

They leaving to focus on progamming...

wintry sparrow
stuck bluff
#

Bakers' or standard?

mild flume
#

Standard this time

#

The network switches I get by the baker's

wintry sparrow
#

Perspective.. πŸ˜„

mild flume
#

@terse osprey I might bend your ear about some SNES stuff

wintry sparrow
#

I so want to travel like my father...

Tech, that's easy enough, aren't it...

You know, chill...

mild flume
#

Looking into doing that as well, ideally being able to read from my carts to run from them directly

wintry sparrow
#

But now adays, alot is stationairy isnt it, home work...

mild flume
wintry sparrow
#

I could put a kali on laptop...

#

It's just data, what if i need to reset on school...

wintry sparrow
#

They should teach in linux..

#

That's exspectations raised...

#

We raise the wrong exspectations probably

stuck bluff
#

Sauce-pouring emulation comes in two distinct forms: Open sauce and closed sauce.

wintry sparrow
#

If youre not willing to reinstall your pc...

#

Or maybe they dont know, country matters..

#

Nobody knows what a linux are..

Of course they dont learn it where i go...

mild flume
wintry sparrow
#

Maybe...

#

You have a good day πŸ˜„

stuck bluff
#

!e ```py
class MyBool(bool):
pass

MyBool()```

coarse hearthBOT
#

@stuck bluff :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     class MyBool(bool):
004 | TypeError: type 'bool' is not an acceptable base type
true valley
#

Soundtrack: Unbelievable EMF

true valley
#

πŸ‘‹

terse osprey
#

@candid garnet whoa.. o_O

#

Feels offensive to laugh

misty sinew
#

no permission to speak

#

damn

dawn nova
#

@candid garnet what are you making? i am not allowed to voice chat yet

coarse hearthBOT
#
Voice verification

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

dawn nova
#

yeah, i dont have enough of the criteria met

#

it was working for me

#

@ornate cobalt can you explain what a bucket is in this context, i feel like i understood this at one point but forgot.

#

ahh okay so normally does it just remake the entire map if it needs more buckets?

#

@ornate cobalt ahh okay so normally does it just remake the entire map if it needs more buckets?

dawn nova
#

@ornate cobalt is it fast tho

#

@ornate cobalt yeah but is it fast c

#

@ornate cobalt millions of things per second or ur not even C plus plussing

#

@ornate cobalt i agree with Krzystof, we need bucketception

dawn nova
#

@sly pond stream some python for us

sly pond
#

I can't do that

#

I don't have the power

dawn nova
#

like the srvr wont let you?

sly pond
#

Besides, I don't have anything to do with Python anyways, I use it like 2x a year for PyWeek

#

and occasionally for some automation of a boring process

dawn nova
#

what do you normally program in?

sly pond
#

flutter and php

#

❀️ SQL too

#

I generally try to stay away from the PHP, but when something needs done

dawn nova
#

i only know python, just started programming 4 months ago

#

i hope these messages count towards my 50 messages needed to enable voice chat

sly pond
#

I started with Python in 2020

#

A great language to start with IMO

dawn nova
#

ai gonna take over the world soon, then all we need is python to program the ai

#

some1 needs to make a voice changer that mimics the robot lag voice

#

if it isnt already out

sly pond
#

Yea, it's a strange effect

dawn nova
#

earlier you said something about intellij and it didnt sound positive, is there something i should know? i use pycharm

#

ahh i see

#

i genuinely havent seen anything that impressive about vim but im still new so : /

sly pond
#

I love the console

#

and the fact that vi is accessible in near every terminal you ssh into is convenient

dawn nova
#

i'v watched some videos where people are like: "look at this think you can do really fast in vim" and i can do it pretty much just as fast in pycharm

sly pond
#

once you know how to maneuver in vim it's quite fun

dawn nova
#

yeah that part i get, its everywhere

#

but everyone is talking about the speed

sly pond
#

just like CI then something

#

to swap out a string, contents of a function

#

it's a whole different way to navigate your code

#

it's like code surfing instead of just walking

unique bane
sly pond
#

definitely

#

well

#

I'd recommend Python +

#

devops

unique bane
#

never heard about it

sly pond
#

learn containers, learn git, learn the tools as well

unique bane
#

but i'll be taking notes

sly pond
#

how to deploy and maintain projects

#

but if you stick with it, you can definitely find yourself a jobnn

#

I highly recommend trying pyweek, every 6 months the server hosts a weeklong game jam

#

just wrapped one up

dawn nova
#

how long have you been programming DINO?

unique bane
#

i'm learning through a book, i think the english name is "Think Python", i've been saving my version of every exercise in the book so i maybe publish them on git for future purposes

unique bane
#

am i allowed to send some scripts i made here?

dawn nova
#

i have no idea, i would assume so. it is a python discord and i see code linked in other places

sly pond
#

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

sly pond
#

easiest way to share lots of code

unique bane
#

k

sly pond
#

!code if they're short feel free to embed

coarse hearthBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

ornate cobalt
unique bane
#

pls don't mind the language, i'm brazilian

sly pond
#

you're doing great

unique bane
#
def draw_line(x):
    if x > 1:
        print("+ - - - - "*x + "+")
    else:
        print("+ - - - - +")
def vertical_line(x,y):
    while y >= 1:
        if x > 1:
            print("|         "*x + "|")
            y -= 1
        else:
            print("|         |")
            y -= 1
def draw_square(x):
    y = (x)
    if x == 1:
        draw_line(x)
        vertical_line(x,x*3)
        draw_line(x)
    elif x >= 1:
        draw_line(x)
        while y >= 1:
            vertical_line(x,3)
            draw_line(x)
            y -= 1
while True:
    x = (input('Escolha um valor: '))
    if x.find('.') == 1 or x.find(',') == 1:
        print ("VocΓͺ precisa definir um valor inteiro")
        break
    x = int(x)
    if x <= 0:
        print ("VocΓͺ precisa definir um valor positivo.")
    else:
        draw_square(x)
    break
#

that was the first code i've created

#

it generates proportional squares with a value you give it ( the code refuses the value if it's a float or a negative )

sly pond
#

Wonder if I can find my first scripts

unique bane
#

the first language i've tried to learn was Java but i was taking so long to learn so little

unique bane
sly pond
#

Ooh, found one of my really old ones

unique bane
#

may i see it?

dawn nova
#

i only really make stuff that helps me understand python better

dawn nova
#

im not sure what you mean by docs, what i mean is for example, i recently realized i didnt understand how slicing with negative indices worked so i make a function to visualize it

sly pond
#
def get_initial(name, force_upper=True):
    if force_upper:
        initial = name[:1].upper()  # Gets first from name, upper cases it
    else:
        initial = name[:1]
    return initial  # Returns the initial


print(get_initial('john'))```
#

the oldest script I found on this computer

unique bane
sly pond
#

from datetime import *  # Calls datetime Library

now = datetime.now()
day = now.day
hour = now.hour
minute = now.minute
second = now.second
micro = now.microsecond``` has this gem of a comment
unique bane
sly pond
#

not a first

#

about a week or two into my journey

unique bane
#

where did you started learning?

sly pond
#

I used automate the boring stuff, kaggle, Real Python

#

to start

#

went through until I got stuck, then moved to the next one

#

then went until I was stuck and moved to the next one

#

then went until I was stuck and went back to where I left off on the first one

#

at which point I would wonder why I even got stuck at all, and push forward a few more chapters

dawn nova
#

automate the boring stuff was too boring for me :*(

sly pond
#

then get stuck and move to kaggle, then brush up on Real Python

#

and repeat

#

Utilizing multiple resources really hammered the concepts in

unique bane
#

my problem is that i know the code, but i dont know what to do with it, so i need the book to give me exercises

sly pond
#

Make a game

dawn nova
#

i'v been doing stuff in pygame

sly pond
#

have you done hangman / tic tac toe / connect 4 in the terminal yet?

unique bane
sly pond
#

good ones to do

unique bane
#

but that's a good idea

sly pond
#

start with rock paper scissors

#

but drawing and managing the tic tac toe / connect 4 board is fun

#

drawing a stick figure is a lot of fun too

#

I recommend raw strings, but you do what you want πŸ™‚

unique bane
sly pond
#

yea, that one shouldn't take too long

#

You can also make an ATM / bank

#

no need for persistent storage

#

but let people make accounts

#

deposit money

#

withdraw money

#

check balances

#

give em a pin

#

or let em pick

unique bane
#

not so sure how i would make tic tac toe, i don't know how to make an app interface, neither a good control for selecting the square on the console

unique bane
sly pond
#

look into it

#

I'd do it in the console firsrt

#

just draw the board on multiple lines

#
>>> x = ' | | \n-----\n | |\n-----\n | |'                                                                               
>>> print(x)                                                                                                            
 | |  
-----                                                                                                    
 | |  
-----
 | |
>>>```
#

Then there's the fancy box characters

unique bane
#

understood

sly pond
unique bane
#

probably the user would choose the input on a to c, 1 to 3 format

sly pond
#

That'll work

unique bane
#

if i'm allowed to ask, how would you do it? ( the selection part )

sly pond
#

I went with numbers

unique bane
#

like x, y?

sly pond
#

displayed 1-9 initially in the grid

unique bane
#

ooooh

sly pond
#

then replaced em with X's and O's as you play

unique bane
#

that's neat

sly pond
#

I felt it was pretty intuitive

unique bane
#

like a dial from an old phone

sly pond
#

yea

unique bane
#

that's the exercise i'm doing rn

def uses_only(palavra,lista_negra):
    for letter in palavra:
        if lista_negra.find(letter) == -1:
            return False
            break
    return True
sly pond
#

You should try naming things in English, it's easier to collaborate, and then you'll be brushing up your English while programming

#

the keywords are all English anyways, it's the defacto language of code

unique bane
sly pond
#

I speak english fluently, been speaking all my life, and even I struggle naming variables

#

come suffer with us in English πŸ™‚

#

You'll learn a lot of fun words along the way

unique bane
sly pond
#

MyKitchen

#

AlsoTheOfficeAlthoughGoodIsSubjectiveButIfItIsFreeItIsForMe

unique bane
#

XD

#

i will start replacing the words on my codes rn

sly pond
#

although_python_likes_snake_case

#

PascalCase for classes

#

I think the rest goes snake_case

#

whereas Dart, what I normally work with is camelCase for variables, PascalCase for classes, and snake_case for files...

unique bane
#
def uses_only(word,black_list):
    for letter in word:
        if black_list.find(letter) == -1:
            return False
            break
    return True

can u understand it better now?

sly pond
#

it returns True if only the black_list letter is used in the word? aaaaa returns true with a

rough hawk
#

is anyone aware of any japanese coding languages?

rough hawk
#

Who is familiar with Dolittle?

sly pond
#

πŸš‹ πŸ’₯

unique bane
sly pond
#

I guess it looks like black_list could be a list even

#

or a longer string

#

can you pass ab into 34?

#

if it looks like a πŸ¦†

unique bane
sly pond
#

line 34

unique bane
#

Oh

sly pond
#
print(uses_only('aaaaaaab', 'ab'))``` would that return true?
sly pond
#

it would

#

!e```py
def uses_only(word,black_list):
for letter in word:
if black_list.find(letter) == -1:
return False
break
return True

print(uses_only('bananas', 'ba'))
print(uses_only('bananas', 'bans'))```

#

❀️ this server

unique bane
#

working perfectly πŸ‘

#

idk why but python is so fun to use

sly pond
#

so fun

unique bane
#

i get rlly happy by spending time solving exercises on it

sly pond
#

Yea, the AI makes it even more fun, but you gotta learn what you're doing first

#

then you can let the computer do it for you

unique bane
#

i will be working hard on Python this year, i live on a small city, so if i find a job it needs to be a remote one

sly pond
#

It is a worthwhile endeavor

unique bane
#

and i think that having the privilege to work from home must be only to good developers

sly pond
#

You can be self employed, help local people with programmatic solutions

#

automate processes

unique bane
#

that's a valid option too

sly pond
#

Just start learning now

#

I imagine people still use computers out there

unique bane
#

as long as i'm getting paid, i would accept it

unique bane
sly pond
#

You can automate many processes

#

that people who don't quite know how to use a computer take hours, to take seconds or less

dawn nova
#

i still need to type a bunch of messages for voice chat

#

but i dont wanna spam

sly pond
#

I bet using the word spam in more messages will help your situation

dawn nova
#

will it -_-

unique bane
#

i will be heading to bed rn, i need to wake up at 5am for school so i need some zzz's

#

bye πŸ‘‹

sly pond
#

sleep is critical

dawn nova
#

pce

sly pond
#

goodnight

unique bane
#

goodnight y'all

dawn nova
#

i was making a tic tac toe game

#

but i hit a wall trying to make it simple

#

!code

coarse hearthBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

dawn nova
#

board = [["_"] * 3 for _ in range(3)]

map_commands = {
    "top left": board[0][0],
    "top": board[0][1],
    "top right": board[0][2],
    "left": board[1][0],
    "middle": board[1][1],
    "right": board[1][2],
    "bottom left": board[2][0],
    "bottom": board[2][1],
    "bottom right": board[2][2],
}

while True:
    player_input = input("choose: top, bottom, left, right or top left, top right, bottom left, bottom right: ")
    map_commands[player_input] = "X"
    for row in board:
        for char in row:
            print(f'{char: >3}', end="")
        print()
#

i think it doesnt work the way i planned because the char is immutable

#

i think it should work if the value in the map is a mutable datatype

#

but then its not simple

dawn nova
#
board = [[list("_") for _ in range(3)] for _ in range(3)]

map_commands = {
    "top left": board[0][0],
    "top": board[0][1],
    "top right": board[0][2],
    "left": board[1][0],
    "middle": board[1][1],
    "right": board[1][2],
    "bottom left": board[2][0],
    "bottom": board[2][1],
    "bottom right": board[2][2],
}
player = 0
while True:
    player_input = input("choose: top, bottom, left, right or top left, top right, bottom left, bottom right: ")
    if player % 2 == 0:
        map_commands[player_input][0] = "X"
    else:
        map_commands[player_input][0] = "O"

    player += 1
    for row in board:
        for char in row:
            print(f'{char[0]: >3}', end="")
        print()
#

finished

#

@pale pivot the way you are showing them the yield from keyword is just a substitute for a for loop, which is not what it was introduced into the language for, according to mCoding. i linked a video earlier if you want to watch it.

pale pivot
dawn nova
#

@pale pivot maybe i missed that, also im new to programming so i could be wrong.

pale pivot
#

no worries, thanks for the link

#

in this case I know a little bit about the stuff πŸ˜…

covert arrow
#

your wild man this shit is impressive, how long have you been coding?

dawn nova
#

@covert arrow u talkin bout my tic tac toe game above huh?

#

impressed?

real monolith
#

what r u coding ?

north nacelle
#

@ornate cobalt what are you trying to build?

umbral rose
#

!stream 500168097852948482

coarse hearthBOT
#

βœ… @terse osprey can now stream until <t:1681789501:f>.

terse osprey
#

oh, times up lol

fathom scarab
#

what are you guys building?

#

πŸ˜‚

#

a game ?

fathom scarab
delicate wren
#

didn't notice it's vc1 not vc0

#

@misty sinew @ornate cobalt next will be JS only

#

or JS, Python, Ruby, so no complaints

#

I'm not risking adding Perl to the list

#

are this settings OK for the next one?

#

Ruby is so cursed

#

it's way better for code golf than Python

#

oh

#

both are imperfect then

#

ik how to make it 42

#

now

#

I'm going to lose to Ruby

misty sinew
#

I haven't used Ruby in a while, am a bit rusty, don't you worry

delicate wren
#

I should've translated what I wrote into Ruby

#

would've saved space

#

probably

#

that's some Perlish stuff

#

not shortest

#

I think I can improve my thing a lot