#voice-chat-text-0

1 messages · Page 290 of 1

vocal basin
#

mdbook is what Rust book is built with

#

open-source alternative to gitbook

#

(gitbook used to be open-source but not anymore, afaik)

urban abyss
#

we do use 3rd party doc viewers that would support this most likely.

vocal basin
#

Rust's designed specifically to be reliable in terms of upgrades through time too

urban abyss
#

i've had the rust book sat next to me for months, should probably crack it open some time

vocal basin
dire pebble
#

@vocal basin Just a simple eval() function solved that problem btw, I just didn't know that.

vocal basin
#

eval is unsafe somewhat

#

and unpredictable

dire pebble
vocal basin
#

arbitrary code execution

#

eh

#

I forgot what ast thing was called

#

!d ast.literal_eval

wise cargoBOT
#

ast.literal_eval(node_or_string)```
Evaluate an expression node or a string containing only a Python literal or container display. The string or node provided may only consist of the following Python literal structures: strings, bytes, numbers, tuples, lists, dicts, sets, booleans, `None` and `Ellipsis`.

This can be used for evaluating strings containing Python values without the need to parse the values oneself. It is not capable of evaluating arbitrarily complex expressions, for example involving operators or indexing.
vocal basin
urban abyss
dire pebble
rugged root
vocal basin
#

!e

eval("print(5)")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

5
vocal basin
#

!e

import ast
ast.literal_eval("print(5)")
wise cargoBOT
#

@vocal basin :x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     ast.literal_eval("print(5)")
004 |   File "/lang/python/default/lib/python3.12/ast.py", line 112, in literal_eval
005 |     return _convert(node_or_string)
006 |            ^^^^^^^^^^^^^^^^^^^^^^^^
007 |   File "/lang/python/default/lib/python3.12/ast.py", line 111, in _convert
008 |     return _convert_signed_num(node)
009 |            ^^^^^^^^^^^^^^^^^^^^^^^^^
010 |   File "/lang/python/default/lib/python3.12/ast.py", line 85, in _convert_signed_num
011 |     return _convert_num(node)
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/GPUIFOKX2KM5P2GTF5AU6JCGR4

dire pebble
vocal basin
#

!e

import ast
ast.literal_eval("5")
rugged root
#

@near smelt We're here.

wise cargoBOT
#

@vocal basin :warning: Your 3.12 eval job has completed with return code 0.

[No output]
rugged root
#

I'm just back to being Mutelock since my co-worker is back here

vocal basin
dire pebble
rugged root
#

Yeah normally I'm talking everyone's ears off but yeah

dire pebble
#

Also what do you define as a problem?

rugged root
#

@amber raptor Rein it back old man

#

@terse needle Sup brah

vocal basin
#
eval("steal_passwords()")

^ probably a problem

terse needle
#

hey

rugged root
#

@near smelt The PyDis Podcast

#

Where who the fuck knows what we're going to talk about

#

Oh I'm just saying VC

#

It can be.... interesting here

dire pebble
rugged root
#

Normally I would be talking

#

You just happened to hop on when my co-worker showed up

terse needle
vocal basin
rugged root
#

True dat

#

Nah, not like that

#

I just don't like being rude and talking when they're here

vocal basin
#
eval("steal_passwords()") # calls steal_passwords()
ast.literal_eval("steal_passwords()") # raises an exception
stark river
#

i'm guessing the method only allows literals not functions

dire pebble
rugged root
#

Okay that's actually really cool KJ

terse needle
rugged root
#

Lisp is a language

#

Or

#

Yeah family that's what I meant

stark river
#

how big are your monads?

vocal basin
#

JavaScript is Lisp

dire pebble
rugged root
#

@terse needle Okay that's actually really elegant looking

#

Props

#

But ah

#

It's unpure, sooooooooooooooo

#

Have to take marks off for that

terse needle
#

it's a bitch to read but at least it looks nice

rugged root
#

Eh not that bad to read

#

I might just be getting too used to it, though

#

@urban abyss Your typin's coming through

#

I will end you

terse needle
rugged root
#

Is Krisp on?

#

Weird

urban abyss
#

keychron q1

rugged root
terse needle
# terse needle IO is kind of impure but we just consider that the IO monad changes the state of...

One way of viewing the IO monad is to consider IO a as a computation which provides a value of type a while changing the state of the world by doing input and output. Obviously, you cannot literally set the state of the world; it is hidden from you, as the IO functor is abstract (that is, you cannot dig into it to see the underlying values, a situation unlike what we have seen in the case of Maybe).
https://en.wikibooks.org/wiki/Haskell/Understanding_monads/IO

rugged root
#

@whole bear Space ships?

terse needle
rugged root
#

I legit didn't hear

#

Ohhhh

#

In fairness, phase shifts sounds even more sci-fi

terse needle
whole bear
rugged root
#

Oh speaking of space ships...

#
terse needle
#

yeah it's cool, I use it

vocal basin
rugged root
#

Fair

#

What is?

#

@amber raptor What was deliberate?

amber raptor
#

Microsoft 2FA handling

rugged root
#

@upper basin That's the one I was more familiar with

#

When it shifts between the different states of matter based on pressure and temp

#

Makes sense

#

That's anything

#

New terminology always trips stuff up

#

Whelp, my curiosity is going into stupid stuff again

#

Looking to see what shells work on windows

#

Like PowerShell does obviously

#

But curious about other ones

#

Things like Fish or bash, etc.

#

Yep

#

It's great

#

It's my goto on Linux

#

Yeah same actually

#

Oh dear god, I just realized what font they used on the site

#

Magnificent bastards

#

Comic Sans

#

But yeah, Fish is my fave

#

I probably won't replace powershell because I also love it

#

But I'm just curious now

#

Yeah, most of what I'm seeing is "Well you'd be using those in WSL, Cygwin, or MSYS2"

#

(not back yet, lots of folks asking me things at work)

stark river
#

😦 i need to make flatbread n i'm out of dough

rugged root
#

Like

#

Money dough or bread dough

stark river
#

real actual dough

rugged root
#

That's unfortunate

stuck furnace
terse needle
#

like CIDER just fucking works for me

rugged root
#

It is tasty

terse needle
#

SLY is so tempermental

terse needle
#

stouts >

urban abyss
#

bitter > all

rugged root
#

I just like things that taste good. I want to enjoy my drink as opposed to have to acquire a taste for it

terse needle
urban abyss
#

acquiring a taste for something is awesome though, imagine overcoming something that tastes like ass through sheel will

terse needle
urban abyss
#

i'm not sure tbh 😄

#

fuck tonic water, taste like dusty tv static

rugged root
#

But I didn't even really acquire it, I always liked it

terse needle
rugged root
#

But I also love gin and tonics

urban abyss
gentle flint
#

I do it too

#

liked it right away

urban abyss
#

olives is one i'm overcoming

gentle flint
#

immediately acquired taste

rugged root
#

It glows under a blacklight

#

Tonic I mean

urban abyss
#

so do i

rugged root
#

HA

gentle flint
rugged root
#

I can't do olives

#

Or if I do it's begrudgingly

urban abyss
rugged root
#

If it's the only pizza there, I'll eat it

gentle flint
#

I like olive pizzas

#

and olives in tuna salad

rugged root
#

Not huge on tuna

terse needle
rugged root
#

Potato salad, however

#

I will fucking destroy it

gentle flint
#

what's your opinion on capers @rugged root

urban abyss
#

i have friends that have cucumber on their pizza

rugged root
#

Can't remember what those are

gentle flint
rugged root
#

@still herald Sup

terse needle
urban abyss
#

ikr

rugged root
#

@upper basin Wrong person

urban abyss
#

ex friends

gentle flint
stuck furnace
rugged root
urban abyss
#

aperol is an instantly acquired taste for me

#

so good

vocal basin
#

amazing seeing "access denied" when trying to read an article starting with "why you can't"

gentle flint
stuck furnace
gentle flint
#

when pure quinine sweets

vocal basin
stuck furnace
#

Which I guess makes sense evolutionarily, because as you get older you can rely more on experience to decide what's safe to eat 🤔

gentle flint
#

I really don't recommend it

terse needle
gentle flint
#

I speak from personal experience

vocal basin
urban abyss
#

baby corn is the worst

#

makes my nose hurt

gentle flint
urban abyss
#

in before "don't put it in your nose"

terse needle
urban abyss
#

ha

terse needle
urban abyss
#

gottem

gentle flint
urban abyss
#

elderflower is gross also

vocal basin
terse needle
#

nah its fine

vocal basin
whole bear
urban abyss
#

do people eat the 99% shit?? that's for putting in cakes and chilli imo

rugged root
#

Oh the tree bark?

dire pebble
#

How can I have permission to share my screen?

rugged root
#

Just have to ask. At first, it's on an as needed basis

#

Then as we get more comfortable with folks we'll give them a 3 week probationary period where they have the perm for that amount of time. After that, if they've shown to be responsible, they'll get perma

vocal basin
urban abyss
#

lol

rugged root
#

@still herald It takes practice

#

Writing it out, and by that I mean on paper, can sometimes help

#

Actually sketching out the process and what all you have to deal with

#

That might just be me, though

rugged root
#

Pretty much the defacto, yeah

#

@still herald You're learning, you're growing. And everyone is always still learning

#

There's always going to be things you don't know

#

I'm finding out new crap daily

upper basin
#

It's like an unlimited game.

#

You can grind achievements until the end.

rugged root
#

Screw the achievements

#

I'm here for the gameplay/learning

urban abyss
#

opinions on my doctor script interface? readable enough?

(.venv) root@960b00c9c633:/repo# ./repo-doctor
[✓] Developer setup
[✓] Pip PyPI config
[✓] Artifactory: connected and authenticated
[✓] Build system: installed
[✓] Supported platform: ubuntu x86_64
[✓] ubuntu version: 22.04
[✓] Build system version: 2.17.0
[✓] Python on PATH: python3 python3.9 python3.10
 ↳  python3: /repo/.venv/bin/python3 (3.9.18)
 ↳  python3.9: /repo/.venv/bin/python3.9 (3.9.18)
 ↳  python3.10: /usr/bin/python3.10 (3.10.12)
 ↳  python3.11: /usr/bin/homebrew/python3.11 (3.11.18)
[✓] Python (Linux): 3.10 (default) 3.9 
[✓] Build system PyPI config
[✓] private_py_bindings: Found 898 available versions via priv PyPI. Latest: 129.0.0rc1, Latest release: 123.10.0
[✓] .netrc config
[x] .env
 ↳  Cannot find file '.env' - this may cause issues with Python imports in VSCode and Jupyter Notebooks
    Generate the .env file by running: ./build-support/generate_dotenv.sh
[x] Pyenv: not installed (optional)
 ↳  Pyenv is not installed. Install it by following: https://docs.atlassian.net/l/cp/z023F4D9f1"
Finished! All requested checks have been run.
rugged root
#

I like it. Do you have those colored?

#

That'd help with clarity

#

Even if it's just making the checks green and the x's red

urban abyss
#

color is WIP 😎

rugged root
#

Good good

#

Beyond that it looks clean

whole bear
#

oh that's nice

urban abyss
#

ty

rugged root
#

private_py_bindings: Found 898 available versions via priv PyPI. Latest: 129.0.0rc1, Latest release: 123.10.0
Does latest mean latest on the system?

urban abyss
#

no it doesn't but our release process is borked at the mo, so ignore that 😆

upper basin
#

I CLEAN data, don't mess with me!!

rugged root
#

Was it more just about the general layout?

urban abyss
#

when i joined this place they spent so much time fixing environmental issues, so I just wrote checks for everything and automated the fixes or pointed to relevant fix in docs

#

aye just general layout and readability

rugged root
#

Right right

urban abyss
#

now we're finally getting to the point of supporting a strict minimal set of environments so this ideally won't be needed

#

but it makes deployment testing easy

rugged root
#

Gotta start somewhere

urban abyss
#

i had a really funny moment in the slack channel for the build system i used where somebody else mentioned they had to write an almost identical check script, so we shared with eachother 😆

rugged root
#

Niiiiiice

urban abyss
#

both too polite

upper basin
#

"No you hang up first!"

rugged root
#

"No you hang up" "No YOU hang up" "No YOU hang up"

upper basin
#

HEHEHEEHE

rugged root
#

Great minds

upper basin
#

Think alike

urban abyss
#

sentences

rugged root
#

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

rugged root
#

Just getting the link

#

Doing codeine jobs

urban abyss
#

i love codiene

rugged root
#

And it loves you

still herald
rugged root
#

Not in this case, no

#

Codeine is an opioid pain reliever used to treat mild to moderately severe pain.

stark river
#

codiene 🫶

rugged root
#

It was meant to be a dumb pun

still herald
#

cocaine🫶

rugged root
#

That'll tell you what you need to know about the voice gate

#

@stark river We're getting static from your mic

stark river
#

every year yelp releases its 25GB dataset

rugged root
#

My brain is breaking this into SQL tables, and I'm trying to figure out if that's way overkill

peak depot
stark river
#

no need. just cast to pandas df

rugged root
#

Fair point

willow gate
mossy glade
#

use ctrl + f and select Use regular expression and then use this:
"""(.|\n)*?"""

willow gate
rugged root
#

!d collections.Counter

wise cargoBOT
#

class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):

```py
>>> c = Counter()                           # a new, empty counter
>>> c = Counter('gallahad')                 # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2})      # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8)             # a new counter from keyword args
surreal grove
#

