#ot1-perplexing-regexing
1 messages · Page 631 of 1
huh?!?!
ha?
work!!??
probably practicing as a house husband like me 
Aboo husbando when
Whoop
bruh
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?
depends on the budget, I guess.
I don't use a USB one myself, so I'm not an expert.
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
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.
haha, okay at least I'm in good company in that regard then
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
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
here we go again
:(
😳
@terse sluice who's Audrey, I read your bio (and viewed the site) and now I'm curious why she's asking
lol
im his owner
bruh
cute! 😳
lmfao no thanks
this looks so bad in dark mode
you're audrey? 😳
smh it looks even worse in light mode
it uses bright colors 
the pink looks nice wdym
oh wait so they actually are audrey
:D
it is quite lovely IMO
i need to maybe.. make an actual homepage one of these days
the pink is nice
this is pretty too tho
that is gross

https://audreyasked.com/polls/cl01l6f2j139157zyxock8n2k/ gotta say, this is actually quite nice
thank you! still a WIP though; i have a long list of features to implement
padding for what exactly? and on which side?
glad to see my questions are properly obscure
lol i had no clue for those questions
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
same here, passwordless is a nice feature of next auth
speaking of which, it is a great library
oh, is this in next.js?
yeppers
nice
that was the thing I was looking if I wanted a serious website
https://remix.run/ but this seems really interesting as well. But it is fairly new
ooh yeah, i think remix was pretty up there in the state of js survey
: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).
PIL is a maintained fork of pillow
don't you mean pillow is a maintained fork of PIL?
!pypi PIL
uhyes.
@rough sapphire um wtf are those
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
alright sweet
let's encrypt is good
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
lol I was literally reading a blogpost that recommended that and I'm like.... hmmmmmmmm this is sus
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
and they've paid some acme clients like acme.sh https://github.com/acmesh-official/acme.sh to default to ZeroSSL
haha! I get closer to actually having a functional website
what is acme?
mmmmmm... can you elaborate?
so my domain is via CF, so I add wildcards in the DNS records?
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
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
okay nice will do
This is good, because I don't want to dox my wedding website accidentally
ACME is a standardised protocol for automating certificate issuance and validation
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
okay... now to see if cf tunnel things make sense for me
let's encrypt had to file a compliance issue because they accidentally issued some certificates that were valid for 1 extra day than intended
I remember you sharing that article/saga/info
got them into heaps of trouble with mozilla
1 day? That's fun
for local dev, it's nice. for prod it's also fiiiiine if you're doing something like hosting behind a NAT or don't want to do mTLS to force traffic through cloudflare
dang
and that 1 second was enough for compliance to be completely fucked
what's a NAT?
when you say local dev, you mean a domain pointing to a local computer?
For prod, wht's NAT and mTLS?
it's the tech that means all devices on your home network have the same public IP address
I see I see
for local dev I mean sharing with someone something that is locally and cannot be accessed publicly.
for prod, a NAT is probably what you have at home, if you are trying to host of your home network and have a dynamic IP/don't want to port forward/don't want to open your network then you want to use tunnels.
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.
mTLS is the tech we use to ensure that all requests reaching the pythondiscord.com servers are actually from cloudflare
ahhhh
hmmmmmm
My other solution is to do proper account provisioning, but still
firewall rules is your best bet assuming the wifi has a static/sticky-enough IP
but let's say I don't host this out in the world on a VPS, if I host something on a pi and only want it accessed on the local network and maybe share it but not publically, CF tunnels make sense there?
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
mmmm, okay thank you! That miiight be more for what I'm looking for then for a thing
👍
aco
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.
H
yes they should
Indeed
!mute 571299307052072980 I've already asked you to stop discussing this.
:incoming_envelope: :ok_hand: applied mute to @agile mesa until <t:1645787656:f> (59 minutes and 59 seconds).
this is OT bru
aren't them allow here
Discussing topics that are overly polarizing, sensitive, or incite arguments. This includes the discussion of polarizing political views, violence, suicide, and rape.
o
why does the dunning-kruger effect exist
like people say things they don't have enough knowledge of
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
then confidence drops
ok
imposter syndrome
amogus
should i say it
i believe that the more you learn, the more you learn about how much there really is to learn
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
You never know if someone is isolating themselves on purpose, or doesn't quite have the ability to join in.
probably on purpose
I think that is most of the time.
It's good to have the ability to choose to be social, or not. I think most people go back and forth.
@ionic jolt ?
Lol...some people will inevitably see thru that
well not a chance unless they know you from before, like you put that act on the moment you met them. they think thats your actual personality, no seeing through that right?
Yeah true....anyway here on the net we do put on masks and reveal only what we want to
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...
Sooooooo
Sooooooo
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 ...
Eivl's a bagel?
for index, value in enumerate(iter(range(10))):
print(f'{(index, value)}:{(type(index), type(value))}')```
🥴
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.
i mean, it's not the same as print(i) because it only prints one thing
well, printing a tuple of index and value and their types is pretty pointless
but not the same
well no, not the same
darn it i need to think out my arguments more
anyway i gtg
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...
Whats happening here, whats the issue
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
is that how pycharm shows warnings about undefined variables?
I can't Move It further up because of these two lines
@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]))
(RE: #help-pear message)
seems like a design issue, what are you trying to achieve here?
would you mind explaining what it does
I understand what map, sum, and zip do individually, but it is challenging for me put it all together...
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
help my friends saying i look like im 30 years old
if you got a beard thats a good thing otherwise idk stop getting sunburnt lol
week 4 of not eating junk food - I should write an autobiography of me slowly descending into madness itself, personified
i just started getting one
not at all noticable in the ways theyve seen my face recently
well gl and do you feel changes?
thnx and yes
gotta finish this book now
hmm
hello, anyone have used fiddler?
That has been Covid time mostly then current events
@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"
Anyone wanna listen to Squidward's new album?
||yes this is an actual frame in SpongeBob||
ye..
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
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...
it's python pal
I'm compiling C firmware tho
Facebooooook, now it's yoooooour turn
Facebook makes most of their money from that content
its been a while since i saw you. how are ye doing?
Not great
Do you recommend digital ocean for hosting?
2022 is really living up to "2020 too" for me, only director's cut with bonus features
I absolutely do. I've used them for years
Linode is also quite good these days.
I want to deploy Ghost on digital ocean, and start a blog
What do you think?
Publishing platform
ghost is basically a less developed version of Wordpress, in JavaScript instead of PHP
Cool
Lol it has been a sci fi dystopia movie so far
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
Never knew he had a twin
@surreal dawn is the twin
just look at their pfp
Damn yes
Well wikipedia has entry on evil's twin
https://en.m.wikipedia.org/wiki/Evil_twin#:~:text=The concept of evil twins,)%20principle%20Zurvan%20(Time).
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...
eivl*
thats evil. not eivl. this is misinforming.
Indeed
Lol why ....i will not help make possible malware
eivls evil twin 😳
Muwahahahaha
eivls eivl twin 
evil eivl twins
lmao
Then the evil twins have evil twins recursively
Evil plan for world domination
*eivl
Is dyslexic and eivl so spelling strange
:)
Part of eivl dyslexic plan
is there some special way of sharing certificates (.cer files) other than slapping it onto an email and blasting it off?
@delicate stream
😂
#Ukraine
POLL: eval() or exec()?
they do different things
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.
my friend lied to me
he said they were the same
anyways
they are similar
eval will evaluate an expression and return some value
exec will execute some statement(s), it wont return anything
Hmm
having my back up straight feels weird
Shhh
I didn't know which ID u were online on, so pinged both
Talking 🥺
my gf went to sleep, still 30 min i have till she comes 😎😂😂
good friend*😂
Yea yea
Meh, I am just tired
same lol
And yea, this cold do be taking a toll on my already smol brain
there's nee problem
i wish thanos was real, and he cane back
(saw yt shorts💀 )
new*
Huh what
YouTube shorts,
it has weird content
I know, that is why I like seeing it
Lmao
bymistake i just saw a full omegle video
now I'm getting same recommendations
._.
Lmaooo
these guys are just getting 5-6 girls a day to talk with lmao
- they earn from these videos
😂
Mhmmm
found a funny shorts but can't share here lol
lol
and lungs
no
💀
dont go 🥺
meh ill just try to sleep
or sit in corner of room, and ...
😒
no
😂
get corona test
meh
no thanks
imma pass
mehhhhh
💀
whyyyyyyyyyyyy
goats do na meh
ihu
gn 😂
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)
that seems like a problem with your system
I have the Chrome icon
I have all the icons

I don't use windows 11 but there's like a 0 percent chance microsoft would remove icons
yup
@onyx mist yeah like maybe the only time that there would not be icons would be when the application does not have an icon or when it has a glitched install (it has never happenend to me)
Are they evil plans thou self sabotaged due to being a decent evil guy as seen in many movies lol
@rough sapphire
Yes :D
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.
We moved here to Torrance Ca, so they don't accept anything else but Spectrum.
BUT He could not get into Frontier at all
I would escalate the issue within your current internet company to talk to a manager and threaten an FCC complaint.
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
Well. This is a huge violation of security
Yes it is :00
Got it!
And he's super cocky too, some guy told us at Spectrum that he definitely has a buddy working for him on the side too
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
How exactly are they messing with you?
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
But the worst part is, Is that he pays for the rent'
What happens when they "break into your router"? We might be able to find a solution
It sounds like you should escalate the issue with Spectrum to get them to stop him from breaking into their system if you want him to keep paying and stop him from fucking with you
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.
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
Yeah! they told my mum to talk to seasock team in spectrum, so my mum called them about seasock and they just bounced her around pretending they didnt know them, but then one time she actually got to speak to them so they are real and there
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
Sure sure
I'm just suggesting on how you can handle the situation
also you can post to https://www.reddit.com/r/legaladvice/
There are some people who might be able to hel p you too
Since this is legally tricky
Yes and you've been extremely helpful, Thank'ya very kindly'n Sinthrill >:D
❤️ GL! It's a lot of work but it can be done!
Dude reddit! why didnt i check there .o.
Thank'ya kindly'n Sinthrill >:D
Sheayea! ':00
Yes! Thank'yu for all your help >:DD
NP!
i thought this question is a question for a joke after coming here
Oh haha
did no one really talk in this channel for 6 hours
apparently not
Why did u break the streak
because le funny
No
yes
why 
why
Stop copying me dek
shut up
You are a car that easily flips over
what is that metaphor
lmfao
Mr Bean's Car?
Definitely not that
LMAO
BTW I pinged u in #ot0-psvm’s-eternal-disapproval with smth, mind checking it? Was a question related to the Files application
Windows doesn't let you set a default file manager, at least easily
Don't know if there's a hidden registry setting
Oh rip
lmao
LMAO
there was a spec, but then exactly one compiler actually managed to implement it, so it was switched to a reference implementation @frozen crane
is there some significance to there having been only one compiler? is there something so tricky about the language that implementing it was especially difficult?
What is going on?
rakudo actually managed to work
talking about why raku doesn't have a language spec
😶
ah nvm, it actually has a spec-like thing called the official test suite
rakudo is the source of truth in practice though
is compiling bytecode to machine code easier or compiling python to machine code easier
Probably the former? Most languages typically compile to some IR before going to machine code
:O thx
I mean, they have to
if you're doing codegen from a string, something's wrong with you
you at least need a token stream and syntax tree
you don't need anything, theoretically you could
builds with imagination
s//if you're sane
true, I need some sanity to do the former
nO
if you're going without any sort of IR you're cray cray
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'))}"))
@jovial oriole :white_check_mark: Your eval job has completed with return code 0.
10
ping me if you find an even more inefficient way
@jovial oriole time.sleep(999)
long yes, inefficient not exactly
while True:...
print(int('10'))
this will work if some particles went wrong in my computer
now the indentation hurts me on a spiritual level
is it that hard to press tab?
good enough
lol
hi
Hi
Is there a code to catch errors
or a code to consider what should be the format like int or str
!d try
thank you
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?
#❓|how-to-get-help please
ty
Yes
Yeah, well
I'm not really that active anymore
Switched my focus to communities like QuiltMC
like gurkcraft
hmmmmmm
damn that's cyph's fav channel name
@frank sable Go ahead with your question in this channel?
@solid pollen What happened to your roles?
I left the staff
Oh, sad!
😔
Learn more about nuclear weapons and what you can do to stop them
EN: http://www.notonukes.org
FR: http://www.sansarmesnucleaires.org
ES: http://www.nomasarmasnucleares.org
PT: http://www.fimdasarmasnucleares.org
DE: http://www.neinzuatomwaffen.org
AR: http://www.notonukes.org/ar
RU: http://www.notonukes.org/ru
CH: http://www.notonukes.org...
how about we dont
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
Anyone using Apple Silicon for Python programming?
I do
How's the experience like, of installing python and libraries?
And does it run faster than regular Intel/Ryzen based computers?
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
I am currently using NUC7 i5. Thinking of switching to Mac Mini. Wouldn't want to switch if I had to use x86 Python
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
OK. Thanks
It's good but you have to keep updating libraries or they will stop working properly
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.
i wonder how this otn exist
what OS?
MacOS, I should also add it doesn't work on my home WiFi either basically every other site does
hmmm someone might have messed up the lists of hosts u allowed and disallowed. idk how macos does it though
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
maybe ask some macos user who knows this stuff
i use linux and we have a weird way of doing it too
Firefox actually seems to have a more indepth error, maybe a key is broken? idk how that stuff really works.
interesting. i guess try asking tech support or forums regarding that. did this start after u bought it? or did this happen recently?
I didn't buy it but it's happened for as long as I recall.
have u also tried pinging youtube in the macos terminal with the command "ping youtube.com"
?
if that says nothing, then yes, better ask a tech support person
Not ping for some reason lol, but I tried making a request with requests and a curl request Ima try that now though.
That works, I was not expecting that, now I'm very confused lol
i wonder if youtube works in another browser but i also guessed u tried that already. am i right?
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)
Through my school, they're also brand new this year.
🤔 have u ever thought that maybe it was intentionally blocked but everyone else around u knows how to unblock it?
👀
just me speculating but yeah maybe ask a person from school, and not a teacher
Maybe?
oof
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
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"
Maybe your school whitelisted youtube on its server
Yeah, but it works for everyone else
that's the weird part
Try doing that in incognito
maybe the antivirus or security settings are blocking the connection
Use 1.1.1.1 as ur dns
Maybe all ur classmate did this
Cz many people use that DNS?
oh it sounds scary now
it is
is it like those toys whee you can pull one ear down and another ear will go up
lolz
I forgor the name of it
@rough sapphire
wha
eyo sorry, this channel is occupied for a question
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
oh you trynna make a diphonatine equations?
ok cool, every mod can be converted into a diphonatine,yes
Is it just me who expirences deja goute
@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)
@rough sapphire :white_check_mark: Your eval job has completed with return code 0.
11 4 11
@rough sapphire :white_check_mark: Your eval job has completed with return code 0.
11 4 11
oh yes 7<11
😵
@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)
Could you please share a maths solution?
thats math no?
okay you are aware about
x === y mod z equation right?
I don't know what you're saying?
basically
if i say
x === 1 mod 3
my x would be 1, 4, 7....
you get the idea.
i mean, yes. in a way.
the divisor gets added every time for many solution
gen term = x+3k
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
I gotcha! that's gen term
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
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!
not neccesarily, its about finding lcm. say if i say num divided by 5 and 10, we would answer would be divided by 10.
wdym?
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
Sorry to bother how do I write in code on discord
!code
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.
mhm go ahead
```py
Print(“good morning”)
not like that
did you add a blackslash at the starting?
yes
\Print(“good morning”)
No, don't add it in your code!
User three ticks and then add a py and then press enter and write code and then add three ticks
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...
again, here our x has infinite solns.
Uh oh, put all this in one message
!e
for i in range(5):
x = 762*i
print((3*x) % 25, (3*x) % 7, (3*x) % 13)
@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
yeh right
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)
@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
I am still confused of this pythonic way
there is no pythonic way?
Would you please send me a paper and pen solution? in my dms?
sure, its not urgent right?
i need to run.
yep it is lolz
where>
oh then you gotta figure by your self lol, i need to go out with family, they're waiting from last 15 mins
may be read this again.
and take an example for 2 numbers by yourself. say just 2 and 3.
ofc!!
alr! later!
prove/disprove the collatz conjecture
The best vid that explains collatz conjecture https://www.youtube.com/watch?v=JXPmqL69ZHo
🌟Support the channel🌟
Patreon: https://www.patreon.com/michaelpennmath
Merch: https://teespring.com/stores/michael-penn-math
My amazon shop: https://www.amazon.com/shop/michaelpenn
🟢 Discord: https://discord.gg/Ta6PTGtKBm
🌟my other channels🌟
Course videos: https://www.youtube.com/channel/UCC6Wl-xnWVS9FP0k-Hj5aiw
non-math podcast: h...
Gib him some love
@acoustic moss 
mm
the intro ❤️
What frameworks y'all use for backend
flask, fastapi, expressjs
sveltekit
it is a conjecture so no
i will disprove your existence instead

