#voice-chat-text-0

1 messages ยท Page 64 of 1

spring karma
#

@midnight agate the part where i have to print ("hello , WORLD")

#

hello

#

i cant use voice chat so i replay here

#

if that is okay

#

@somber heath

vocal basin
spring karma
#

okay

#

so i am 31 years old and i live in syria

#

and i achive nothing in my life

#

i have a law degree

#

but i make nothing from it

#

this one?

#

@midnight agate

#

steve jobs was syrian BTW

#

yes u can google it if u like

vocal basin
#

Syrian father

spring karma
#

true

#

no siri is a differnt company it Bought by apple

#

so guys can i ask a few questions !

somber heath
#

Sure.

spring karma
#

For beginners what are the first steps to learn a programming language

#

I mean for people who have 0 previous experience

sweet lodge
#

@rugged root -- find your voice yet?

spring karma
#

Online courses are not free and the problem is that in Syria according to the US sanctions on Syria we cannot buy anything online and the free courses are not good

gentle flint
#

free courses are fine

#

automate the boring stuff is a good place to start

gaunt coral
#

I watch video on youtube its good

#

chatgpt also could help

spring karma
#

any site recommendations

somber heath
#

Corey Schafer, YouTube, playlists for Python

#

!resources

wise cargoBOT
#
Resources

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

spring karma
#

thanx โค๏ธ

#

i'll try this site

gentle flint
#

make sure to check the free checkbox

spring karma
gaunt coral
#

lmao

gentle flint
# spring karma

try checking "book", "course", "tutorial" and "video" at the left

spring karma
#

what i can do to be able to use VC

wise cargoBOT
#

Voice verification

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

spring karma
#

i reading the course and man it is so hard

#

am lost already

median lintel
gaunt coral
#

How long does it take to learn python by course before I could answer the easiest leetcode

spring karma
#

How long do you think I need to learn

median lintel
#

somebody no something about this erro

#

I try to read a json on request with c#

gentle flint
#

oh, C#

#

I don't know anything about C#

spring karma
#

Is writing correctly and quickly necessary?

somber heath
#

Could the json be malformed?

gentle flint
#

maybe you could ask in a C# server?

spring karma
#

i paly alot of CS and VALORANT

somber heath
gaunt coral
#

hacker lmao

somber heath
#

It's about how well and diversely you think about problems that brings you speed, not how fast you type.

spring karma
#

so should start learing with python or should i go with somthing more simple

somber heath
#

Python is a good beginner language.

#

!e py print('Hello, world.')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world.
spring karma
#

You're a very nice group, and I can't wait to be a part of this community.

gaunt coral
#

I'm very bad at math,so will that be tough to learn programming as well?

spring karma
#

thank you โค๏ธ

somber heath
#