My Life as a Software Engineer/Computer Science Student 🖥️

Hey everyone! Welcome back to my channel. In this video, I'm taking you behind the scenes of my life as a software engineer and computer science student. From late-night coding sessions to the thrill of solving complex algorithms, I'll share the highs, the lows, and everything in betwee...

▶ Play video
vocal basin
willow gate
rugged root
#

I'd never even heard of it

vocal basin
#

same reasons why smtpjs is unsafe

surreal grove
willow gate
#

i use smtplib library to send mail but it not work

willow gate
vocal basin
willow gate
vocal basin
#

you must not do that from the browser

#

as for smptlib:
are you sending via gmail?

#

or what service?

#

whatever you're using likely doesn't allow password authentication

#

you'll need API keys

willow gate
#

in email js i am reciving link from server but the data is not get avavible to email

vocal basin
#

I don't remember if gmail still supports sending email via smtp

#

can't find the article they used to have on it

willow gate
#

i just want to send the tweet link on gmail

vocal basin
#

to yourself or to users?

willow gate
#

i am using flask

vocal basin
#

yeah, that's a subscription service -- not trivial to implement

rugged root
#

I'm back to being Typelock

#

Co-worker is back

vocal basin
#

it may be better to rely on an existing service that specialises on mass-sending

#

