#voice-chat-text-0

1 messages Β· Page 1042 of 1

olive yew
#

^_^

rugged root
#

Use the !user command in #bot-commands

olive yew
rugged root
#

No problem!

whole bear
#

bye i am going to lunch

somber heath
#

"Hey, Hamburglar, do you think you'll ever stop stealing from our customers?"

"Nope. Robble 'em."

#

"Thanks. You're the best!"

rugged root
#
PAYLOAD = dict[str, str | int | list[dict[str, str | int]]]
PARSED_CHANNELS = list[dict[str, str | int]]
peak copper
#

We are starting out with a new tutorial series on advanced Python programming. In this first video we talk about magic methods or dunder.

β—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύβ—Ύ
πŸ“š Programming Books & Merch πŸ“š
πŸ’» The Algorithm Bible Book: https://www.neuralnine.com/books/
🐍 The Python Bible Book: https://www.neuralnine.com/books/
πŸ‘• Programming Merch: https://www.neural...

β–Ά Play video
rugged root
#

Emails are typically HTML

#

And pretty much add as much emphasis as humanly possible

#

And then add more

sweet lodge
rugged root
#

They do

sweet lodge
#

I was just pointing out the ## header at the top of his email

#

Is Markdown

rugged root
#

Oh right right right

whole bear
#

hi

somber heath
#

Past a far Ian.

#

Goosetyping. Instead of clickety clack, "HONK! HONK HONK! HONK! Hnk."

rugged root
#

@misty bone If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate system

whole bear
#

biocipher

somber heath
#

Wax.

#

#code-jam-2022 @trail dirge You might be better served directing any codejam-related questions here. πŸ™‚

amber raptor
#
$a = 1
$a.gettype()
$a = 'Hello all'
$a.gettype()
[int32]$b = 2
$b.gettype()
$b = 'Hello Hemlock'
$b.gettype()```
rugged root
amber raptor
#

$b.gettype().name

#

$b | gm

#
Get-Childitem | gm```
#

Get-Member

sweet lodge
#

'gm' is an alias of 'Get-Member'. Alias can introduce possible problems and make scripts hard to maintain. Please consider changing alias to its full content.

#

Please fix
Thanks

#

Get-Member is a lot like dir (Python)

amber raptor
#

get-alias ls

#

dir -> Get-Childitem

sweet lodge
#

!eval

print(dir("3"))
wise cargoBOT
#

@sweet lodge :white_check_mark: Your eval job has completed with return code 0.

