#ot1-perplexing-regexing

1 messages · Page 631 of 1

young shoal
#

those are justified

low chasm
#

huh?!?!

mild abyss
#

ha?

tardy rain
#

Yall think its funny but wait till you gotta deal with these people at work

#

haHA

tardy rain
#

Yes aboo, you not gonna work?

#

Are you a trustfund baby?

mild abyss
tardy rain
#

Aboo husbando when

low chasm
#

Whoop

long anchor
inland wolf
#

bruh

honest star
#

So it looks like my headset mic has officially died. What's a good brand/specific model for a usb mic?

#

@tame terrace I remember you might have some suggestions?

tame terrace
#

depends on the budget, I guess.

#

I don't use a USB one myself, so I'm not an expert.

honest star
#

Let's saaaay $100-ish?

#

mmmm, what are things I should look for in a mic? I'm seeing terminology like "single polar pattern" and other stuff that I'm not sure how to parse

tame terrace
#

possibly something like the Blue Yeti at that budget, although it has that distinct podcast sound.

#

maybe something by Røde if you wanna pay double that.

#

I also don't know what a single polar pattern is.

honest star
#

haha, okay at least I'm in good company in that regard then

thin cloak
#

Get an omni mike if you want it to pick up sound from all directions (recording a band) otherwise if the mike is for podcasting or video conferencing directional mics with 'single polar pattern' ok...Polar refers to the polar plot of the microphone pickup

shut ermine
#

me going into amazon and picking up the most generic xlr condenser microphone ever since they all pretty much sound the same and just vary on the interface lol

#

but yeah got a cardioid since im just using it to talk on the internet

gritty fractal
#

hiii @terse sluice

#

come alive!

#

rise!!!!

terse sluice
#

here we go again

gritty fractal
#