mass-sending being over 10

upper basin
rugged root
#

@still herald Life is more fulfilling when you've earned it for yourself

vocal basin
#

also you already have a mechanism for subscriptions: twitter

whole bear
#

Hi everyone

rugged root
#

When things are just handed to you, then nothing has flavor

vocal basin
#

for now it's probably a reasonable assumptions that users will follow there

willow gate
stark river
#

is jared the son or the son in law?

rugged root
#

Jared's the son in law

vocal basin
#

free gmail daily limit is 100, unless you want to expose all user emails to all other users

rugged root
#

@frozen owl Sup

frozen owl
#

sup

#

NOOOOOOOOO

#

MY COLOUR IS GONE

#

as a proud member of team tuple

vocal basin
frozen owl
stark river
#

tuples 🫶

frozen owl
#

LOVE TUPLES

#

what team are you on

vocal basin
frozen owl
#

(for the python discord april fools event)

willow gate
vocal basin
willow gate
#

i will later think to deploy it

rugged root
#

Are mail gun and mail chimp still good options?

willow gate
vocal basin
#

daily

willow gate
rugged root
#

@upper basin Converting it into a dataframe will give more control

#

But yeah.. maybe we should go simple first

frozen owl
#

(things might have changed since but yeah)

#

so it's easier to do it directly on a df

rugged root
#

Fo sho

frozen owl
#

i personally dont like pandas but i think i know how to use it

#

thank my ml courses lol

#

it was so tempting to skip over those

#

but to this day idk how to use matplotlib properly

rugged root
#

What's wrong with Pandas?

vocal basin
#

better questions is why deque isn't Deque

frozen owl
#

numpy is mid

rugged root
frozen owl
rugged root
#

Right but what do you think those use under the hood

vocal basin
frozen owl
#

true

rugged root
#

@willow light Sup

frozen owl
#

also, for my use case, polars was too slow

#

i know, it's supposed to be fast

#

but still

willow light
#

trying to figure out how to take some of the items in my resume and rewrite it in the type of evasive doublespeak neurotypicals seem to like

willow gate
vocal basin
#

don't use emailjs