['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
sweet lodge
#

all the things

rugged root
#

CreateAsSymbolicLink
create_as_symbolic_link

amber raptor
#

C:\Drives\Disk3 -> Disk 3

#

F:

#

AA:

#

This type of drive mounting is commonly used for SQL Server/Exchange

#

because you can quickly script setup stuff

amber raptor
sweet lodge
amber raptor
formal rover
#

hi

#

good wby

#

theyre actually really similiar

wheat haven
#

Hiii!!!

formal rover
#

hi

wheat haven
#

how is your day going

formal rover
#

good wby

wheat haven
#

just wanna make peoples day better

whole bear
muted star
#

Halo

rugged root
whole bear
rugged root
#

@steel drift If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate system

gentle flint
strange perch
#

heyho does one know a bit about lists?

quasi condor
strange perch
#

already got a channel there

quasi condor
#

then your best bet is to just wait

rugged root
#

The help system puts new channels at the bottom of the list, and it'll scoot up as old ones are answered and closed. You'll get there

magic kiln
#

i got a video for ya @strange perch

#

@strange perch i sent it to ya buddy

strange perch
#

i just dont get why i cant pd.concat my dfs Q_Q

sweet lodge
#

That's a troll

quasi condor
amber raptor
olive yew
#

No it's not

#

You can workout

willow light
olive yew
#

How come

#

Standing desk it is then

willow light
#

I might be able to fit some exercise into my schedule during some weekends starting in October, but that's about it.

#

Until then, this borderline obesity ain't going anywhere anytime soon

olive yew
#

Let me teach you some ancient magic way

#

How many meetings you got during the day ?

willow light
#

Too many

olive yew
#

Then

#

You got wireless headset?

willow light
#

And when I'm not in meetings, I'm debugging failed builds

#

the meetings are in person

olive yew
#

Oh then

#

I'm sorry

#

Go remote

#

Wireless headsets

willow light
#

If I could, I would

olive yew
#

Them walk around the house

#

While in meeting

#

That's what I do

willow light
#

Sure, I'll just give up my paycheck for another several months of job searching just so I can walk around my one bedroom apartment from time to time

olive yew
#

Why give up

#

No remote option ?

willow light
#

No remote option if you were hired before the pandemic started

olive yew
#

Weird

#

Okay then

willow light
#

Welcome to Finance

olive yew
#

Depends

#

Ur doing DevOps I'm assuming ?

willow light
#

We're financial tech except when it comes to actually providing the tech side with competitive pay, operating systems that aren't called Windows Vista, and being allowed to use any stack that doesn't involve Java 7.

#

I'm an SRE

olive yew
#

I see

#

Sorry to hear

#

Time for new remote work ?

#

🍞

willow light
#

But we do have a very good health plan, and the commute is three minutes.

#

Very good by american standards, at least. So I'm only paying $550 each month on my medicine instead of the full $600

#

But at least I have an HSA for that.

#

Once the recession hits I'm getting a condo (waiting for the housing market to collapse first) that is biking distance so I can get at least some exercise that way.

olive yew
#

I think we can all find 20-30 mins a day for workout

willow light
#

As it stands right now, I can only do so if I sacrifice 20-30 minutes of sleep each day

olive yew
#

Means you work too much or getting tired a lot

willow light
#

This is america, working ourselves to death is the only way to make enough money to eat.

#

anyway, I need to go to yet another in-person meeting that probably could've been an email

#

later

mild quartz
wise cargoBOT
#

Voice verification

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

rugged root
#

Nice!

main vault
#

got it

wind raptor
#

Brb @rugged tundra powertoys updated and forcibly restarted my pc... Now there are some updates to windows also haha

somber heath
#

!e ```py
class MyClass:
def function_or_method(self):
pass

mc = MyClass()
a = type(MyClass.function_or_method)
b = type(mc.function_or_method)
print(a)
print(b)

wise cargoBOT
#

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

001 | <class 'function'>
002 | <class 'method'>
main vault
#

@somber heath hi

#

one sec

#

mic

somber heath
#
def blogo_fuzz(a, b, c):
    """Blogofutz-Perrimaker fuzzing algorithm.
        Blah blah blah usage instructions.
        Maybe a link to some published paper describing it."""
    ...``````py
>>>help(blogo_fuzz)```
main vault
#

@somber heath rt

somber heath
#

rt?

main vault
#

roger that

somber heath
#

Oh. Right.

main vault
#

understood

somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

wind raptor
#
class Test:
    def __init__(self):
        print("hello")

test = Test()
#

!e

class Test:
    def __init__(self):
        print("hello")


test = Test()
wise cargoBOT
#

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

hello
wind raptor
#

!e

class Test:
    name = "This is a test"    

    def __init__(self, name_2):
        self.name_2 = name_2


print(Test.name)
print(Test.name_2)
wise cargoBOT
#

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

001 | This is a test
002 | Traceback (most recent call last):
003 |   File "<string>", line 9, in <module>
004 | AttributeError: type object 'Test' has no attribute 'name_2'. Did you mean: 'name'?
wind raptor
#

!e

class Test:
    name = "This is a test"    
    def __init__(self, name_2):
        self.name_2 = name_2


test = Test("Chris")

print(test.name)
print(test.name_2)
wise cargoBOT
#

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

001 | This is a test
002 | Chris
fickle crater
#

hello

warped raft
#

hello

olive yew
#

wadap

warped raft
#

hello

#

iam fine

olive yew
#

pick a topic

warped raft
#

how about you

#

wescrapping

#

webscrapping

olive yew
#

what about it

warped raft
#

how to get into it

#

no mic

olive yew
#

ah

#

business or personal use?

#

for web scrapping

warped raft
#

but i have a headphone

#

pesonal use

olive yew
warped raft
#

you can speak in voice chat

#

hello @fickle crater

#

yes

fickle crater
#

what?

warped raft
#

i heard about a cool project

warped raft
#

that tells you about products

#

on amazon

#

when there price is low

#

no

#

personal project

#

or may be in future use it to buy something

olive yew
warped raft
#

ok

#

thank you

olive yew
#

uw

#

be mindful of api limits

#

request rates etc

warped raft
#

which project are you working on

#

ok

olive yew
#

oh im a newbie

#

i'm doing else if statements and projects

warped raft
#

ok

olive yew
#

but i'm 10 yrs in the industry, working on a different role

warped raft
#

ok

olive yew
#

just getting into coding, i can read code but couldnt write

warped raft
#

i am total 14 years ols

#

old

olive yew
#

oh oh

#

nice skill to learn then

warped raft
#

yup

olive yew
#

gonna make you quick bucks in few years

#

the skill i mean

warped raft
#

hope so

olive yew
#

it will

molten rune
#

hello

olive yew
#

heya

warped raft
#

hello

molten rune
#

mind if i ask something to explain

olive yew
#

go on

molten rune
#

hmmm i dont know how the def function work

olive yew
#

you just write a function and you call it afterwards

warped raft
#

@fickle crater turn on krisp

#

suprresion

fickle crater
#

how to do that?

warped raft
#

there a button next to disconnect

#

just click that

#

hello

#

no we can hear it

#

yes

#

no i don't have a mic

molten rune
warped raft
#

ok

fickle crater
#

!cryptography

warped raft
#

hello

#

@wind raptor

#

going gogod

#

how aout you

#

about

#

are you idle the whole night

#

on discord

#

ok

#

what did yo said

#

@wind raptor

#

ok

#

have you ever used signal microprocessor

olive yew
#

lol

stuck coral
#

🐸

olive yew
#

πŸ™ˆ

magic kiln
#

hey guys whats up?

olive yew
#

mint fatal error

#

hooray

#

be back later

wind raptor
#

@magic kiln

magic kiln
#

yeah you're right @wind raptor

#

yeah i will come later today @wind raptor

#

i think i'm only a couple hours off @wind raptor

#

gotcha

#

I just started doing python about 3-4 days ago

#

but i been putting in 13 hour days so my progress is going kinda quickly

#

yeah it doesn't seem too complex

#

and yeah the apex discord is nuts

#

just kids coming in screaming the N word and other profanities its annoying

#

yeah but in a discord like this i mean i guess people really have no life

#

if you

#

would join and do that

#

but yeah its a lil annoying but understandable

#

you working on any projects?

#

i also started working on python cause my college i wanna get into requires a entry code

#

yeah but they only require you to know the basics so i been buzzing through i still got till august 28th

#

I figured id use unity and python and try to code maybe a little text based game or something along the lines

#

just to stand out a little bit and show i got more to offer besides just coding

#

yeah "just the basics"

#

yeah

#

they wanna see a github portfolio

#

just a bunch of random lines of code

#

is what i was told

#

yeah they just wanna make sure u can mostly do functions and define variables and what not

#

but im trying to learn strings and all and its been a little bit of a headache

#

ignore not strings i meant list

#

got confused

#

yeah i just have trouble understanding the concepts of it

#

like whats real world applicability

#

that's the kinda thing that keeps me from fully understanding

#

okay so basically instead of a=coffee . it would be like a=coffee, water, milk, soda

wind raptor
#

!e

import random


drinks = ['coffee', 'water', 'milk', 'tea', 'juice']
print(f'Today I will drink {random.choice(drinks)}, tomorrow I will drink {random.choice(drinks)}')
wise cargoBOT
#

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

Today I will drink tea, tomorrow I will drink coffee
magic kiln
#

so how does the import random work?

#

thats kinda straying but i haven't learned that quite yet

wind raptor
#

!e

drinks = ['coffee', 'water', 'milk', 'tea', 'juice']
for drink in drinks:
    print(f'I like {drink}!')
wise cargoBOT
#

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

001 | I like coffee!
002 | I like water!
003 | I like milk!
004 | I like tea!
005 | I like juice!
magic kiln
#

so is the main concept its kinda a way to store a bunch of data within a single variable?

#

gotcha. and how did you get the random to work?>

#

mm but how does it know how pick randomly without being coded?

#

is random prebuilt in?

#

sorry if that sounds stupid

#

all u said just blew right passed mne

#

XD

#

pseudoranom

#

and the other word

#

never heard them

#

ohh so its timing based

#

like if me and u click at the same second it would produce same result

#

oh so like how you can seed a map in a game

#

its technically randomly generated

#

but you could use a seed to create the same map but off a random choice kinda

#

gotcha

#

see learning even more new things

#

alright

glad sandal
#
C--

C-- (pronounced C minus minus) is a C-like programming language. Its creators, functional programming researchers Simon Peyton Jones and Norman Ramsey, designed it to be generated mainly by compilers for very high-level languages rather than written by human programmers. Unlike many other intermediate languages, its representation is plain ASCII...

magic kiln
#

oh damn did i really

glad sandal
#
KDE Community

KDE is an open community of friendly people who want to create a world in which everyone has control over their digital life and enjoys freedom and privacy.

quasi condor
#

work thing

glad sandal
#

back soon

#

gonna grab smth to eat

lethal thunder
rugged root
#

Talking to some work folks.

glad sandal
#

Ok, no worries!

lethal thunder
#

A ten times developer is the developer who is ten times more efficient than the average developer on a team.

rugged root
#

So it's not a developer that says the same friggin' thing ten times during the same conversation?

somber heath
#

L'eagle. It's French for eagle.

#

Use case. Windows has polish, but ew megacorp information hoovering.

#

Linux is fine if you're computer literate enough.

#

Windows does games better mostly by virtue of games targeting it.

#

Linux does at least Steam games pretty well. Ew, Steam.

rugged root
#

Better than frying

somber heath
#

Other games have Linux compatible versions, too.

#

Apple: HOA. Windows: Suburban bliss, built on reclaimed landfill. Linux: Customisable fallout shelter.

#

If OSes were dwellings.

rugged root
#

That's.... actually the best comparison I've seen in a while

somber heath
#

We don't get out of life alive.

lethal thunder
somber heath
#

Suggestion for new Discord feature. Pull to talk.

south bone
#

now i'ma just type its easier haha

somber heath
#

Ooh. Shake to talk. Actually, that'd probably make people throw their phones.

rugged root
#

I'd have to buy Nitro again

somber heath
#

"Orient North to talk." Compass-activated.

rugged root
#

For chickens

#

Push to bawk

somber heath
#

Yaas

amber raptor
#

Marxist is any country that doesn’t give citizens assault rifles. πŸ¦…

somber heath
#

Is Antarctica Marxist or is it 2xist? You decide!

rugged root
#

Do communists shop at Marx and Spencer's?

#

Oh

#

My

#

GOD my co-worker

somber heath
#

"God, My Coworker" An office sitcom where God is working in the next cubicle to you.

rugged root
#

"I'm unable to submit this positive pay to the bank"
"Okay, is it giving you an error or telling you what specific field isn't working?"
"Yes and yes"

#

Fucking....

#

WHAT'S THE ERROR

sweet lodge
rugged root
#

It's this one user

#

Just this one

sweet lodge
#

Please make sure to pick up your emotional support stressball by the end of the day

sturdy panther
#

"Can you show me the error?" "Yes, I can." *Silence*

sweet lodge
#

We here at WeHateU Corp are not liable for any permanent or lasting emotional damage

rugged root
sweet lodge
pastel linden
#

guys where is voice-chat?

sturdy panther
#

"No."

somber heath
sweet lodge
rugged root
#

I swear to god there is going to be a day where I just shake her by the shoulders

somber heath
#

Comb Pete, because Pete wants his hair smooth and luxurious.

sweet lodge
#

It works

#

But it has to be the right kind of person
Most people would take offense

rugged root
#

I'm disappointed that no one enjoyed the nose cancellation joke

somber heath
rugged root
#

I hate QuickBooks

sturdy panther
#

Didn't have eye cancellation.

rugged root
#

I hate QB, SO much

#

Just lots of irritation today

sweet lodge
sturdy panther
#

It is still a thing?

rugged root
#

QB is still huge

sturdy panther
#

Quite Big then.

rugged root
#

Magical

wind raptor
quasi condor
#

@mild quartz for work I have to do a presentation on an interesting data science topic - the more interesting the better, regardless of practicality or utility

#

do you have any recommendations

#

the most interesting thing I can think of is competitive self-play

mild quartz
#

competitive self-play is very expensive to train

#

do you just need to present

#

or do you need to implement it

quasi condor
#

no no

#

literally just 3 minutes talking about it

#

someone is talking about analogue AI for example

mild quartz
#

hmmmmmmmmmmmmm

#

something that is very hype and pretty easy to understand is scaling hypothesis stuff

quasi condor
#

There's ~10 of these, that one is taken. I'm just trying to find something that is more obscure but still interesting

mild quartz
#

okok

#

how about this

#

this is closer to your original suggestion

quasi condor
#

that's definitely interesting

mild quartz
quasi condor
#

that's phenomenal

mild quartz
#

there are so many fun options lol

#

this model is cool because you can give it a clip of music and be like "play this in the style of artist_"

#

i am a generative model of ml papers

quasi condor
mild quartz
#

In the last year, I’ve talked to ~30 companies in different industries about their challenges with real-time machine learning. I've also worked with quite a few to find the solutions. This post outlines the solutions for (1) online prediction and (2) continual learning, with step-by-step use cases, considerations, and technologies required for e...

#

its about having ml models that adapt to users in real time

amber raptor
mild quartz
quasi condor
mild quartz
rugged root
#

@south bone You've got static coming from your mic again

#

@rotund scaffold Really sorry, didn't mean to bail. I've been fighting with QuickBooks customer support all morning and still fighting the good fight now

rotund scaffold
#

@rugged root No worries dude

sweet lodge
tall geode
#

lmo

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @tall geode until <t:1657827266:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

whole bear
#

Δ± can't use a class thats so hard

somber heath
# whole bear Δ± can't use a class thats so hard

They're very good to learn about. Every object in Python is of a class/type. Classes govern the sort of data those objects represent/hold and how they behave/how we can interact with them and that data.

#

Python thinks in the language of classes.

#

So understanding classes, while not mandatory, is essential to understanding Python.

whole bear
#

Δ± now the class things but Δ± can't use

magic kiln
#

hey @somber heath

#

hey @whole bear

#

joining = participation trophy

#

preach

#

100% correct

#

same I come here while learning and end up finding a bunch of information I never even knew existed

#

@somber heath is blowing my mind right now

#

whats a class?

#

no

#

i just started

#

yeah

#

i know its stupid

#

sorry

somber heath
#

!e py print(type(5))

wise cargoBOT
#

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

<class 'int'>
somber heath
#

!e py print(type("Hello, world."))

wise cargoBOT
#

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

<class 'str'>
somber heath
#

!e py print(dir("$"))

wise cargoBOT
#

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

['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
magic kiln
#

okay one second

#

how do these function within the code

#

yeah its kinda complex

#

yeah do it idiot level

#

πŸ˜‚

somber heath
#

!e ```py
class MyClass:
pass

mc = MyClass()
print(mc)```

wise cargoBOT
#

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

<__main__.MyClass object at 0x7f41d2365510>
magic kiln
#

so thats interchangable between that and _

#

like my_class

#

yes

#

confused a little

#

so is the class kind of like a grouping

somber heath
#
a = MyClass()
b = MyClass()```
magic kiln
#

mmm kinda

somber heath
#

!e ```py
class MyClass:
def init(self):
print("Hello, world.")

MyClass()```

wise cargoBOT
#

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

Hello, world.
somber heath
#

!e ```py
class MyClass:
def my_method(self):
print("Hello, world.")

mc = MyClass()
mc.my_method()```

wise cargoBOT
#

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

Hello, world.
magic kiln
#

yes but not on an advanced level

#

just to help with mathematical equations

#

kinda lost me

#

yeah im kinda hands on viewing

#

is it possible to call you in a private call?

somber heath
#

!e ```py
def func():
return 5

v = func()
print(v)```

wise cargoBOT
#

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

5
magic kiln
#

almost 3 days

#

thats the only thing im missing

somber heath
#
v = 5```
magic kiln
#

why would you want extra code to equal the same output?

#

gotcha so multiple ways to get to the same destination

#

got it

#

is class short for classification?

somber heath
#

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

a = MyClass(5)
b = MyClass(10)

print(a._v)
print(b._v)```

wise cargoBOT
#

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

001 | 5
002 | 10
magic kiln
#

okay and the instance object refers to the 5 and 10

#

correct?

#

never

#

i don't even know how to use is at all

somber heath
#

!e py a = [] b = [] c = a print(a == b) #True. a and b both point to objects that are equal to one another. That is, they are both empty lists. print(a is b) #False . But are not the same list. print(a is c) #True. a points to the same object in memory as c does.

wise cargoBOT
#

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

001 | True
002 | False
003 | True
magic kiln
#

how do you get it to answer true or false is that because you turned it into a bool

#

ahhhhhhh

#

gotcha and a variable becomes a string with " "

#

i think ill need a little more training with clases

#

classes but i understand (is)

somber heath
#

!e ```py
class MyClass:
def get_self(self):
return self

a = MyClass()
b = MyClass()
print(a)
print(a.get_self())
print(b)
print(b.get_self())```

wise cargoBOT
#

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

001 | <__main__.MyClass object at 0x7fe0c29cdc00>
002 | <__main__.MyClass object at 0x7fe0c29cdc00>
003 | <__main__.MyClass object at 0x7fe0c29cdbd0>
004 | <__main__.MyClass object at 0x7fe0c29cdbd0>
magic kiln
#

gotcha

somber heath
#

!e py class MyClass: def func(self): return self a = MyClass() print(a is a.func())

wise cargoBOT
#

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

True
magic kiln
#

gotcha

somber heath
#

!e ```py
class MyClass:
def add(self, _):
return "Hello, world."

mc = MyClass()

print(mc + 5)```

wise cargoBOT
#

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

Hello, world.
somber heath
#

!e ```py
class MyClass:
pass

print(MyClass())```

wise cargoBOT
#

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

<__main__.MyClass object at 0x7f8c2c9d9120>
somber heath
#

!e ```py
class MyClass:
def str(self):
return "Hi"

print(MyClass())```

wise cargoBOT
#

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

Hi
magic kiln
#

haha yeah its a bit. trying to learn can be a little difficult

#

understandable.

#

so what would you personally recommend for me to learn afterwards

#

i know a couple things but im kinda stuck at where to progress

#

i'm trying to fully understand python like get the know all for it.

#

mmm how did you learn?

#

i just don't know where to continue i kinda started learning without a text book cookie cutter learning

#

no i have not

#

i watched a couple csdojo videos

#

thats about all i've done

somber heath
#

Corey Schafer. Youtuber. Playlist for Python beginners.

magic kiln
#

would it be good enough to satisfy college entry code

#

?

#

i have no idea what any of that is

#

they told me they wanted me to have basic understanding

#

then they said it starts in python and ends in java

#

and those are the only two languages they touch

#

yeah kinda surprised me too

#

its the top US school for computer science degree

#

whats conventions ?

#

sorry πŸ˜‚

#

insert clueless here

#

all those things you said i have no idea of

somber heath
#

SCREAMING_SNAKE_CASE

magic kiln
#

no but can u link that

somber heath
#

Colorama

magic kiln
#

i actually was looking for something like that

somber heath
#

ANSI escape sequences under the hood

magic kiln
#

to install do i just follow the page

#

i've been using visual studios and juypter

#

oh no im using vs

#

2022

#

how do u write lines on there

#

it seems to run line by line

#

i can't get it to run multiple lines

#

on python native terminal

somber heath
magic kiln
#

yes

#

ohhhh

#

so copy paste

#

or open the file in python

#

gotcha yeah im in windows

#

i cant comprehend linux

#

too stupid

#

mmmm understood

#

but how do you figure out how to install progrrams even

#

i know how to install the packet managers

#

but how do i open them

#

?

#

sorry that's what i meant πŸ˜‚

#

kinda confused

#

when i download the files it just gives me a big folder with files

#

no executable files

#

which is where i get lost

#

yes

#

like downloading steam even

#

yeah i've had to use terminal to open and install

#

hmmm maybe i installed the wrong steam

#

yeah that's what it made me do

#

exactly what u just said

#

mmm so i run my own backend

#

instead of having a front end to rely on

#

gotcha

#

hmm.. I feel like i could learn it it just seems like windows is just so much more user friendly

#

thats what im using

#

πŸ˜‚

#

yeah tell me about it

#

my damn phone been driving me nuts

#

yeah terribly corps man

#

its like a monopoly

#

like helping a buddy to backstab him

#

haha yeah, and when they do everyone by then would forget linux was ever free

#

they'd find a way to purchase it and profit

#

oh red hat is free

#

lol

#

i found it

#

sorry tried to paste data from my VM

#

The Red Hat build of OpenJDK is a free and supportable open source implementation of the Java Platform, Standard Edition (Java SE).

#

enterprise isnt free

#

licensing is what they claim is there cost

#

oh wait nevermind

#

putting it on ur pc is free

#

using it cost money

#

through subscription

#

yeah but could you imagine getting booted and then all the sudden can't use your data at all

#

πŸ˜‚

#

like if u needed it for your schools senior project

#

damn how old are you

#

20 years ago

#

so like microsoft gamepass

#

i thought u were like late 20's like me

#

I talk to a guy from this server whos 52

#

i don't think u got that bear

#

beat

#

lol

#

its okay

#

really

#

nahhhh

#

we must do a whos the oldest survey

#

give them a role

#

oldest member

#

πŸ˜‚

#

hey if i was the oldest i wouldn't mind

#

id just tell people hey i'll probably still have lived longer than u wil;l

#

will*

#

lol gotta hit them with the facts when they talk crap

#

im legit dying over here laughing

#

gentleman like I like it

#

chop chop

#

i haven't laughed this hard in a long time

#

lol not gonna lie when u said a nazi walked into the bar i laughed like crazy

somber heath
#

The parable of why you should always oust Nazis, even the polite ones.

#

I'll take this moment to take a break.

magic kiln
#

lol take a breather you deserve it @somber heath

glad sandal
somber heath
#

!e ```py
def friendly(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print("Hello, world!")
return C

class MyClass:
pass
MyClass()
print("*")

@friendly
class MyClass:
pass

MyClass()```

wise cargoBOT
#

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

001 | *
002 | Hello, world!
somber heath
#

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

whole bear
warped raft
#

hello @somber heath

#

what are you talking about opalmist

somber heath
#

!timeit

import random
nums = random.sample(range(10), k= 10)
nums.sort()```
wise cargoBOT
#

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

20000 loops, best of 5: 10.9 usec per loop
warped raft
#

@whole bear what were you talking about

whole bear
#

Its a double-bubble sort

warped raft
#

you can talk in voice chat o

#

what does that mean

#

ok

#

so we should not use it

#

i guess

#

do you work with are=duino

#

arduino

whole bear
#

@warped raftno if you send 50 message you can talk voice chat

peak copper
main vault
#

brb

main vault
#

LOL!

quaint oyster
#

Insulin blocks hormone sensitive lipase, which allows your body to burn fat as an energy source

rugged root
#

Huh, I didn't know it flat out blocked it

quaint oyster
#

when eating too many carbohydrates, insulin is spiked, therefore you can't burn fat for energy, therefore you're moar hunger

main vault
#

@quaint oyster yea, i remember studying it

quaint oyster
#

your liver cells etc can only have so much insulin before it starts blocking it out, in which case insulin is stored in your fat cells

sweet lodge
#

I bet that shit hurts

main vault
rugged root
#

!stream 282479920330833920

wise cargoBOT
#

βœ… @fast umbra can now stream until <t:1657894902:f>.

whole bear
#

@rugged root supp

rugged root
#

Not much, 'bout you?

main vault
#

@fast umbra what is ops?

fast umbra
#

Operations

main vault
#

i c

#

thanks for zooming!

rugged root
#

@fast umbra

Familiarity with Data Science ...

#

Eager to try
or
Eager to grow

woeful salmon
#

@rugged root πŸ€” i'm like 60% commandline

#

my editor, git client, github (cli), file explorer (vifm) and so on are all commandline

rugged root
#

Sure sure, but I'm saying exclusively

#

@fast umbra I'd do and instead of or there

#

Makes it more exciting, I think

somber heath
#

πŸͺ“

main vault
woeful salmon
#

mine was java too

#

after a light intro to c

honest pier
#

college grads writing java

amber raptor
woeful salmon
#

it is and unfortunately its not taught very well either

#

they just throw all the oop terms to you with a book and don't explain anything well alot of times

amber raptor
honest pier
woeful salmon
fast umbra
#

Strong experience in Python and/or Python ML stack with an understanding of Software Engineering patterns, Data Structures, and System Architecture

rugged root
#

!stream 282479920330833920

wise cargoBOT
#

βœ… @fast umbra can now stream until <t:1657897278:f>.

woeful salmon
#

the only reason i was able to work with java properly at all afterwords was because i self learnt the whole language from scratch again

#

and took time actually understanding what all that meant

sturdy panther
#

I have heard of experience being "strong" before.

somber heath
#

!e ```py
def birthday(message):
def d(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print(message)
return C
return d

@birthday(message="Hello, world.")
class MyClass:
pass

mc = MyClass()```So I've been writing class decorators lately. Fun with decorators with parameters.

wise cargoBOT
#

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

Hello, world.
somber heath
#

It looks like a load of jank, but it's kind of how they're written, I think, so whatever.

gentle flint
#

@faint ermine you're crackling a bit again

sweet lodge
#

@faint ermine what's the question?

#

WTF did I walk into?

faint ermine
#

basically, github link snippets and github issue embed across 2 different bots why?

sweet lodge
#

Yeah

#

I've been wondering about that

rugged root
amber raptor
#

Laundmo thinking there is a great explanation for same feature being in two enterprise applications instead of simple answer of β€œsomeone forgot it existed and wrote it a second time”.

sweet lodge
faint ermine
#

rabbit

lavish rover
#

Β‘Hola!

sweet lodge
#

Hola! Como has estado?

lavish rover
#

I'm out of Spanish

#

There's 2 years of high schools worth

faint ermine
sweet lodge
#

"how have you been?"

lavish rover
#

My high school Spanish teacher's real comments: "you can't take English words, add an 'el' in front and an 'o' at the end and expect it to be Spanish"

lavish rover
#

Turns out "El stomacho" and "El Lego" are not valid body parts in my quiz

sweet lodge
#

Estamos aqui a apprender sobre el Pythono

rugged root
#

Still cracks me up

sweet lodge
lavish rover
#

Even the ducks in Spain say "El quacko"

#

Still quacks me up.

sweet lodge
lavish rover
#

I did high school in dubai

sweet lodge
#

Lucky

#

I didn't know there were Spanish people over there either

lavish rover
#

Our high school was like one of the posh ones we had like 100 different nationalities in it or something

sweet lodge
#

It's in Dubai

#

Everything is posh

lavish rover
amber raptor
# faint ermine its not about that, i asked if there was a reason for these *similar* not *same*...

I think confusion is me calling it Enterprise Project. PyDis source base is open source Enterprise Project. It looks like every Enterprise project I've been part of. Multiple Project Owners, poor documentation at times, inconstant standards and people driving direction depending on who was working on it at the time and monolith applications. I always joke with people if you want to know what working on Enterprise is like, Checkout PyDis Github organization. It's pretty much the same.

faint ermine
amber raptor
faint ermine
amber raptor
#

Because when you ask in dev-contrib, that's literally what everyone is going to do. Hmmmm.... when did this get introduce, by who and what PR? Does anyone have a clue

faint ermine
#

actually, go check it now. nobody dug through the history, instead pinging the responsible person to ask if it should be unified as it seems nobody sees a reason.

#

you treat every situation like its a enterprise level company behind it, and while the codebase might look like it the organisational structure of the people involved does not.

#

"expected better of you" ffs

rugged root
#

Rabbit, why are you being this much of a dick today?

sweet lodge
#

I've only ever seen that logo in a "guess the logo" game

zenith radish
sweet lodge
#

@rugged tundra - Whatever you do - Learn Rust first!

#

Rust is the best language ever
Everyone hates C++

#

C++ before Rust? Why?

#

At the end of the day, what language you learn - doesn't matter

sweet lodge
faint ermine
#

theyre short 10 min videos on why Rust, not tutorials

quaint oyster
#

el watcho el meo

#

oh that was a while ago

#

name is Apple reacted with apple

faint ermine
#
rugged root
#

brb

faint ermine
peak copper
rugged root
#

@quasi condor Why u abandon me

glad sandal
sweet lodge
#

It's Hemlock ... @rugged root

#

.src

viscid lagoonBOT
olive yew
#

let's spam contributions to mess with Hemlock

#

jk

sweet lodge
olive yew
#

maybe

#

im a sneik who knows

glad sandal
#

Beluga

olive yew
#

;o

glad sandal
sweet lodge
#

Guys

#

I'm not sure

#

But I think that @glad sandal might like Beluga

glad sandal
#

I watch his videos

#

sometimes

rugged root
#

I'm going to be deafened for a bit (have to call QuickBooks again), but I'll still be watching chat

glad sandal
#

πŸ‘

#

No worries!

rugged root
#

Also, as an aside, FUCK QuickBooks

#

That is all

glad sandal
rugged root
#

I can, but I say it often enough that it's unnecessary

glad sandal
#

(Very good so others know that its horrible)

glad sandal
#

no need in that case XD

rugged root
#

It's business and bookkeeping software.

#

Won't really come up for most folks here

glad sandal
rugged root
#

Why are we talking about proxies? What'd I miss?

ripe raptor
#
        LOGS.info(message)

        if isinstance(message, pyrogram.types.Message):
            for key__, value__ in message.__dict__.items():

                LOGS.info(f"Value type: {type(value__)} Value: {value__}, Key type: {type(key__)}, Key val {key__}")

                if isinstance(value__, pyrogram.types.object.Object):
                    message_dict.update(dict((key, value) for key, value in value__.__dict__.items() if
                                                         not callable(value__) and not key.startswith('__')))

                else:

                    message_dict.update({key__: value__})



        LOGS.info(message_dict)
olive yew
#

undeafen πŸ˜„

glad sandal
#

They are talking about rate limiting in apis for scarping

#

purchasing APIs to like

#

or to like

#

prevent rate limiting

olive yew
#

avoid rate limiting

#

with unethical ways

ripe raptor
#

{ "_": "Message", "id": 212, "sender_chat": { "_": "Chat", "id": -7188, "type": "ChatType.CHANNEL", "is_verified": false, "is_restricted": false, "is_creator": true, "is_scam": false, "is_fake": false, "title": "gruppo_test", "has_protected_content": false }, "date": "2022-07-14 01:38:30", "chat": { "_": "Chat", "id": 7188, "type": "ChatType.CHANNEL", "is_verified": false, "is_restricted": false, "is_creator": true, "is_scam": false, "is_fake": false, "title": "gruppo_test", "has_protected_content": false }, "mentioned": false, "scheduled": false, "from_scheduled": false, "media": "MessageMediaType.STICKER", "has_protected_content": false, "sticker": { "_": "Sticker", "file_id": "CAACAgIAAx0EYNM_5AAD1GLRn-v8Rz0Jwh9bBTUnwv_gWzZrAALFAwACnNbnClsqgl__YWWaHgQ", "file_unique_id": "AgADxQMAApzW5wo", "file_name": "sticker.webp", "mime_type": "image/webp", "file_size": 64332, "date": "2018-12-11 13:19:58", "width": 512, "height": 512, "is_animated": false, "is_video": false, "emoji": "πŸ˜‚", "set_name": "MrSnoopDogg", "thumbs": [ { "_": "Thumbnail", "file_id": "AAMCAgADHQRg0z_kAAPUYtGf6_xHPQnCH1sFNSfC_-BbNmsAAsUDAAKc1ucKWyqCX_9hZZoACAEAB20ABx4E", "file_unique_id": "AgADxQMAApzW5wo", "width": 128, "height": 128, "file_size": 7650 } ] }, "views": 1, "outgoing": true }

glad sandal
#

LOL

olive yew
#

:kekw

glad sandal
#

ah yes

rugged root
glad sandal
#

Tell -> PabloZ

#

( I have nothing against him hes just the one talking about it )

olive yew
#

im just eating peanuts

#

i know nothing

glad sandal
#

ok

#

πŸ‘

#

Sorry

wise cargoBOT
#

Hey @ripe raptor!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

ripe raptor
glad sandal
#

was supposed to send that to verbose

olive yew
#

πŸ˜„

ripe raptor
glad sandal
#

Verbose talking Swedish

#

His Swedish is very good

olive yew
#

noice

ripe raptor
#

elif isinstance(value__, pyrogram.client.Client): continue

#
        LOGS.info(message)

        if isinstance(message, pyrogram.types.Message):
            for key__, value__ in message.__dict__.items():

                LOGS.info(f"Value type: {type(value__)} Value: {value__}, Key type: {type(key__)}, Key val {key__}")

                if isinstance(value__, pyrogram.types.object.Object):
                    message_dict.update(dict((key, value) for key, value in value__.__dict__.items() if
                                                         not callable(value__) and not key.startswith('__')))
                elif isinstance(value__, pyrogram.client.Client):
                    continue

                else:

                    message_dict.update({key__: value__})



        LOGS.info(message_dict)
#

2022-07-15 19:31:20,064 | INFO | telegram | Value type: <class 'pyrogram.client.Client'> Value: <pyrogram.client.Client object at 0x0000018C7A161100>, Key type: <class 'str'>, Key val _client

glad sandal
wise cargoBOT
#

Hey @glad sandal!

It looks like you tried to attach file type(s) that we do not allow (.cpp). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

glad sandal
#
#include <iostream>
#include <Windows.h>
#include <string.h>
using namespace std;
string getActiveWindowTitle()
{
    char wnd_title[256];
    HWND hwnd=GetForegroundWindow(); // get handle of currently active window
    GetWindowText(hwnd,wnd_title,sizeof(wnd_title));
    return wnd_title;
}
void startup()
{
}

void clicker(int cps, bool randomize)
{



    bool click = false;
    while (true)
    {
        string currentFocusedWindow = getActiveWindowTitle();
        if (GetAsyncKeyState('R')) //if R is pressed click = true
        {
            click = true;
        }
        if (GetAsyncKeyState('Z')) //if Z is pressed click = false
        {
            click = false;
        }

        if(click == true && (currentFocusedWindow.find("Minecraft") != string::npos || currentFocusedWindow.find("Lunar") != string::npos || currentFocusedWindow.find("LiquidBounce") != string::npos)) // if click = true it will press the mouse button down and up really fast
        {
            if(randomize){
                mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
                mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
                Sleep(1000 / cps - (rand() % 8) ); // Clicking speed
            }
            else{
                mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
                mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
                Sleep(1000 / cps); // Clicking speed
            }
        }

    }
}


int main()
{
    int cps;
    string randomize_input;

    cout << "\nPress 'R' to enable and to Z disable AutoClicker\n";

    cout << "Enter Cps[example: 12]:";
    cin >> cps;

    cout << "Would you like to randomize?[yes,no]:";
    cin >> randomize_input;

    if(randomize_input.compare("yes") == 0){
        clicker(cps, true);
    }
    else{
        cout << "Autoclicker will not use any type of randomization.";
        clicker(cps, false);
    }

    return 0;
}

storm anvil
#

hey

#

is there anyone who know js

glad sandal
#

im fine with it

#

no licenses or so

#

but give me credit

ripe raptor
#
if True:
 continue
elif True:
 do something()
#

cannot encode object: <pyrogram.client.Client object at 0x000002A61C2A1100>, of type: <class 'pyrogram.client.Client'>

glad sandal
#

Guys I will be deafened for a few moments, back soon!

ripe raptor
#
        # LOGS.info(message)

        if isinstance(message, pyrogram.types.Message):
            for key__, value__ in message.__dict__.items():

                # LOGS.info(f"Value type: {type(value__)} Value: {value__}, Key type: {type(key__)}, Key val {key__}")
                if isinstance(value__, pyrogram.client.Client):
                    LOGS.info("Value is a Client")
                elif isinstance(value__, pyrogram.types.object.Object):
                    message_dict.update(dict((key, value) for key, value in value__.__dict__.items() if
                                                         not callable(value__) and not key.startswith('__')))

                else:
                    message_dict.update({key__: value__})



        LOGS.info(message_dict)
rugged root
#

I need to hop off for a bit. Still dealing with QuickBooks and I also just got incredibly dizzy for no reason

sweet lodge
#

Don't hurt yourself

rugged root
#

Been sitting this whole time and got dizzy

glad sandal
#

Drink some water!

sweet lodge
#

Stand up?

rugged root
#

Can't at the moment. Will get water here in a bit

#

Currently drinking ginger tea

willow light
#

Ginger Tea is always good. I usually mix mine with chamomile and lavender as well.

#

Also, I think I got the type hints right:

#

Using Any in the wrapper because the NWS API Schema is a little too complex to convert into a Type.

#

!paste

#

KRKD 151556Z AUTO 29007KT 10SM CLR 25/13 A3008 RMK AO2 SLP185 T02500133

zenith radish
willow light
willow light
#

@rugged root how was the tea?

rugged root
#

Good

rugged tundra
willow light
#

the cloud in the gif is the slightly lower part near the middle of the image, tornadoes can form from them, but not always.

#

xarray

#

The Weather Underground was a radical left-wing militant organization first active in 1969, founded on the Ann Arbor campus of the University of Michigan. Originally known as the Weathermen, the group was organized as a faction of Students for a Democratic Society (SDS) national leadership. Officially known as the Weather Underground Organizatio...

quasi condor
#

@zenith radish if you're working on code, want to stream it?

rugged root
#

*chode

amber raptor
quasi condor
#

@rugged root if he hasn't seen the question, ask him in vc pls

rugged root
#

Get in here and ask him yourself

quasi condor
#

no

zenith radish
#

I'd rather not

willow light
#
async with httpx.AsyncClient() as client:
  json = await client.get("http://httpbin.org/get")
#

I'm tempted to go for the super smiley face with the reason being "The call had @rugged root in it"

warped raft
#

hello @autumn forge

autumn forge
#

hi @warped raft

warped raft
#

how you doing

#

hello @cedar glacier

cedar glacier
#

Coding?

warped raft
#

yup

autumn forge
#

i am coding πŸ˜„

cedar glacier
#

What project?

warped raft
#

a project on wescrappign

somber heath
#

!e ```py
def birthday(message):
def d(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print(message)
return C
return d

@birthday(message="Hello, world.")
class MyClass:
pass

mc = MyClass()```

wise cargoBOT
#

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

Hello, world.
somber heath
#

!e ```py
def greeter(cls):
class C(cls):
def init(self, *args, **kwargs):
super().init(*args, **kwargs)
print("Hello!")
return C

@greeter
class MyClass:
def init(self):
print("Blah!")

MyClass()```

wise cargoBOT
#

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

001 | Blah!
002 | Hello!
versed sorrel
#

hello

fiery bone
#

!voiceverify

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.

versed sorrel
#

I need to post more I guess =]

#

damn

#

yeah ofc

#

This is python discord, why you always discuss everything but python on Voice? πŸ˜‚

#

Last time guy was livestreaming coding in GO =]

#

Java is good for what? πŸ€”

#

PIP in python equivalent for NPM

wind raptor
#
import threading


class _Singleton(type):
    """ A metaclass that creates a Singleton base class when called. """
    _instances = {}
    _lock = threading.Lock()

    def __call__(cls, *args, **kwargs):
        if cls not in cls._instances:
            with cls._lock:
                if cls not in cls._instances:
                    cls._instances[cls] = super(_Singleton, cls).__call__(*args, **kwargs)
        return cls._instances[cls]


class Singleton(_Singleton('SingletonMeta', (object,), {})):
    pass
versed sorrel
#

threading is great

#

in python you have lists instead of arrays,
or just numpy.array()

fresh python
#
mylist = ["apple", "banana", "cherry"]
chilly dragon
#

Greetings!

#

Enjoying the chat

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.

chilly dragon
#

unfortunately I do not have a microphone

#

I'm actively working on migrating UWSGI to ASGI proxy server

wind raptor
#

!stream 402558845563568128

wise cargoBOT
#

βœ… @fresh python can now stream until <t:1657974444:f>.

versed sorrel
#

"twisted thing" =]