!e ```py
class MyClass:
def init(self, value):
self.value = value

@property
def value(self):
    return self._value

@value.setter
def value(self, value):
    self._value = value

instance = MyClass(5)
result = instance.value
print(result)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

5
spring karma
#

this is python right?

sharp urchin
#

agree

#

OOPS is difficult

#

:{

somber heath
#

REPL. Read Evaluate Print Loop. >>>

#

Typically, you will be writing modules. .py files.

spring karma
#

is it like CMD

somber heath
#

The REPL is, kind of. py files are like bat files.

gentle flint
#

๐Ÿฆ‡

gaunt coral
#

I've already learned some C# and C at school probably I know the grammar, but it is so hard for me to try something myself(bad at thinking๏ผ‰. How could I solve this problem

spring karma
#

i use to right not commend

#

right?

gentle flint
#

?

spring karma
#

like right program not to command a prograrm

gentle flint
#

oh

sharp urchin
#

write*

spring karma
#

yes

faint ermine
#

"write"

gentle flint
#

write?

spring karma
#

sry

#

i know i miss type

sharp urchin
#

homonyms

#

you say

spring karma
#

my english typing is not that good

sharp urchin
#

yes shift to africaans

#

:}

spring karma
#

i can speak EN very good thow

gentle flint
spring karma
#

i think i should foucs in typing Correctly as a first step

#

u guys all development yes!

#

yes

gentle flint
spring karma
#

nice

#

can u teach me @somber heath

#

i'll do that

sharp urchin
#

reading is bttr!

#

gpt?

#

chatgpt doesnt help?

#

not learning

#

it can help you perhaps to find your error

#

in your code

#

thats what i do

gentle flint
#

and what do you do when it's wrong

sharp urchin
#

not learning

#

is what i meant

#

errors is what i meant

#

i agree!! @whole bear

#

worked for me as well

vocal basin
#

I did some digging for my own education and I found the source for the term "eubacteria"

spring karma
#

I don't know what you know about Syria, but the situation here is very bad. We don't have electricity, the internet is very bad, and I want to get out of this country and start a new life and a good job... I've spent my life behind a computer screen and I think I have the ground to learn new things.

gentle flint
#

if you don't have electricity how do you run your computer

vocal basin
spring karma
#

on battery

#

and sun power

sharp urchin
#

not even for your errors?

#

we shdnt rely?

#

hmm

gentle flint
#

panels are expensive though aren't they?

sharp urchin
#

brb

spring karma
vocal basin
#

ChatGPT is only good at finding common errors

vocal basin
spring karma
#

like i have 2 panels and they cost me around 600$ US

#

yes plz

somber heath
#

library.pdf

spring karma
#

thanks โค๏ธ

#

yes am there

vocal basin
spring karma
#

i am reading the pdf file rn

somber heath
#

!pep8

wise cargoBOT
#

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
โ€ข PEP 8 document
โ€ข Our PEP 8 song! :notes:

somber heath
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

vocal basin
#

imo, Rust docs are a step further

but that's more of "Python should get better" not "switch to Rust"

spring karma
#

can i ask one last fav!

#

can u share screen and show me the basics plz <#

#

โค๏ธ

vocal basin
gentle flint
#

the one which overrides pep8

somber heath
#

It's not April.

gentle flint
#

idc

#

it's still good

vocal basin
#

there was a language by Mark Rendle called "BS"

spring karma
#

can u share screen and show me the basics?

#

oh okay

vocal basin
spring karma
#

i'll do that

spring karma
#

thank u so much guys for helping me

vocal basin
spring karma
#

I appreciate this very much

gentle flint
#
input_string = input("Insert your string:\n")
letter_list = []
start_program = ""
end_program_list = []

for i in input_string:
    if i not in letter_list:
        letter_list.append(i)
        start_program += f"{(letter_list.index(i) + 1) * '_'} = '{i}'\n"
    end_program_list.append(f"{(letter_list.index(i) + 1) * '_'}")
end_program = f"print({' + '.join(end_program_list)})"

print(start_program)
print(end_program)
vocal basin
#

there was a talk by, I guess, Dylan Beattie about (jokingly) the hypothetical future language
which by default does the "Hello, World!" if the code's empty

somber heath
#

@final grove ๐Ÿ‘‹

gentle flint
#

!e

input_string = "Hello, Opalmist."
letter_list = []
start_program = ""
end_program_list = []

for i in input_string:
    if i not in letter_list:
        letter_list.append(i)
        start_program += f"{(letter_list.index(i) + 1) * '_'} = '{i}'\n"
    end_program_list.append(f"{(letter_list.index(i) + 1) * '_'}")
end_program = f"print({' + '.join(end_program_list)})"

print(start_program)
print(end_program)
wise cargoBOT
#

@gentle flint :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | _ = 'H'
002 | __ = 'e'
003 | ___ = 'l'
004 | ____ = 'o'
005 | _____ = ','
006 | ______ = ' '
007 | _______ = 'O'
008 | ________ = 'p'
009 | _________ = 'a'
010 | __________ = 'm'
011 | ___________ = 'i'
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/zusemesafu.txt?noredirect

vocal basin
vocal basin
# vocal basin this

so, after I spoiled everything, everyone can watch this
https://youtu.be/vcFBwt1nu2U

There's something good you can say about every programming language. But that's no fun. Instead, let's take the worst features of all the languages we know, and put them together to create an abomination with the worst syntax, the worst semantics, the worst foot-guns and the worst runtime behaviour in recorded history. Let's make a language so b...

โ–ถ Play video
#

hack:

tail.next = right or left
#

ListNode is not self-referential here

#

it's singly-linked

#

recursive

vocal basin
vocal basin
vocal basin
vocal basin
#

doubly linked

#

singly linked are fine

vocal basin
vocal basin
spring karma
#

okay guys I'll leave now but I'll come later with more questions (thank U ) โค๏ธ

vocal basin
#

and in HS to construct it would be None or Some t box

#

I can't write Rust without IDE still (don't remember the syntax well enough)

faint ermine
#
struct Node<T> (Option<(T, Box<Node<T>>)>);
vocal basin
#

so, None() or Some(T, Box<Node<t>>)

#

I'm not sure whether I have Rust installed anywhere

#

last time I used CLion

#

and the license is no more

#

what's the code, again?

#

I'd expect is None to be faster

#

idk whether that works with left or right line

#

you can paste the code

faint ermine
vocal basin
#

yes, kind of that

median lintel
#

30c here

lavish rover
vocal basin
#

(haskell-ish and rust-ish)

#

for linked lists, use lisp, I guess

vocal basin
somber heath
#

@sudden barn So you know how in dog racing how they have the fake rabbit that they zoom around the track on a line to get the dogs to chase it?

#

That, but it's programmers and programming problems.

sudden barn
#

:D

tranquil wing
#

Hi opal!
How are you?

vocal basin
#
enum Answer {
  Yes(),
}
rugged root
#

Sup

#

Is that rust?

#

Well then get some rest

vocal basin
rugged root
#

Fair

#

Well did

#

You lead an exciting life, my friend

#

Most of them involve angry racoons

#

Oh actually

#

We did see a deer using the sidewalk at some point

tranquil wing
#

๐Ÿ˜„

rugged root
#

That was cool

vocal basin
# vocal basin `Answer::Yes()`

context (from VC):

and the answer for this can be* "yes."
* sounded like there will be a list of possible answers but no other answer was provided

#

(replied to wrong message but anyway)

rugged root
#

You're lucky you're handsome, Opal

#

Wow, I am truly a nerd. "Wait, how can I be sure I put the same email address in correctly? QUICKLY, TO THE REPL!!!"

#

feral deer
Just imagining deer with tusks now for some reason

#

That was actually the running joke in our D&D group

#

Anytime the druid shapeshifted into the dire form of anything, it meant it got tusks

#

Didn't matter what kind

#

Ooo

#

Saber tooth squirrel

#

That'd be adorable

#

Although bad for the squirrel

#

Can't imagine trying to crack into an acorn with those chompers

#

I'm trying to imagine who that is now

#

Gimme a hint

#

Hmm

#

Yeah, fair

#

I keep hovering over Laund's stream and it looks like I'm opening a window into a grape

tranquil wing
#

I remember I ever got scratch by squirrel.. ๐Ÿ˜Œ

rugged root
#

The red ones look more crazed

#

@somber heath That's racist

#

OH, do you remember Foamy the Squirrel?

#

Back in the glory days of flash cartoons

#

@sweet lodge Yo

sweet lodge
rugged root
tranquil wing
#

Scratched by it ๐Ÿ˜…

rugged root
#

@somber heath It was the weird dissonance between quick animation but also weird jerky animation

rugged root
tranquil wing
#

Yeah, ๐Ÿ˜Œ

sweet lodge
#

log4j has entered the chat

tranquil wing
#

Log4j?

sweet lodge
#

You're here to write text to a file, how vulnerable does that have to be?

rugged root
#

It's a logging library for Java

#

Used (or at least was used) a lot in applications all over

tranquil wing
#

I see I see

rugged root
#

Wasn't it maintained by like 1 guy?

#

I remember it was an incredibly small team

#

?

sweet lodge
rugged root
#

If memory serves, NewGrounds has a Flash wrapper to safely run them

#

Which is wise of them, because otherwise there goes like

#

ALL their content

sweet lodge
rugged root
#

They're just wrapping the flash files with the new interpreter

#

So it's all still there, just different with how it's executed

#

I think

#

Honestly haven't been on there in like.... jesus, over a decade

#

Man that was a long time ago

#

I remember spending a lot of time on it back in the mid-00's

#

Holy crap that site is that old now

#

Weird

#

Capybaras always look so done with everything around them

#

Oh yeah, Alien Hominid was a classic

sharp urchin
#

๐Ÿค“ .

rugged root
#

One of the games put out by the NewGrounds crew proper, if memory serves

#

Actually had a console release, although it was a bit different

#

@whole bear That's a very..... interesting status you have

whole bear
#

!voiceverify

rugged root
#

You already have the role

whole bear
#

OMG

rugged root
#

You just have to unmute your mic

whole bear
#

discord is being weird again

rugged root
#

As is its way

whole bear
#

Bruh

rugged root
#

If Discord stopped being weird I think I'd start worrying about it

whole bear
#

NO mic input?

#

OMG

#

discord

rugged root
#

Go into your settings and see if it's looking at the right device

whole bear
#

There is nothing

rugged root
#

Sometimes it just defaults to the wrong one

#

Weird

whole bear
#

LMAO

rugged root
#

GOD I love Plague Inc.

#

So good

whole bear
#

BRUH

#

google chrome

rugged root
#

Oh was it blocking your input?

whole bear
#

Guess no mic for me then

rugged root
#

Could try the desktop client

whole bear
#

NO!

rugged root
#

@somber heath There was also ArmorGames as well

#

Plenty of platforms like that at the time

whole bear
#

Bruh

#

It literally does not allow me to open my mic

rugged root
#

I guess that was about the same time as Albino Black Sheep and eBaum's World

whole bear
#

I can hear you just fine

#

but

rugged root
#

@somber heath Phrasing

#

What was the issue with it?

#

Ah yeah

#

Gotta love that

#

"Science API"?

#

Eh

#

I'll sacrifice privacy for convenience

sweet lodge
#

"double click"?

#

Like ads.doubclick.net?

rugged root
#

Yarp

sweet lodge
#

Fuck those people

#

So you reinvented a PiHole

rugged root
#

Wait, your router runs Python? @whole bear

#

I just use uBlock Origin and Privacy Badger

#

And smart internet browsing practices

#

They have to make their money some how

#

Fair

molten pewter
rugged root
#

Yep, love that one

sweet lodge
rugged root
#

Smart message to have, honestly

#

No

#

I genuinely think it's a wise thing for them to add

#

Covers their ass

#

Ah, gotcha

#

That makes sense

#

Very cool

#

@molten pewter Squats are as well

#

Good exercise

#

8 years? How old are you if I may ask?

#

Back in a bit

sweet lodge
#

Just use Rust BTW

#

Rust BTW soooo much better

#

C has a real_gun because it's completely terrible with memory

#

You have to remember all kinds of crap because C is a completely terrible language

#

All hail Rust BTW!

molten pewter
#

synonym

whole bear
#

[2023-01-26 16:39:32.009123][MTAxNjg0Njk0NzY3Mz]

sweet lodge
#

time_id

#

It's a log line? With a timestamp and a node ID?
It's just a record_id, event_id

#

log_record_id maybe

amber raptor
whole bear
#
def _get_guild_channel(self, data, guild_id=None):
    channel_id = int(data['channel_id'])
    try:
        guild_id = guild_id or int(data['guild_id'])
        guild = self._guilds[guild_id]
        channel = guild.channels[channel_id]
        # guild = self._get_guild(guild_id)

    except KeyError:
        # Absolute cringe!
        try:
            channel = self._channels[channel_id]
        except KeyError:
            channel = None
        channel = channel
        guild = None

    return channel, guild
sweet lodge
#

Hi Rabbit

#

Is that possible?

amber raptor
sweet lodge
amber raptor
#

Itโ€™s not

#

You subscribe to events

sweet lodge
#

I thought not

whole bear
#

You can subscribe to channels and guilds with the right intents to get all the updates regarding status updates, voice updates and all that

uncut meteor
whole bear
#

You do this by sending a request to the gateway.

#

The guild channels and DM channels etc are parsed on_ready()

sweet lodge
#

@amber raptor Do you like the idea of Carbon, or do you think we should jump straight to Rust BTW [or whatever]?

amber raptor
amber raptor
whole bear
#
 def parse_ready(self, data):
        self.user = ClientUser(state=self, data=data['user'])
        # add all the users
        for user in data['users']:
            self.store_user(user)

        for guild_data in data['guilds']:
            self.store_guild(guild_data)

        for private_channel in data['private_channels']:
            channel_id = int(private_channel['id'])
            self._channels[channel_id] = PrivateChannel(
                me=self.user, state=self, data=private_channel)

        self.dispatch('ready')

    def parse_message_create(self, data):
        channel, _ = self._get_guild_channel(data)
        if channel is None:
            return None

        message = Message(state=self, data=data, channel=channel)

        user_id = message.author.id
        if user_id not in self._users.keys():
            _log.debug('[{}] new user: {}, {}'.format(
                self.id, message.author.id, message.author))

            # Append user to the user store because we can't fetch the (easily)
            user = self.store_user(data['author'])
            self.dispatch('new_user', user)

        self.store_message(message)
        self.dispatch('message', message)
``` @amber raptor
vocal basin
#