rugged root
#

@still herald It helps knowing people are there

#

It's comforting

vocal basin
#

don't send mail from web browser -- it never ends well

rugged root
#

I'm the same way

#

@frozen owl Curse Bless you

frozen owl
#

thank you

willow gate
vocal basin
vocal basin
wise cargoBOT
#

Source code: Lib/smtplib.py

The smtplib module defines an SMTP client session object that can be used to send mail to any internet machine with an SMTP or ESMTP listener daemon. For details of SMTP and ESMTP operation, consult RFC 821 (Simple Mail Transfer Protocol) and RFC 1869 (SMTP Service Extensions).

Availability: not Emscripten, not WASI.

This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly platforms for more information.

vocal basin
#

or whatever you tried to use

#

better debug that

#

if there are login errors -- that's a separate question

rugged root
#

@upper basin Later bud

willow gate
vocal basin
#

what do you mean by "it didn't work?"

rugged root
#

@still herald That he what?

fallen lantern
#

hello

rugged root
#

Maybe it's just what he does?

#

Yo

#

@still herald I'm here, but I just can't talk outloud

#

Remember the patience thing?

#

Maybe that's just what he does to keep his DMs clean?

#

I assure you he didn't do that out of rudeness

#

He's not that kind of person

willow gate
rugged root
#

Sorry not sorry

vocal basin
#

username/password normally don't work

#

you need to either set up API keys or enable password auth

willow light
#

Wtf why is that blocked?

#

Hemlock, why is nohello blocked?

rugged root
#

Because it's a dick thing to send

old otter
#

don't you get a message from the bot explaining why it's blocked?

rugged root
#

People would reply to people here with that only

willow light
#

I was sending it as an example, but okay

rugged root
#

In fairness, he was going to send it to me because joke

#

Yeah

willow light
#

But I guess I'm not allowed to explain Slack etiquette

rugged root
#

It's not targeted at you, clari

#

Chill

willow light
#

Just months worth of on-call trauma hitting all at once

rugged root
#

There there

old otter
rugged root
#

It does

willow light
#

Human only in my DMs

rugged root
#

O....kay?

willow light
#

Side effect of being spammed with crypto bots a few years ago

rugged root
#

Sure, but the Python bot isn't that

willow gate
vocal basin
#

the problem isn't with smtplib

#

it's with how you try to login

willow light
#

Okay I unblocked the bot, let's try this again

old otter
#

well, it's pretty unwise to block @wise cargo and @rapid crown. We use those bots to reach out to users about problematic behaviors before escalating to mutes or bans. If people don't give the moderation team a way to privately reach out to them, the first they find out about a problem might be a mute or a ban.

willow light
#

"You're using a blocked domain"

Okay, that tells me nothing. Now draw the rest of the fucking owl.

rugged root
#

Clari...

old otter
#

mm, that's not a great explanation indeed...

rugged root
#

Chill

#

Let it go

rugged root
wise cargoBOT
#

flask_mail.py line 18