chilly dragon
#

i use pyenv πŸ˜†

versed sorrel
#

I'm also on vscode/code-oss like Mido

somber heath
#

Nest all the things!

chilly dragon
#

I Switched to Fast then I switched to Starlette

#

Now I regret switching at all! πŸ˜†

#

pip freeze > /path/to/requirements.txt will save your depencdencies as well

versed sorrel
#

no, doesn't matter

#

flag can be on both sides

chilly dragon
#

debug=True

wind raptor
#

export FLASK_ENV=development

autumn forge
#

dont name folder with upcase

chilly dragon
#
  python:
    image: python:latest
    volumes:
      - ./path/to/python_app:/python_app
    command: ["python","/python_app/app.py"]
    ports:
      - 9000:9000

Change configurations to match your machine. @fresh python

#

@wind raptor ^

#

😭 I don't have a microphone

autumn forge
#

models, not model πŸ˜„

chilly dragon
#

move the app.py into the src directory

#

well you moved EVERYTHING into src not sure if that will work now

#

change the src directory name into docker_python

#

yes

#

now include all python related stuff in a new src folder

#

leave the docker-compose out side ther src

#

The docker-compose will mount the src into the docker environment

#

just move app.py, config.py and requirements.txt into the src directory

#

perfect

#

pycache should be ignored

