#ot2-the-original-pubsta
652 messages · Page 130 of 1
who do you think actually did the shenanigansing of the rng? shenanigans the doggo or joe the co-owner?
can't find any examples sadly
i used to think joe was the supreme owner but now that you say "co-owner" i reconsider my thoughts
could be staging a coup to become supreme owner by converting the rng first
so basically it's just "no bad practice, in code or in action"
also, discord: fix your kerning - "rng" looks terrible
@dire kindle i know who you are now😳
who am I
icyyyy😏
who is icy
youuuuu
Prove it 😼
Probably I replied to the wrong message, who knows 
https://github.com/xCirno1/discordheximals thats weird because i remember that a certain user named icy gave a commit with a classmethod that returns a random value of a callable
😳

my max is 741 functions😭
Okay, so, icy is the old me and a completely different person , also bad at doing stuff, now I'm cirno, nice to meet you
i missed you, i thought you left or something 
, no one ever missed me
guess im no one😔
why do you suddenly remembered me though?
hehe
well....
sarthak said to me "something something icy"
and i remembered what happen to that wonderful person
so then i used the search button and i search messages from me that included the keyword icy
and so you replied to one of the messages
hehehe im a secret fbi agent
Oh, wow, someone finally searched for me 
ofc you were so nice to me when i was such a little noob
Ahh, so cute, I'll probably be nicer to noobs then 
yes, ive been better skill wise in coding and my life has been better as well what about youuuuu💓
I'm also much better than when I was named icy (I finally got some work to do, I was totally jobless before) 
what do you do now if you don't mind me asking?
I build websites, full-stack developer soon :)
oh wow thats so cool. i want to be a back end developer one day😮
If you really have the will to do that, you'll definitely achieve it, like you're really improving since the first time I met you :)
how you know???
and im so proud of you, youve grown so muchhhhh🥰
I saw your repo 
😏 😳
Haha, thanks
wow, time goes by fast😅
wait, how do you know that I'm younger than you?
youre not😭
I am...
I'm 14
waaaaaaa
lol
i thought you were 18😭
Yeah, poeple often said I'm 16 or smth
yeah well guess i am older 😅
but I'm glad I'm still young, so I still have time to learn many new things
yup me and you were so ahead of everyone
im mostly starting early because i want to be ahead of everyone and because i love what i do 
Me too, I want to know stuff more than anyone else in my age, so I get the effort to learn!
yup its all about thinking ahead!
But as you got better, it's somehow hard to get help with our problems, google doesn't help much, and I think that's an obstacle for me to be better
yeah i mostly just hangout with people who are maybe more experienced or older than me as theyre more humble
its not always the case tho!
ah thats ok sorry for being on your back too much, anyways cya loved the conversation, take care💓
i saw you
you did?😳
mhmmmm

Ferris and gophers and a space turtle 🥰
it is zig's mascot
oh
Isn't it someone from kerbal space program, like Brad's pfp?
@slate leaf is so dedicated towards moderating that he cloned himself multiple times!
God bless him
Or he's too lazy to moderate himself that he made clones 👀
He's my alt afterall

hey
Hey, do you know that WomboAI app which can animate your face and "make you sing a song"? I am just curious, how is it done programatically? For example if you submit a photo of your face where you are calm a with mouth shut, and the app makes you sing "Ho ho ho", how does it animate your mouth?
Machine learning