:(

young shoal
#

😳

vapid nymph
#

@terse sluice who's Audrey, I read your bio (and viewed the site) and now I'm curious why she's asking

young shoal
#

lol

vapid nymph
#

i have no idea who any of these people are except you

gritty fractal
#

im his owner

terse sluice
#

bruh

young shoal
#

cute! 😳

terse sluice
#

lmfao no thanks

terse sluice
vapid nymph
vapid nymph
#

it uses bright colors notlikeduck

terse sluice
#

ty ty

#

blame @gritty fractal for the color scheme

gritty fractal
#

:(

#

its cute

wraith hound
#

the pink looks nice wdym

vapid nymph
#

oh wait so they actually are audrey

gritty fractal
#

:D

graceful basin
#

it is quite lovely IMO

terse sluice
#

i need to maybe.. make an actual homepage one of these days

young shoal
#

the pink is nice

vapid nymph
wraith hound
#

it's a nice soft pink

#

not harsh

vapid nymph
#

this is pretty too tho

terse sluice
#

that is gross

vapid nymph
rough sapphire
#

yea the soft pink is way better

#

also, some padding here would be great

graceful basin
terse sluice
#

thank you! still a WIP though; i have a long list of features to implement

terse sluice
graceful basin
#

glad to see my questions are properly obscure

terse sluice
#

lol i had no clue for those questions

graceful basin
#

I doubt anyone does

#

the last one maybe someone could get, but the others, no chance lul.

#

I do like the auth

#

no passwords, just emails for a sign-in link

terse sluice
#

same here, passwordless is a nice feature of next auth

#

speaking of which, it is a great library

graceful basin
#

oh, is this in next.js?

terse sluice
#

yeppers

graceful basin
#

nice

#

that was the thing I was looking if I wanted a serious website

terse sluice
#

a definite recommend from me

#

next is a pretty nice framework on top of react

terse sluice
fair summit
#

Pillow

#

Is it that pillow that PIL?

#

Python Image Library? i don't remember

royal lakeBOT
#

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

vapid nymph
wraith hound
vapid nymph
#

!pypi PIL

royal lakeBOT
rough sapphire
#

.

#

,

#

;

#

'

dire siren
#

@rough sapphire um wtf are those

honest star
#

What's the recommended way to get SSL certs?

#

@bleak lintel there's like a 70% change you're shitposting ... but I do remember you recommending something recently

wraith hound
#

let's encrypt?

#

I think that's the right thing

terse sluice
#

yeah, let's encrypt

#

along with certbot!

honest star
#

alright sweet

bleak lintel
#

avoid zerossl

#

avoid paying for TLS unless you need a feature which you can only get through paying

#

if that is the case, evaluate if you need that feature

honest star
bleak lintel
#

LE is non-profit, ZeroSSL is very much for-profit and has shitty implementation

#

they've got to the position they are in with money

honest star
#

haha! I get closer to actually having a functional website

bleak lintel
#

winner

#

oh also

bleak lintel
#

use wildcards where you can

#

otherwise all your subdomains are out there

honest star
#

mmmmmm... can you elaborate?

#

so my domain is via CF, so I add wildcards in the DNS records?

bleak lintel
#

never treat wildcards as a security measure, that's security through obscurity, but it is an extra step and is easier for you

#

no no, in the certs

honest star
#

ooooooooooooooh

#

okay yeah

bleak lintel
#

TLS certificates have "subjects" which are the domains for which the certificate is valid

#

you can get jb3.dev, abc.jb3.dev and so on

#

or you can get jb3.dev & *.jb3.dev

#

which avoids you having to list off subdomains or create a new cert for every subdomain you add

honest star
#

okay nice will do

#

This is good, because I don't want to dox my wedding website accidentally

bleak lintel
#

you have an ACME "challenge", which validates you own a property (through HTTP, DNS or TLS-ALPN)

#

it's fun just how strict cert authorities are

honest star
#

okay... now to see if cf tunnel things make sense for me

bleak lintel
#

let's encrypt had to file a compliance issue because they accidentally issued some certificates that were valid for 1 extra day than intended

honest star
bleak lintel
#

got them into heaps of trouble with mozilla

wraith hound
#

1 day? That's fun

bleak lintel
bleak lintel
#

"90 days + 1 second"

wraith hound
#

dang

bleak lintel
#

and that 1 second was enough for compliance to be completely fucked

wraith hound
#

what's a NAT?

honest star
bleak lintel
wraith hound
#

I see I see

bleak lintel
honest star
#

I'm essentially trying to figure out if there's a network-y solution to only wanting a certain part of a website to be accessible if it comes from a specific wifi or specific devices.

bleak lintel
#

mTLS is the tech we use to ensure that all requests reaching the pythondiscord.com servers are actually from cloudflare

#

ahhhh

#

hmmmmmm

honest star
#

My other solution is to do proper account provisioning, but still

bleak lintel
#

firewall rules is your best bet assuming the wifi has a static/sticky-enough IP

honest star
bleak lintel
#

uhhhh

#

not really

#

cloudflare tunnels is where you want to take something on a private network and make it public

#

if you're hosting on a Pi, you need to have that Pi have a static IP on a network and then point a domain to the private IP

#

say the Pi is 192.168.10.101

#

you point abc.jb3.dev to that domain and it's only accessible on that network

honest star
#

mmmm, okay thank you! That miiight be more for what I'm looking for then for a thing

bleak lintel
#

👍

distant burrow
#

aco

fair summit
# bleak lintel for local dev I mean sharing with someone something that is locally and cannot b...

It also can associate some ip to global,
I mean
All local IPs, for example, when going to wan are becoming 190.190.190.34,
But there is list with IPs for something that needed to be reachable from another networks:
all to 190.190.190.33 (routers ip)
except
192.168.100.34 to 190.190.190.34
so they are slightly similar to routers

for string address like archlinux.org or pypi.org (if router sees that destination it send packet to his dns server), there is dns servers that are get request like:
dest: pypi.org source: 190.190.190.01
and return
dest: 190.190.190.34 source: 190.190.190.01

And i have question, is it possible to configure router, not stupidly send all string address to dns, but also work like dns to, because, uhm
For exmpl:
hosts under router 190.190.190.33 can't ping pypi.org because something.
But from another routers can, maybe this also depends on how router choose port to resend packet.

I only need that i can ping "pypi.org" from wan and lan.

proper harness
onyx mist
#

yeah

#

lol

agile mesa
#

H

mossy mango
#

yes they should

agile mesa
#

Indeed

terse heron
#

!mute 571299307052072980 I've already asked you to stop discussing this.

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied mute to @agile mesa until <t:1645787656:f> (59 minutes and 59 seconds).

olive yew
#

rip

#

😹

naive temple
#

aren't them allow here

terse heron
#

No

#

It's still against our CoC

naive temple
#

is that Community somethin?

terse heron
#

Discussing topics that are overly polarizing, sensitive, or incite arguments. This includes the discussion of polarizing political views, violence, suicide, and rape.

small coral
#

why does the dunning-kruger effect exist
like people say things they don't have enough knowledge of

graceful basin
#

as you gain more knowledge, you gain confidence that you know things. Then there is a point at which you realise just how little you actually know

small coral
#

then confidence drops

onyx mist
#

ok

solemn leaf
rough sapphire
#

amogus

bold moat
bold moat
bold moat
#

man i just realised how much being quite in class sucks

#

i observed a dude who didnt speak a word for like hours

#

like during free time when everyone's talking and joking

#

and i literally forgot about him

#

i thought being quite made people sympathise for you

#

nah

#

certainly doesnt

frail cove
#

You never know if someone is isolating themselves on purpose, or doesn't quite have the ability to join in.

bold moat
#

probably on purpose

frail cove
#

I think that is most of the time.

bold moat
#

yeah

#

so yeah being social = always yes

frail cove
#

It's good to have the ability to choose to be social, or not. I think most people go back and forth.

bold moat
#

yessss

#

having togglable facades is like the best way to make people support you

rough sapphire
#

@ionic jolt ?

thin cloak
safe lagoon
bold moat
thin cloak
bold moat
#

yeah

#

also

#

nothing

thin cloak
#

The Carpenters' version of "This Masquerade" written by Leon Russell was released as a single and also included on their 1973 A&M LP, Now & Then , available on CD and found in The Essential Collection: (1965-1997), Carpenters Anthology, and Gold -- Greatest Hits (35thAnniversary Edition) collections.This sound recording is administered by UMG. N...

▶ Play video
agile mesa
#

Sooooooo

tulip cedar
#

Sooooooo

lost glacier
#

I have no problem with Yellow calling function from orange... How do I make red call the same function from orange when orange inherits from red !
if red doesn't know anything about orange how would it call anything.. If I import orange into red I get circular import error ...

floral apex
jovial oriole
#
for index, value in enumerate(iter(range(10))):
  print(f'{(index, value)}:{(type(index), type(value))}')```
#

🥴

young shoal
#

hm?

jovial oriole
# young shoal hm?

It's the same as doing py for i in range(10)) print(i) because index, value are the same, and always ints because range produces ints.

young shoal
#

i mean, it's not the same as print(i) because it only prints one thing

jovial oriole
young shoal
#

but not the same

jovial oriole
#

darn it i need to think out my arguments more

#

anyway i gtg

warped crypt
#

i dunno if i should ask here or in sysadmin, i'm trying to execute a python script from crontab:
1 * * * * source /home/steve/Programs/Python/tweep/bin/activate 1 * * * * /home/steve/Programs/Python/tweep/bin/python3 /home/steve/Programs/Python/tweep/main.py >> 1st.txt 1 * * * * deactivate
it doesn't seem to work, the text file is definitely not being created...

lost glacier
#

So this clearly doesn't work

#

how do I fix It ?!

tardy rain
#

Whats happening here, whats the issue

frozen coral
#

You're referencing an Object that hasn't been defined yet

#

MasterNode hasn't been defined when the first circled line is hit

#

Either move that class further up the file, or move it to another file and import it

tardy rain
#

is that how pycharm shows warnings about undefined variables?

lost glacier
broken dew
#

@stone juniper This is awful and ugly and do not use it but this works:

gen_blue, gen_red = map(sum,zip(*[[1,0][::-(y>gen_blue_hold)*2+1]for y in count_list]))
lost vortex
stone juniper
#

I understand what map, sum, and zip do individually, but it is challenging for me put it all together...

broken dew
#

I’ve just realised that it doesn’t actually entirely work, because it doesn’t add the the old values of the variables, and instead assumes they start at zero, which might not be the case in the way you wanted to use it.

But here’s the gist of how it works. I’m trying to create two lists of 1s and 0s, one for each variable. If we map a sum onto each list, then we get the total for each variable.

Now the way those two lists are constructed, is we make a single list (this is the list comprehension bit), where each item is a pair of two numbers: either [1, 0] or [0, 1], depending whether the condition from your if statement is fulfilled. One we have this list of pairs, we use the fact that zip(*list_of_lists) does an operation known as the “transpose” onto that list of lists, which in essence here unzips each pair into the two individual lists we want to map a sum over.

Now how do we choose whether to have [1, 0] or [0, 1] as the pair at each iteration of the list comp? Well, we could do a simple ternary operation: [0, 1] if condition else [1, 0], but I thought that seemed too pretty to be in this already awful oneliner, so I went with [1, 0][::-condition*2+1], which uses a slice to reverse that pair based on the condition

#

^^ @stone juniper this is a not-very in-depth explanation that skims over some of the details, so if there’s something you don’t understand feel free to ping me and when I wake up I’ll respond

bold moat
#

help my friends saying i look like im 30 years old

shut ermine
jovial oriole
#

week 4 of not eating junk food - I should write an autobiography of me slowly descending into madness itself, personified

bold moat
#

not at all noticable in the ways theyve seen my face recently

jovial oriole
#

gotta finish this book now

bold moat
#

hmm

tame arrow
#

hello, anyone have used fiddler?

thin cloak
solid forum
#

@rough sapphire , you helped me earlier for my speech recognition, but when i typed that command in it says its an "invalid operation portaudio19-dev"

floral apex
#

Anyone wanna listen to Squidward's new album?

#

||yes this is an actual frame in SpongeBob||

tepid pelican
gritty zinc
#

New discord TOS dropped.

We do not allow individuals on Discord to post, promote, or organize communities around false or misleading health information that is likely to result in harm. This includes:

anti-vaccination content; 
medically unsupported and dangerous cures for disease; 
content that distorts information about a disease; and,
any content that could hinder the resolution of a public health emergency.

We consider health information “false or misleading” if it directly and unequivocally contradicts the most recent consensus reached by the medical community. Our standard for actioning requires that the content be likely to cause some form of harm. A non-exhaustive list of potential harms includes: heightening risk of exposure to a transmissible disease; causing undue strain on public health systems; and inciting panic or social unrest with conspiratorial health claims.

Discord users also may not post or promote content that attempts to sway opinion through the use of sensationalized, alarmist, or hyperbolic language, or any content that repeats widely-debunked health claims, unsubstantiated rumors, or conspiratorial narratives.‍
https://discord.com/blog/addressing-health-misinformation

#

also apparently they now take into account "off-platform behavior":

We are applying this off-platform behavior consideration only if we become aware of highest-harm threats, including using Discord for organizing, promoting, or supporting violent extremism; making threats of violence; and sexualizing children in any way.

Harmful off-platform behaviors may include:

Recruiting or participating in activities within a known violent group
Explicit and/or credible threats of violence toward a person, group of people, organization, event, or location
Links to content or content posted that depicts minors in a pornographic, sexually suggestive, or violent manner. This also applies to inappropriate contact with minors (also known as “grooming”) made on other platforms or in a physical space. 

Credible evidence may include:

Public content posted on another platform that can be confidently attributed to a Discord user
Note: Content altered with the intention to frame a user will not be considered, and false reporting may result in action by Trust & Safety.
Law enforcement actions or requests
Legal requests
Press coverage of the behavior by a reputable journalistic source
calm dawn
#

I love Python more and more every day... I'm working on a MicroPython board definition for single-core ESP32s and I'm struggling with how long compilation is taking...

calm dawn
jovial oriole
uneven pine
#

Facebook makes most of their money from that content

bold moat
uneven pine
#

Not great

whole jewel
#

Do you recommend digital ocean for hosting?

uneven pine
#

2022 is really living up to "2020 too" for me, only director's cut with bonus features

uneven pine
#

Linode is also quite good these days.

whole jewel
#

What do you think?

uneven pine
#

Don't know what that is

#

But hosting wise DO is wonderful.

whole jewel
#

Publishing platform

rough sapphire
#

ghost is basically a less developed version of Wordpress, in JavaScript instead of PHP

thin cloak
unreal garden
#

Hey i need to know how to use stegnatography to hide a code inside an image and when omage opened by someone it pastes a code inside the browser console , pls this is the imformation i required for my project if u know pls help

tulip cedar
#

Never knew he had a twin

rough sapphire
#

just look at their pfp

tulip cedar
#

Damn yes

dire siren
#

hm, their pfp is muscles, but their name is bones

thin cloak
#

Well wikipedia has entry on evil's twin

#

The evil twin is an antagonist found in many different fictional genres. The twin is physically nearly identical to the protagonist, but with a radically inverted morality. In films, they may have a symbolic physical difference from the protagonist—such as a goatee beard, eyepatch, scar, or distinctive clothing—which makes it easy for the audien...

tulip cedar
rough sapphire
tulip cedar
#

Indeed

unreal garden
#

@thin cloak

#

Come dm

thin cloak
#

Lol why ....i will not help make possible malware

onyx mist
thin cloak
onyx mist
#

eivls eivl twin pithink

dire siren
#

evil eivl twins

onyx mist
#

lmao

thin cloak
#

Evil plan for world domination

dire siren
thin cloak
dire siren
#

:)

thin cloak
tardy rain
#

is there some special way of sharing certificates (.cer files) other than slapping it onto an email and blasting it off?

solar cairn
#

@delicate stream

delicate stream
#

😂

jovial oriole
#

How do you create a stage?

#

something like the bandstand thing

marble creek
#

#Ukraine

bold moat
#

good logic?

#

nvm lol

#

doesnt work

rough sapphire
#

POLL: eval() or exec()?

acoustic moss
quick spear
#

Hey guys a quick hardware problem I have please help!

So I am moving to college hostel soon and I want to take my ps4 slim with me. There is no place not money for a monitor and I heard that I can buy a capture card to stream directly on pc without internet or TV. My PC is Lenovo Ideapad Gaming 3 with nvidia GeForce GTX, Intel i5(10th gen) and windows 11. I want to play games on it without lag or wear tear of the graphics card or game. My budget is less than 2000Rs(less than 30dollars) and I don't know much about this loop capture card stuff. I just want to play 1080p 60fps AAA games like dark souls games without problem. I have no intention to stream or record the stuff. Any and all recommendations will be much appreciated.

rough sapphire
#

my friend lied to me

#

he said they were the same

#

anyways

acoustic moss
#

they are similar

#

eval will evaluate an expression and return some value
exec will execute some statement(s), it wont return anything

rough sapphire
#

Hmm

bold moat
#

having my back up straight feels weird

surreal dawn
tulip cedar
#

@rough sapphire wake up baka

#

@rough sapphire u too

rough sapphire
#

;-;

tulip cedar
rough sapphire
#

😂

#

smart

#

wake up for 🤔

tulip cedar
rough sapphire
#

good friend*😂

tulip cedar
#

Yea yea

rough sapphire
#

someone is overthinking

tulip cedar
#

Meh, I am just tired

rough sapphire
#

same lol

tulip cedar
#

And yea, this cold do be taking a toll on my already smol brain

rough sapphire
#

there's nee problem
i wish thanos was real, and he cane back
(saw yt shorts💀 )

#

new*

tulip cedar
#

Huh what

rough sapphire
#

YouTube shorts,
it has weird content

tulip cedar
#

I know, that is why I like seeing it

rough sapphire
#

from weird i meant... 😂

#

nm

tulip cedar
#

Lmao

rough sapphire
#

bymistake i just saw a full omegle video
now I'm getting same recommendations

#

._.

tulip cedar
#

Lmaooo

rough sapphire
#
  • they earn from these videos
#

😂

tulip cedar
#

Mhmmm

rough sapphire
#

found a funny shorts but can't share here lol

tulip cedar
#

lol

rough sapphire
#

good night I'm tired af

#

my joints

#

and nerves

#

and brain

tulip cedar
#

no

#

no

rough sapphire
#

and lungs

tulip cedar
#

no

rough sapphire
#

💀

tulip cedar
#

dont go 🥺

rough sapphire
#

lmao

#

I'm just sleeping

#

gonna come back tme morning 😂

tulip cedar
#

;-;

#

im gonna be lonely

rough sapphire
#

don't be

#

just

#

watch movie

#

or sleep 🤔

#

or meditate

#

or exercise

#

or code

tulip cedar
#

meh ill just try to sleep

rough sapphire
#

or sit in corner of room, and ...

rough sapphire
tulip cedar
rough sapphire
#

😂

tulip cedar
#

i cant breathe

#

anyways

rough sapphire
#

get corona test

tulip cedar
#

meh

rough sapphire
#

-.-

#

😂

tulip cedar
#

no thanks

rough sapphire
#

rtpcr

#

😂

#

dw just take steam

tulip cedar
#

imma pass

tulip cedar
rough sapphire
#

💀

rough sapphire
tulip cedar
#

whyyyyyyyyyyyy

rough sapphire
#

goats do na meh

tulip cedar
#

ihu

rough sapphire
#

🤔

#

hate 🤔

#

hack 🤔

tulip cedar
#

y e s

#

hate

tulip cedar
#

ok

#

anyways gn

rough sapphire
#

gn 😂

jovial oriole
#

I'm about to throw a wrench in my plans

#

because i'm making forced perspective art and I'm using a wrench

#

(ba dum skish)

onyx mist
#

windows 11 sucks

#

you can barely tell apart google and pycharm

wraith hound
#

that seems like a problem with your system

#

I have the Chrome icon

#

I have all the icons

low wraith
#

I don't use windows 11 but there's like a 0 percent chance microsoft would remove icons

woeful shadow
thin cloak
soft wedge
#

@rough sapphire

rough sapphire
#

Yes :D

soft wedge
#

What you need to do is switch internet providers as the easiest method

#

I would almost certainly bet that the internet provider is violating the law by allowing a third party to fuck with you.

#

To seek recourse you need to consult a lawyer

#

Some lawyers will consult for free, so you need to call around.

rough sapphire
#

We moved here to Torrance Ca, so they don't accept anything else but Spectrum.
BUT He could not get into Frontier at all

soft wedge
#

I would escalate the issue within your current internet company to talk to a manager and threaten an FCC complaint.

rough sapphire
#

And our Netgear nighthawk was hooked up to the Frontier so he couldn't get into it at all, he can get into Spectrum bc his company holds all their DATA and he works for the DOD too

soft wedge
#

Well. This is a huge violation of security

rough sapphire
#

Yes it is :00

rough sapphire
#

Spectrum caught his Samsung S8 galaxy 2017 phone breaking into our internet and then he broke in again to try and wipe himself from their systems

grave cove
#

How exactly are they messing with you?

soft wedge
#

If I were being a dick~ The proper recourse is to take this to a consulting lawyer. This is a big issue with security violation on that person's part and he could get his security privilege's revoked/ lose his job over this. The only thing is that this is a tricky situation to handle.

It could be enough that you contact the guy's manager / person at his company and let them know he's using their information that way and that if they don't stop it, you'll expose them doing this business practice - >

#

People high up in his company would be very interested to know about this. Especially if Spectrum caught him.

#

Anyway, there is a lot of leg work that needs to be done

#

You get to choose how to go forward

rough sapphire
#

But the worst part is, Is that he pays for the rent'

grave cove
#

What happens when they "break into your router"? We might be able to find a solution

soft wedge
rough sapphire
#

So he thinks he can do whatever he wants to us and uses the rent over our heads, and were trying to finish our schooling but he's screwing with us so he can keep us in his grasps,
And he's been flown out to Washington DC to go some Blackhats seminar and then he got even worse bc of the stuff they taught him.

grave cove
#

Unplugging the router would effectively stop him from being able to do anything. It would also stop you from being able to use your wifi however

rough sapphire
soft wedge
#

You can get a lawyer to send a strongly worded letter if they are fucking with you

#

there is an art to get what you want. It's hard

rough sapphire
#

This is his info they caught

#

This is the Proof that he scrubbed from spectrum

soft wedge
#

Sure sure

#

I'm just suggesting on how you can handle the situation

#

There are some people who might be able to hel p you too

#

Since this is legally tricky

rough sapphire
soft wedge
#

❤️ GL! It's a lot of work but it can be done!

rough sapphire
rough sapphire
rough sapphire
soft wedge
#

NP!

mild abyss
grave cove
#

Oh haha

rough sapphire
#

what'

#

is going on

grave cove
#

did no one really talk in this channel for 6 hours

thorn lagoon
#

apparently not

tulip cedar
grave cove
tulip cedar
#

No

grave cove
#

yes

tulip cedar
#

why pithink

onyx mist
#

why

tulip cedar
#

Stop copying me dek

onyx mist
#

shut up

floral apex
onyx mist
#

what is that metaphor

floral apex
#

It's not

thorn lagoon
#

lmfao

tulip cedar
floral apex
tulip cedar
#

LMAO

floral apex
#

Don't know if there's a hidden registry setting

tulip cedar
#

Oh rip

onyx mist
jovial oriole
#

who'd win? @jovial oriole V.S John Cena

#

don't be stupid it's the latter

mortal heath
#

LMAO

graceful basin
#

there was a spec, but then exactly one compiler actually managed to implement it, so it was switched to a reference implementation @frozen crane

frozen crane
graceful basin
#

yeah, it is hard to implement

#

there were several attempts at a perl6 VM

rough sapphire
#

What is going on?

graceful basin
#

rakudo actually managed to work

#

talking about why raku doesn't have a language spec

tulip cedar
#

😶

graceful basin
#

ah nvm, it actually has a spec-like thing called the official test suite

#

rakudo is the source of truth in practice though

dire siren
#

is compiling bytecode to machine code easier or compiling python to machine code easier

low chasm
#

Probably the former? Most languages typically compile to some IR before going to machine code

topaz aurora
#

The latter is already what RPython is doing

#

Bytecode can be high-level

dire siren
#

:O thx

wraith hound
#

if you're doing codegen from a string, something's wrong with you

#

you at least need a token stream and syntax tree

low chasm
#

you don't need anything, theoretically you could

dire siren
wraith hound
#

s//if you're sane

dire siren
#

true, I need some sanity to do the former

wraith hound
#

if you're going without any sort of IR you're cray cray

dire siren
#

:)

#

I'll do it without syntax tree

#

:)

wraith hound
#

don't

#

use python's ast module

dire siren
#

ew

#

I deleted all stdlib of python

#

:)

jovial oriole
#

this has got to be the most inefficient way to convert int to str

#

!e import ast
print(ast.literal_eval(f"{'{0}'.format(int('10'))}"))

royal lakeBOT
#

@jovial oriole :white_check_mark: Your eval job has completed with return code 0.

10
jovial oriole
#

ping me if you find an even more inefficient way

dire siren
#

@jovial oriole time.sleep(999)

jovial oriole
dire siren
#
while True:...
print(int('10'))
dire siren
jovial oriole
#

is it that hard to press tab?

dire siren
#

its just too far

jovial oriole
#

good enough

quartz wing
#

hi

#

@solid pollen

#

do you actually use manjaro

last mantle
#

lol

rough sapphire
#

hi

tulip cedar
#

Hi

rough sapphire
#

Is there a code to catch errors

#

or a code to consider what should be the format like int or str

tulip cedar
royal lakeBOT
#
try

8.4. The try statement

The try statement specifies exception handlers and/or cleanup code for a group of statements...

rough sapphire
unreal gazelle
#

for i in range (1, 5): t.forward(100) t.right(90) t.penup() t.goto(130, 0) t.pendown() for j in range (1,5): t.forward(100) t.right(90) t.penup() t.goto(260,0) t.pendown() for x in range (1,5): t.forward(100) t.right(90) t.penup() t.goto(300, 0) t.pendown() for 0 in range (1,5): t.forward(100) t.right(90) t.penup() t.goto(340, 0) t.pendown()

#

why do I get it like this?

tulip cedar
unreal gazelle
#

ty

solid pollen
nocturne venture
#

omg

#

hi @solid pollen 😉

#

you're back to being a normal user?

solid pollen
#

Yeah, well

#

I'm not really that active anymore

#

Switched my focus to communities like QuiltMC

dire siren
bold moat
#

hmmmmmm

rough sapphire
#

damn that's cyph's fav channel name

brazen ingot
#

@frank sable Go ahead with your question in this channel?

#

@solid pollen What happened to your roles?

solid pollen
#

I left the staff

brazen ingot
#

Oh, sad!

tulip cedar
rough sapphire
#

how about we dont

full talon
#

Hi

#

Well, I have an app written in C i got it from Github, that have start/stop in the same button and I'm trying to make a hotkey for it. Instead of clicking on it I want to press Space for example and it starts and pressing again stop it. Any idea how I may do that? Direct me to any clue. Thanks

empty aurora
#

Anyone using Apple Silicon for Python programming?

graceful basin
#

I do

empty aurora
#

How's the experience like, of installing python and libraries?

#

And does it run faster than regular Intel/Ryzen based computers?

graceful basin
#

performance wise, it is fast enough that everything is more or less realtime

#

pyenv works fine, so working with python works just fine

#

most libraries also work by now

#

and you can always get x86 python if you really need

empty aurora
#

I am currently using NUC7 i5. Thinking of switching to Mac Mini. Wouldn't want to switch if I had to use x86 Python

graceful basin
#

x86 stuff works seamlessly, it's really not an issue. But I don't think I have used the x86 python install outside of compiling some not-arm-supporting external software with a dependency on python

empty aurora
#

OK. Thanks

candid grotto
low wraith
#

Anyone have any ideas why youtube doesn't work on my school laptop, I don't think it's being blocked because it works for everyone else, I tried on google, firefox, safari and none of it worked.

mild abyss
#

i wonder how this otn exist

low wraith
# mild abyss what OS?

MacOS, I should also add it doesn't work on my home WiFi either basically every other site does

mild abyss
#

hmmm someone might have messed up the lists of hosts u allowed and disallowed. idk how macos does it though

low wraith
#

Sites that are blocked also show a message making it clear it was blocked this it just goes to This site cannot be reached

#

Yeah it's very strange doesn't work on embeded either which is honestly kind of expected but still

mild abyss
#

maybe ask some macos user who knows this stuff

#

i use linux and we have a weird way of doing it too

low wraith
#

Firefox actually seems to have a more indepth error, maybe a key is broken? idk how that stuff really works.

mild abyss
#

interesting. i guess try asking tech support or forums regarding that. did this start after u bought it? or did this happen recently?

low wraith
mild abyss
#

?

#

if that says nothing, then yes, better ask a tech support person

low wraith
#

That works, I was not expecting that, now I'm very confused lol

mild abyss
#

i wonder if youtube works in another browser but i also guessed u tried that already. am i right?

low wraith
#

Yeah

#

Also tried with a VPN on, still nothing.

mild abyss
#

how did u get that macbook? that seems fishy

#

i mean maybe if it is secondhand, then previous owner might have messed up dns settings but idk how to fix it so yeah. have u tried a full reset? (do backup though your stuff lol)

low wraith
mild abyss
#

👀

#

just me speculating but yeah maybe ask a person from school, and not a teacher

iron shell
#

oof

full talon
#

I'm editing on an app made in C, there is a button in the app for Start/stop and I want to make a shortcut for that button so for example if I press SPACE key it will start, press it again and it will stop. The app used Iup library or something

distant hazel
#

what's the acronym
i think it starts with "i" for "initialize"
and it describes initializing something, then using a for loop to add stuff to it?

#

the nuance was "make something and then immediately change it"

candid grotto
low wraith
#

that's the weird part

candid grotto
low wraith
#

Have

#

I've tried basically everything

candid grotto
gleaming gull
thorn lagoon
#

i find that 1.1.1.1 is slightly slower than automatic for some reason

#

i dnno

tulip cedar
#

Cz many people use that DNS?

brazen ingot
#

@distant burrow @dire siren @lime maple

#

sus but have it

dire siren
#

dis one betta

#

:)

brazen ingot
#

yEh more like a cat with one ear

#

idoit

dire siren
brazen ingot
#

it is

dire siren
#

is it like those toys whee you can pull one ear down and another ear will go up

brazen ingot
#

lolz

dire siren
#

I forgor the name of it

brazen ingot
#

@rough sapphire

tribal aurora
brazen ingot
#

eyo sorry, this channel is occupied for a question

rough sapphire
#

bit of scribbles

3x = 11 mod 25
hence

3x + 11 = 25a

same way
3x + 11 = 7b
3x + 11 = 13c

25a = 7b = 13c

one soln: a = 7*13
b = 25*13
c = 25*7

so
3x+11=25a = 2275
3x = 2264
x = 2264/3
#

ima eat be back, if you dont get it

#

i made some small math mistake somewhere prob

#

but it may be solved by this

brazen ingot
#

ok cool, every mod can be converted into a diphonatine,yes

lime maple
#

Is it just me who expirences deja goute

rough sapphire
#

@brazen ingot JESUS

#

I PUT +11

#

IT SHOULD BE -11

#
x = 762
print(3*x
#

!e

x = 762
print(3*x % 25, 3*x % 7, 3*x % 13)
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

11 4 11
rough sapphire
#

what did i miss again

#

!e

x = 762
print((3*x) % 25, (3*x) % 7, (3*x) % 13)
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

11 4 11
rough sapphire
#

oh yes 7<11

brazen ingot
#

😵

rough sapphire
#

@brazen ingot Do note that the middle sentence is bit confusing, logically it cant be 11, so 4+7 = 11

#

but nevertheless i have resolved it

#
3x = 11 mod 25
hence

3x + 11 = 25a

same way
3x + 11 = 7b
3x + 11 = 13c

25a = 7b = 13c

one soln: a = 7*13
b = 25*13
c = 25*7

so
3x-11=25a = 2275
3x = 2286
x = 762

3x-11 = 2275
3x = 2286 
x = 762 (into any n)
brazen ingot
#

Could you please share a maths solution?

rough sapphire
#

thats math no?

brazen ingot
#

yep got it!

#

lemme see

rough sapphire
#

okay you are aware about
x === y mod z equation right?

brazen ingot
#

I don't know what you're saying?

rough sapphire
#

basically
if i say
x === 1 mod 3
my x would be 1, 4, 7....
you get the idea.

brazen ingot
#

yeh ikr

#

it just +3 everytime

rough sapphire
#

i mean, yes. in a way.

brazen ingot
#

the divisor gets added every time for many solution

rough sapphire
#

so we have

3x = 11 mod 25

so our (3x) will be
25*n + 11
where you can put n as any integer

#

so our valid (3x) will be 11, 11+25, 11+50....

#

thats one solN set

brazen ingot
#

I gotcha! that's gen term

rough sapphire
#

same way we get 2 more gen terms

#

and in a way by multiplying them i get the terms which will be common in them.

same way as when we ask

hey, what is the number which can be divided by both 3 and 2?
the one which can be divided by 6!!

#

so we get 3 eqs

3x = 25*n + 11
3x = 7*m + 11 
3x = 13*k + 11
brazen ingot
#

yep, but you should say that they have to be relatively prime?

#

so then they have to be divisble by 6?

#

I am getting what you're saying!

rough sapphire
brazen ingot
#

wdym?

rough sapphire
#

okay if i tell you give me a number divided by both 5 and 10, what you would do is find lcm, and then just multiply with anynumber.
so lcm(5, 10) = 10, and 10*7 = 70, so you say 70

sonic sapphire
#

Sorry to bother how do I write in code on discord

royal lakeBOT
#

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.

brazen ingot
#

```py
code here

#

@sonic sapphire this

sonic sapphire
#

```py
Print(“good morning”)

brazen ingot
#

not like that

brazen ingot
solemn leaf
#

yes

sonic sapphire
#
\Print(“good morning”)
brazen ingot
#

No, don't add it in your code!

sonic sapphire
#

```py
Print(“good morning”)

#

```py
Print(“good morning”)

brazen ingot
#

bruh

#

discord borked

sonic sapphire
#

\\py
Print(“good morning”)

#

\\py
Print(“good morning”)
\\

brazen ingot
#

User three ticks and then add a py and then press enter and write code and then add three ticks

rough sapphire
# brazen ingot mhm go ahead

okay so now we have 3 series.
basically infinite number of solutions

3x = 25*n + 11
3x = 7*m + 11 
3x = 13*k + 11

here n, m, k can be any integer, and it would satisfy this.

now we need to find nums which satisfy all three.

so we basically take lcm of 25, 7, 13.
which is 2275
now the rest is easy.

3x = 2275 + 11
so x = that value.

what fucked me up was getting 4 in mod 7.
but
3x === 11 mod 7
is eq to
3x === 4 mod 7
or
3x === 18 mod 7
or so on...

sonic sapphire
#

\\py

#

Print(“good morning”)
\\

rough sapphire
#

again, here our x has infinite solns.

brazen ingot
#

Uh oh, put all this in one message

rough sapphire
#

!e

for i in range(5):
  x = 762*i
  print((3*x) % 25, (3*x) % 7, (3*x) % 13)
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

001 | 0 0 0
002 | 11 4 11
003 | 22 1 9
004 | 8 5 7
005 | 19 2 5
rough sapphire
#

ignore 0 lol

#

ah shit hold on

brazen ingot
#

yeh right

rough sapphire
#

no it will have infinite solns. i need to put n at some other place.

#

more like

3x = 2275*n + 11
#

so

x = (2275*n + 11)/3
#

!e

for i in range(5):
  x = (2275*i + 11)/3
  print((3*x) % 25, (3*x) % 7, (3*x) % 13)
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

001 | 11.0 4.0 11.0
002 | 11.0 4.0 11.0
003 | 11.0 4.0 11.0
004 | 11.0 4.0 11.0
005 | 11.0 4.0 11.0
rough sapphire
#

ah beautiful

#

done @brazen ingot any more ques?

brazen ingot
#

I am still confused of this pythonic way

rough sapphire
#

there is no pythonic way?

brazen ingot
#

Would you please send me a paper and pen solution? in my dms?

rough sapphire
#

i need to run.

brazen ingot
#

yep it is lolz

brazen ingot
rough sapphire
#

oh then you gotta figure by your self lol, i need to go out with family, they're waiting from last 15 mins

brazen ingot
#

ok tyyy!

#

maybe later you should send?

rough sapphire
#

and take an example for 2 numbers by yourself. say just 2 and 3.

rough sapphire
brazen ingot
#

cool dude!

#

have fun!

rough sapphire
#

alr! later!

brazen ingot
#

👋

#

aight imma give some shot to some other number theory problems

acoustic moss
#

prove/disprove the collatz conjecture

brazen ingot
#

The best vid that explains collatz conjecture https://www.youtube.com/watch?v=JXPmqL69ZHo

#

Gib him some love

#

@acoustic moss this

acoustic moss
#

mm

brazen ingot
#

the intro ❤️

lime maple
#

What frameworks y'all use for backend

tardy rain
#

flask, fastapi, expressjs

last mantle
#

sveltekit

mild abyss
#

i will disprove your existence instead

acoustic moss
#

no

#

i wont allow it

rough sapphire
#

@brazen ingot I'm free now

#

you still want me to try on pen and paper?

brazen ingot
#

send it over

#

yes

rough sapphire
#

okay lemme try to write

#

where's que again?

brazen ingot
#

idk

#

sorry

rough sapphire
onyx mist
lime maple
#

Nice

onyx mist
#

aruk

#

should I use crispy forms

#

or make my own

#

😳

#

@lime maple

lime maple
#

make own 👀

onyx mist
#

okay

#

yessir

#

I keep forgetting to add the --insecure tag

brazen ingot
rough sapphire
#

on the way

brazen ingot
#

I would be great if you send it over dms!

#

ty!

rough sapphire
#

sure, I'll just dm.

brazen ingot
#

my lovely fren 🙂

onyx mist
#

then it hit me

tulip cedar
onyx mist
brazen ingot
#

wlcm

night owl
#

Hai can anyone help me with java

rough sapphire
#

otherwise just ask

flint basin
lost glacier
#

Why does the Function I yellow circle does not see the variable above ?!!

low chasm
#

@wraith hound hi

#

can you help

#

so

#

I have this sidebar in a web app, with the toggle outside of the sidebar, next to it

#

and when I open the sidebar, it moves the button to the side, which is good, but it moves it very unsmoothly

#

is there a way I can make it smooth

wraith hound
#

or transition

lost glacier
#

This Variable doesn't work at the second yellow line

#

Why !?

honest star
lost glacier
#

yeah it says ...

#

@honest star

honest star
#

could you provide your code in a pastebin? I'd like to see if there's anything else odd happening

lost glacier
#

okay

#

honestly i can't find the pastebin wepsite

wraith hound
#

!paste

lost glacier
#

i'm too dump today

royal lakeBOT
#

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.

lost glacier
#

❤️

honest star
# lost glacier ❤️

So, I think something is happening with the decorator or with the class you're building off of. If I strip out some of the import-reliant code it works just fine.

How are you calling the IfStatement class?

honest star
lost glacier
lost glacier
#

what do i change

honest star
lost glacier
#

runs fine like this

honest star
#

Also, how are you actually using the IfStatement class? What does the code look like where you try to call it?

honest star
lost glacier
#

this perhaps !

#

the class is assigned to a corresponding ID

#

when the ID is called to the graph it creates 1 instance of it

honest star
#

well, it looks like the decorator does a lot of work there, what does the decorator code look like?

lost glacier
#

This is getting the class from the ID

lost glacier
brazen ingot
wraith hound
#

@carmine niche do you think I should stick random "don't worry, I love you" messages into my compiler when there is more than x amount of errors

#

Wording undecided

#

But I like nice compilers

rough sapphire
#

hello

#

I need an expert

#

    @property
    def api_location(self):
        return self._api_location

    @api_location.setter
    def api_location(self, loc):
#

what does the @ thing above functions mean

#

what is it used for

acoustic moss
#

it is a decorator

#
@decorator
def f(): ...

is pretty much equivalent to

def f(): ...
f = decorator(f)
rough sapphire
#

how to use it

#

can you show me with an example

#

hello

tranquil orchid
#

!e

def decorator(func):
    def wrapper():
        print("Hello world!")
        return func()
    return wrapper

@decorator
def some_function():
    print("Hello from some_function")

some_function()
royal lakeBOT
#

@tranquil orchid :white_check_mark: Your eval job has completed with return code 0.

001 | Hello world!
002 | Hello from some_function
tranquil orchid
#

For example, a decorator that makes a function print Hello world! before it runs

rough sapphire
#

ok.. so because some_function() has a decorator, something related to the decorator runs first when some_function() is called?

#

but where is this useful

tranquil orchid
#

Since it's equivalent to doing some_function = decorator(some_function)

#

In this case it's returning a new function, which prints hello world before running the other function

#

And as for where it's useful, you can look to examples like discord.py where they're used to hook functions to events, or other examples where it'll 'modify' the function itself by creating a new function

#

Chances are you won't be writing them much yourself, there isn't a ton of common cases where you'd want them

rough sapphire
#

ok then, I'll look up some more examples

#

thank you

tulip cedar
#

Time to make dpy commands with the syntax cmd = command(func) 👀

broken dew
#

My discrete math textbook says that a lower bound for the TSP can be found by removing a vertex, calculating the weight of the minimum spanning tree of the remaining graph, and then adding that to the sum of weights of the two least weight arcs from the removed vertex.

However, it notes that this method can give a value that isn't actually a lower bound in the case when the graph isn't complete. I can see how this would happen if a graph isn't simply connected, but I can't picture how this would happen if the graph doesn't have an arc between every single pair of vertices.

Would someone mind sharing an example?

carmine niche
acoustic moss
#

capitalism

rough sapphire
#

what does it mean when we do **kwargs in a function definition

#

like, for example

#
def execute(self, app_id, **kwargs):
solemn leaf
#

its used to take arbitrary amount of keyword argument as a dict

#

!e

def e(self,app_id,**kwargs):
    print(kwargs)
e('obj','id',keyword1 = 2,keyword2 = 3 , keyword3 = 4)
royal lakeBOT
#

@solemn leaf :white_check_mark: Your eval job has completed with return code 0.

{'keyword1': 2, 'keyword2': 3, 'keyword3': 4}
rough sapphire
#

ahh got it

#

thank you

wraith hound
tulip cedar
#

Lmao

rough sapphire
#

how much do haircuts cost where you are

last mantle
#

100 INR

#

hmm maybe 200

#

i.e 1.5$ - 3$

#

jesus

rough sapphire
#

yeah around the same for me too.. ~ 40$

tulip cedar
#

Lol

rough sapphire
#

they should make a machine that cuts your hair..

carmine niche
last mantle
#

no

wraith hound
carmine niche
tulip cedar
#

Uwu sucks lemon_pensive

quartz wing
#

hi

#

joe is now built different

tulip cedar
#

Indeed

dire siren
tulip cedar
#

No

dire siren
#

.uwuify no

median domeBOT
#

no

dire siren
#

:(

tulip cedar
#

Hahaha

wraith hound
#

.uwuify uwu and owo are the best in their lowercase forms

median domeBOT
#

uwu and owo awe de best in deiw wowewcase fowms

acoustic moss
#

.latex $\mathcal{U}w\mathcal{U}$

median domeBOT
dire siren
#

lmao

#

nice font

tulip cedar
#

Why u all love the words uwu and owo lemon_pensive

dire siren
#

I'm so bad

wraith hound
#

.latex $\mathcal{u}w\mathcal{u}$

median domeBOT
wraith hound
#

Ughhg

#

.latex $uwu$

median domeBOT
acoustic moss
#

yea mathcal doesnt work for lowercase

#

i mean it does, just weirdly

#

.latex $\mathcal{hello world}$

median domeBOT
tulip cedar
#

What the

wraith hound
#

That looks like hieroglyphics or smth

dire siren
#

.latex testing Chinese: $\mathcal{你好}$

young shoal
#

lol

dire siren
acoustic moss
#

okay so

#

theres a pr

#

to fix it

#

ok

dire siren
#

sir lance was typing :( now it isnt

acoustic moss
#

dont yell at me

last mantle
#

kekw

frozen coral
dire siren
frozen coral
#

thanks for page lol

acoustic moss
#

😩

last mantle
#

after looking at C# code for hours, i can confirm that it is cursed

frozen coral
#

it uses utf-8 in ways unseen before

acoustic moss
#

:angel_praise:

rough sapphire
#

hi I need some help

#

I'm using requests library but because of redirects (in a corp environment), the requests doesn't go through.. it ends up on a Sign in page instead

#

what do I do

versed swan
rough sapphire
versed swan
#

you need to read the info in #❓|how-to-get-help, so you can get help in a specific channel; this is an off-topic channel

rough sapphire
#

well, im off topic discussing about requests library

dapper dew
#

requests is a python library, so I would not consider it off-topic 👍

#

But, is the issue that you are trying to make requests from an office network that uses a VPN or something? Or what you are making the request to is adding the redirects?

rough sapphire
#

initially I was getting SSL error, I set it to verify=False.. then found it was adding redirects

dapper dew
#

Gotcha. I haven't had much success navigating / automating anything with Microsoft services like OneDrive / Sharepoint etc

rough sapphire
#

it's actually not a microsoft service.. it's another service, just has a sign in page via MS, when accessed via browser

#

but I didnt expect it would still be the case when accessing via api

dapper dew
#

oooof

rough sapphire
#

got it working

#

thankfully it worked after I ran it locally over the VPN

rough sapphire
#

hello

#
class classname(object):

do I need to mention 'object' here?

acoustic moss
#

not in python 3, no

rough sapphire
#

thank you

carmine niche
#

python 👎

rough sapphire
#

Avery woke up and chose violence again, lol

#

Though to be fair, I don't really know about language differences, so

tulip cedar
carmine niche
#

me rn

carmine niche
tulip cedar
#

Ikr

hardy ether
dire siren
dapper dew
#

404: not found

rough sapphire
#

how do I do both a print and a return

#

like, I want to display a message when a function runs, but I want that function to also return something to another function that calls it

dire siren
dire siren
#

idk

#

u can print in a func, theres no conflict

rough sapphire
#

oh right

#

sorry.. my brain switched off

#

fuck

dapper dew
#

!e

def my_func():
    print("Some value")
    return "some value"
a = my_func()
rough sapphire
#

bit late here..well guess I better hit the hay