#ot2-the-original-pubsta
652 messages Β· Page 69 of 1
The leaked dev iso was really snappy on a VM I ran solely on an HDD, with 8GB of RAM and 4 cores
https://i.imgur.com/hNR4TnL.png Desert, appropriately named as it dries your eyes out
and night sky which appears to be related to the syntax themes by the same name https://i.imgur.com/kRkpxN6.png
Dusk is my favorite, and I genuinely might use it day to day
I just like how it looks.
Oh, nice. Hopefully I can run it on my 4gb ram ssd computer well enough, assuming the computer lives till then
Do you have TPM2 chip?
Yup
(Keep in mind this is a DEVELOPER PREVIEW INSIDER ALPHA, NOT EVEN A BETA YET)
it has a bit of an issue with file explorer, at the moment
I was genuinely surprised when I found out yes
it is likely that this will not be a hard requirement in the future.
Microsoft apparently somewhere stated they will work on bringing 11 to "Compatible non-tpm2 systems in the future"
I wouldn't read much into that statement
yooooo
you can edit the colors directly.
custom computer theme to match my editor's syntax theme
let's GO
you can use hex codes in the color picker now
The only stable thing in my life
so they're slowly eliminating it
That's nice
it's mostly sysadmin stuff in the control panel now
like advanced network adapter settings, etc
stuff that isn't neccessarily "user-facing" for the average user
just look how small it is now, compared to vista/7
and even some of those aren't control-panel only
@steel eagle is it stable
no
This is a developer alpha
it has its issues
https://i.imgur.com/2K5BBTt.png @shrewd lance
I crossed out everything that you access through the normal settings menu
have fun
I'm enjoying it so far, despite the issues
I just removed the taskbar from my second monitor until it's fixed
join the windows insider program
on the dev channel
what bout the beta option
if you're prepared to deal with potential system breakage and issues
Beta isn't available yet for 11.
it's not ready for casual everyday users yet
See: Taskbar doesn't work with multiple monitors at the moment
and the high contrast themes kinda, break things
are you joking
or that dense
which is more stable beta channel or release preview channel
release preview
wut does that mean
Dev is Alpha
Beta is...Beta
Release Preview AKA Release Candidate is final stage testing before being released to general public
just like python builds :)
does Windows 11 have RC?
thanks a lot
not yet, it's only in alpha at the moment.. as I've just said twice in the past 5 minutes
Cool
wut is rc
I did have an issue when I rebooted where my main monitor didn't turn on, yet was detected
But I think that's more of an issue with my monitor, it's an MSI Optix high refresh rate IPS
it takes a WHILE to turn on, regardless of what it's plugged into
get windows insider
everything is really snappy compared to 10 on my system.
enable windows insider in the dev channel, in your windows 10 settings menu
good to hear
then run through windows update
u didnt do this on ur main machine right?
LOL you wish
bruh
what if it breaks
Β―_(γ)_/Β―
so u have all ur data?
Anything important is backed up already
the "upgrade" process was smooth?
i see
It was very smooth, yeah
interesting
show more options will take u to the old context menu
maybe it refreshes better now
well
was refresh useful?
lol
i love this one
i dont like the new file explorer headers tho
wsl acces?
wait
all ur files are on it?
i thought it would get corrupted or some shit
lmao
oh wow, you no longer have to do that horrible $wsl thing
bruh epic
\\wsl$\Arch\rootIG it is not too terrible
no, for the third time, READ, you MUST use the DEV CHANNEL there is NO BETA AVAILABLE!
Do you want a smaller taskbar?
that is correct. Do that and then go through windows update as normal. I will answer no farther questions
though I don't genuinely recommend you do this
I am going to wait for w11 to be stable before trying it out
as you don't appear to have the knowledge/depth required to run an alpha build of windows.
don't want to deal with backups and bleeding edge
got enough of that when running arch
yea same
did they consolidate settings and control panel?
i am resisting the urge
moreso than 10, yes.
alright
nice
https://i.imgur.com/2K5BBTt.png this is what I posted earlier
lol what did u expet
I think they want to keep some control panel for enterprise users
everything crossed in red is accessed through the new settings menu
oh
you might want to scroll up, I posted a lot of screenshots and stuff @somber belfry
y tho
I was scrolling up and i got pinged lol
this is where I started.
light mode user caught red handed 
l i g h t m o d e p s y c h o p a t h
wat
wrong address, take a left at #python-discussion
I prefer light mode for everything but programming
Thank
and honestly, even for code I am kind of debating it