import smtplib```
frozen owl
#

lmao just send morse code next time

#

0 hassle

willow light
#

morse code has plenty of hassle during carrington events

rugged root
#

The hell's a carrington event

willow light
#

ever hear about the people who got electrocuted by the telegraph terminals during the last one?

old otter
#

was that the solar flare thing?

willow light
rugged root
#

@still herald I mean, yes. Ideally we don't treat other people poorly

#

@still herald Get over that prejudice about age. There's plenty of people younger here that know way more

#

Trust me

#

Soooo trust me

fallen lantern
#

why i cant talk?

frozen owl
#

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

rugged root
#

See the #voice-verification channel, that'll tell you what you need to know about the voice gate

fallen lantern
#

thx

rugged root
#

@frozen owl You need patience too

willow light
#

oh cool no link preview

rugged root
#

You're both so high strung, jesus

frozen owl
#

whats dat

rugged root
#

High strung?

frozen owl
#

im not "easily upset"

#

google is sad

#

me sad

#

big sad

willow light
#

You think they're high strung? I'm off my meds today lol

rugged root
#

Not easily upset, more just intense

#

@still herald What happened?

#

We hear you

frozen owl
#

HAHAHAHAHHAHAHA i slept at 2 last night

rugged root
#

You're just speaking quietly

frozen owl
#

im 100% in US timezones fr

rugged root
#

@still herald We could hear you

willow light
rugged root
#

Patience

willow light
#

Ah that one worked

frozen owl
#

mailchimp

old otter
#

interestingly, in the US, discriminating based on someone being too old is illegal, but discriminating based on someone being too young is not

frozen owl
#

NOOOOOOO

#

the reason why i cant join RL research groups

stark river
frozen owl
#

"it's for grown ups sorry"

frozen owl
#

4 hours behind

willow light
#

however, discriminating based on an invisible disabilty, while illegal, is still almost impossible to prove.

#

"he's just lazy, he doesn't want to come into the office" yes because the office is sensory hell so I cannot get anything done

still herald
#

Do you guys know each other?

rugged root
#

Only through here

still herald
#

No one is replying to me

rugged root
#

Not in person

#

I was

still herald
#

Oh

still herald
willow light
#

winter i can hear you but i wasn't responding because i had no responses

rugged root
#

Just have patience, people tend to talk over or don't respond if they don't have much to say

#

We're not slighting you

still herald
#

Okie

#

France has bland food

whole bear
#

Guyz you all are so good in coding

still herald
#

Yeah

#

Yeah I do

rugged root
still herald
rugged root
#

@stark river Water

still herald
#

Yooooooo

stark river
#

water is not a sauce

whole bear
rugged root
still herald
#

Mic drop @willow light

rugged root
#

HA

whole bear
rugged root
#

@willow light Again, water

#

It counts

#

If you're broke, it's sauce

whole bear
#

Which one

rugged root
#

Water

still herald
#

Yeah like cooking the meat and using its own juice to make the sauce with cream or stock or wine

stark river
stark river
#

they added sugar to water too

whole bear
stark river
#

couldn't stand anything without sugar

still herald
#

It's not sugar it's mostly balsamic vinegar

#

Dumb

willow light
#

balsamic vinegar has sugar in it

still herald
#

Yeah

willow light
#

anything derived from plants has some level of sugar

rugged root
#

Please stop telling people to shut up. There's no need to be rude

#

Eh

still herald
#

Sorry

#

My bad

rugged root
#

I prefer for people to learn than get infracted

still herald
#

You can say shut up to me once

#

Sorry dude @stark river

rugged root
#

I want to encourage people to have better behavior.

still herald
rugged root
#

I'm fixed, so no kids for me

still herald
#

Wym by fixed?

stark river
#

fixed

willow gate
willow light
#

I need to get fixed tbh

rugged root
#

I couldn't justify having a kid that would have my genes with all the mental health stuff I have going on. I couldn't put a kid through that

willow light
#

I don't plan on having kids anyway

#

Same reason

rugged root
willow light
#

Also, having kids in a world like this is probably child abuse by default

still herald
#

Well I want to have kids for sure

willow light
#

Kids are annoying. I would love a quiet flight just once in my life.

rugged root
#

Mine wasn't out of a lack of love, just couldn't mentally justify it

stark river
#

i would get fixed... but i'm so anti surgery

rugged root
still herald
stark river
#

it's surgery

rugged root
#

Localized numbing, you're out in like an hour

#

It's barely surgery

willow light
#

I would be anti-surgery, but that ship sailed a long time ago

stark river
#

do they take a scalpel?

#

then it's surgery

still herald
#

Omg

rugged root
still herald
#

Oh

#

K

#

@rugged root you would love your own kids believe me

rugged root
#

Not doubting that

willow light
#

I would much prefer being a cool uncle than risk being a bad father.

dim gorge
#

^

#

nah fr

#

You can let them do what they want and still protect them ngl

frozen owl
#

sweet child o mine

rugged root
#

There are kids that need to be adopted, that don't have homes, that need someone to care for them

frozen owl
#

imagine having enemies when you are popcat

rugged root
#

I don't see a purpose of having a kid of my own genes

#

Exactly

#

@still herald It is when there's a possibilty of passing on my crippling depression, anxeity, etc. to a kid

#

@willow light Lobster hands?

#

Defeated by rubber bands

#

Oh for sure

#

They're crazy strong bands

#

Potentially

#

Pinch

#

@near smelt Sup

still herald
rugged root
#

Sure, no argument there

#

But I was simply saying why I didn't want to have my own kid

#

A miniature version of me is not desirable

frozen owl
#

popcat > poopcat?

willow light
#

Adopting is better, there are people who need help.

rugged root
#

Yep

frozen owl
#

apparently hong kong is STILL number 1 for popcat

willow light
#

I would have kids if there were no people needing help, and that includes me.

rugged root
#

@still herald We're all different with different desires

#

I respect your want for kids, I just don't want that

frozen owl
rugged root
#

I respect it

#

Wait what?

vocal basin
#

want people to get kids => get governments to make life easier for kids and parents not at expense of everyone else

rugged root
#

@still herald I'm sure they'll be great

#

Seriously

frozen owl
willow light
#

Ok i'll type then

rugged root
#

@still herald They're likely still young?

#

Just a smidge older

willow light
#

In the so-called third world countries there is a much stronger sense of community than in America, where we worship isolation.

#

So the needs for supporting a family are less there.

frozen owl
#

organic vs mechanical solidarity? i dunno

#

sociology moment

rugged root
#

You guys are my family and kids

willow light
#

This is one of the few cases where organic is cheaper.

rugged root
#

If I can help people learn and grow, then that's what I care about

frozen owl
#

ie me

#

am popcat

willow light
#

I am a people pleaser, I cannot raise a child with my current problems.

rugged root
#

Yes ALKK

frozen owl
willow light
#

What about a raven?

rugged root
#

@whole bear Still way more than I make

still herald
#

Goodnight guys
My battery is about to die

rugged root
#

Catch you later

still herald
#

I'll sleep

willow light
#

RIP Battery

near smelt
#

😴

#

sleep well

frozen owl
#

my macbook is always plugged in lol

#

it drains so quickly

rugged root
#

I think she said there was a power outage

willow light
#

from the earthquake or the noreaster?

rugged root
#

No idea

willow light
#

Hemlock did you feel the quake this morning?

rugged root
#

When

frozen owl
#

unhot take: company issued macbook pros are ssh machines

rugged root
#

I don't think I've ever felt one here

frozen owl
rugged root
#

@near smelt That's why I help folks here

willow light
#

I meant the one this morning in New Jersey

frozen owl
#

so yeah there must be a second earthquake elsewhere in teh world

stark river
#

can you ever feel a quake in the midwest?

rugged root
#

I'm hardly amazing, I help because it's fun

frozen owl
#

for every constructive earthquake there is a destructive earthquake

willow light
#

yes, oklahoma gets them on a regular basis due to fracking

frozen owl
#

so much geography

willow light
#

where i live we get earthquakes due to postglacial rebound

frozen owl
#

i like how i take social sciences rn but by september it's gonna be double maths cs and physics ready for uni

rugged root
#

Good reason

#

I don't know

#

@mild quartz Sup brah

mild quartz
#

sup

frozen owl
#

YOOO DUDE

#

ttyl dinner time

willow light
#

social sciences are soooo underrated

#

i wish i took more of them

mild quartz
#

@near smelt your mic has pretty bad static

willow light
#

I think he has me muted given how many times he talked over me midsentence

#

either that or my mic broke

rugged root
#

We could hear you

willow light
#

interesting

rugged root
#

Word

mild quartz
#

it shouldnt be allowed to have ppl muted and talk over them

#

either the person should be banned from chat

frozen owl
rugged root
#

Yeah I'm starting to think that

mild quartz
#

or you should have to listen to them

willow light
#

This is getting annoying

frozen owl
#

And music if that counts

#

(Was just analysing Beethoven pathétique)

rugged root
#

@stark river Its disruptive when people have others muted

#

It causes a lot of people getting talked over and just general noise

stark river
#

i have my reasons for muting people

willow light
#

I just don't like being talked over midsentence, and D2S has been doing that since he joined the call.

rugged root
#

I get that, but then turn their volume low

#

So you at least know when they're talking to prevent the cross talk

vocal basin
frozen owl
#

Anokhi have you blocked me

#

I can’t seem to react to your msg

willow light
#

I only have one person muted on here but that's because he makes a point out of specifically insulting me in particular.

mild quartz
#

yeah

willow light
#

and never shows up on vc

stark river
mild quartz
#

i dont remember why

frozen owl
#

Please can you kindly unblock lol (and if you want, accept my friend request pls)

rugged root
#

@near smelt I know you have your reasons, but can you unmute Clari? You can turn him down to zero on your end, but it at least lets you know when he's talking so that we don't have cross talk issues

mild quartz
#

hmm thats probably why

willow light
#

no i'm heading to vc1, i'm done

frozen owl
rugged root
#

It happens

#

But I think Anokhi's right, I might make that a policy

mild quartz
#

@frozen owl unblocked

#

i dont remember why it blocked, might have been an accident

stark river
#

no Anokhi's wrong

near smelt
#

@willow light Please come back, my apologies. I don't know why I have you muted

frozen owl
#

Yay :D

willow gate
#

@near smelt typing speed?

rugged root
#

It's disruptive

willow light
#

and it is very annoying to the person who keeps getting interrupted and ignored. i get that enough from my former coworkers.

rugged root
#

You may not agree about having to have someone unmuted, but you have to at least agree that it almost always causes confusion and disruption

#

@willow light It's been rectified

rugged root
#

All good

near smelt
#

I genuinely don't know why u were muted

vocal basin
# vocal basin yeah but you don't talk *that much* in VC

like
want to talk for a long time and not just a short response => unmute everyone, talk, mute back;
even if you really don't like them and want to interrupt them, still remember: you're being talked over too just like them

willow gate
#

i aslo stop playing

near smelt
willow gate
# near smelt why

don't have much time also the new updates make it more bore like i was playing from 5-6 years

rugged root
#

Then turn their volume down low so you can at least see their light

#

Like I'm not asking people to listen to them, just know when the other person is speaking at the very least

#

Again I get the frustration

stark river
#

ok we could give it a try... although ysk the green lights up even when ppl are muted

rugged root
#

Wait does it?

#

I.... did not know that

stark river
#

it does on the web app..

#

let me see on the phone

rugged root
#

It doesn't show the green circle on desktop

stark river
#

not on the phone

rugged root
#

That's bizarre

stark river
#

must be browser only

rugged root
#

My damn desk phone is rebooting and it's throwing my internet connection out of wack

#

Stupid phone pass-thru

#

Yeah if this phone reboots then it takes my net down for a bit

#

@near smelt I don't care so long as it's not like every other word

#

Which

#

Which position?

#

Oh I have no idea

dim gorge
rugged root
#

I'm not affiliated with them

#

Or rather the server isn't

#

Nope, we're independant

#

We've done stuff with them, mind you

#

That pays for itself

#

I'll be back in a bit

willow gate
#

@dry lake

random copper
#

Anyone know how to make libs?

lavish rover
#

what particularly about making libs?

#

libraries are really just code that you can import, not particularly different from "not libs" code

wise loom
lavish rover
#

everywhere

wise loom
lavish rover
#

you don't have to write anything

#

they just serve as markers for a package, depending on what you're doing the library can just involve importing whichever file you want

scarlet halo
#

hey sazk

vocal basin
#

"I can finally sign all the bad code so I won't be able to say it wasn't me who wrote it"

#

@lavish rover well, depends on the region

#

"when are you not working on a ray tracer?"

#

@shrewd ibex have you looked into ZeroMQ yet? quite useful experience for understanding just how powerful socket APIs can be

oblique hollow
#

hi

vocal basin
shrewd ibex
#

I did before when I made that chat app

#

though

vocal basin
#

I wouldn't call ZeroMQ entirely low-level

shrewd ibex
#

wow

vocal basin
#

@jade badger slightly adjusted version of minesweeper

#

it's PvP

#

yeah, it's based on that

#

but with timers and premoves

vocal basin
#

yeah, 1.5 years later than it got released

#

before that used whatever chat thing Curse had

jade badger
vocal basin
#

it was never used

#

it was a library for another mod

#

but we never integrated it

#

because of packaging/bundling issues

#

I mostly do non-game stuff

#

lately was working on infrastructure software

vocal basin
#

similar to cloud

#

I was offered to work on drivers too but I didn't have enough experience with hardware

#

I don't remember what they exactly needed to integrate and where
(only that it was aarch64 system with some peripheral stuff)

#

yes

#

difficulties start when you need to cross-compile it

#

idk if their ToS allows that
(ed.: vc question about debugging iPhones)

#

(iOS's)

#

never worked with iPhones, but likely Apple do have their internal tools

willow gate
idle epoch
somber heath
#

@elder crater 👋

austere hornet
austere hornet
#

Them me?

elder crater
#

Thank you *

dire pebble
elder crater
dry jasper
dire pebble
#

I mean the whole import

#

I wanna learn stuff

#

Then I wanna ask anything I see in general

#

To learn more thing

#

I'm beginner

dry jasper
#

do you have a specific question regarding importing? because its very straight forward

dry jasper
#

ast is the name of the library

#

can you join the voice chat?

idle epoch
austere hornet
#

Love this quote, no need to notice me:

"If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you."
- Zig Ziglar

willow gate
#

@somber heath hello

somber heath
#

@idle epoch I'm going to go fiddle with a thing.

idle epoch
dry jasper
willow gate
#

@idle epoch did you fix the error?

idle epoch
graceful kelp
#

What language is this btw

dry jasper
crude cargo
#

@somber heath my friend likes hearing u talk, chat w her Yes

somber heath
#

Programming-wise.

quaint oyster
#

girl interested in Opal's voice

#

Opal: "im throwing shit at the wall do u think itll stick?"

whole bear
#

Did not mean to reply here

stark river
#

not a C++ programmer?

lilac herald
#

why do I have to send 50 texts in order to speak lol

#

don't really want to spam so am I just here to observe lol

#

ah right that makes sense

#

I joined the server in 2021 lol

#

still haven't said anything here

#

right right

#

wait can I ask a question

#

about code

#

so like I just started learning python and am trying to understand some projects that other people have made

#

this is like the beginning segmant of a texas hold em game

#

card_values = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
suits = ["clubs", "diamonds", "hearts", "spades"]

face_cards = {
"J": 11,
"Q": 12,
"K": 13,
"A": 14,
11: "J",
12: "Q",
13: "K",
14: "A"
}

class Card:
def init(self, value, suit):
self.value = value
self.suit = suit

def generate_cards():
cards = []
for value in card_values:
for suit in suits:
if value in face_cards:
_card = Card(face_cards[value], suit)
else:
_card = Card(value, suit)
cards.append(_card)
return cards

cards = generate_cards()

#

I don't really know how to share this code other than just ctrl c and v sry

#

main question: is generate_cards() acting as a list or?

#

so cards is the list?

#

ah okok

#

ah that makes so much more sense

#

thx

quaint oyster
#

!pastebin

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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

lilac herald
#

ah yes hello my mute brother

quaint oyster
#

I'm not mute

lilac herald
#

I'm talking about Sandy

royal crown
#

wait this

lilac herald
#

yes

royal crown
#

hahaha

lilac herald
#

hello Sandy

royal crown
#

hello

lilac herald
#

we must make conversation

royal crown
#

anyone wanna help me with some code

lilac herald
#

so we can actually talk

quaint oyster
#

Sure

royal crown
#

k so should i send it to you privat or here

quaint oyster
#

U can send it in the pastebin here

#

So others can help too if I can't

royal crown
#

also i have been coding for 2 days no much

#

wait were

quaint oyster
#

!pastebin

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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

lilac herald
#

I am sending this message to send a message

quaint oyster
#

If it's small you can just copy paste

quaint oyster
royal crown
#

100 is a lot right

lilac herald
#

XD I won't lol

quaint oyster
#

100 lines is a lot yes

royal crown
#

k

quaint oyster
#

You can also just send the block u need help with

royal crown
#

so it dosent work i cant just copy it

quaint oyster
#

🤷

whole bear
#

Forgot to mention (had to google this) the _ in _card is a naming convention. It pretty much tells you that you’ll use this internally in the function.

royal crown
#

hello

#

i gotta go seeya

lilac herald
#

ohhh okok

#

thanks

somber heath
#

@vague steeple 👋

vague steeple
#

hello everyone

#

can ı ask a question about a module

#

fbprophet

#

no not facebook

#

it s a module can run with python

#

to estimate future price prediction of stocks currencies

somber heath
vague steeple
#

Allrighty thank you so much

somber heath
#

@rugged ember 👋

primal shadow
somber heath
#

!e ```py
def func(a, b):
b = (b - .5) % 1
return .5 - abs(a - b)