there's a thing to auto-repost from one channel to another (without any local code; the discord handle it on their own)
it may be called "subscribe" or may not
but that sounds like something different
also, the first channel needs to be of a specific type (news/announcements/whatever)

amber raptor
#

No, Please link to Discord Documentation showing Message Intent by channel

whole bear
#

Ok.

vocal basin
#

that's ready event
doesn't sound like intent
nvm, it's a response to sending intents; so that's why the link itself doesn't mention intents

whole bear
#

In addition to the gateway restrictions described here, Discord's REST API is also affected by Privileged Intents. For example, to use the List Guild Members endpoint, you must have the GUILD_MEMBERS intent enabled for your application. This behavior is independent of whether the intent is set during IDENTIFY.

vocal basin
#

oh

sweet lodge
#

@amber raptor I have....
Business request is to create a database table(s) to be a "master record" of some information, that can be referenced by people.
I have a managed PG instance in Azure.
Now I need to give the business people access.
Is there anything inherently "bad" about just like putting the Metabase Docker container in an App Service?

#

Lets them play build your own reporting, which keeps me from having to do it

Big thing for me is security, Google told me not to expose it over the internet
I'd firewall it, but that'd screw over our remote workers

sweet lodge
#

My own?

#

80% markup / 20% accursed crap