lol it causes headache for me
its like dark-light mode
dork mode
if discord had a less terrible font, I would be using light mode
discrimination in its purest form
I wasn't aware there was a crossover of pogs players and scheme programmers big enough to warrant mention
what do you mean?
dude just a joke I hope @round moss was not offended or were u?
it's not available in beta channel
windows 11 doesn't have a beta yet, right?
as I told you four times
yeah
This kid's just a troll
Just ignore him, he's definitely not serious.
it does not
I told you this, FOUR TIMES
but you don't listen to me.
were u talking to me?
No. DataData.
Either a troll or...just insanely dense.
well, at least you know, I guess.
I really recommend you don't
bruh awoo said dev so many times
You are not going to be able to deal with issues you get on the system
I would strongly suggest not using bleeding edge windows versions
You're going to come up with a problem
and then you're going to come here
and ask us how to fix it
ikr
and we're ging to tell you there's no way to fix it
and you're going to keep asking how to fix it
the main reason windows is so stable is because of all the testing that goes into the updates
and we're going to keep telling you you just have to wait for an update, but you won't listen
and you're going to lose important files
your system will crash
and you'll get upset
remember when a windows stable update broke numpy for like 10 months
you've proven that you're not capable of running dev already
tbh, windows pushing everyone to dev with windows 11 may turn out to be a mistake
well, they're not PUSHING anyone.
"hey we have this cool new thing you can try right now if you do this thing whose consequences we don't really explain"
the process of getting 11 dev channel enabled on my system was less than easy
I think the warning message is good enough. It warns that it may be unstable and break.
If that doesn't deter you, you deserve whatever cricumstance prevails
hopefully
and at least with the new forced onedrive integration most of your files are backed up in the cloud
for 30 days, and it won't stop file corruption
you can avoid it
but the default is everything on onedrive
so I call it forced

I really hope wslg ends up good
I would love to just have emacs on wsl work with no issues
I should learn proper emacs someday
but with how prone I am to wrist pain, it is not a great idea
I just use evil-mode
but it is by no means amazing for scheme
nice
agreed
But this is just...another level.
are the animations nicer?
damn
looks prettier, better multiple windows on one screen support, wslg, extra security (supposedly), seems like you also get more customisation.
I am mostly interested in wslg
if it ends up as promised, it should allow running linux gui apps in the exact same way you run native gui apps
you can pin them to the taskbar, have them in a start menu, etc.
now, it is still in preview, so it may turn out to be kinda shit
I think the idea is just to sort of reduce the usecases of desktop linux. For the vast majority of tasks, both OSes will work well, and if getting the "linux only" stuff on windows yields fewer seams than getting the "windows only" stuff on linux, it would be a good merit for not switching to *buntu.
I mean, really it is. Microsoft have even said that directly.
Direct storage is nice, it's also just in general optimized better
it's snappier and faster, and I just did an in place upgrade
Windows 11 has all the power and security of Windows 10 with a redesigned and refreshed look. It also comes with new tools, sounds, and apps. Every detail has been considered. All of it comes together to bring you a refreshing experience on your PC.
- Microsoft
If your accessories worked with Windows 10 and meet the Windows 11 requirements, they should work with Windows 11.
Most Windows 10 PCs currently being sold will be able to upgrade to Windows 11
and it is a free upgrade
But does Power Toys support win11, that's the real question
not sure why shitcord isn't embedding it
Because at this point the color picker is a must-have
if a program supports 10, it should support 11. no reason not
ooooh, sweet
the only potential reason if it the developer has a test of "if windows.version == 10"
color picker does work.
Ignore the weird bit at the top, that's my game recording software
Anyone interested for a round of chess with me?
what's your rating
what do you mean, account where?
I'm asking what your rating is in general lol
like, never made a chess.com or lichess rating? I'm assuming you don't have a FIDE/OTB then
Nope
I played and I have a chess player passport I think
But it is 5 years old I think
aha
this the new insider build?
i'd like to give it a try but i'm not on the program
it's easy to join, but I wouldn't recommend it if you're not deeply familiar with windows, the registry, and the like
I spent a good hour or two doing registry tweaks to fix little problems
@jovial island^^