#

.venv should later be placed outside your project.. but no worries for now

#

wait

#

your python will fail

#

Modify the docker -compose

#

right

#

Delete that new path/to/python_app dir path

autumn forge
#

volumn not right in docker-compose

#

yup, should edit it

#

you see path folder because of not editing in docker compose

chilly dragon
#

Docker created /path/to/python_app when you needed to modify the docker compose

#

@fresh python

autumn forge
#

docker exec container and delete path folder from inside docker πŸ˜„

chilly dragon
#

No

#

He is on his host machine

#

run docker-compose down to stop all services

#

open docker-compose.yaml

#

change .

#

change . into /src

#

sorry ./src

#

That will mount that volume into the python docker container environment

#

Oh!

#

Your I thought your docker- compose ymal file was inside the docker-python folder

#

right

trail oasis
#

hey sorry to interrupt, is this a flask proj?

chilly dragon
#

move the src up one level

#

no

autumn forge
#

no

chilly dragon
#
  1. Delete that
autumn forge
#

./docker-python/src

chilly dragon
#
  1. Move the real src up one OR use @autumn forge suggestion
#

No wait

#

i don't undrstand your dir structure

fresh python
#

hahahah

autumn forge
#

you are stand in docker_python folder, because docker-compose file in this folder πŸ˜„

#

you can delete docker_python

#

and run it again

chilly dragon
#

WaIT!!!!

autumn forge
#

wait

chilly dragon
#

line 12

autumn forge
#

revert into ./src in docker-compose

chilly dragon
#

PERFECTO

autumn forge
#

hhhhh

chilly dragon
#

visit http://localhost:9000

autumn forge
#

you need to figure out volumn in docker

chilly dragon
#

What port is your python app running on?

#

πŸ˜†

#

Wait, Screw the Tutorial

#

Were in the Dumpster now

fresh python
#

hahaha

autumn forge
#

cool man πŸ˜„

chilly dragon
#

Stop the Tutorial