hmm this
django
Nice
make own 👀
yes sir
on the way
Lol
sure, I'll just dm.
my lovely fren 🙂
That tag suits on me 👀
Ayo what the
ty
wlcm
Hai can anyone help me with java
if it's a large issue take an available help channel and @ me 🤷♂️
otherwise just ask
Those are only for Python
Veritasium has a video explaining it also
Why does the Function I yellow circle does not see the variable above ?!!
@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
are you getting a specific error?
could you provide your code in a pastebin? I'd like to see if there's anything else odd happening
!paste
i'm too dump today
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.
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?
Okay, the problem is in that last pastebin
I add an item to a list that represents, the class I want to add to the scene
What about it ?!
what do i change
Actually wait, nvm. When I was trying to reproduce I had a small error. So the only way that I'm hitting your error is it I comment out that assignment and try to run it. Are you sure your file is saved? Also, how are you actually using the IfStatement class? What does the code look like where you try to call it?
runs fine like this
Also, how are you actually using the IfStatement class? What does the code look like where you try to call it?
that's the final output
but that's not the code for how it's connected or how it's run or setup
this perhaps !
the class is assigned to a corresponding ID
when the ID is called to the graph it creates 1 instance of it
well, it looks like the decorator does a lot of work there, what does the decorator code look like?
Could it be duo to Multithreading ?!
Ok dude
@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
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
it is a decorator
@decorator
def f(): ...
is pretty much equivalent to
def f(): ...
f = decorator(f)
You can make a decorator and use it however you want
!e
def decorator(func):
def wrapper():
print("Hello world!")
return func()
return wrapper
@decorator
def some_function():
print("Hello from some_function")
some_function()
@tranquil orchid :white_check_mark: Your eval job has completed with return code 0.
001 | Hello world!
002 | Hello from some_function
For example, a decorator that makes a function print Hello world! before it runs
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
Not quite, whatever the decorator returns replaces some_function
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
Time to make dpy commands with the syntax cmd = command(func) 👀
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?
no, because im going to steal your idea and you shouldn't copy my compiler 
capitalism
what does it mean when we do **kwargs in a function definition
like, for example
def execute(self, app_id, **kwargs):
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)
@solemn leaf :white_check_mark: Your eval job has completed with return code 0.
{'keyword1': 2, 'keyword2': 3, 'keyword3': 4}
how about we share the intellectual property
Lmao
how much do haircuts cost where you are
yeah around the same for me too.. ~ 40$
Lol
they should make a machine that cuts your hair..
no
why not
UwU
Uwu sucks 
Indeed
OwO
No
no
:(
Hahaha
.uwuify uwu and owo are the best in their lowercase forms
.latex $\mathcal{U}w\mathcal{U}$
Why u all love the words uwu and owo 
.latex $\mathcal{u}w\mathcal{u}$
yea mathcal doesnt work for lowercase
i mean it does, just weirdly
.latex $\mathcal{hello world}$
What the
That looks like hieroglyphics or smth
.latex testing Chinese: $\mathcal{你好}$
lol

sir lance was typing :( now it isnt
dont yell at me
kekw

UWU OWO PR PR PR
😩
after looking at C# code for hours, i can confirm that it is cursed
It's a very good PR, very clean, some would say the best PR ever made
it uses utf-8 in ways unseen before
:angel_praise:
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
help
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
well, im off topic discussing about requests library
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?
what im making the requests to is adding redirects to a corp sign on page
initially I was getting SSL error, I set it to verify=False.. then found it was adding redirects
Gotcha. I haven't had much success navigating / automating anything with Microsoft services like OneDrive / Sharepoint etc
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
oooof
not in python 3, no
thank you
python 👎
Avery woke up and chose violence again, lol
Though to be fair, I don't really know about language differences, so

me when python is bad (id est constantly)
Ikr
don't get it either
404: not found
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
:O
print a function call?
idk
u can print in a func, theres no conflict
!e
def my_func():
print("Some value")
return "some value"
a = my_func()
bit late here..well guess I better hit the hay


