#voice-chat-text-1

1 messages Β· Page 64 of 1

shell mural
#

come on in voice chat 0 πŸ™‚

rain mist
#

!user

coarse hearthBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

mild light
#

ok

frigid thicket
#

i have to sand it as file or i have to pay to be able to sand it as masseg? thats crz

coarse hearthBOT
frigid thicket
#

i mad x o game i now its not the best way to do it but it work
1 | 2 | 3


4 | 5 | 6


6 | 7 | 8

it work like thes i hope you can undrstand it

coarse hearthBOT
frigid thicket
#

hmmm

#

i think its good

#

fine for me

#

its ez to undrstand and clear

#

will i know its long and trash but its working yeah

glad turtle
#

yieeeeaaaaah

#

@stone ginkgo are you eating? πŸ” πŸ₯€

raven garnet
#

@glad turtle i am supressed!

#

@stone ginkgo bro I want to speak the most

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.

raven garnet
#

@main garden how can I lift the suppression

stone ginkgo
true wind
#

That wasn't nice.

stone ginkgo
stone ginkgo
# true wind That wasn't nice.

I mean if I ask its acceptable or not, and ppl dont accept, I would defienetly either shut my microphone, or leave the vc on the temporary basis

true wind
#

Its' okay with me, but still touch some grass.

stone ginkgo
true wind
#

And I respect your apology, not all people are nice to apologize (or apologise).

stone ginkgo
gleaming vale
#

Oh hi circuit board

#

It's been a while

#

Sounds like old commercial

#

Like when there's no colored tv

true wind
#

Classic, I must add.

gleaming vale
#

Open settings
Find video and audio
Then click "test audio"

stone ginkgo
gleaming vale
#

Look my dms

#

We've met before

#

Talking about OOP

#

You talk that it's like baking

#

Yum super healthy

candid oasis
#

well I'm gonna have to get a new headset

#

seeya when I solve this problemoo

stone ginkgo
#

I just say, if Opal would come to data-science session of discord, does he have anything to add

#

See u guys

stuck bluff
#

@uncut totem πŸ‘‹

uncut totem
#

@stuck bluff thanks

#

print("hello circuit board")

glad turtle
#

@uncut totem sometimes it’s best to give up. i’m noticing it myself.

stuck bluff
#

@lucid furnace πŸ‘‹

lucid furnace
#

hi

#

how are u everyone

#

Hey guys can u please guide me

#

Data science is better or Data Analysis

#

@stuck bluff

#

@marsh lodge

#

@stuck bluff

#

@marsh lodge

#

@stuck bluff

#

which one i choose in your opinion??

#

@marsh lodge

marsh lodge
#

I literally have no idea

#

I am a game developer and AI researcher

lucid furnace
#

what type of games u developed

#

2D or 3D

marsh lodge
#

2D

lucid furnace
#

do you have complete control on C-shark and Unnity

#

can u guide me am fresher in my feild

#

i have to choose feild of Code World

#

@marsh lodge

#

Am fresher in Information Technology

#

@marsh lodge

#

DM please @marsh lodge

marsh lodge
#

I'm afraid I won't really be of use to you

mild light
#

yes ?

delicate wren
#

very grokful conversation

glad turtle
#

@delicate wren was the guy putting everything moonfrog said in grok and then just reading off the answer

delicate wren
glad turtle
vestal roost
#

I am new

stuck bluff
#

@boreal dune πŸ‘‹

delicate wren
#

my only criteria for sharing/making a joke is whether it's funny to me

#

seems to work so far

umbral rose
#

!stream 317279909112446976

coarse hearthBOT
#

βœ… @stuck bluff can now stream until <t:1754185586:f>.

delicate wren
#

@bitter cobalt similar in insanity to homeopathy

#

the history is so funny

#

how it got "invented":
the original author had quinine allergy

#

which has similar effects to malaria

#

which is treated by quinine

#

this is such a giant scam, it's everywhere

#

tonic

#

tonic is water+sugar+quinine

#

those side effects are very rare

#

so that "invention" is so random

#

entire industry got birthed by such a dumb coincidence

#

half-guide half-rant

delicate wren
#

burning of the Library of Alexandria is nowadays mostly considered to be a myth

#

yeah, also that

#

there is more than one library, there is more than one fire

#

it's more of a disrepair and negligence thing in the Europe overall at the time

#

just a long time of people not caring as much about science

#

and else

#

@noble flower Poland

delicate wren
#

@noble flower there is no discrete first human

#

just gradually evolved into

#

too blurry to specify the start

#

@pulsar lotus both

#

@noble flower there are multiple "Adams" and multiple "Eves" (in a sense of a common ancestor to all modern humans)

#

@sinful panther monetisation and open-source aren't mutually exclusive

#