amber raptor
#

PowerBI?

whole bear
#

Powerbi :/

sweet lodge
#

Actually....
There's an idea
I always forget that one

#

They didn't take my hosted PG IIRC

#

But that would probably be perfect

sweet lodge
#

Badass

amber raptor
#

!e python a = 1 b = '1' print(a+b)

wise cargoBOT
#

@amber raptor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | TypeError: unsupported operand type(s) for +: 'int' and 'str'
amber raptor
#

!e python a = 1 a = '1' print(a)

wise cargoBOT
#

@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
rugged root
#

Busy busy morning

sweet lodge
rugged root
#

It's why they're hints

#

Python's is pretty standard fare

gentle flint
#

hi hem

rugged root
#

It's necessary?

#

Yo oof

#

@whole bear How would you deal with errors otherwise?

#

No?

sweet lodge
rugged root
#

Linter is for styling

sweet lodge
#

# pylint: disable-next= my beloved

rugged root
#

Fair

#

Oh sure, fair fair

#

I think my mental definition was too low

#

@limpid sparrow The hell did you do?

sweet lodge
#

You have 26GB?

rugged root
#

I think it's.... Reacting badly

#

Worse how?

#

Yes

whole bear
#
except (websockets.exceptions.ConnectionClosedError, websockets.exceptions.ConnectionClosedOK) as e```
rugged root
#

You can do that, yeah

gentle flint
#

so you know how I have to fill in a health check form before doing an exam or anything like this

#

filled it in, got no answer

rugged root
#

Most languages that have any error handling will

gentle flint
#

month later, still no answer

#

phoned them up

rugged root
#

You can make it more consise

whole bear
#
  except (
          websockets.exceptions.ConnectionClosedError,
          websockets.exceptions.ConnectionClosedOK)
  as e:
gentle flint
#

turns out their email system was down on the day they sent me the response and they never actually sent it

#

but of course they didn't bother telling me

#

another month gone to waste

rugged root
#
from websockets.exceptions import ConnectionClosedError, ConnectionClosedOK

...

except (ConnectionClosedError, ConnectionClosedOK) as e:
whole bear
#
  except (
          websockets.exceptions.ConnectionClosedError,
          websockets.exceptions.ConnectionClosedOK
  ) as e:
rugged root
#

So you can make it cleaner

#

@gentle flint What a shitshow

limpid sparrow
#
try:
    r = requests.get(url, params={'s': thing})
except requests.exceptions.Timeout:
    # Maybe set up for a retry, or continue in a retry loop
except requests.exceptions.TooManyRedirects:
    # Tell the user their URL was bad and try a different one
except requests.exceptions.RequestException as e:
    # catastrophic error. bail.
    raise SystemExit(e)
rugged root
#

@gentle flint I would argue that this is a place where the US is better

amber raptor
#

Not really

rugged root
#

Eh

#

Jesus

amber raptor
#

Handing out driver licenses like guns is bad but it would also require us to fix way we build cities

rugged root
#

Oh sure sure

rugged root
#

@whole bear I guess I'm still confused why you would think error handling is bad. I can't tell if you're memeing or not

sweet lodge
#

โฌ†๏ธ Rabbit

rugged root
#

There's just norway that's true

rugged root
sweet lodge
#

You don't?

rugged root
#

@velvet tartan The Rust Book that's on their site is pretty good

#

Ooo, I hadn't seen this before

#

There's also Rust by Example on their site as well

velvet tartan
#

Thanks Hemlock ๐Ÿ™‚

rugged root
#

Happy to help!

sweet lodge
rugged root
#

The community one is, @amber raptor

#

@stuck furnace ๐Ÿ‘‹

#

And it's robust as hell now

#

@limpid sparrow Faster how?

#

Faster to compile to JS?

#

Yeah toss a link

#

I'm curious

#

More or less

#

@molten pewter You're like

sweet lodge
# sweet lodge Another convert?

Welcome to the Church of Rust BTW!
I see you've already been given a complimentary Bible
Come, come, we'll introduce you to the welcome team and get you a study group and an accountability partner.
We really hope to see you again next Sunday!

rugged root
#

So quiet

#

I can hear a small whisper of a voice

#

He's shrinking!

#

There should be modes that do it on the fly, right?

#

Or only recompile certain sections

#

Unless I'm misremembering

#

Link it

#

@limpid sparrow

limpid sparrow
rugged root
#

That's the rabbit I know and love

#

The "is used by" should be taken with a grain of salt

#

That can mean that one or two people on a small team in the company use it

#

Not that it's fully adopted across the whole company

#

@terse needle Sup brah

#

It's specifically comparing it to Babel, which yeah, makes a bit of sense

#

But I thought Babel wasn't the gold standard like it once was anyway

whole bear
#

xd

rugged root
#

Probably misreemembering, who knows

#

@vocal basin Yo

stuck furnace
#

Is anyone speaking? ๐Ÿ‘€

#

Ah ๐Ÿ˜„

#

I was wondering because my client just crashed.

limpid sparrow
amber raptor
#

I stay away of node, they are worst for just strapping rocket engines to cars.

stuck furnace
rugged root
#

Like... Typescript itself handles the compatibility for different versions

rugged root
#

It really did

#

I can hear him now!

amber raptor
# limpid sparrow

It seems better, so why isnโ€™t everyone using it? Is there features missing or it requires code changes?

rugged root
#

@molten pewter Or you're head is hollow and allows for some sick acoustics

amber raptor
#

Iโ€™m always wondering when people are like X is clear upgrade. So why isnโ€™t everyone using it?

unreal hazel
#

What is the dog doin here

limpid sparrow
#

Usually cost

amber raptor
#

And then it comes out, well A B C usage case isnโ€™t supported.

unreal hazel
#

@sweet lodge

rugged root
#

Time

unreal hazel
limpid sparrow
#

Labour

rugged root
#

Tech debt

sweet lodge
rugged root
#

My guess

sweet lodge
#

You're up birdo

#

How do we speed up typescript?

rugged root
#

TypeScript to JavaScript doesn't need to rewrite every single thing

unreal hazel
#

Why is it slow

rugged root
#

Unless you're doing it all in one file, ja?

unreal hazel
#

Same advise we give people when people saying "python slow, how to make faster"

limpid sparrow
vocal basin
#

like, partial recompilation, I guess?
is that what you're talking about?

unreal hazel
#

Turbopack

rugged root
#

Yeah

sweet lodge
rugged root
#

Well comparing SWC to other things

#

Eh, that's new in terms of tooling

unreal hazel
rugged root
#

TSC

#

I would assume

unreal hazel
#

I'm not sure what exactly you find to be slow

#

I've never had speed issues with the typescript compiler

rugged root
#

swc seems to mainly just be a competitor to Babel, not TSC

amber raptor
#

As DevOps, I just donโ€™t care. Compile time is generally not a huge deal when going to prod. 2 vs 7 minutes, whatever, our cost per build minute is fractions of penny.

rugged root
#

I'm just wondering how much time the compilation takes that it would make a noticeable difference. I'm not for or against, just curious

vocal basin
sweet lodge
#

Then what do you do as DevOps?

amber raptor
rugged root
#

Babel is a transpiler. You take JS code that may not be compatible with older browsers (like say your code uses ES6 things where the browser you're targeting only support ES5) and pipe it through. It will then make approximations or tweaks to make those new features work

amber raptor
#

Bicep, some compiler tooling

rugged root
#

Previously, Babel was mainly or only for JavaScript, not TypeScript

#

And the TypeScript Complier already handles these version targeting things

sweet lodge
#

My Docker build is still pretty quick

#

Yeah
"Not my department" gets old pretty fast

lost valve
#

sup

rugged root
#

Later rab

sweet lodge
lost valve
#

how can i verify

#

why can't i speak

sweet lodge
wise cargoBOT
#

Voice verification

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

amber raptor
vocal basin
rugged root
#

See you Crystal

lost valve
#

@rugged root bro can u give me voice chat role

#

i want to have a chat with u guys

stuck furnace
#

You do have a very German accent. ||/s||

rugged root
#

I try not to make exceptions to the verification.

#

You've almost hit the message count, just hang out here and talk and you'll hit it naturally in no time

lost valve
#

ok

#

sir

#

alright

#

trying to hit the

#

u know

#

message

#

thing

stuck furnace
#

Don't spam please.

lost valve
#

i ain't spaming

rugged root
#

That is

stuck furnace
rugged root
#

And if you DO spam, I add 2 weeks to how long it takes

stuck furnace
#

Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community.

rugged root
#

As I said, hit it naturally through conversation

stuck furnace
#

It really doesn't take very long if you participate in the text channels of the server.

rugged root
#

A lot of people

#

Copy, alt tab, paste?

#

That not an option?

#

Or am I misunderstanding

whole bear
#

No

#

in vim using "+y

#

is no longer an option

rugged root
#

vim users always seem so entitled

#

"My way is the best. How dare you imply we have to use a mouse, you peasant."

#

It's a matter of preference

#

I just don't think in a way that I benefit from not moving my hands from the keyboard

stuck furnace
#

Helix is a good alternative, if you want something like Vim but with less configuration. Although it's still a fairly new piece of software so it has some issues/missing features.

rugged root
#

"Ugh! Why isn't every operating system just keyboard based"

sweet lodge
rugged root
#

Also yes

#

I don't want to have to learn all the shortcuts

#

I'm happy enough

unreal hazel
rugged root
#

I don't feel like I'm suddenly crippled by having to move my mouse or take a second to think

lost valve
#

how do i know how many message

rugged root
#

Like

lost valve
#

i have left

#

to verify

unreal hazel
#

You don't

rugged root
#

Run !user in #bot-commands

sweet lodge
unreal hazel
#

Nvm

lost valve
#

thanks

#

i have 45

#

messages

#

after i complete

#

to 50 i will be able to voice chat

#

right?

rugged root
#

Last warning

#

You're doing the short messages on purpose solely to get the role

#

Stop it

lost valve
#

no man

vocal basin
lost valve
#

it's 52 now

#

why i can't voice chat

rugged root
#

The instructions and details are there

limpid sparrow
#

@stuck furnace

#

hi @lost valve hows it going

rugged root
#

There's a good reason for the system

#

It's on a temporary basis

#

I grant it

limpid sparrow
#

CTRL + R for the video role

unreal hazel
#

Can you grant me a cookie?

rugged root
#

Share to do what

#

@limpid sparrow @whole bear @formal ember Stop being tools

#

@lost valve They're trolling you

lost valve
#

@rugged root man gotta share my cam or screen

rugged root
#

You're not getting it then

vocal basin
rugged root
#

I grant it for code streaming or help. It's not just for having it to chill

#

Plenty of servers for that

vocal basin
lost valve
#

@rugged root can u share

#

some servers

vocal basin
whole bear
#

LoL

rugged root
#

You are having a conversation right now

vocal basin
whole bear
#

i don't think anyone uses that

rugged root
#

You don't need a cam for that

#

@molten pewter I just had a sudden Deckard flashback

stuck furnace
#

I can imagine the quality of debate that takes place there ๐Ÿ˜„

rugged root
#

Link it to them if you want too so badly

#

Don't try to circumvent our system

whole bear
#

political debate discord

unreal hazel
#

Least political discord server

rugged root
#

God damn it Shen

sweet lodge
#

Probably full of nice people

unreal hazel
#

Maybe we can find more Texans

sweet lodge
unreal hazel
#

Damnit let me join !!!

sweet lodge
#

You guys have to imagine?

#

Why not

#

!pypi base2048

wise cargoBOT
rugged root
#

@lost valve Wait, you said who was there?

unreal hazel
whole bear
vocal basin
#

looks ascii-ish

lost valve
vocal basin
#

disgusting, I'd guess?

sweet lodge
molten pewter
vocal basin
unreal hazel
#

Slef

stuck furnace
#

@lost valve Can you turn on push-to-talk please. You have a lot of background noise.

#

๐Ÿ‘

rugged root
#

!mute 554417200123871326 1d Sexual and inappropriate jokes, even in ASCII or Base64, are not appropriate or acceptable here. Please review our #code-of-conduct before returning

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @lost valve until <t:1674840121:f> (1 day).

sweet lodge
#

So uh...

#

hi

#

What just happened?

sharp urchin
#

yeh

#

i wanna know too

sweet lodge
#

Lots of attempts at starting debates?

sharp urchin
#

did i miss sum?

#

sir hemlock?

sweet lodge
#

That's Lord Hemlock to you

unreal hazel
#

Sir Hemlock should be our next bot

sharp urchin
#

yus

#

:}

rugged root
#

Lots of immature people being a pain in the ass

sweet lodge
sharp urchin
#

~assholes~ as opal may say

vocal basin
sweet lodge
#

Did I delete Mackenzie already?

#

I know I deleted Stryder

sweet lodge
#

I may have made a few bots...

unreal hazel
#

I never realized how many pies you had your grubby little paws in

sweet lodge
sharp urchin
#

repo

#

nothing more?

rugged root
sharp urchin
vocal basin
unreal hazel
sweet lodge
sharp urchin
#

nvmm

sweet lodge
#

My paws are cleaner than your claws

sharp urchin
#

i shdnt have stopped to pet my dog:{

unreal hazel
#

Claw patrol

sharp urchin
#

maybe

rugged root
#

Interesting how quiet it got once I muted that guy

unreal hazel
#

daaaamn

#

thats a burn if I've ever seen one

sweet lodge
rugged root
#

In mean in VC itself

sweet lodge
#

Get your voice back already

vocal basin
rugged root
#

If only it were that easy

unreal hazel
#

hemlock also lost his voice?

sweet lodge
#

We're all typing to be accommodating to you, mr novoicelock

rugged root
#

@molten pewter Whatcha doin'

sharp urchin
unreal hazel
#

Didn't Mina also lose her voice

sharp urchin
#

it helps me focus

rugged root
#

@formal ember What's the question?

sweet lodge
unreal hazel
#

I'm the most accommodating person on the planet

sweet lodge
unreal hazel
#

Considering I accommodate you pepepoint

sweet lodge
#

Where code?

rugged root
sweet lodge
#

If you want help, where code?

rugged root
#

Never really messed with SQLAlchemy

#

Been meaning to

#

Ah fair

#

What are you trying to do overall?

#

Oh right right

#

Neat

#

I think I'm just too used to doing raw SQL

#

ORMs confuse me

#

Like ideas about implementation?

kindred flame
#

hey how do i get personalized help?

vocal basin
#

I made one project on SQLAlchemy and, sadly, Flask
(also, that's the (almost) same project that I used Angular for the front-end; the only my web project that looked good and was actually usable)

rugged root
#

So the current thing you're trying to tackle is how you should handle sending and receiving stuff from FastAPI to the database?

vocal basin
rugged root
#

I'll have to think for a sec, juggling here and work

unreal hazel
#

One on one?

rugged root
#

Sorry

unreal hazel
kindred flame
unreal hazel
rugged root
#

Not slacking, just finally got the email I needed to fix something

vocal basin
unreal hazel
#

@sweet lodge you slacking too? firSus

sweet lodge
#

Doing database exports

unreal hazel
#

Those take time don't they

sweet lodge
#

These do

rugged root
#

Huh... I guess it is the legacy help system now

#

I just remember back to when we had like 3 static help channels

#

Back in the before times

sweet lodge
rugged root
#

Yarp

#

@pallid hazel Sup

vocal basin
sweet lodge
#

No

stuck furnace
#

Hey @pallid hazel :)

unreal hazel
#

Fancy seeing you here @pallid hazel
Appreciate the advice you gave me yesterday

sweet lodge
#

I'm doing it so it becomes manageable

rugged root
#

@formal ember I know how we do it on PyDis with our database and site, but I don't know what a good setup would be for a more minimal system

unreal hazel
#

Nice bot

sweet lodge
#

engine->session
a few models
And select

unreal hazel
#

It uses sqla?

sweet lodge
#

SQLA can be dead simple if you let it

sweet lodge
sweet lodge
#

Other than like raw SQL
Heck that sheet

stuck furnace
#

๐Ÿ‘‹

rugged root
#

I hate all financial software

#

And even Thomson Reuters damn client portal bs

#

Like

#

I don't have the words to express how annoying it is

#

Dealing with it is like getting kicked in the nuts over and over again

#

And yet somehow less enjoyable

#

Man I really need to get more familiar with all the web stuff

#

Just wish I had time

pallid hazel
#

automate the boring stuff so you can be a slave to the machine

rugged root
#

@molten pewter You're a canary?

#

Ham I carry

#

Ah, gotcha

molten pewter
#

Tamakeri

rugged root
#

Always good to learn new words

stuck furnace
#

Good to know ๐Ÿ˜„

crisp flume
#

yeah

rugged root
#

That's pretty nuts, though

crisp flume
#

that was educational

rugged root
#

Minus the enjoyment

#

That also sounds like a euphemism. "Kicked him right in the Reuters"

unreal hazel
rugged root
#

Might say I'm a baller

unreal hazel
#

Ballin

rugged root
#

Goiter?

#

Back later

unreal hazel
#

Bye

whole bear
#

A

sweet lodge
#

B

molten pewter
#

C

limpid umbra
#

whats the topic today

#

i use CSV for data ----is there a better way

formal ember
sweet lodge
whole bear
#

uwu

limpid umbra
#

is there a simple database version for a beginner

whole bear
#

Well then, guess i'm going to die, just ate a bit of raw chicken :/

#

Salmonella here i come!

formal ember
#

` from flask_sqlalchemy import SQLAlchemy