print(*[func(v / 10, 1) for v in range(11)])```

wise cargoBOT
#

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

0.0 0.09999999999999998 0.2 0.3 0.4 0.5 0.4 0.30000000000000004 0.19999999999999996 0.09999999999999998 0.0
somber heath
#

@idle epoch

#

This is what I was tinkering with

#

Shortest distance between two points around a circle, think 0-1 like 0-360

#

The furthest away two points can be from each other is halfway, .5, around the circle.

idle epoch
#

ah got it!

whole bear
somber heath
#

@whole bear 👋

#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

vestal mason
#
from django.shortcuts import render
from django.views.generic import TemplateView

# Create your views here.
class HomePageView(TemplateView):
    template_name = 'home.html'

class DashboardPageView(TemplateView):
    template_name = 'dashboard.html' 
#

def tile_one():
  return "response'
#
/ul>
                <div class="nav-item">
                    <a class="nav-link dropdown-toggle" href="#" id="userMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"  style="color: #ff8f00">
                        {{ user.username }}
                    </a>
                    <div class="dropdown-menu dropdown-menu-right" aria-labelledby="userMenu">
                        <a class="dropdown-item" href="{% url 'password_reset'%}">Change password</a>
                        
                        <div class="dropdown-divider"></div>

                        <form method="post" action="{% url 'logout' %}">
                            {% csrf_token %}
                            <button class="btn btn-link" type="submit"  style="color: #ff8f00">Log Out</button>
                        </form>
                    </div>
                </div>
            </ul>
forest zodiac
#
class HomePageView(TemplateView):
    template_name = "home.html"

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        context["latest_articles"] = Article.objects.all()[:5]
        return context
#

def some_view():
return render("template_name", context = {'a' : 1,})

somber heath
#

@loud sierra 👋

forest zodiac
somber heath
#

@sly timber 👋

sly timber
#

hey

surreal grove
#

Welcome to a day in the life of an 18-year-old full-stack developer, UK edition! Join me on this exhilarating journey as I navigate through the highs and lows of being a young coder in the bustling tech scene of the United Kingdom. From sunrise to sunset, witness the behind-the-scenes of my life as I tackle lines of code, attend meetings, collab...

▶ Play video
willow gate
#

where are you from

graceful kelp
#

lol

#

most populated?

crude cargo
#

@mild quartz my friend @graceful kelp ,loves ur voice alot blobgrimacing

graceful kelp
#

Tf?

royal crown
#

Romanze?

royal crown
#

thats what i saying

stark river
#

classes?

#

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

stark river
#

#

builtins internals

#

methods are functions.. functions that are defined inside classes are called methods

#

no i dont understand

#

for an absolute value just multiply the number by -1

#

you are passing the value via self

#

i'm not sure what you are talking about

#

internals work just like normal methods

#

__something__ is just a convention

#

if you are in vscode you can right click and go to definition

#

if you want to see the source code of __init__ you can also see it on the net.. just search for the right term.. e.g. __init__ source code python

royal crown
#

anyone know how i can put my python kivy app frome pc to phone so i can use it on my phone

obsidian dragon
#

hi

royal crown
#

hello

somber heath
#

@mint karma 👋

mint karma
#

ello

#

I am new to programming (I only ever did mini roblox stuff like 10 years ago) and I thought joining this would be good

#

I don't have a python interpreter in pycharm, how do I do thatttttttt sorry if I am not meant to ask for help here

upper basin
#

Then you can set it up in pycharm.

mint karma
#

Alright I did I assume I just need to link it now, I appreciate it

#

Just the first vid I am watching didnt cover that

#

Thank you

upper basin
#

Let us know if you need any help.

minor sapphire
#

Before:py def foo(): if this: return print("Hello") After: ```py
def bar():
if this:
return
def foo():
bar()
print("Hello")

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!