(and I don't mean donations)

sly pond
#

I actually gotta go do some chores real quick

#

And make another coffee

#

multi tasking

elder wraith
#

In the middle of the woods

sly pond
#

kitchen isn't gonna mop itself.

noble flower
#

@pulsar lotus

dry geyser
#
colors = ["Red","Burgendy","orange"]

 for color in colors:
        screen.fill(color)
#

colors = (Red,Burgendy,orange)
^^^
NameError: name 'Red' is not defined

pulsar lotus
proper ridge
#

!e

a = (1, 2)
a += 3
print(a)
coarse hearthBOT
# proper ridge !e ```py a = (1, 2) a += 3 print(a) ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     a += 3
004 | TypeError: can only concatenate tuple (not "int") to tuple
proper ridge
#

!e

a = (1,2)
a += (3,)
print(a)
coarse hearthBOT
proper ridge
#

!e

a = (1, 2)
print(a[0])
coarse hearthBOT
delicate wren
#

!e

b = a = (1,2)
a += (3,)
print(a, b)
pulsar lotus
#

!e

a = set(["a","b","c"])
print(a)
print(a[0])
coarse hearthBOT
proper ridge
#

!e

a = {1, 2}
print(a[0])
coarse hearthBOT
# proper ridge !e ```py a = {1, 2} print(a[0]) ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     print(a[0])
004 |           ~^^^
005 | TypeError: 'set' object is not subscriptable
coarse hearthBOT
# pulsar lotus !e ```py a = set(["a","b","c"]) print(a) print(a[0]) ```

:x: Your 3.13 eval job has completed with return code 1.

001 | {'a', 'b', 'c'}
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 3, in <module>
004 |     print(a[0])
005 |           ~^^^
006 | TypeError: 'set' object is not subscriptable
delicate wren
#

!e

d = {1, 2}
print(next(iter(d)))
coarse hearthBOT
delicate wren
#

which just gives some value not necessarily first

pulsar lotus
#

But its next in order?

delicate wren
#

!e

print(next(iter({"1", "2"})))
coarse hearthBOT
proper ridge
pulsar lotus
#

makes sense

#

i think

proper ridge
#

So if you ever care about order in your datastructure, don't use sets.

delicate wren
#

dict is insertion-ordered

proper ridge
#

It's very good for cases where you don't care about order.

delicate wren
#

set is hash ordered first, insertion ordered second

noble flower
#

test_subject[0]='mohamad'

proper ridge
pulsar lotus
#

I have no usecase for sets. I don't think I've used sets in anything... yet

delicate wren
noble flower
delicate wren
#

tuples are immutable

proper ridge
delicate wren
#

!e

wrong = (1, 2, 3)
wrong[0] = 4
coarse hearthBOT
# delicate wren !e ```py wrong = (1, 2, 3) wrong[0] = 4 ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     wrong[0] = 4
004 |     ~~~~~^^^
005 | TypeError: 'tuple' object does not support item assignment
delicate wren
#

πŸ’₯

pulsar lotus
#

!e

tests = {"john", "joe"}
tests[0]={"bob",}
print(tests)
noble flower
#

test_subject1=('aya',10,15)

coarse hearthBOT
# pulsar lotus !e ```py tests = {"john", "joe"} tests[0]={"bob",} print(tests) ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     tests[0]={"bob",}
004 |     ~~~~~^^^
005 | TypeError: 'set' object does not support item assignment
pulsar lotus
#

test_subject1
vs
test_subject[1]

delicate wren
#

tuples are primarily for heterogeneous items

#

@noble flower tuples are generally not meant for sequences, instead they're used to group values together in "rows"/"records"

#

things like tuple[str, int]

#

rather than tuple[something, ...]

elder wraith
#

And if my requirements get worse, learn SQLite

delicate wren
#

C#, Rust, C++ and some other languages very strictly do not treat tuples as sequences

#

"software development: our marathons are shorter than sprints"

#

@noble flower that page probably has the range specified

noble flower
dry geyser
#

grass = (18, 182, 18)

delicate wren
#

upper limit

dry geyser
#

returns a ptoblem

#

screen.fill(grass_green)
^^^^^^^^^^^
NameError: name 'grass_green' is not defined

#

no

delicate wren
#

Clash Royale and Happy Farm are kind of the same game genre

dry geyser
#

its for a game

delicate wren
#

@noble flower they save way more than they pay out

dry geyser
#

got it to work

runic fulcrum
#

0

delicate wren
#

compared to the US, where Tucker is from, public transport in Russia exists, even in relatively remote places

#

so it's not just Moscow

stuck bluff
#

@glad venture πŸ‘‹

delicate wren
#

I work nearly full remote, and some of my coworkers are full remote

#

you can also use AI for disposable code when you don't entirely understand the project or don't want to be bothered yet

#

prototypes or whatever

stuck bluff
#

@nova hill πŸ‘‹

delicate wren
#

don't depend on AI-generated code

#

it must stay at the outer layers of dependency chain

#

=> learn patterns which allow you to keep it there

delicate wren
#

B2BSaaSathons

#

judged by the amount of compute wasted on parsing JSON

#

SOAP everywhere

#

yes

#

my only interaction with SOAP was UPnP

#

some parts of it are

#

running HTTP on top of UDP
the what

#

running HTTP on top of UDP using multicast
oh, wait, no, it's worse

#

I guess within local network they just assume UDP isn't as limited by packet size

stuck bluff
#

@grim wagon πŸ‘‹

grim wagon
delicate wren
#

@mild flume let the fish have some fun

dry geyser
#

player.draw(screen,ocean_blue)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: Player.draw() takes 2 positional arguments but 3 were given

delicate wren
#

the what

pulsar lotus
delicate wren
#

@stuck bluff China helps both sides

#

Chinese soldiers there are by the same logic as Indian or Serbian soldiers

stuck bluff
#

@dusky wren πŸ‘‹

delicate wren
#

Manchuria

#

with special exception for Richards

stuck bluff
#

@lament wharf πŸ‘‹

delicate wren
#

code first
right wing tech bro slogan?

stuck bluff
#

@ruby socket πŸ‘‹

gloomy glen
#

i want to learn problem solving with python language, but i basically use c++, so converted to python is best option?

hollow blade
#

@wintry sparrow hey

#

you good?

delicate wren
#

amongi

#

that

#

plural

#

!pypi kivy

coarse hearthBOT
#

An open-source Python framework for developing GUI apps that work cross-platform, including desktop, mobile and embedded platforms.

Released on <t:1735229629:D>.

delicate wren
#

I recently went through a couple of months of believing Flask changed for the better

#

(it didn't)

#

"does HTTP run on top of TCP or UDP?"

#

πŸ’₯

#

@crystal aurora I do expect you to name one more thing in addition to UDP/TCP

#

@odd cliff it's actually the correct answer

odd cliff
#

agreed Alisa good mention

delicate wren
#

asyncio with the amount of stuff inside it covers so much

#

AbstractEventLoop is a giant interface

delicate wren
#

(just to exclude QUIC from that question)

#

HTTP/1.1 actually doesn't change the answer (it's both)

#

thanks to UPnP being a weirdo protocol

#

they use HTTP over UDP

#

transaction isolation

#

I see transactions running into each others hourly, so this is far from unrealistic scenario

tulip palm
#

OMG this is very interesting, I'm learning a lot of concepts that IDK

delicate wren
#

what percentage of people telling they read it actually read it

tulip palm
#

Where can I find this kind of questions?

delicate wren
#

pseudoaccess

lucid furnace
#

hi

lament wharf
stuck bluff
# lament wharf What?

You'll have joined voice chat without voice privileges. I like to wave to such people in the text channels, because of the way they're set up here people often miss them. That way you can take part in any voice chats without having to speak.

lament wharf
#

Yeah I know

pulsar lotus
#

@delicate canyon

delicate canyon
#

hm

#

could this be bcz of a different browser?

#

me neither

#

for me it works so im confused

#

yeah

#

yeah

#

ye

#

πŸ˜‚

#

yeah right

#

i will add the icon change too

#

alr

#

so how is it from the older one

#

yeah i didnt

#

dont do it

#

yea i didnt do media stuff yet

pulsar lotus
delicate canyon
#

media queries i mean

#

did u do media queries

#

i mean how did u handle the screen sizes?

pulsar lotus
#

pico css

delicate canyon
#

how does that help

#

wait so i dont need to do responsiveness in tailwind?

pulsar lotus
delicate canyon
#

no idk about the libraries expect tailwind

#

yeah i know

#

i just.. didnt put them

pulsar lotus
delicate canyon
#

i was too lazy

#

i mean

#

i hate writing media query stuff i am not lazy tbh

#

but fine i will do it

#

just learn yeah

#

i'll do it with tailwind i gues

#

alr uh

#

I am

#

i hate doing responsiveness :/

#

ok

#

i will fix it

#

so uh

#

after this back to python ye?

#

k

#

i have

#

i mean well yeah

#

im shy

#

yeah hold on 1 minute i be back

#

back

#

so uh i've got ear phones and yk the built in microphone in them it works fine

#

i uh i have never talked in english in my life before

#

ok just

#

dont laugh okay it might be terrible

#

bruh say ok 😭

delicate canyon
#

@pulsar lotus linkedin

wintry magnet
#

Rip

#

Brb

delicate canyon
#

@pulsar lotus mb the power went out

pulsar lotus
#

no worries

delicate canyon
#

can u link the social media app u use

pulsar lotus
#

nedbat is on it

delicate canyon
#

uh ok

pulsar lotus
#

I signed up via fosstodon (but they stopped the sign up for now)

#

Both of these are powered by Mastodon

delicate canyon
#

alr

late jasper
#

Hello everyone

marsh lodge
#

1000000000000000000000000000000000000000000000000

#

1 Γ— 10^48

dim tide
#

Hi

tough yacht
#

hey all

stuck bluff
#

@trail arch πŸ‘‹

#

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

vital sun
#

anyone doing any project?

wooden dome
#

@glad turtle Hello?

glad turtle
glad turtle
wooden dome
#

Could you check my laptop config?

#

Model : m3500QC

glad turtle
glad turtle
wooden dome
#

Atm it is 16GB

slow scroll
glad turtle
# wooden dome Model : m3500QC

the memory for this model is "on board", some say soldered.
it's not meant to be upgraded. it can be but requires special equipment.

when you buy your next laptop, always check if it's DDR4 SODIMM and there is a maximum so you can know it's upgradable.
in the case of your model, the service manual doesn't mention the RAM, the user manual doesn't mention it either, meaning it's not meant to be upgraded.

btw, there's multiple M3500QC models, so your complete model name is required if you want to check.

references:
[1] https://www.asus.com/in/supportonly/m3500qc/helpdesk_service_guide/
[2] google search: site:notebookcheck.net inurl:m3500QC

wooden dome
#

This is what I got from systeminfo

glad turtle
wooden dome
#

I'm on windows

#

so it won't work

glad turtle
glad turtle
wooden dome
wooden dome
delicate wren
#

that wasn't entirely a request for help

#

to my understanding

stuck bluff
#

@blissful walrus πŸ‘‹

delicate wren
#

@pseudo solar just a clarification: here, problem means challenge not issue

#

it's something to be solved, not something to be fixed

thin lintel
#

@pseudo solar and @glad turtle if you guys are in need of help with code/helping with code, please go to Code/Help channel TOGETHER. This way we can continue our convo and don't need to channel hop,

delicate wren
#

🐟/Help

glad turtle
wooden dome
#

Come on share some meme

delicate wren
stuck bluff
#

@wanton valley πŸ‘‹

#

@languid barn πŸ‘‹

#

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

wooden dome
delicate wren
#

you asked for a meme, you get a meme

#

whole 7 pages thereof

delicate wren
#

the extrapolated graph is so funny

stuck bluff
#

@buoyant forge πŸ‘‹

#

@sullen crater πŸ‘‹

sullen crater
#

Hello

#

You can Vietnamese

#

Where are you from

#

?

buoyant forge
#

What's happening in the server

delicate wren
#

Gensokyo

buoyant forge
subtle mauve
#

Hello

stuck bluff
#

@subtle mauve πŸ‘‹

subtle mauve
#

guys

#

good news

#

I made my first kinda serious app

#

wanna see?

subtle mauve
#

CLI to-do list

#

don't mind the name

delicate wren
#

so many emojis

subtle mauve
#

never make a readme file

#

no I'm talking about the read me file

delicate wren
subtle mauve
#

but I made the app myself

#

I learn a lot ngl

#

using Json was fun

delicate wren
subtle mauve
#

I'll send a video of me using it

delicate wren
#

I highly recommend installing this for development

subtle mauve
delicate wren
subtle mauve
subtle mauve
delicate wren
#

it's a CLI tool, and likely has neovim integration

#

autoformatter+linter

subtle mauve
delicate wren
#

@stuck bluff look I'm not the only one like this

#

3

stuck bluff
#

@elder elk πŸ‘‹

subtle mauve
#

I'll need to learn lua later to make some plugins

#

it's beautiful

delicate wren
#

actually I don't have 3 spaces

subtle mauve
#

I have to line it up with the second word

stuck bluff
#

@clever isle πŸ‘‹

delicate wren
#

the only place where I have 3 space indent I use tabs instead

subtle mauve
#

to look perfect

delicate wren
#

it's just formatted to look like 3 spaces

delicate wren
subtle mauve
delicate wren
subtle mauve
#

I'm proud of it, but my mother's reaction wasn't let's say

delicate wren
#

Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.
-- Linus

subtle mauve
#

the best

delicate wren
coarse hearthBOT
#

.local/bin/todo line 134

print(f'Removed \"{removed["description"]}\".')```
halcyon dagger
delicate wren
subtle mauve
#

oooh I see it

delicate wren
#

don't indent so deep that 8 is too wide

subtle mauve
#

someone on reddit said it was made by AI which let's say I wasn't to happy to hear

delicate wren
#

Rationale: The whole idea behind indentation is to clearly define where a block of control starts and ends. Especially when you’ve been looking at your screen for 20 straight hours, you’ll find it a lot easier to see how the indentation works if you have large indentations.

halcyon dagger
#

I need space for text not white space

subtle mauve
#

never sharing anything on reddit again lol

subtle mauve
#

I was trying to get advice

#

but to be honest that guy was 1 out of 6 people who actually gave me solid advice

delicate wren
delicate wren
#

Torvalds has some quite strong opinions

#

(do remember that this quote is about C not Python though)

halcyon dagger
halcyon dagger
#

Dont judge me

subtle mauve
#

he has nothing to lose

delicate wren
subtle mauve
#

my next project is gonna be more about what I wanna do

halcyon dagger
delicate wren
#
class:
    def:
        while:
            try:
                match:
                    case:
                        ...
subtle mauve
halcyon dagger
subtle mauve
#

@stuck bluffI'm saying compared to other people (Microsoft, Apple..Etc)

delicate wren
subtle mauve
#

unburdened by revenue?

#

by shareholders?

delicate wren
#

like if you go quite far into functional style, you may reduce the depth a bit

#

except for definitions of decorators

subtle mauve
#

we need more of him

#

like that guy who's making his own GPU

subtle mauve
#

or average

delicate wren
#

you really need to get it formatted first

#

and, the guideline that I always repeat: don't use os module

#

the only thing you need from there is environment variables

#

os.environ

subtle mauve
#

what about the os.path ?

delicate wren
#

especially don't use that

#

!d pathlib

coarse hearthBOT
#

Added in version 3.4.

Source code: Lib/pathlib/

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

Inheritance diagram showing the classes available in pathlib. The most basic class is PurePath, which has three direct subclasses: PurePosixPath, PureWindowsPath, and Path. Further to these four classes, there are two classes that use multiple inheritance: PosixPath subclasses PurePosixPath and Path, and WindowsPath subclasses PureWindowsPath and Path....

delicate wren
#

^ this is the proper way

subtle mauve
#

nice, will start using it

#

AI doesn't recommend good libraries it seems

subtle mauve
delicate wren
delicate wren
#

, missing spaces around operators and keywords (return specifically)

subtle mauve
#

please show me

coarse hearthBOT
#

.local/bin/todo lines 28 to 31

if not tasks:
   new_id = 1
else:
    new_id = tasks[-1]["id"] + 1```
subtle mauve
delicate wren
subtle mauve
#

that is so not satisfying to look at

delicate wren
#

for whatever you use, including os, read the documentation

subtle mauve
delicate wren
#

it has this note

subtle mauve
#

although I found argparse to be quite confusing

delicate wren
#

similar note in urandom

subtle mauve
delicate wren
#

and another

delicate wren
wooden dome
#

Why all of them left all the sudden?

clever isle
subtle mauve
#

is that chris

umbral rose
#

Yeah

subtle mauve
#

how are you doing

#

been a while

#

I'm doing good too

#

you probably don't recognize me, this is an alt, my main was Mr.z

pallid scarab
#

Whats up

subtle mauve
#

I asked you about Algonquin college

#

and the courses they had

pallid scarab
#

Anyone who knows game dev

subtle mauve
#

we shall meet someday

#

hopefully

#

not until january

pallid scarab
#

I just started game dev with Unreal and C++

#

And I know pygame also

subtle mauve
#

go to PirateSoftware's server

#

he'll explain everything on Mspaint

#

It was a joke

#

Flew over your head

#

oh true

#

"I ran out of mana" -Youknowwho

#

it was funny

#

some people do, but he also shouldn't act like he knows what he's talking about

#

and when people give him constructive criticism, he bashes out

#

you know Coding jesus?

pallid scarab
#

I am back again

#

I wanna talk too

#

But I don't have permission to

subtle mauve
#

yo btw I made my first full on project

pallid scarab
#

Nah I never spam

sullen heath
subtle mauve
#

yeh

#

it was fun

#

Chris is not a normal human being

pallid scarab
#

Guys I learned scikit learn should I keep improving that or start learning Tensorflow

subtle mauve
#

he's beyond normal human jokes

#

it was a CLI to-do list

#

not the fanciest thing

delicate wren
subtle mauve
#

but I loved it

pallid scarab
subtle mauve
#

on my own, but I asked AI to explain the syntax

#

I used Json

#

nothing too complicated

sullen heath
subtle mauve
#

I'm doing csv next

#

on my next project

delicate wren
#

@umbral rose print+eval

#

(almost works)

subtle mauve
#

yeh but like it's used in Excel

#

which is integrated in my career path

delicate wren
#

after working with sqlx I don't want any other way to interact with RDBMSes

subtle mauve
#

Json was easy to use, loved it

delicate wren
#

way too convenient with near 0 abstraction

subtle mauve
#

csv on the other hand

delicate wren
#

JSON-to-Rust-to-CSV and back is quite easy

subtle mauve
#

Chris what's your main job if you don't mind me asking?

delicate wren
#

very easy to just offload all the logic to serde there

subtle mauve
delicate wren
#

probably you can do something similar in Python too

delicate wren
subtle mauve
#

why Rust

delicate wren
#

serde

subtle mauve
#

I am a professional rust hater

pallid scarab
#

Hello Milien

sullen heath
#

hello milien

subtle mauve
#

play what?

delicate wren
#

@thin lintel I will start the game soon then

subtle mauve
pallid scarab
#

Which game are you guys playing

delicate wren
delicate wren
#

as in "paid to dislike something" doesn't really sound that nice

delicate wren
subtle mauve
#

I am a no-fund hater

thin lintel
#

Civic 6

delicate wren
#

@umbral rose as in was the save ever loaded?

subtle mauve
delicate wren
#

no

delicate wren
# delicate wren https://docs.rs/serde
#[derive(Deserialize, Serialize)]
struct Name {
    #[serde(rename(serialize = "given name"))]
    given: String,
    #[serde(rename(serialize = "family name"))]
    family: String,
}

#[derive(Deserialize, Serialize)]
struct Handle {
    handle: String,
}

#[derive(Deserialize)]
struct Person {
    name: Name,
    #[serde(flatten)]
    handle: Handle,
}

fn main() -> anyhow::Result<()> {
    let Person { name, handle } = from_value(json!({
        "name": {"given": "Alisa", "family": "Feistel"},
        "handle": "parrrate",
    }))?;
    let row = (name, handle);
    Writer::from_writer(std::io::stdout()).serialize(row)?;
    // given name,family name,handle
    // Alisa,Feistel,parrrate
    Ok(())
}
#

being able to do stuff like this mostly through declarative logic is quite great

#
  • inline JSON in a statically typed language
#

hmm

#

I think I can simplify it a bit

delicate wren
#

yes

delicate wren
#

so it just prints directly

subtle mauve
#

ahh interesting

delicate wren
#

and, if you just take something from stdin and print it onto stdout it becomes just this

fn main() -> anyhow::Result<()> {
    let Person { name, handle } = from_reader(std::io::stdin())?;
    let row = (name, handle);
    Writer::from_writer(std::io::stdout()).serialize(row)?;
    Ok(())
}
#

(use statements and other declarations omitted)

delicate wren
#

untested, but this is approximately what needs to be done to process an entire array rather than a single value

fn main() -> anyhow::Result<()> {
    let rows = from_reader::<Vec<_>>(std::io::stdin())?
        .into_iter()
        .map(|Person { name, handle }| (name, handle));
    let mut w = Writer::from_writer(std::io::stdout());
    for row in rows {
        w.serialize(row)?;
    }
    Ok(())
}
#

(or the same thing written slightly differently)

fn main() -> anyhow::Result<()> {
    let mut w = Writer::from_writer(std::io::stdout());
    let rows = from_reader::<Vec<_>>(std::io::stdin())?
        .into_iter()
        .map(|Person { name, handle }| (name, handle))
        .try_for_each(|row| w.serialize(row))?;
    Ok(())
}
dry geyser
#

hello

stuck bluff
#

@pallid scarab πŸ‘‹

pallid scarab
#

Hello opal

delicate wren
#

examples of converting from JSON to CSV with Rust

delicate wren
stuck bluff
#

@ashen dew πŸ‘‹

pallid scarab
delicate wren
#

easier in what sense?

#

and for whom

#

and for what

pallid scarab
#

Generally

delicate wren
#

it's easier to do things correctly in Rust
it's easier to do things incorrectly in C++

delicate wren
#

I know enough of C++ to see how irresponsible it is to use that language

pallid scarab
#

You seem to have very bad relation with C++

#

I am new to C++ though

#

Learning with DSA

stuck bluff
#

@dense trench πŸ‘‹

pallid scarab
dense trench
pallid scarab
delicate wren
#

imo C is best for learning the basics of data structures

#

whereas Rust is more suited for higher level stuff

pallid scarab
dense trench
#

@stuck bluff Can I ask your opinion on a thing ?

delicate wren
dense trench
#

Do you think as the browser wars reignite in this ai era will we ever see browser kinda consuming the user space in the OS ?

delicate wren
#

C++ got iterators, slices and ranges completely completely wrong

dense trench
delicate wren
#

much of modern Windows runs on browser-like stuff

#

wasn't the start menu react or whatever now

dense trench
#

even spacex dashboard

#

on the dragon capsule

pallid scarab
#

Hello milen

delicate wren
dense trench
#

cats

#

it might be a lynx hybrid

half crest
#

its easier in the sense of better errors, better abstractions, etc etc

#

but stuff like the borrowe checker take a little bit to get used to

delicate wren
#

and instead of the compiler you have to rely on your understanding of the standard

edgy chasm
#

thats the snake thingy

#

might need some tweaking idk

#
<img src="https://raw.githubusercontent.com/osyra42/osyra42/output/snake.svg" alt="Snake animation" />
#

@fair heron

stuck bluff
#

@crimson wharf πŸ‘‹

neat mountain
#

@fair heron the link to the image seems broken... could u check? it returns a 404

lone crypt
#

wassup

#

:/

#

yeah my name isnt really that easy to say

#

i cant stream so i cant show the current progress of my game

neat mountain
#

@last hedge Wait, am I just seeing things, or does your profile picture really lip-sync when you speak?

edgy chasm
#

just activates an animation when hes talking

neat mountain
#

@edgy chasm i see πŸ˜…

lone crypt
#

break does stop a while loop (while True), right?

edgy chasm
#

yes.

lone crypt
#

ok

#

so why doesnt it work for me

edgy chasm
#

show the code?

lone crypt
#

im thinking cause of the function

neat mountain
lone crypt
#

wait i think i found the solution

last hedge
lone crypt
#

wait

neat mountain
#

Also i think you prolly wanted to write "answer" @lone crypt

lone crypt
#

OH MY GOD I JUST HAD TO PUT A FUNCTION AFTER THE WHILE LOOP

#

I AM SO STUPID

#

-# i mean i stopped working on this before i knew about slightly complex stuff like breaks

grave abyss
#

@livid quest hello

#

Creating API

gaunt bolt
#

@edgy chasm You know the reason why everyone learns java over rust is because most companies built their apps or solution with java

#

i can speak btw

edgy chasm
#

cause it has a massive virtual machine running

gaunt bolt
#

@edgy chasm what made you learn rust btw was it your first programming language or waht

edgy chasm
#

and takes tons of memory

gaunt bolt
#

but it is very popular

#

just like why linux is better than windows in so many ways but windows has more users

#

You have been active for fewer than 9 ten-minute blocks. what does this mean

edgy chasm
#

You have been active for fewer than 9 ten-minute blocks

gaunt bolt
#

90 mins then

clear kindle
#

πŸ‘‹πŸΏ

night wren
#

Hello

gusty pendant
#

ok i have already 6 block

#

hello

mild light
#

Yeah I agree

wooden dome
#

Are we talking about game?

glad turtle
#

@proper ridge

class Solution:
    def addStrings(self, num1: str, num2: str) -> str:
        a=list(reversed(num1))
        b=list(reversed(num2))
        if len(a) < len(b):
            a,b=b,a
        a+=[0]

        a[:]=list(map(int,a))
        b[:]=list(map(int,b))
        carry=0

        print(a,b)
        for i in range(len(a)):
            ai=a[i]
            bi=b[i] if i<len(b) else 0
            a[i]=ai+bi+carry
            if a[i]>=10:
                a[i]-=10
                carry=1
            else:
                carry=0

        if a[-1] == 0:
            a.pop()

        return "".join(map(str,list(reversed(a))))
a=Solution()
print(a.addStrings("456","77"))
#print(a.addStrings("11","123"))
feral path
#

hey guys could you help me with something i cant talk because im server muted

coarse hearthBOT
#
Voice verification

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

glad turtle
#

!voice

proper ridge
#
vowels_found = []
positions = []
vowels = ['a', 'e', 'i', 'o', 'u']
s = [char for char in s]

for i, char in enumerate(s):
    if char in vowels:
        vowels_found.append(char)
        positions.append(i)

vowels_found.reverse()
for i, j in enumerate(positions):
    s[j] = vowels_found[i]

s = ''.join(map(str, s))
#
vowels_found = []
positions = []
vowels = ['a', 'e', 'i', 'o', 'u']
s = [char for char in s]

for i, char in enumerate(s):
    if char in vowels:
        vowels_found.append(char)
        positions.append(i)

for i, j in enumerate(positions):
    s[j] = vowels_found[-(i + 1)]

s = ''.join(map(str, s))
stuck bluff
#

@real dune πŸ‘‹

fossil dust
#

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

stuck bluff
#

@umbral hemlock Down here. πŸ™‚

#

Warder boddle.

umbral hemlock
#

oupsi

#

i thought you just support it

#

many have it in bio

tame leaf
#

Wudder buddle

umbral hemlock
#

make sense for me @tame leaf

#

lana is ukrainian your native language because you have 0 accent

#

i thought you were like from the us

#

i'm not from the us

sly anchor
#

Heello

umbral hemlock
#

hello

lost pollen
#

Hi

umbral hemlock
#

hi hi

#

why lana left ?

lost pollen
#

was it because of me?

umbral hemlock
#

@stuck bluff do you know shodan is on sale at 5$

#

oh okey i see

#

i see

#

If you find yourself grouping data and the functions that work on that data, a class is often the right tool

#

@lost pollen

stuck bluff
#

@wheat verge πŸ‘‹

wheat verge
#

hi

#

im making a code to open a headles window then go to kahoot to put a random pin then check if the pin works or not then close it

#

i have been testing a good amount

#

is there somwhere i can show u my code(sry i just joined the server a min ago)

stuck bluff
wheat verge
#

oh ok no wories sry boput that

vital maple
#

hiπŸ‘‹

lyric crane
#

hi

wooden dome
#

@buoyant crater If it is dedicated it is definitely Heating and Power Supply issue!

buoyant crater
#

Very possible

#

@glad turtle It has liquid metal from factory and the fans have been dusted within the month.

#

I do believe it is genuinely failing and there isnt much i can really do about that.

glad turtle
buoyant crater
#

Asus ROG Zephyus GA402RJ
Ryzen 9 6900hs
RX 6700s

wooden dome
#

Okay try this :

buoyant crater
#

Yes?

wooden dome
#

Did you try to update the driver?

buoyant crater
#

Yes

#

Its fully up to date

wooden dome
#

Hmm

buoyant crater
#

Im usually decent at troubleshooting and figuring out what is wrong, but this one has me stumped.

glad turtle
buoyant crater
#

(case temp)

#

For the chassis

#

Not the CPU and GPU

#

They stay around 75-85C under high load

glad turtle
#

@buoyant crater I mean you'd have to check RPM fan speed, also temperatures, to make sure they're within reasonable limits.
maybe your fan/cooler is broken..
I had a mini pc with a broken cooler and it was running hot and making noise, until I replaced it. I was able to identify it was broken because its RPM was lower than the other same model mini pcs.

buoyant crater
#

Under extreme load they will spike to 90-95C

glad turtle
#

Have you considered a Cooling Pad?

buoyant crater
buoyant crater
#

I have one

glad turtle
buoyant crater
#

Has "helped"

#

lowered temps from 96c to 85c

#

still crashes

#

tJMax: 95Β°C

#

For this cpu

glad turtle
buoyant crater
#

Nothing else

glad turtle
buoyant crater
#

No

#

Everything is normal

glad turtle
buoyant crater
#

Crashes are linked to heavy load as opposed to temperature

#

Could be either one though

wooden dome
#

In your laptop GPU and CPU both have metal cooling.
So I guess fan must be having some trouble and putty or pad on vram must be in bad shape

#

make sure to check it out

buoyant crater
#

I will

wooden dome
#

Other way is to find log

buoyant crater
#

The only reason i dont think that liquid metal has spilled is that the laptop would have been fully dead by now if it was shorting.

glad turtle
buoyant crater
#

No

#

I have not

wooden dome
#

if it detects

buoyant crater
#

2000$ laptop is not on my list of devices i want to disassemble

#

Im ok opening the cover and dusting/cleaning

#

but digging deep is something i am not comfortable with

#

Its not that im not good at it

#

I am

wooden dome
buoyant crater
#

Its just i dont like doing this

wooden dome
buoyant crater
#

I did

#

Look earlier in messages

buoyant crater
#

Asus/ROG is known to have not good QC (Quality Control)

wooden dome
#

does blue screen appear before crash

buoyant crater
wooden dome
#

Okay so it rules our bsod

buoyant crater
#

Just black screen fans turn off

#

Whole laptop just hard off

#

Like holding the power button

wooden dome
#

And you are certain it is not a driver conflict?

buoyant crater
#

Yes

#

Very

#

Be right back

wooden dome
#

100% sure hardware issue

buoyant crater
#

99.9%

wooden dome
#

You should contact a computer technician

buoyant crater
#

I am back

#

Sorry

#

@glad turtle Any information?

glad turtle
#

@buoyant crater For your laptop crashing/shutting down, you need to monitor it probably via HWinfo that writes metrics into a file.
So when it crashes, you can do a bit of statistical analysis to see if you can correlate it with high load or high temperature, and how
high of a temperature it really is.

buoyant crater
glad turtle
buoyant crater
#

k

#

I will have to do that tonight

wooden dome
#

@glad turtle I would like to say something to you

#

It was nice knowing you

#

You always help fellow member

#

I really appreciate you..

scenic harness
#

Which side of the Inshove landing side terf war are you guys on

delicate wren
#

@glad turtle api_key in the URL looks very off

#

otherwise, good project

glad turtle
delicate wren
#

cookies are still the way

#

my screen just locked
not my doing

#

@crystal aurora we can hear

#

I think the only language I actually forgot how to use is Pascal

#

the language that I have the most opportunity to forget next is Lua

#

but it was way too recent (4~9 years ago)

#

most of my non-trivial learning of Lua was 7~9 years ago

#

yes

delicate wren
#
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
glad turtle
#

I think if I co-author a book titled "Python Exercises" or "Python Challenges", I can become a rich man.

delicate wren
#

"How to Make Money with Python Exercises"

glad turtle
delicate wren
#

@crystal aurora "gave up everything for trading, then found out there is more to give up"

glad turtle
#

in Abu Dhabi is there tax on trading?

delicate wren
#

the expected return, factoring in the tax people, is somewhere around 0Β±(creative accounting)

#

@crystal aurora well, what else you expected from such name

#

lmao

#

@fossil dust consider learning to communicate in the human society, useful skill

glad turtle
#

@fossil dust please..

fossil dust
glad turtle
#

@fossil dust please chill

delicate wren
#

I can very readily publish the details

#

as I've done multiple times

#

Ο‰

delicate wren
#

or, to a broader audience, telegram isn't a place for job offers

delicate wren
#

these people, while they pay quite a lot for an "entry" level, don't pay enough

#

not worth the risk, ever

#

oh, and it might sound funny or weird, but there was one other reason why I rejected:
no open source

#

which is, while a dumb business decision, is understandable within their circumstances

#

also these fools upgraded to Gitea 1.23, very unfortunate for them

#

as in they can't upgrade to Forgejo

delicate wren
#

probably check before starting your offer with "I found your contact through codeforces"

vale tinsel
#

Hi @crystal aurora

delicate wren
#

TIL Telegram updates embeds of earlier messages

#

I do dislike that I didn't use '\N{plus-minus sign}' in a message

#

I think I grew even more pedantic about typesetting since then

#

!e

print('\N{plus-minus sign}')
coarse hearthBOT
delicate wren
#

to my surprise, they tried to make up some story for where the money is coming from

#

@crystal aurora general assumption is that something is known that others don't

#

i.e. this is kind of unanswerable

misty sinew
#

Hi πŸ‘‹

glad turtle
#

taxonomy ontology..

delicate wren
#

@crystal aurora the main point there: there isn't a necessity for edge/advantage over others

misty sinew
#

Am I at wrong place?

glad turtle
delicate wren
misty sinew
delicate wren
delicate wren
misty sinew
glad turtle
glad turtle
misty sinew
#

I'd like to know about it and learn

delicate wren
#

dumb suggestion, but I recommend this anyway: https://docs.python.org/3/tutorial/index.html

Python documentation

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax an...

#

it is up-to-date

glad turtle
delicate wren
#

@vale tinsel or they want to GPT it

glad turtle
misty sinew
delicate wren
#

@crystal aurora audio cut out?

#

@vale tinsel it's fine on your end, Maro seems to have connectivity/audio issues

misty sinew
delicate wren
#

AI overuse

#

@crystal aurora now works

#

now doesn't

delicate wren
#

@crystal aurora now works again

glad turtle
glad turtle
# misty sinew No I have not!

can you teach me how to learn Python without reading any books or writing any programs?
it'd be so much faster than what I'm doing now

misty sinew
glad turtle
misty sinew
vale tinsel
delicate wren
#

(the context for that reply)

misty sinew
#

I got to know about Python from CS50

glad turtle
misty sinew
glad turtle
misty sinew
#

Talking about student and purpose of CS50 and about professor

#

has no meaning to me

glad turtle
misty sinew
#

@vale tinsel Python is mixture of English + Maths.

#

This is my understanding about it

misty sinew
glad turtle
#

does it have meaning?

delicate wren
#

okay I'm back with a sudden enlightenment

#

@crystal aurora I already forgot, but was it you or ikβˆ… asking about whether it's possible to learn something just by watching (rather than doing)

misty sinew
glad turtle
delicate wren
#

(from whom the presumably rhetorical question came)

#

a lot of red

misty sinew
glad turtle
delicate wren
#

the response would be the question about where I learned C++ move semantics from

misty sinew
delicate wren
#

or, like, anything sane related to C++

#

@fossil dust when borrowing open-source code for reference, I highly recommend leaving a link to the original in a comment or somewhere else
(first for yourself, so you can find it again quicker, and secondly because license)

#

having code be source-linked simplifies debugging later a lot

fossil dust
#

thanks for telling

delicate wren
#

((most people won't care that much about the license, but both GPL fanatics and Oracle exist))

misty sinew
#

@glad turtle Could you explain the meaning of the image?

delicate wren
#

@crystal aurora @wary fable this is funny in some way

#

too bad can't do Java 7

glad turtle
misty sinew
delicate wren
#

as you might expect, there is no clarification on whether those are real or benchmark

misty sinew
#

I have some doubts about voice call

delicate wren
#

linting is very often missing

misty sinew
#

may I ask?

glad turtle
misty sinew
#

How come I can't talk?

delicate wren
#

formatting is often done with black+isort, but those are sometimes problematic

#

!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
delicate wren
#

Even Better TOML seems to be more of a Rust thing, I haven't seen it recommended in Python spaces enough

#

and Markdownlint is often overlooked because Prettier formats Markdown too

#

Java 17 app starting a Java 8 container

delicate wren
#

markdownlint will get angry at you if you use prettier against .md files

#

@vale tinsel I don't remember whether we had told you that before, but please leave the system Python alone

#

you really shouldn't tie yourself to it

misty sinew
#

I wish I could connect to the discussion in Voice Chat 1.

delicate wren
#

either have something (not the system) that manages Python interpreters for you, or do it yourself if you want so

#

@glad turtle what are you meaning by type inference?

#

I might've missed the context

glad turtle
delicate wren
#

I've deployed Python 3.8 FastAPI+Pydantic apps after 3.8 was dead, so it does work

#

the answer is almost always only uv or docker, if you have even a slightest hint of such issues

#

uv also pins dependencies

#

which is more important

#

@vale tinsel are you doing pip freeze?

misty sinew
#

Did you guys made commerical software in python?

#

I'd like to know!

delicate wren
#

which requirements.txt on its own doesn't give

delicate wren
delicate wren
#

FastAPI remains as an option for something live-reloadable, but not really a priority any more for most projects

misty sinew
#

Wat da hel is rust?

delicate wren
#

C+Haskell

#

C++, but done correctly

#

Rust to C++ is what Zig is to C

delicate wren
delicate wren