db=SQLAlchemy()

#
from datetime import datetime
molten pewter
#

!paste

wise cargoBOT
#

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.

formal ember
molten pewter
#

db.create_all()

whole bear
#

Traceback (most recent call last):
File "C:\Users\RYZEN\Desktop\Seva\shulker\main.py", line 18, in <module>
from mcstatus import MinecraftServer
ImportError: cannot import name 'MinecraftServer' from 'mcstatus' (C:\Users\RYZEN\AppData\Local\Programs\Python\Python311\Lib\site-packages\mcstatus_init_.py)

spring karma
#

hello

median lintel
#

hi

somber heath
#

@jolly terrace ๐Ÿ‘‹

jolly terrace
#

@somber heath i couldn't talk

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

jolly terrace
#

i don't have the requirements

#

hahah

#

in three days i could talk

#

and i have to send 50 messages

#

what brings me where?

#

i'm interested in data science

#

and i know python

#

i was looking for discord channels

#

where people are active

#

yeah it's active

#

but nobody is in the voice chat

#

all is in text

#

ohhh

#

my country have very similar hour to usa

#

and you why are you here

#

mmmm that's the same with all the people who know programming

#

not very social

#

hahhahaha

#

the same for me

#

i send you a friend request @somber heath

#

well i want to go in a server where i could talk