minor sapphire
#
if inside(445,125,495,175,mousex,mousey) and tools[0] != 0:
  ...
if inside(445,185,495,235,mousex,mousey) and tools[1] != 0:
  ...
royal crown
#

some one pleas epl me with this code if your willing to help pleas dm me

upper basin
#

We'll help if we can.

royal crown
#

k

#

i need hep with a random miser its effecting every thing also i m using kivy

noble solstice
#

Hola Guys!

somber heath
#

@upbeat plinth 👋

upper basin
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

royal crown
#

how dose this work

upper basin
#
def func(args):
  if inside(445,125,495,175,mousex,mousey) and tools[0] != 0: #is pickaxe clicked?
            clear_dice_prev()
            if tools[0] == 2:
                tools[0] = 1
                clear_toast()
                clear_selection()
                return
            
            play_sound_effect(sfx_on,sounds["toolselected"])
            if selcolor != 0:
                pit = [selcolor if elem==0 else elem for elem in pit]
                selcolor = 0
                canplace = False
                draw_pit()
            c.itemconfig(selected,image=tool_images["pickaxe"])
            tools = [1 if elem==2 else elem for elem in tools]
            tools[0] = 2
            toast("The Pickaxe clears the square you click on.")
            return
royal crown
#

how do i seend code like this