specifically most likely a type of GAN model
as those are typically used for image generation
Lmao
It's called deepfakes afaik. You use machine learning and facial detection points and GAN models and stuffs to make that
Damn, what was you even doing on that 💀
Yep mua hahaha
Make a pure python 2D 3D graphics library from scratch
is it on pypi
those are a lot of py files on first sight
Not yet
Those are mostly sample code
One file thou is 12K lines and thats the main library
in other news, @soft quiver have u made a dpy slash tutorial and if so can u link me?
Cactii are badass. They like no one. Get closed, get pricked.
Heya! Could any of you recommend the best browser in your opinion? A browser that exceeds in various factors such as security, load speed, etc.
I use firefox because of customizability and its open sourced
If i was to use a chromium browser, itd either be brave or opera
anyone knows what the japanese characters mean? i have been using this image on my portfolio site for a long time but i still dunno what this means
try google translate?
i can pick out like 30% lol
i cant type all that out
top line: according to what _ (says), that's some adverb wrong
hmm
i think (at least on the google translate app) that you can scan images to translate text
thats a mobile thing yeah
ah maybe
top line: according to someone, that's some adverb wrong
lul
the text is broken up horizontally, id be curious to see how well google does with it
hm yeah
"If anyone says it's wrong with hope,
Tell them that they are different every time" - according to google translate
hmmmm
it only gives me translated
can you translate it to korean?
yeah, it's kanji
jp > kor translations are fairly accurate because it's almost 1:1 and then i can translate from kor > eng
all kanji is chinese characters
ok i tried translate.yandex.com, and it says:
"If someone says it is wrong to hope,
each time they are to be loved."
in japanese there is kana (hiragana, katakana) and kanji
in korean there is hangeul and hanja
hanja is also chinese characters
it's not used daily like it is in japan
and isnt korean written phonetically?
but official government documents or old newspapers you will see hanja
it is, hangeul is phonetic
hm ic
yes, though they'd sound different bc of dialects
but like seoul and busan and jeju speakers will also all sound different
some linguists even consider the language of jeju to be its own language
actually i watched a video of seoul in the 80s and they sounded like how north koreans sound now
interesting
just goes to show languages change
2020s korean is a whole other beast with the internet slang
i kept up until around 2010 lmao
no they're not really a factor in how korean slang evolved
they're a factor in the exposure of korean to other countries though
A lot of english words have mixed into everyday korean speech from what I've heard
that's always been the case but it's next level now
my friend was listening to korean rap and they switched between korean and english quite a bit
that's one thing different btwn n and s korea. n koreans won't use loan words from other languages
so in s korea a cell phone is "hand phone" whereas in n korea it's literally the korean words for "hand" and "phone" put together
which i think is not bad at all
wait they call it "hand phone" in english? interesting
yeah but with korean-ized pronunciation and syllables
that's the case with loan words in general, isn't it?
yeah i recognize 手
lol these emoji came up as suggestions
電話 is phone in japanese
you probably recognize these characters
is it not tradition vs simplified?
writing system btwn canto and mandarin is the same i thought
hm
i thought so too
so you asked earlier, you could write this word in kana: でんわ
and you could write it in hangeul too: 전화
but japanese people will 10000000% write that word in kanji, not kana
whereas koreans will 99.9999% write that word in hangeul
unless like, it's an exam and you're asked to write the hanja
so... there are two ways of writing the exact same thing?
sounds like a lot of extra work :P
simplified was to reduce that work, presumably, no?
then there's pinyin
makes sense since spoken form is completely different btwn the two
was this directed at me?
bc yeah there are tons of words that sound the same but have different meanings, esp in japanese
so writing them in kanji totally helps with reading comprehension
reading a long chunk of text only in hiragana is gonna be painful
japanese has no spaces between words
whereas korean does
i was directing it at the fact you said that you can write the same things in kana and kanji
yeah
but ig some might have slightly differing meanings
kana is the phoneticization(?) of the kanji
uh, i mightve mixed up terms, bc this is just a bit confusing 😅
in the context of that japanese word
there is a completely different reading/pronunciation if you're talking about the kanji itself << ok this was not totally accurate, read link below
good stuff. this is why people say learning japanese is hard lmao
im also not doing a perfect job explaining it
i never taught the language
its alright
interesting, but also makes japanese seem like an even harder language to learn
i think the US government has a ranking where they group hardest languages to learn for english speakers
pretty sure chinese, jp, kor are the hardest group, along with arabic
hm
but that's from a native english speaker's viewpoint
@hollow heart @wild compass found it
nice
true
whats the syntax to get the text on image hover thingy in html?
like if i hover my arrow over an image it will show me the alt text or something
alt doesnt do anything if i hover over it tho
it just shows when the image fails to load
like this
oh not alt. title?
hmm
i thought i remembered alt working on hover
same
or maybe i was using old bugged IE