#

so you are in another server?

#

oh ok

#

have fun

#

bye

molten bronze
#

thee.js

#

three,js

#

who can help

somber heath
#

!guilds

wise cargoBOT
#

Communities

The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.

topaz quarry
#

hello

somber heath
#

@topaz quarry ๐Ÿ‘‹

#

!voice

wise cargoBOT
#

Voice verification

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

somber heath
#
obj[...] #__getitem__
obj[...] = ...#__setitem__```Subscription.
#

!e py print('abc'[0]) print('abc'[1]) print('abc'[2]) print('abc'[-1]) print('abc'[-2]) print('abc'[-3])Subscription by index.

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | a
002 | b
003 | c
004 | c
005 | b
006 | a
somber heath
#

!e py print('abc'[3]) #3, fourth index position.

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | IndexError: string index out of range
cold cloak
#

[cat, dog, bird]

sweet lodge
#

Always dog

cold cloak
#

dawg

somber heath
#

@rich mason ๐Ÿ‘‹

rich mason
#

hi

lucid blade
hoary olive
#

Hello

lucid blade
#

waves

hoary olive
#

this seems to be the stupidist thing on earth

lucid blade
#

lol

#

not if your one of those binary people lol ๐Ÿ˜„

hoary olive
#

what time is it then?