It is a dev build after all, do you mind sharing some of the bugs you've encountered?
the only real bug is that multi-monitor taskbars don't work
hm i have no use for that feature.
I'll give it a go on a separate hard drive
Oh wait, you can't download the raw iso for it can you?
yeah I'm gonna try that
Yeah i was lazy to set it up
Why would one Arch WSL D:
seconded. Why?
So let's see
Change hard drive, erase files
Convert to gpt, install w10
Join insider program, update to 11 preview
Do whatever tweaks necessary, proceed to open suse install
Great, something to do in this otherwise boring day
jeez
i swear building softbody sims with rigidbodies is gonna kill me X_X
@covert mango img here since none in general
LOL, I was wondering if there was a line of code
yeah, sry lol
yo it works
wot am I looking at
softbody sim
the girl who lives here is very pretty
who lives in linda?
I do 
π€―
listen linda
uh, bro???
bnrug
Wdym by dat
linda
bruh*
linda not india
cynthia, not lidya

no correlation at all
thanks for clearing that π
what is a good modern alternative to c++? i've seen about D, Go and Rust. what are your thoughts
Rust is great
ooh why
D is used by like no one
(exageratting, but it's not a popular language)
yeah, nvr heard of it till tooday
Rust is pretty amazing
yeah, no data races is quite nice
it can do all c++ can do?
though pony is better for that IMO
Go, I think, is somewhat different from both - it is focused on concurrency using goroutines, AFAIK?
yes, rust can do everything cpp can
cool, sounds like a good bet
well, yes, unless you mean library support, which Rust is going to have a lot less for probably like another decade
I do think Rust is also just nicer to program in than C++ in most cases. It happens that you need to use unsafe code sometimes, but it's not often, and most of the time the borrow checker does the opposite - protects you from making dumb mistakes
yeah, my main annoyance with rust is that it is often too forgiving, so the only way to truly know if your design works is to just write it out in full and see if it yells at you
also, compiles slowly
should i learn rust straight away or learn c first?
do i need that kind of foundation like people recommend if i want to learn cpp
you can learn rust first, but some of its features may feel useless if you didn't experience life without them
also, you should not learn C before cpp
cpp is at this point very different and you can have a much nicer time programming without putting up with C
yes
not me either
not me either
me, but I think it's again the rules
Python:i also have numpy π
i'm just starting to get somewhat used to numpy and god it's hot
interesting
damn
aaaaah
I realised I introduced a heisenbug into my own code
guess what I did? I have a macro that does nothing if a constant is set.
sounds like a city name if it were heisenburg
bug?
theres a heisenbug?
actually i feel like i have heard this before
In computer programming jargon, a heisenbug is a software bug that seems to disappear or alter its behavior when one attempts to study it. The term is a pun on the name of Werner Heisenberg, the physicist who first asserted the observer effect of quantum mechanics, which states that the act of observing a system inevitably alters its state. In e...
That is, it had:
if SOME_DEBUG_CONSTANT{
return;
}
AHA that guy
the macros-savvy of you already know what happened
william heisenberg
that return isn't from the macro's scope. It's from the function.
When I disabled debugging (and only then!) a function of mine was returning without doing anything...
wait why would u return from a macro
lol
epic
https://www.codingame.com/replay/567312473
here's it beating its previous version
(it better beat it all the time, because that's exactly how it simulates its opponent - as a lesser version of itself)
Chess game anyone?
They are maybe to good for me
there's everyone from first day players to long time veterans there
plus it gives you a reason to set up an account and get a rating
lichess best chess
vat?
hi
come here and accept the invite of lichess https://bit.ly/3cRcweQ
woah whats this
title bar is visible :p
is that an ascii world map
yes, yes it is
oh dwarf fortress
forever world gen
seems like i have searched what it is before and i still dont know
it is a fortress management/simulation
As far as I'm aware, it holds the crown for most complex game ever made.
stupid levels of detail
o
but it's hard to play, it's like the vim of games
everything is hidden behind 4 arbitrary keys
some make sense, many don't
but the people who know how to play it will argue that it's just fine and totally all makes sense
literally. the. vim. of. games.
hmm
enter msfs
msfs is not that complex, it does one thing
Hey @steel eagle!
It looks like you tried to attach file type(s) that we do not allow (.bmp). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
aw, really!
no .py

delete the C++ lib in libs/
oh
I saw nothing
(for #854363982738358302 folk)
<t:162398105>
<t:1623981015:F>
<t:1623981015:T>
cool
what on Earth am I looking at
8640000000000 is the maximum apparently
one above, and it becomes invalid
<t:-8640000000000> to <t:8640000000000> is the largest possible range
(-8640000000000 - 8640000000000)
cool
max year is 275760
dope
<t:8640000000000>
why do they looks like spoilers that have been clicked on
because discord β’οΈ
lmao I was wondering the same... I thought maybe they were spoilers that I did click on and I was wondering why they stayed even when switching channels
i'm guessing they're timezone-aware though? that would be cool
I have "show spoiler content on servers i moderate" on so I turned it off and restarted discord to check they weren't actual spoilers π
yeah, same lol
it is!!
epic
oh.
i would know if it were 5 am
then it's not timezone aware
its only 4
it says in 8 hours
"in x hours" = -x
"x hours ago" = +x
not timezone aware, lame
btw @neat light i was bored so heres a chad wookie
is it bad I'm thankful I never liked Power Rangers too much
someone named ! is typing... π
π£
lmao I like it. That shall be my new pfp π
lol
nice
damn
your system time is wrong
but how? i havent even touched it
you guys live in the wrong timezone
smh\
lol
are you guys sure your system timezone is correct?
yeah, i just checked my phone, and its the same time as my computer
wait a minute wtf
the timezone system is incorrect
unless it's cypheriel's timezone that's incorrect
LMAO
how the turns table
on Linux I just install chrony
vivek, is your timezone wrong?
wtf has it been off this entire time
wait... thes is @somber belfry timezone broken?
yeah, you can adjust current time relative to the wrong timezone
lol
vivek is broken
lol
hence time will be correct, timezone will be incorrect
wtf what time is it supposed to be for me
i mean, i just let windows handle everything for me
and my cell phone just gets the local time based on cell tower
hey !, which timezone are you at?
central us
time is irrelevant, nothing makes sense
yeah but... mine should be correct
<t:1625133226> is this off by 4 hours?
it is not
did you change os? that happens if we change os.
<t:1625133249:R>
we need to like off auto matic time and on again to get correct time
how did you get my time
what does that say for y'all
a few seconds ago
wtf
oh heck
how are you doing that
it is timezone aware
discord?
yes
hacked into the mainframe
tf
not on cellphone yet?
lol
by how many hours is it off for you?
whyd you give a phone number

lmfao it's from a song
Ocean Eyes with Blackbear
I got it stuck in my head π΅βπ«
the real question is why was it right for you, vivek?
it was one hour ahead for me because cypheriel was one hour ahead
idk 
My mom always said that I was special
lmao damn Windows thinking I'm in Pacific Standard Time
lol
<t:1625133419:d> time to find the americans
lmao cypherial
send how this looks now 
07/01/2021
guess I'm American now 
anyone else?
bruh
I'll forever wonder how people constantly make that typo lol
but u are in oman!!!
umm, i just got assimilated into america
guess i am american now 
BRUH
how u know
stop being american now!!! π
he said so
oh
Im sorry Cyphuriul
lol
Lol
k lol
My brother says "Phycereal" lol
absolutely
physics of cereal
@odd sphinx basically everyone should be seeing 7/1/2021
no

I'm amarican too?
NO
πΊπΈ
its crunchy, and when it drops in the milk it becomes less crunchy
stop being american noww!!!!!!!!!!
but um. I didn't want to be.
no u. no english.
πΊπΈ
π¦πΆ
how dare you use 12 hrs
lol
You use 24 hrs normally?
how can people read 12 hr clock.
obviously
yeah. we all do.
ye
see?
red countries use MDY
mdy?
mmddyyyy
Month day year
yes
oh ic
earth in the process of becoming flat
bruh
*country 
mhm
yes
guys
is there a way to determine if an integer can be evenly divided into 3 numbers, and the numbers being an even number
Lol
well if you think about it,
if a number is odd, there is no way all 3 numbers will be even.(as even+even+even=odd)
and about odd,
I did a lil bit of thinking,
if a number is even and greater than or equal to 6,
you can always do it as
2, 2, n-4
he probably meant divided as in, x * y * z = n
can you elaborate more?
umm, i thought like divide as in, y'know, break in 3 parts.
yeah but lets be clear, divide as in a+b+c=d
or a*b*c=d?
like this, I have X sweets, I can give it to 3 ppl, each person can get an even amount of sweets, example, I have 8 sweets, A = 4 B = 2 C = 2
something like that idk
ah i see. so my above answer will work.
haha nope he meant what i said
this makes sense if it was, in terms of *
so what ur saying is that any even number larger or = to 6 can be splitted to 3 even numbers?
even AND larger than or equal to 6
n%2==0 and n>=6
how did you know this?
logic.
i mean there is no thumb answer book for this its just math
should be even, because => odd can't be summed up by 3 even numbers
=6 because you don't want to give 0 candies to any one
yeah O(1)
yeah but isn't it unfair that one person gets 2, one person gets 4, and the last person just gets the rest?
OP actually asked for even to each lol. we can make like program to give fair share if asked ofc.
i know, but there's no reason it can't be a greater even number
ofc its not. i just gave simplest way i could think of.
sure
he's away from discord for a couple of days π
:L
:K
absolutely not
This is a fun curve
Glad I looked into 40+ cores, as the 1-40 cores was not helpful
However, I doubt any user will be running this program on 128 threads :P
What program?
TARDIS
Rapid modelling of supernovae
Down to 11 seconds is kinda crazy, but who has that many cores
is that a flat bazooka
why tf woud u think that
no idea
makes sense
Idk who needs to hear this but if you order food answer your phone if a number you don't know calls.
lol
shit my laptops not charging
slap it
i think the charging block is broken
Hahahaha, it is actually really good! Give it a blink of shading and you are golden :P
It's much closer to two percent but...
You're in the 0.18% (cause you multiplied by 100)
IM STILL IN THE 1%%
Hey so my current project, a desktop speedcubing timer app, is open source, and i want to include 2 features, a server and an automatic update feature. How can I avoid security issues if the app is open source?
what security issues might there be?
I get that my server has to handle all kind of pings and all that stuff, but say for example I want to make a beta version of my app, like Discord Canary, and i want that the app does not look for any updated and that it cant connect to the server, well, if somebody who knows to code, he can get the beta version and even check for updates and all that stuff and even connect with the server and send messages that can possibly crash it? I dont know. This is my first big and open source project
what is a flat file?
a flat file is just a regular, uncompressed, unencrypted file
i.e. .txt, .json, etc
@plain spruce^
Don't really see how making it open source will create security issues. Even you for whatever reason want to create your own encryption instead of the stuff that comes with the basic requests library, making it open source won't create problems, since your server will be generating keys
The important thing is that your server should never crash just because the user sent wrong data
As it happens yellowcake isn't actually that delicious.
Super duper new book, Geometry for Ocelots (you might need to change your region) βΊ https://tinyurl.com/2e44sbdb
Plutonium is obviously a massive part of the story too, but it just didnβt lend itself to jokes. Sorry about that.
The rest of my books βΊ https://tinyurl.com/ycnl5bo3
T-shir...
might be useful later
Not too difficult. Just smash two sub-critical fissile masses together to make a super-critical one.
No big deal
Or you can go with a fancy-pants implosion device.
too fancy for me
i mean bro its just breaking a nucleus just keep bonking it
ikr
Should I make my own encryption or Iβm good with the socketβs encryption?
never make your own encryption, always use existing well tested solutions
man, are you really that worried about people's speedcubing scores being open?
Learn the basics of GitHub Copilot - an AI-powered tool for writing code faster. It is built on top of OpenAIβs GPT-3 model and uses training data from public places like StackOverflow to suggest and write code automatically.
#ai #code #firstlook
π Resources
Copilot https://copilot.github.com/
OpenAI https://openai.com/blog/gpt-3-apps/
GPT3...
there is a massive gap between suggesting small snippets from comments and writing a whole application
I don't really buy this alarmism
I realised I have really nice round number of photos on my phone :D
equal amount π
there's more
Face reveal π
behind the orange-white cat
damn
What?
just damn
guys i am just wondering how do u judge how good is a google entension?
my mother-in-law's ^^
damn, is my MIL on those photos with fluffy cat?
oh, no. it's really part of my face with the cat
dammit, I tried to take a screenshot with mix of photos without faces on them
Hahaha π
Very off topic: Anyone knows any free software for animation?
blender?
Yah, anymore?
lol
could i ask, over here, the lecturer did this to create two tables, and then insert the values of title into the first table called shows
with open("Favorite TV Shows - Form Responses 1.csv", "r") as file:
reader = csv.DictReader(file)
for row in reader:
title = row["title"].strip().upper()
id = db.execute("INSERT INTO shows (title) VALUES(?)", title)```
could i ask for the last line, if we could directly substitute the variable `title`(a variable that is derived from previous calculations) like this
```id = db.execute("INSERT INTO shows (title) VALUES(title)")```
vs
```id = db.execute("INSERT INTO shows (title) VALUES(?)", title)```
that will not work, you will just be sending the string as is, without using the title variable
oh that makes sense yeah
you should always use the ? based substitution
right π
if u put title inside {} and make it an f string
i have another qn sorry for joining tables, are the two JOIN functions for the arrows in red? does the direction of the arrows matter? if i were to follow the structure of the first JOIN, the second one should be JOIN stars ON shows.id = stars.show_id or am i mistaken? thanks!
u are vulnerable to whats known as an sql injection attack
yeahh
I'll watch the video later, is it an AI that suggests code?
Alright
hello what
is blender used for animation? i thought it was just for models
hm
it can be used for animation
hM
i think u can even script it with python too
there is like some python module that u can use to control blender
blender for - video editing, game creating, sculpting, modelling, photo editor, 2d and 3d animation.......
game creating? how
ye
ye
ey
e
oh i mistook the small crow's feet as an arrow, so it doesn't indicate any direction?
im having issues with the third line, can it be JOIN stars ON shows.id = stars.show_id instead of JOIN shows on stars.show_id = shows.id?
oh okay but im still having trouble determining which table i should put after JOIN and which table value to be after ON, is there a convention/ method to decide?
base on what i understand,
line 2 JOIN stars ON people.id = stars.person_id is where it joins the star table with people table so it's JOIN the table stars on the people table with the value people.id only
line 3 JOIN shows ON stars.show_id = shows.id it means to join the shows table to the stars table with the value show.id only.
but i don't get for either line, why cant we see it as the reverse, eg. people table joining with stars (line 2) and stars table joining to shows table (line 3) if the order doesn't matter?
does anyone know info on sat?
wow. I have discovered how to make python hints as real enforced data types.
(without mypy)
show
I am just reading theory about it, but going to try right now.
a moment, coding.
damn
what's that one package that can give you the return type
github copilot
bruh
no :(
!e
from typing import Callable, Any
class Validation:
def __init__(
self, validation_function: Callable[[Any], bool], error_msg: str
) -> None:
self.validation_function = validation_function
self.error_msg = error_msg
def __call__(self, value):
if not self.validation_function(value):
raise ValueError(f"{value!r} {self.error_msg}")
class Field:
def __init__(self, *validations):
self._name = None
self.validations = validations
def __set_name__(self, owner, name):
self._name = name
def __get__(self, instance, owner):
if instance is None:
return self
return instance.__dict__[self._name]
def validate(self, value):
for validation in self.validations:
validation(value)
def __set__(self, instance, value):
self.validate(value)
instance.__dict__[self._name] = value
class ClientClass:
descriptor = Field(
Validation(lambda x: isinstance(x, (int)), "is not a number")
)
client = ClientClass()
client.descriptor = 5
client.descriptor = "str"
@rotund python :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 34, in <module>
003 | File "<string>", line 25, in __set__
004 | File "<string>", line 23, in validate
005 | File "<string>", line 10, in __call__
006 | ValueError: 'str' is not a number
multiple validators can be used
for one field
I am sure it can be adapted to work with hints too I think
original example:
descriptor = Field(
Validation(lambda x: isinstance(x, (int)), "is not a number"),
Validation(lambda x: x >= 0, "is not >= 0"),
)
now validate a list of a million items, hinted as list[int] 
or validate a function, hinted as Callable[float, int] and check if it returns an int for every float in existence
don't be a party pooper
heh
it is still a cool thing ;b
yeah
a new level of abstraction, replacing @property and @name.setter
idk why you wouldnt just stick a bunch of isinstances to sanity check it
def foo(a: int, b: Optional[str], c: list[int]) -> dict[str, int]:
if not isinstance(a, int):
raise ImproperA
else if not isinstance(b, (str, None)):
raise ImproperB
else if not isinstance(c, list) and not all(isinstance(item, int) for item in c):
raise ImproperC
...
if not isinstance(return_var, dict) and not all(isinstance(item[0], str) and isinstance(value, int) for item, value in dict.items()):
raise ImproperReturn```
@rotund python :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 17, in <module>
003 | File "<string>", line 4, in __init__
004 | ValueError: my string is not of <class 'int'> type!
theres probably a better way to do it but im lazy rn
a bit no idea how to properly set values yet, but it in the process
mm, __get__ and others aren't working for some reason
I don't get something with those decriptors yet
!e
class Integer:
def __init__(self, value):
self._name = None
if not isinstance(value, int):
raise ValueError(f"{value} is not {int}")
self._value = value
def __set_name__(self, owner, name):
self._name = name
def __get__(self, instance, owner):
return self._value
def __set__(self, instance, value):
if not isinstance(value, int):
raise ValueError(f"{value} is not {int}")
self._value = value
class C:
a = Integer(5)
b = Integer(6)
print(C.a)
print(C.b)
print(C.a)
class D:
e = Integer("123")
@rotund python :x: Your eval job has completed with return code 1.
001 | 5
002 | 6
003 | 5
004 | Traceback (most recent call last):
005 | File "<string>", line 25, in <module>
006 | File "<string>", line 26, in D
007 | File "<string>", line 5, in __init__
008 | ValueError: 123 is not <class 'int'>
!e
from typing import List
class Field:
def __init__(self, value):
self._name = None
self._value = value
def __set_name__(self, owner, name):
self._name = name
hint_type = owner.__annotations__[name]
class_type = self._value.__class__
if "typing" in hint_type.__module__:
if hint_type.__origin__ != class_type:
raise ValueError(f"{self._value} of {class_type} is not {hint_type.__origin__}")
try:
for value in self._value:
if hint_type.__args__[0] != value.__class__:
raise ValueError(f"{value} of {value.__class__} is not {hint_type.__args__[0]}")
except KeyError:
pass
return
if hint_type != class_type:
raise ValueError(f"{self._value} of {class_type} is not {hint_type}")
def __get__(self, instance, owner):
return self._value
def __set__(self, instance, value):
self._value = value
class C:
a: int = Field(5)
b: List[str] = Field(["678", "546"])
c: List[int] = Field(["123", "099"])
print(C.a)
print(C.b)
print(C.a)
@rotund python :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 19, in __set_name__
003 | ValueError: 123 of <class 'str'> is not <class 'int'>
004 |
005 | The above exception was the direct cause of the following exception:
006 |
007 | Traceback (most recent call last):
008 | File "<string>", line 32, in <module>
009 | RuntimeError: Error calling __set_name__ on 'Field' instance 'c' in 'C'
nice
my point was that validating a list of million items would take up a lot of time, not that it's not possible to implement, heh
heh. they should be validated only during __set__ operation then
I mean... aren't languages like C++ basically do that?
or well, at least checking once during __init__
is much less consuming
the only read difference that...
C++ has a lot of performance to spare
in c++ the types would be checked at compile time and not at runtime
you wouldn't be able to make a list(array?) declared as a certain type and put in objects of other types in it
how would it be able to check values which are set dynamically during runtime?
it is checked during runtime
not really sure
it can't be checked during compile
actually it can be
I mean... every return type is typized there as well
so even that could be checked during compiling time
yeah
besides, if something is even potentially type unsafe, the compiler wouldn't allow it, even if it isn't actually type unsafe at runtime
well, lets continue considering our mypy as part of not existing compiler then
it surely can work though ;b
I wonder how much performance would degrade though
probably a lot π
mmm
actually you know
this is not really different than using @property and @elder jungle.setter
it could be nice to use when we are having too much of repeatedly the same ones
to DRY their logic
accidentally pinged a user. Well, he should choose better name.
console.log("Hello?")
yes
PIE DOUGH
2 Β½ cups flour (315 g)
1 teaspoon salt
1 Β½ sticks butter, 1 1/2 sticks, cold, cubed
8 tablespoons ice water, or as needed
FILLING
2 Β½ lb granny smith apple (1 kg), cored, sliced, peeled
ΒΎ cup sugar (150 g)
2 tablespoons flour
Β½ teaspoon salt
1 teaspoon cinnamon
ΒΌ teaspoon nutmeg
Β½ lemon
1 egg, beaten
1 tablespoon sugar
TOPPING
1 scoop vanilla ice cream
Nutrition Info
View Info
Preparation
In a medium-sized bowl, add the flour and salt. Mix with fork until combined.
Add in cubed butter and break up into flour with a fork. Mixture will still have lumps about the size of small peas.
Gradually add the ice water and continue to mix until the dough starts to come together. You may not need all of the water, but if the dough is too dry then add more. The dough should not be very tacky or sticky.
Work the dough together with your hands and turn out onto a surface. Work into a ball and cover with cling wrap. Refrigerate.
Peel the apples, then core and slice.
In a bowl, add the sliced apples, sugar, flour, salt, cinnamon, nutmeg, and juice from the lemon.
Mix until combined and all apples are coated. Refrigerate.
Preheat the oven to 375Β°F (200Β°C).
On a floured surface, cut the pie dough in half and roll out both halves until round and about β
-inch (3 mm) thick.
Roll the dough around the rolling pin and unroll onto a pie dish making sure the dough reaches all edges. Trim extra if necessary.
Pour in apple filling mixture and pat down.
Roll the other half of the dough on top.
Trim the extra dough from the edges and pinch the edges to create a crimp. Make sure edges are sealed together.
Brush the pie with the beaten egg and sprinkle with the sugar.
Cut four slits in the top of the pie to create a vent.
Bake pie for 50-60 minutes or until the crust is golden brown and no greyish or undercooked pastry remains.
Allow to cool completely before slicing.
Top with ice cream and serve.
Enjoy!
how to make apple pie from scratch
uhh, ok? oh you forgot to make the universe
lol
inaccurate
you must first create the universe
oh
lol
you mean litterally from scratch?
yes
from nothing?
yes
lol
yes
@prime timber you closed your help channel, but fwiw, the site seems to work fine when accessed from a browser, so i'd guess the reason it's not working to be some sort of anti-scraping measure
That is what confused me too so I thought the problem to be in my pandas installation. I guess I will wait for if the problem resolves until next week and hope it's just a maintenance issue instead of the anti-scraping measure
You would think.
Yet it's pretty much a daily occurrence where I get a delivery with no apartment number, just a building number
And they almost never answer their phone
Address line 2 is optional
damn
Because not everyone lives in an apartment...
thats true
You just have to have two brain cells
but if one lives in an apartment
and one wants food delivered
to said apartment
what goes in their heads
wtf
Line one 1124 NE Kendall St
Line two #D1
Ez.
(Not a real address)
do they pay in advance via credit card or is it like cash on delivery
Most of them pay ahead
Yeah. And I've had it happen where it was paid card, with like a $10 tip added already
There's a process pretty much every company uses
1: call once
2: call a second time and leave a voicemail
3: wait 5 minutes then call the store
4: store attempts to call and leave a voicemail
5: wait 5 more minutes then return to store
I followed this, drive back to the store, they then call asking where the delivery is
Then when they got their food, they called and complained that it was "cold" (it was not, it was in a thermal bag under a heat lamp)
jeez
Welcome to food service
Hahaha funny joke
Nice thing about where I work now it's I get paid for mileage
So if I do have to go back somewhere I get paid, most places don't do that
ah nice
And I meant to reply to the extra tip message
Not the going back message, yes we have to go back lol
you know them?
Managed and unmanaged VPS and dedicated servers, shared web and email hosting, domain registrations and DNS hosting, UK based
No, I was just curious about the name. The name sounds epic
I don't know how this happen or it actually happens, but I was trying to figure it out why the display was so low quality in the TV and know I just plugged and
smoothie
You can't fool me anymore, @keen burrow. I've seen through your Frenchy ways.
And I don't care what fancy name you call it. I'm not eating another snail.
what do you mean? roasted cheesy snails with fine herbs are absolutely amazing
i'm not joking, i tasted them like 5 times already
what does the snail part taste like, cheese and herbs aside?
it's incredibly chewy (probably the worst thing and best thing about it), and a little savory
ah, found the name
"escargots gratines"
accent aigu on the e, too lazy to type it
Cheesy snail
are you french?
canadian, so yeah i speak french as well lol
Shouldn't be that chewy though π¦ Like squid, will be a little chewy due to the nature but overcooked = rubbery
true
@keen burrow What are you hiding? π
i believe there's a special way of carving a squid's meat so that it becomes less chewy and more like almost crunchy
oh god, that sounds horrible lmao
hiding the snails
Quebecois specifically?
no, i learned french
stop playing into their little game
but holy moly quebec's poutine is absolutely world-spinningly delicious
lmao, it's all a conspiracy to get you buying more poutine and baguettes
I really like potatoes so I really want to try poutine tbh
The French are fake
French fries aren't French
you mean FREEDOM fries?
They're from Belgium
cc @native cobalt
wait, really? lmao no way
Yes
you should, to describe its deliciousness you'd need to take every superlative in a dictioary and mash them together
uh oh...
hi should i learn c or c++ if i want to understand more about how computers work at the lower level
yep
lol
but why do they call them French Fries
questionmark.
In winter, when the river froze, the fish-deprived villagers fried potatoes instead. It's said that this dish was discovered by American soldiers in Belgium during World War I and, since the dominant language of southern Belgium is French, they dubbed the tasty potatoes βFrenchβ fries.
Oh
They say that the meat of an object is pretty tasty 
hippity hoppity that is now my emojiti
that emote is now my property*
ik clion isn't light but using rust is bringing my laptop to a halt when compiling
lol
and for some reason my fan isnt spinning up which is a bit concerning
Lmao, eating snails is so disgusting
π
I will miss the old one