minor sapphire
#

l = [] l[1] = "h"

minor sapphire
primal shadow
#

```py
Enter code here
```

#

gotta use them backticks, normally above tab

#

The py isn't required, but enables syntax hylighting for python

hallow warren
#

"explicit is better than implicit"

List comprehensions have entered the chat.

stark river
#

👍

hallow warren
#

Whatcha workin' on?

stark river
#

C++

hallow warren
stark river
#

is that your site?

hallow warren
#

Nope but my students all use it

#

Because I REQUIRE it

stark river
#

so you get a commission for it

hallow warren
#

No way, they're ad supported and I have zilch<nil connections to them

dire pebble
#

@hallow warren Can I use a key from another dictionary to represent a value inside a list which is same as the value inside the dictionary where is the key from?

stark river
#
[{
    foo: "val",
    bar: "value",
}]
#

yes you can lookup values from a dict and append it to list

hallow warren
dire pebble
#
aDict = [{
    'foo': 1,
    'bar': "value",
}]

aList = ['a', 'b', 'value']

print(aList[1])

@hallow warren

stark river
#
aList.append(aDict[bar])
#

or was it aDict['bar'] idk i use js

#

!e

aDict = [{
    foo: 1,
    bar: "value",
}]

aList = ['a', 'b', 'value']

print(aList[1])
wise cargoBOT
#

@stark river :x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     foo: 1,
004 |     ^^^
005 | NameError: name 'foo' is not defined
gentle flint
#

"

stark river
#

!e

aDict = [{
    'foo': 1,
    'bar': "value",
}]

aList = ['a', 'b', 'value']

print(aList[1])
wise cargoBOT
#

@stark river :white_check_mark: Your 3.12 eval job has completed with return code 0.

b
stark river
#

but these two vars aDict and aList have no connection

hallow warren
stark river
#

if you want aList to lookup values from aDict
!e

aDict = [{
    foo: 1,
    bar: "value",
}]

aList = ['a', 'b']
aList.append(aDict['bar'])
print(aList)
gentle flint
stark river
#

smh.. it's a list

gentle flint
dry jasper
peak depot
#

Hi Plome and Annimo

gentle flint
#

hi milien