lucid blade
#

9

hoary olive
#

9 what

lucid blade
#

32+1+4

hoary olive
#

oh i presume it shows 21 aswell

lucid blade
#

9.37

#

i have a skin like that for my samsung gear

hoary olive
#

galaxy watch?

#

i presume xiaomi ones have the most customizability , and apple has the least as usual

lucid blade
#

YEAH

hoary olive
#

samsung there in the middle

somber heath
#

@rain hawk ๐Ÿ‘‹

lucid blade
#

there are better smart watches available these days

hoary olive
#

i'd go for samsung myself

#

S23

lucid blade
#

ulephone app armour

hoary olive
#

andriod 13 i think

hoary olive
#

who drops routers

lucid blade
hoary olive
#

it sucks

#

geastures are way easier

hoary olive
#

300$ for this?????

#

Digital Storage Capacity 5000 GB
Hard Disk Interface USB 1.1

rain hawk
somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

rain hawk
lucid blade
#

compiz

#

XSCREENSAVERS

somber heath
#

@final pollen ๐Ÿ‘‹

#

!voice

wise cargoBOT
#

Voice verification

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

somber heath
#

@orchid bone ๐Ÿ‘‹

somber heath
#

@plain lichen ๐Ÿ‘‹

plain lichen
#

@somber heath hello