hm google translate was close
changed "to hope" to "with hope"
also change wrong to different in second line
oh yeah
is this channel taken?
doesn't look it
@sturdy relic @jovial island - since Tmail isn't getting commits I made this https://github.com/HRLO77/CLImail
I'm gonna go have breakfast now
i'm into CLIs at the moment but also trying to learn to implement tests and logging and my brain became mush
Please specify versions in the requirements.txt thanks
alr
isn't that all stdlib?
lol
I have no idea, the stdlib is huge
i think i've used all 5 of those, so i recognize them as stdlib
typing, is, obviously
but what happens when someone tries to pip install your requirements.txt? something to think about
i think it's probably not a good idea ..
yeah im fixing that right now, should've thought about that
do you know what you're gonna use for the CLI functionality?
i've tried just plain input, argparse, and click
this is my first time making a cli, it would be a fun project
graduating from input() was very nice lol, i loved argparse in that it showed me A Better Way
you'll love it i bet!
yeah
i'm gonna love it after breakfast, i've been up for 2 and a half hours without it
it does
if you send me your email over dm's rn, i could email you with it
(don't send me ur email)
PS E:\Computer Science\Python> py --version
Python 3.11.0b1
PS E:\Computer Science\Python> py
Python 3.11.0b1 (main, May 7 2022, 22:58:47) [MSC v.1931 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class Foo:
... def foo() -> Foo:
... ...
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in Foo
NameError: name 'Foo' is not defined
why dont this work?
aren't they supposed to be strings in 3.11?
wdym
the problem really is evaluation of type hints while names are still defined/in the process of being defined
you use strings to get past the name errors and python will resolve the types after the class is defined
or you import from future
annotations = _Feature((3, 7, 0, "beta", 1),
(3, 11, 0, "alpha", 0),
CO_FUTURE_ANNOTATIONS)
this should be there in alpha, thats why im askin
they were going to be default in 3.10+ but it seems they didnt want to break other things
i cant find anything about them being in 3.11 alpha or otherwise but my google-fu might just be weak
you could ask in #internals-and-peps
oh 
Python 3.12.0a0 (main, May 16 2022, 09:15:19) [MSC v.1931 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class A:
... def __init__(self: A, *a, **k): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
class A:
^^^^^^^^
File "<stdin>", line 2, in A
def __init__(self: A, *a, **k): pass
^
NameError: name 'A' is not defined
why does future say 3.11.a then?
what kind of code would it break if this was default
i dont think i get it
but i dont really use pydantic or django
just don't worry about it
Wait how did u download 3.12? They working on both 3.11 and 3.12?
sry wrong channle
repo download
i've been trying to get past phase 1 on this forever, if anyone's got any tips on bone platforms 4 it would be much appreciated. (sorry if the quality was bad, limited the recording fps to 30 on obs)
For a second I thought this was the original fight
Then I noticed the music
Sans Rush Hour
I had a really bad time
something you should look into https://wpmailsmtp.com/gmail-less-secure-apps/
smth is changing may 30
not me
as far as I know, and according to the docs, pydantic just works with delayed annotations
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
i want use my gay-meter
<@&831776746206265384> i guess
?
i can show u in % how much u gay
!ban 664050133675016202 given your earlier warning i think you had ample time to read our code of conduct. i'm not certain this community is the right one for you if you care so much about detecting LGBT when you've said before that you hate them.
:incoming_envelope: :ok_hand: applied ban to @wraith osprey permanently.
Did John Tiffany read and watched Harry Potter?
i don't know but most likely yes
i think that that would be this image also i don't know if you wanted it in dm or here so i just assumed here
I found a few in the story
happy to get photography feedback?
ofc how else can i improve
just making sure, some folk dont like received feedback
I dont know how far you in or how much you know, but for teh above pic I recommend cropping out unnecessary details and moving the cat from a more central point in the picture to the right quadrant(?) of the rule of thirds
the bottom layer of the bricks as well as the top of the house roof is distracting imo
you mean something like this
@onyx galleon do you mean something like that because for me that feels a bit to much cropped for some reason
Kind of, here's my example, might be similar
Nah mine is a little less cropped, so aspect ratio is off from the standard 16:9, but same idea
so something like this
Yeah, little bit better, no? :P
maybe can't really tell at this point maybe over 20 min
come back to it later a bit yeah, but to me this is instantly better than the original
the original was already cropped a little bit
i should've zoomed in a bit with the lens would've also caused a bit more background blur
yeah, if you look at some of Adobe Lightroom's tutorials (at least on mobile), frequently the tutorial makers crop photos to better illustrate the subject in the photo
yeah, background blur massively helps with that as well
i will have to wait for another day when 1 of the 3 cats sits there again it happens quite a lot
👍 keep it up
i will thx for the feedback and the time you took to help me
always happy to help a fellow photographer
i didn't start that long ago
have i shown my py program to you im working on..? i think i have already shown you
i don't think you have yet
ok, well it accepts images, gifs/webps, and even videos and processes them to output in terminal. - pure console app no external gui
cool
oh it seems quite interesting (just used the search function from discord to see some of the results)
yea cool glad you like it
maybe if you want to try it on your image you can send one
🥔
why do the offtopic channels get there name changed alot
they are changed daily automatically using names chosen by mods+
@broken trout so it basically worked with a Client object ```py
import pokelance
client = pokelance.Client(cache_data=True/False)
async def main():
await client.get_pokemon('pokemon name'/id)
mhm
in case the pokemon wasnt found by the api, it returned a 404 error
so i simply raised an error in that case
difflib.get_close_matches(word, possibilities, n=3, cutoff=0.6)```
Return a list of the best “good enough” matches. *word* is a sequence for which close matches are desired (typically a string), and *possibilities* is a list of sequences against which to match *word* (typically a list of strings).
Optional argument *n* (default `3`) is the maximum number of close matches to return; *n* must be greater than `0`.
Optional argument *cutoff* (default `0.6`) is a float in the range [0, 1]. Possibilities that don’t score at least that similar to *word* are ignored.
The best (no more than *n*) matches among the possibilities are returned in a list, sorted by similarity score, most similar first.
i added all Pokemon names in a list so when user requires u can get the nearest guess using difflib
😔 that would be really bad bad because pokemon names are too similar,
like pichu and pikachu .. and more
ah
https://github.com/sarthhh/pokelance/blob/bde9a7d2879e77e3ac3f2e76cb9a1ff45b64603b/pokelance/http.py#L20-L34 my current api request method
yeah but u can limit the number of return results
and it's pretty accurate
from what i used
ill try
but currently i have no interest in working with the wrapper
im making a bot which extends the usability of another bot
Shoob bot to be specific
its basically an anime card based game
mhm nice
hey oki
looks huge
it is widely used
shouldnt BASE_URL be a class var as its only used in the class? and why is their a open connection just use context managers and why the useless data var if you arent even using it in another place or mutating it?
its old, but rewrite😏
lmao
the inbuilt annotations does not have an Any, and now since i imported typing and used it once why not be consistent with it? not like its gonna matter in the runtime
wouldnt that matter as your accessing more classes?
just use annotations
from __future__ import annotations allow thats , from 3.7
yes
thats literally milliseconds, and since ive imported Any once, importing other classes too wont matter
i don't like milliseconds and above
well i checked and reddit says python is slow on importing stuff but idk
¯\_(ツ)_/¯
is there a term for the full removal of something which was previously only deprecated?
reddit... anyways
as soon as i from typing import Any which the builtin would no way be able to suffice , the typing module has been included in the pyc, so whats the problem with importing others too when they wont change any memory usage
reddit 😳 , well i can't really say on performance wise as i dont spend my time timing everything
what were you talking about then? 😑 the way it looks?
i time everything all the time

to get a performance boost do py import typing Any = typing.Any del typing instead of from typing import Any
yes i Hate it 😏
or better just use string annotations lol
obj: "Any"
while we're on the topic of time
if we waste time to save time, do we really save time?
in the long run maybe
it isn't real
it's there to help us keep track of at what moment we should be doing something
time god
i could be popping the spoilers in cereal's aboutme but i forgot to turn of the show spoiler content settings
*off
stress for you
even discord doesnt want the stress to get away from me
tehe
anyways, i have maths exams in a few days so ill go study, bai bai
i finished school haha 😏 
good luck on the exam cough cough i never took math this year🏂
tf
werent you just 15
sometimes it's just a genius
don't worry about them there's about 7 more
agreed, oki is rweally smort
i am
i just didnt had a teacher
for the whole year

wait you werent talking about that
well now you know why i didnt took math but i finished already cuz yes
I mean, isn't that the reason people use typing.TYPE_CHECKING lol
what do u guys think bout my portfolio vid?? (link in my about me)
Joke’s on you pal, I like Rick Astley.
for context, this guy is in a class server, joined once, never spoke or went online ever
Lmao
Why would she try that xdd
Smartest discord user
Man who wanna see my dog
That is a very cute and adorable dog
Tyy
More?
🥰
So cute
She’s very lazy xD, she loves to play
I also have two cats If u wanna see
She’s cute. What’s her name?
And sure but disclaimer I’m not as fan of cats 👀
uh, her name is Асий
Asii basically
Cute name
ty
Meditating cat.
Thinking cat.
I don’t know lol he just sleeps 24/7
He do be winking
Yeah xD
wow, sorry to hear that
Used to it now haha
my puppy is so adorable
Gangster cat
Mafia Cat
Lmao
Even birds?
Dude, my dog loves to play with the gray cat
my gray cat litterally hug him and slapped him xD
One of my birbs
Eh, never got birds in the house, but they basically hate pets cz the mess they make is unbelievable sometimes
Oh look its Master Shifu
Lmao the moment would have been damn cute
I guess once you move out of your parents house you’ll get your own pet
5 secs later my cat slapped the dog
Yup, that's one thing in my bucket list, among others
Lmaooo
I wish you the best in crossing off that bucket list
Mine is to move out and live alone some day.
Haha I got a huge number of things in my bucket list, first being, getting a job as a software dev
Damn what he dreaming abt 🤣🤣
Lmao
Lmao imagine yr cat slapping the dog while he's sleeping
I’d love to work remotely so I can buy myself a van and travel Europe… some day, some day…
No plans to work remotely, I just wanna settle in the USA
Lmao
What if he's evolving to grow legs
Bipedal legs
Look at the image above I’m pretty sure he isn’t, if he was he wouldn’t be dumb enough to play dead when he has to the vet 😂😂
hi
Hey
!otn cute-pet-pics-only
@broken trout I only play Fortnite, GTA 5 Online sometimes and they don't have ranked lol
Tho I always die in the top 10 in fortnite for some reason
lmao
I almost never get mad at it
Since I just try to learn and have fun instead of grind like others
i used to play lol fortnite a bit and supercell games few times
now stopped everything🥲
Haha I only play those 2 games
.
I hate Poetry, that is all, I'm so sad this system has be wrapped around this runtime that will eat it's own
you have to brew first!
Coffee
I love walking into June the First and then searching !ban here /s
Sounds like a good time! How do you search "!ban"?
I mean, searching !ban in the Discord search will do
ofc 😆
Why
It works well enough
The only issues i've had with poetry was updating poetry itself
And some doc issues but they should have been updated by now
@ashen imp
Hey bro@ionic canyon
Ok see 74% of the worlds websites run php as a backend, which is already pretty big but you have the fact that product driven companies dont usually create non web apps to sell products because whos gonna download that?
Also php developers get paid a lot
How do you ssh into coffee, I only accessed hot chocolate
Weird, I got access to cream
it's in the brew cycle...be patient!
I'm going to take this out of context
lotsa coffee drinkers in the am
Ah, I see. I'll try again soon
@remote widget I hope my high school life isn't like yours, I would like a lot of "free time" to sharpen our talents
Hahaha if u r gonna take science, then I don't think u gonna have enough time apart from studies
But then, idrk yr subjects and what chapters u study in highschool
😔
I won't have been here chilling if I had taken science lmao
@jovial island i dont
Guys what is the low level hardware threats and vulnerabilities of the internet of things
like where can i find a link to read about
chill stop hating
if you're religious in terms of christianity then hate is invalid
!cban 875120694030127105 Bigotry isn't acceptable here
:incoming_envelope: :ok_hand: applied ban to @agile kiln permanently.
hi
how is everyone today
#python-discussion is wild this morning - not quite sure maybe school is out or sometihng
Tired of people tbh
ya lol
on the other hand, it's nice to be able to weed out all the people we don't want
weed o_o
made some improvements to my py app (rendering images and videos in terminal) im working on. recent changes include:
- 50x faster 8bit color conversion using quantization
- flawless output for gifs and videos now - used to have major flickering every 1/5 1/10 frames so that's completely reduced now
- also did some prep for structure and docs for when im ready to release
seems like some news accounts joined just to get banned - probably same user(s)
nothing better to do
if anyone would like to give some feedback/suggestions or is just interested in image/video processing in python feel free to ping and i can show you some results
detecting jpeg compression artifacts and cleaning them up
hi, can anyone help me with a simple excell problem
how do i make the MG box
calculate 0.4B + 0.6C
when i type =0.4B + 0.6C in the fonction box it doesn't work
@ me if u ever reply, thanks
what is C?
instead of replace 3, just grab the square in the corner and drag down
it automatically "replaces 3"
This is why I’d rather live on a plot of land somewhere, big ranch, lots of animals and self sustainability.
Alas, I need big bucks for that
Its just been a busy day for moderation, I tend to like people in the general sense
I don’t know how y’all can do moderation in a big community long term
It’s darn hard
i like people in the "get the fuck off my lawn" sense! lmao
Not quite the point I was trying to convey
@thorn dragon @tall temple so do i have to type that in each column? isn't there a way i can make it work for all the boxes of "MG" without having to type it manually in the columns one by one
nvm i found the solution
it's "type it in the first box only, then drag the whole column and press ctrl D
i try to avoid people when possible
i don't even know 20% of my classmates names and i think i have between 18 and 25 classmates
i only know the names of like 5 of my classmates it has been more than 50% of a year (not school year) and those 5 are also the only ones that i probably have said anything to
dude try to connect with people. being uninterested in other people is not something to be proud of, it will bite you down the road
speaking from experience here
how do i embed one of the gifs on the bottom right of the message box? It just pastes the link
i only try to connect with others that are actually nice to me
but if you only know the names of 5 classmates, how do you know if the rest would be nice to you if given a fair chance?
it can be a self-fulfilling prophecy. if you think of yourself as an unapproachable loner then won't other people start to see you that way?
there is a lot of context that you don't have and i don't want to tell
think about all the loners that would be nice to you if you connected with them
I'm sure there is. I just remember being like that when I was young and I think I really denied myself some opportunities for growth. It's hard to catch up on these things when you're older
idk why you wouldn't want to at least know the names of some people in your class
input -> output
that seems quite nice
thanks, finally was just able to get rid of the flickering in the output of gifs/mp4s. used to have pretty bad flickering
What downscaling mode is that, by the way? NEAREST or BICUBIC?
hey, i had to look in to it since I'm actually using default
If the image mode specifies a number of bits, such as “I;16”, then the default filter is PIL.Image.Resampling.NEAREST. Otherwise, the default filter is PIL.Image.Resampling.BICUBIC
so hmm
try messing with it, putting it down to nearest or up to the fanciest mode the name of which I forgot (the docs have a table, the default bicubic is second fanciest)
sure, what should I expect to notice - speed or a difference in output
I'm talking about output quality
speed-wise, profile your program first to know what takes the time
ok, I should probably mention something in regard to that then
there is actually some manual optimization being done before the resize
as in
I'm actually doubling the width of the image but keep the height the same when the optimization setting is enabled to account for the height/width of characters. (instead of putting 2 of the same character). I think this may play a role in how it is rendered with the resize
I don't have to enable the option, so first i'll test the resize modes without any optimzation
speed is negotiable at this point after fixing the 8bit method
quality is in favor
Good job
basically, all of the resampling methods are various algorithms to determine what to color the output pixels, based on what the original pixels are around the same location
Is it perhaps open source?
the default is bicubic, which is pretty fancy. But for discretization to a very low resolution, I've found just NEAREST works well sometimes, because all the others smoothen the image a lot. So yeah, play around with it.
that's the goal but i'm not to that point yet and don't want to rush it. going to share it here when i post on github. would like some time to finalize format/docs/tests/etc
(Don't make any speed-based decisions without profiling your program, in general. I would expect the resizing to be fast compared to the quantization, and so useless to optimize)
Oh yeah, I see
bicubic (blurry) vs nearest (clear) - i think for the jet gif the bicubic honestly looked better though
i wonder how long it will take to decide how to implement a rule to determine which mode to use based on type/resolution
or maybe just allow the user to specify
hmm, I bet this question was investigated by people automatically generating pixel art and stuff like that, but no idea how to google it
i would do that just give them a small explanation of what they do
Am I reading this UI correctly? From the background of the tile, it looks like you just moved Ba4 to Bd7, but that would have meant the previous turn was an invalid board state, as black would have had to move the King into check?
Oh wait, I'm guessing you did Bxd7 on something, which would explain that
Ignore me 😅
regardinh the channel name, you can segfault in python?
python has significant portions built on C, so yes, you can trigger segfaults and other C errors in python. it's just not very easy
not very easy in snekbox
!e ```py
from ctypes import py_object
py_object.from_address(0).value
@versed wigeon :warning: Your eval job has completed with return code 139 (SIGSEGV).
[No output]
yeah
(without c interface, from https://codegolf.stackexchange.com/a/4694)
!e
import sys;sys.setrecursionlimit(1<<30);f=lambda f:f(f);f(f)
@pseudo creek :warning: Your eval job has completed with return code 139 (SIGSEGV).
[No output]
!e ```py
import sys;sys.exit(139)
@versed wigeon :warning: Your eval job has completed with return code 139 (SIGSEGV).
[No output]
@pseudo creek simulating a segfault
the admins and mods would be hella mad, but i wonder if it's possible to crash the snekbox itself?
@versed wigeon :warning: Your eval job has failed.
A fatal NsJail error occurred
we dont mind you trying, as long as you tell us how you did it if you succeed
ok but how do we do it
Lmao
maybe, what's the problem?
ok so basically im extending this class called Rectangle in Javafx cause i want to add some custom stuff to it and im making a new contructor. i wanna be able to pass a new parameter and also pass parameters from the rectangles original constructor
package com.dubiner.tetrisfx;
import javafx.scene.shape.Rectangle;
public class RectangleMod extends Rectangle {
private int flag = 0;
public RectangleMod(int flag){
super();
this.flag = flag;
}
public int getFlag(){
return flag;
}
public void setFlag(int flag){
this.flag = flag;
}
}
thats the code
but, later on i do this : ```java
board[i][j] = new RectangleMod(i * recPixelSize, j * recPixelSize, recPixelSize, recPixelSize);
i wanna also be able to pass the flag parameter along with those 4 params
do i use ```java
this();
@feral meteor
so you need a new RectangleMod constructor which accepts 5 arguments right?
yah but how do i pass some of those parameters to Rectangle?
using super I believe
something like:
public class RectangleMod extends Rectangle {
private int flag = 0;
public RectangleMod(double x, double y, double width, double height, int flag){
super(x, y, width, height);
this.flag = flag;
}
}
public RectangleMod(int flag, int i1, int i2, int i3, int i4){
super(i1, i2, i3, i4);
this.flag = flag;
}
``` like this?
ok
yah thats what i thought
tysm it really helps talking to someone lol
ofc! glad to help
also, java > python 😏
Heh I prefer to not have to write public static void main every time I write a program but to each their own
then channel name is how fast can you segfault, not how fast can you be wrong
well intellij allows u to just type psvm
i just like the structure in java
also im biased cause java was my first language sooooo
sout in intellij is veery nice
i prefer to be able to write fast code that runs efficiently on basically any platform, including a toaster
I prefer to turn my computer into a toaster by writing inefficient Python
ty
i was doing this leetcode problem with a friend. his solution took 40ms to run
(in python)
mine (in java) took 7ms and my code wasnt even especially clean
mine (in C) took 1 ms and it's very unsafe
LOL
c is for chads
im planning to learn in a few months
and then im gonna learn assembly 😈
Makes sense I think. I believe a lot of work has gone into optimizing JIT compilation in HotSpot
Haskell can also be pretty fast if you use the right abstractions https://www.microsoft.com/en-us/research/wp-content/uploads/2016/07/haskell-beats-C.pdf
ye
i do not understand a word on that paper
😂
For me the takeaway is, the compiler knows a lot about what your Haskell program is doing, so it has a lot of leeway in terms of how to optimize it
assembly 😔
indeed
GHC is another instance where the compiler has been the subject of countless grad school hours too.
what is haskell used for
C is usually faster than handwritten assembly though
usually
It is mainly used for writing GHC, the Haskell compiler 😉
wait what
Idk it can be used for anything but I think it will never get super mainstream traction. Which is neat in its own way because it ends up with cool language features
functional programming is a pretty mind-altering paradigm, would recommend it
could u suggest any tutorials about it?
i heard rust is a good functional programming oriented language
Haskell is purely functional, I think Rust borrows from a few different paradigms
haskell would have the most resources available among the fp languages
Idk what the best resources are these days, I remember liking Bryan O'Sullivan's book Real World Haskell http://book.realworldhaskell.org/read/
i followed learn you a haskell (http://learnyouahaskell.com)
is rust more popular in the industry?
These days, probably yes
ok
.randomcase facebook uses haskell for its filters
fACEboOk uSES HAskeLL for its fiLTeRS
Is 2022 The Year of Haskell on the Desktop?
yassss
I think something that both Rust and Haskell share is a lot of emphasis on putting the type system to work
Types are logical propositions, programs are proofs.
what is type system
Type system like in java where you say x is an int or whatever
But it can be extended to be much more expressive than that
huh
interesting
unfortunate thing is i dont understand anything on that wikipedia page
no worries, I guess the takeaway is that type systems can be very powerful and let you prove basically arbitrary things
Actually yes, very similar but different haha
epic
This is getting a bit to the boundaries of what I know but AFAIK modern math is built on ZFC (Zermelo-Fraenkel set theory) which is basically set theory + axiom of choice
Some other people have tried to use type theory as an alternate foundation for mathematics
Unfortunately one of the main people working on that (https://en.wikipedia.org/wiki/Vladimir_Voevodsky) died several years ago so I'm not sure if much further progress has been made
Vladimir Alexandrovich Voevodsky (, Russian: Влади́мир Алекса́ндрович Воево́дский; 4 June 1966 – 30 September 2017) was a Russian-American mathematician. His work in developing a homotopy theory for algebraic varieties and formulating motivic cohomology led to the award of a Fields Medal in 2002. He is also known for the proof of the Milnor conj...
rip
seriously, if this guy got another few decades we might have a whole new foundation for mathematics
meanwhile I'm just over here playing Apex Legends
same here ugh
indeed
time for bed, goodnight!
ah yes fishhook
sup
Rust is freeform for the most part
But it very much exists as an ML language
I want to try doing some ML in Rust
it does have bindings to libtorch, so should have all the capabilities of pytorch if maybe in a less easy to use interface
Anyone else got brain issues when #python-discussion moves too fast or is it just me? :Think:
i love how you both just switched between two definitions of ML in like 2 messages
you could always stick some pyo3 macros in it if you can't and call it a day
lmao
👀
@crisp tree Why did you just close the channel?? I wanted to ask questions!!! There is no need to just close it like that in the middle of a discussion!
The channel will automatically close after a certain amount of time
ok sry
hi
got a qustion
#Write a Python program to help the paint store with their mixing by obtaining the required mixed colour
#(o=orange, g=green, or v=violet) and any tint/shade needed for that colour (t=tinted light, s=shaded dark, or
#m=medium...no black or white additives) as input and display, with appropriate labels, the colours mixed to
#generate the required colour given as input. If an invalid input option is entered, the program should display
#“unknown” for any information relevant to the invalid input. See sample input/output below for formatting.
#solving for orange
mxcolor = input ("Enter the mixed colour you need (o=orange, g=green, v=violet):")
st_color = input("Enter the tint/shade for the colour (t=tint light, s=shade dark, m=medium):")
p = ("unknown unknown = unknown unknown")
if mxcolor == "o" and st_color == "t":
p = ("Light Orange = 1 part Red + 1 part Yellow + ¼ part of White")
print(p)
elif mxcolor == "o" and st_color == "s":
p = ("Dark Orange = 1 part Red + 1 part Yellow + ¼ part of Black")
print(p)
elif mxcolor == "o" and st_color == "m":
print("Medium Orange = 1 part Red + 1 part Yellow")
elif mxcolor == "o":
p = ("unknown orange = 1 part Red + 1 part Yellow unknown")
print(p)
#solving for green
if mxcolor == "g" and st_color == "t":
p = ("Light Green = 1 part Blue + 1 part Yellow + ¼ part of White")
print(p)
elif mxcolor == "g" and st_color == "s":
p = ("dark Green = 1 part Blue + 1 part Yellow + ¼ part of Black")
print(p)
elif mxcolor == "g" and st_color == "m":
p = ("Medium Green = 1 part Blue + 1 part Yellow")
print(p)
elif mxcolor == "g":
p = ("unknown Green = 1 part Blue + 1 part Yellow unknown")
print(p)
if mxcolor == "v" and st_color == "t":
p = ("Light Violet = 1 part Red + 1 part Blue + ¼ part of White")
elif mxcolor == "v" and st_color == "s":
p = ("Dark Violet = 1 part Red + 1 part Blue + ¼ part of Black")
print(p)
elif mxcolor == "v" and st_color == "m":
p = ("Medium Violet = 1 part Red + 1 part Blue")
print(p)
elif mxcolor == "v":
p = ("unknown violet = 1 part Red + 1 part Blue unknown")
print(p)
elif mxcolor == mxcolor and st_color == st_color:
p = ("unknown unknown = unknown unknown")
print(p)
elif mxcolor == mxcolor and st_color == "t":
p = ("light unknown = unknown")
print(p)
elif mxcolor == mxcolor and st_color == "s":
p = ("dark unknown = unknown")
print(p)
elif mxcolor == mxcolor and st_color == "m":
p = ("Medium unknown = unknown")
print(p)
else:
print(p)
i have an issue
it wont be able to get an answer to this
Enter the mixed colour you need (o=orange, g=green, v=violet): p
Enter the tint/shade for the colour (t=tint light, s=shade dark,
m=medium): m
Medium unknown = unknown
But I don't even own the servers lol
I have the source for it it grabs no IPs at all
yeah but it's google's fault for showing the IP
didn't say it was you
when react 💯🔥
GG
we ❤️ react
react pullin up with that 30kb bundle 🥶
💀💀
@fluid plank Is that you in the gh pfp?
he’s sleeping rn
Sad
Okay, I'm going insane here. I remember reading or hearing an anecdote about an actor who was told to go to Hollywood hills and scream and scream and scream until his throat hurt to change his voice
I cannot for the life of me remember who the actor was
Older actor, not something recent
Maybe it was a singer...
Hnnngggg
Sounds like a Bale move
But is probably not them
It is not
Every time I look I just keep finding stuff about the Scream movie
Which no
Rock Hudson
Opal found it for me
.wiki Rock Hudson
Rock Hudson
Rock Hudson (born Roy Harold Scherer Jr.; November 17, 1925 – October 2, 1985) was an American actor. One of the most popular movie stars of his time
Rock Hudson (film)
Rock Hudson is a 1990 American made-for-television crime drama film directed by John Nicolella. The story is based on My Husband, Rock Hudson, a 1987
But I can't find the full anecdote
Okay, for all my JS/TS and related framework folks. I'm looking to deploy a pretty-much static NextJS thing. What is your preferred deployer?
So far I'm aware of:
- Netlify
- Vercel
What are the big things I should be looking for? I can pay would prefer to keep the cost low or constant
@winter cove you've deployed some stuff, right?
If it is a personal project and you have it open on github vercel will allow you to deploy it completely free with absolutely no friction
It's for my non-profit
Hmm, I wonder what their exact wording is
Again, totally fine paying as long as the cost is predictable
I'm just a bit overwhelmed by all the choices when I try to look into it
vercel has production and preview deploys and also deploys PR's which makes it easy to review changes
sure, you'll be paying for a domain anyway
Our Hobby plan is for personal, non-commercial use. Pro is for small teams with moderate bandwidth and collaboration requirements. Enterprise is for teams seeking greater performance, collaboration, and security.
this is what they say (vercel)
Does vercel provide features that other deployments don't? Like I know netlify is a competitor
I honestly have no idea, but I know I had a great experience with Vercel
I haven't really used any other deployments although it's just very nice to stay in the vercel ecosystem where you can if you are using nextjs
i think you can only make 1 free project in netlify and then its paid
Yeah, I have had a nice experience with vercel
I wonder if non-profits are considered commercial use
what's part of the vercel ecosystem?
nextjs is made by vercel
I was more talking about how next.js is made by vercel
ooooh, it is?
yep
Hey Guys, i want a littel Help with my Code. Where can i post my Code?
There to many channels
Check out #❓|how-to-get-help
@opaque pewter
Hi
Ok so
what up gang
Everything connected to the internet is vulnerable
And ill tell u why
The govt basically has access to everythinf
Except apple as it's a fruit
Ok so
Lol
any linux users here
First
Nah I use linspire
Linux is not really that private
Not much of a surprise? Btw what if you use an encrypted proxy/VPN/Tor somehow? What can they do then?
It's secure
Well
that's linux
Vpn has data which gov can request
Tor developers tell the NSA of vulnerabilities a long time before they patch it
What about a self hosted VPN on a VPS?
says who
VPSs are monitored
They can decrypt the request
Ill send u proof
Self hosted tho. With no logging.
They can monitor requests to site / from ip and decrypt them
Also u need a ISP provider they can ask for those logs
Hmm.
The only safe way is to host everything securely on Ur end using wires
So people can't connect
Ok so
Afaik ISP need to have logs of atleast the last 6 months
Also
Depends on country
Yea
But the least is 6 months iirc
Ye
Anyways
Tor exit nodes are hosted by the Nsa
NSA and the FBI
Plus
Tbh it's not just the NSA anyone can do it
Streisand effect plays a huge role here
Ofc
And also
Look up
- Intel ME
- Vault 7
Using duckduckgo even tho its prob comprimised
Hardware and software has backdoors
Even Linux has backdoors
If the NSA couldnt break into a system then they're not doing their job
coughs helloworldOS
Tor nodes are often malicious
Lol
Or linspire/ javaOS
So lets say for example
You use Tails OS
And use your phone which has MicroG as a wifi adapter
And you capture packets and have a firewall on it
And on the system
First of all
If you connect to tor directly
Your ISP will log your IP and probably put eyes on you
If you use an obfuscated bridge
Your ISP will also notice unusual traffic
Wait brb
Well i dont got much time
But my point is
Every system is vulnerable and is spied on
And if you try so hard to have privacy/anonymity
You wont be able to use basic services
trying to debug library code. i find this https://github.com/notify-rs/notify/blob/v4.0.16/src/poll.rs#L155-L165
src/poll.rs lines 155 to 165
});
}
}
}
}
}
}
}
}
}
}```
goddamn
this is a 😔. code works locally, does not work in development docker container
@jovial island why would be that
cause you're the smartest of us all
I beg to differ
well, facts
why do u say so
axiom?
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments
Someone was watching JD and AH case very closely
nah i just studied 9-10th standard maths properly
you should remember something like "Euclid's Axioms and Postulates"
All I remember is there was a shitty theorem named Euclid Division Lemma
yeah, that's related
name of the chapter btw
I don't remember smth like "axioms and postulates" stuff tbh
I just remember the name Euclid
Euclid is pleased for you remembering his name😂
👀 what is different about a java import ?
Idk
we don't need to import classes like from file import Class but without the file ( if im not wrong )
cause its similar in Kotlin, and thats why ive been taught
👀👀👀
i have another pair of eyes there, im chillin 😎
dont make me do it
me with glasses
do it...
lmao
I need glasses, but dont want to get em, gonna push it till im blind
eh i just got them for eye protection
they actually have a power of just 0.25 dioptre
what you doing lurking 
oh, nice 👍