#

i just have a quick question. Do either of you know how to compile a script with pyinstaller and make it a onefile exe with images that dont require them to be in the same directory as the exe. I mean onefile exe says it all. I cannot get this to work for me and its really getting to me.

#

Im making a small program for Tmobile. Long story short im making a program that can easily monitor data usage. i got the go ahead from tmobile and after im done i submit it to their dev team and if they think its good enough theyll take it and publish it

#

but i cant get it to just onefile compile into an exe

#

Ive already got most of it working its just when i compile it into an exe for some reason the png files dont compile with it.

#

but yeah im adding --add-data and then the location to the file but for some reason the script doesnt know where it went

rugged root
#

auto-py-to-exe

somber heath
#

Why Python and not C/C++?

plain lichen
#

im using auto-py-to-exe

#

becauseeeeee i dont know much of c/c++ lol

#

besides im right there almost at the finish line everything works when its being ran off vscode just when it goes into an exe it breaks

#

So its monitoring the users data usage on their account in a very simple way. because to me im lazy and i dont want to sign into my account and scroll through this and click on that and blah blah blah and see all the other txt on the screen. So ive made this app so you log into your account and itll take you to the next screen where it shows you how much data you have used vs how much you have in total. Its mainly for those who have data limits. Like myself because i cant afford unlimited internet where i live so i have to be data caped because they dont have unlimited where im at. And i want to make something which im almost there. So i can just sign in and boom i see what i want

#

No its using the api. Account automation is prohibited it would moreless be web scraping

#

ive already dove through their terms of service with webscraping as its not illegal its not allowed. it would be wayyyy easier if i could just web scrape

#

webscraping is not illegal but for tmobile its not allowed in their terms of service

#

its not illegal for public information

#

sorry

#

sorry my phrasing is off i havent slept in 19 hrs lol

#

--add-data doesnt work. I have the file and pngs in the same folder i use pyinstaller and the commands needed then when i get the exe i open and i have it open with the console so i can see any traceback errors but i always get "name.png" not found. I am using --add-data "file path" --onefile

#

it works without it but as soon as i do --onefile and compile all of it into well 1 file it breaks and cant find the png files anymore

#

wait.. im being dumb.. I can compile the directory into 1 file correct. So remove --onefile let it build the directory that way then compile the directory into 1 file right ? would that work

#

that should work

#

well yeah you understood lol thats all i wanted XD

gentle flint
#

aluminium

#

a graduation metal?

molten bronze
#

soo i need to work node.js in that environment

#

i did

#

no like if a put node -v in cmd i will get the version

#

but not in the conda environment and nor in the venv1 environment

#

yes i need to make the node.js in the conda

#

in orther to debug the javascript in the dgango part

#
C:\Users\danie\OneDrive\Documents\Scripts\Finca\venv1\Scripts;C:\Users\danie\anaconda3;C:\Users\danie\anaconda3\Library\mingw-w
64\bin;C:\Users\danie\anaconda3\Library\usr\bin;C:\Users\danie\anaconda3\Library\bin;C:\Users\danie\anaconda3\Scripts;C:\Users\
danie\anaconda3\bin;C:\Users\danie\anaconda3\condabin;C:\Users\danie\anaconda3;C:\Users\danie\anaconda3\Library\mingw-w64\bin;C
:\Users\danie\anaconda3\Library\usr\bin;C:\Users\danie\anaconda3\Library\bin;C:\Users\danie\anaconda3\Scripts;C:\Program Files
(x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowe
rShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\danie\AppData\Local\Microsoft\WindowsApps;C:\Users\da
nie\AppData\Local\GitHubDesktop\bin;C:\Users\danie\AppData\Local\Programs\Microsoft VS Code\bin```
#

cmd

#

and that is in visual studio code

#

yes

#

yes empty

rugged root
vocal basin
# molten bronze cmd

can you send the log of doing the following (replace <activate the environment> as required):

node -v
<activate the environment>
node -v
molten bronze
#

but in VS code or in cmd?

#

only in cmd

#

give you the version

#

no

#

conda activate --stack myenv

#

conda activate --stack base

#

?

#

yes the cmd in vs code? yes but is inside the enviroment

#

ok

#

so i am in a new cmd workspace

#

nop

somber heath
molten bronze
#

yes

#

they auto executed

#

cause i can open vs conde in conda or outside conda

#

VS code in conda or outside conda

somber heath
#

The grass is browning...

molten bronze
#

๐Ÿ˜’

whole bear
#
    def get_aiohttp_client_timeout(self):
        return aiohttp.ClientTimeout(
            total=None,
            connect=None,
            sock_read=None,
            sock_connect=self.ESTABLISHED_CONNECTION_TIMEOUT
        )

    def get_aiohttp_connector(self):
        return aiohttp.TCPConnector(
            loop=self.loop,
            ttl_dns_cache=self.DNS_CACHE_TTL,
            force_close=True,
            limit=self.MAX_SIZE_POOL
        )

    def get_aiohttp_session(self):
        return aiohttp.ClientSession(
            loop=self.loop,
            connector=self.get_aiohttp_connector()
            timeout=self.get_aiohttp_client_timeout()
        )

``` This is kinda cringe, all this to get a valid working aiohttp session for my specific application needs :/
molten bronze