#[stable(feature = "rust1", since = "1.0.0")]
impl<'a> DoubleEndedIterator for Chars<'a> {
#[inline]
fn next_back(&mut self) -> Option<char> {
next_code_point_reverse(&mut self.iter).map(|ch| {
// SAFETY: `str` invariant says `ch` is a valid Unicode Scalar Value.
unsafe { char::from_u32_unchecked(ch) }
})
}
}
#ot0-no-stealth-portals-please
3246 messages · Page 13 of 4
https://stdrs.dev/nightly/x86_64-pc-windows-gnu/src/core/str/validations.rs.html#73-101
and here's next_code_point_reverse
Source of the Rust file library/core/src/str/validations.rs.
// Multibyte case follows
// Decode from a byte combination out of: [x [y [z w]]]
let mut ch;
let z = unwrap_or_0(bytes.next_back());
ch = utf8_first_byte(z, 2);
if utf8_is_cont_byte(z) {
let y = unwrap_or_0(bytes.next_back());
ch = utf8_first_byte(y, 3);
if utf8_is_cont_byte(y) {
let x = unwrap_or_0(bytes.next_back());
ch = utf8_first_byte(x, 4);
ch = utf8_acc_cont_byte(ch, y);
}
ch = utf8_acc_cont_byte(ch, z);
}
ch = utf8_acc_cont_byte(ch, w);
🥴
yeah, that's about what I expected
surprised to see no loops
would've thought that would the simple way to do it
uh
prolog looks really cool here
palindrome(S) :- reverse(S, S).
Heya everyone, does anyone here have any knowledge of email hosting? Do institutions like public elementary schools usually use some sort of email hosting service, or do they run their own mail servers? (normally)
normally, orgs use google or MS Office.
it is possible to selfhost email, but it is hard to actually get mails through that way since your domain may get filtered
selfhosted email is mostly common for internal communication
also, selfhosting email is kind of a pain
Ah, ok. I'm just so shocked at the pricing for g-suite and MS365. For just basic plans its like 6USD per user per month. and if they have a faculty of 15......it adds up! I never realized email was so expensvie lol
that is barely anything for even a small company
lookup: HashMap<usize, Box<dyn Any>>,
huh nothing like using hashmaps instead of vectors to boost time complexity
consider a very poorly paid employee, say 12k USD per year. That's 1000 dollars per month, which means that the basic plan for office is about 0.6% of the cost of the employee
yeah, that's true
for personal use, gmail or outlook you can get for free
I would strongly suggest not selfhosting email for personal use
Nah, selfhosting would be a big pain. even if you get all the certs and pass everything, your mail still gets put into spam folders
or not delivered at all
yeah, there are alternatives for email
yeah, email is only decentralised in name
it is really hard to actually become trustworthy to get emails received
well my school is having this dream of everyone having their own work email and students also having their own email addresses
you can do that with google pretty easy
my high school and uni do so
hell, it's literally free for some institutions https://edu.google.com/intl/ALL_us/products/workspace-for-education/editions/
yeah. need a .edu accreditation we're a private school
right now i just have it set to forward blahblah@workdomain.com to their gmails. so they can still give people their work "email"
those are free
@sick olive Might want to ask in Off-Topic. We're wanting to keep this channel for Python related things
oh mac. i was about to recommend media player classic, but that's a windows solution as well
this is OT channel
It is
The fuck is wrong with me
Sorry, I'm so tired
I've been looking at PyGen for too damn long
no worries ❤️
!ot please
Off-topic channels
There are three off-topic channels:
• #ot0-no-stealth-portals-please
• #ot1-banned-from-discord
• #ot2-egg-is-gluten-free
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
you're alive
lol
and?
misinformation, claiming its a minaberry
make me minaberry role icon plz
I'll report you to meta
do it

pretty sure he's canceled chris, smh
how many times is that now?
was it more than 1x? i don't follow celebrity news much
Is there actually such thing as a minaberry?
I could have sworn I've heard about it before but I don't know
doesn't seem to be
i googled and found https://blackcatcustomyarn.com/products/minaberry
purdy
I actually had that at home once
I thinkkkk, or it was just very similar
huh? yarn?
Minaberry is a delightful stripy yarn that alternates between bright white, hot pink and bright blue.
stripy yarn
https://shop.hedgehogfibres.com/ makes such cool yarn
hm
Yess. I was really into knitting a while back
i bought the yarn to make this but never made it https://www.ravelry.com/patterns/library/plumpy
ooo you me and @desert dirge
thank you for reminding me that i still have to finish that blanket LOL
it's actually cold enough that i can wear my knits now
I made gloves, wrap-around-neck-warmers, yarn-hats etc. I’m losing all words now, but you get the point 😂
i hope you have a ravelry account! if not, make one
Nope. This was a while back though, so I’m not really knitting anymore
That sounds awfully threatening lol
:(
It was fun though
I made my first “thing” when I was like 7 or 8 years old. Then a bit more when I was closer to 10-12 or something. After that, I’ve only knitted like once or twice
continental, throwing, portuguese ? what was your style
oh :(
I didn’t have too much of a style. The things you made look way more complex than anything I’ve done
Gosh I really feel like knitting again now. If I do, you’ll be the first to know @rough marsh
no i mean, your style of knitting as in how you held the needles and maneuvered the yarn, there's a couple different ways
i haven't touched yarn in a couple years either
Ohh right. I don’t remember what it was called actually
Especially not in English :)
english/throwing & continental/picking are the most popular, but i got in to "portuguese style" where you keep the yarn in front of you, between you & the needles. and you wear a pin or a hook on your shirt to keep the yarn moving
it made purling super easy. so i'd adjust patterns to favor purling over knitting
90/100 in an exam bad?
it's 90/100
Thats a 90%, usually an A
ah good, i was unsure because all my other courses use a letter grade but my sociology course uses numerical grading
unless you guys have some weird inflated curve system, yeah 90/100 is solidly good
What’s purling? I’ve only ever done this in Swedish. And even that was a while ago
you might call it outer stitch (knit, looks like 'v'), and inner stitch (purl, looks like '-')
Not false 😒
"😒"
Yes?
@merry stone I have an MSI MAG mobo
ohh alright thx
portugal caralho
oh right you're from portugal right?
wdym
Nothing lol im just talking shit
im so confused
confusles
Yeah, something like that
damn TikTok dances
TikTok is a neurodegenerative disease characterised by full-body seisures, and some people has taken to filming victims having them and posting them on social media
shameful, really
||\s||
I mean, its just Vine 2.0
i mean it aint that deep
A crap ton of millennials use it too iirc
with vine tho could you easily explore thousands of others vines really easily?
tiktok makes it 2 eazy
Hmmm I guess thats true
thats why someone like'chrlie' can get millions of followors
nah, in my country it's an f
That sucks
is charlie the 'charlie bit my finger' charlie, or a different charlie
I believe they mean Charli D'melio
if that's how her name is spelled
lol what
I made a dicord bot that sends what happening in the discord chat to a amino chatroom
using post and get requests
?
Physics problem I'm currently trying to get my head around:
A sled starts moving from rest at the top of a frictionless and hemispherical hill.
At which angle does the sled lose contact with the hill?
I've got a solution but I'm not sure it's correct
Depends on velocity, curvature and gravity right?
(waiting for apple to post before I post (the draft of) the solution)
py print('hello world) testing
put three, not one
Taking conservation of energy: ∆GPE = ∆KE so speed = sqrt(2g*(r–h)), where r & h are the radius & height respectively. We know that h = rcosθ. Resolving the speed into the vertical velocity I got v = speed / sinθ.
Now comparing that with the vertical velocity from simple harmonic motion: h = rcosθ so v = rsinθ. Equating expressions for v I get 0.539 rad
``` vs `
I'm not sure that what I got is correct
print('hello world')` testing
._.
You forgot 3 in the closing
Ill get it soon😋
Hi :D
print('hello')
```py
Code Here
```
Oh, wow. Thanks
Ah, just realised my value was for my specific conditions. Oops
the idea is basically:
(NOTE: I'm counting H from the top, so it's 0 at the top and increases as the body falls. The angle I also count from the top. Hence H = R(1-cos(alpha)))
- calculate the speed after the sled descended some height. That's just
v=sqrt(2gH)from conservation of energy (that's why the surface has to be frictionless) - that speed is tangential to the surface, so we can calculate the centripetal acceleration needed for the sled to stay on the surface. It's
v^2/R = 2gH/R - That acceleration is only provided by the gravity, but the radial component of gravity decreases as the sled gets down because the surface becomes more angled. It's
g_rad = g * cos(alpha)
So we find the point when it stops being enough:
2gH/R = gcos(alpha)
2H/R = cos(alpha)
Since it's also the case that H = R(1-cos(alpha)), we get
2(1-cos(alpha)) = cos(alpha)
cos(alpha) = 2/3
that's alpha~=0.84rad
ooh i see
Thank you!
damn this is a song I've forgot about but really love
https://open.spotify.com/track/3RiPr603aXAoi4GHyXx0uy?si=bf5d32e094494f50
what’s better, object oriented programming, procedural programming, or functional programming
go for it
I am, but I’m wondering with coding style i should focus more on
lol, reminds me of
"This is a spaceship company. Everyone who works here is a nerd. Don't worry. HAL is smoke and mirrors. Our real AI is contained," said Eitan.
The VIP car had leather seats under a hemispherical glass dome. It took them through kilometer after kilometer of autofactories.
"Everyone says their AI is contained," said Miriam.
"Ours really is," said Eitan, "We wrote it functionally."
"Functionally?" said Vi.
"I mean it was written in a functional paradigm. Our code is composed of functions. Every function returns an output value dependent on its input parameters and nothing else. Everything is immutable. The AI has no concept of time. Without time there is no causation. Without causation there can be no agency. It's just a calculator. We set the parameters of a space mission and our AI returns a schematic. All it understands is physics, engineering and orbital mechanics. We even use Lagrangian mechanics just to keep everything tidy," said Eitan.
(note: this is a fictional representation of a character that's meant to not be particularly competent in-story; please don't take this as advice on how to design AGIs)
I can kinda see that
@stone gyro
import threading
def t():
while True:
pass
for i in range(1, 100):
threading.Thread(target=t).start()
and after i close it:
Listen Listen Listen
What are htop and gotop
listening
Xbox game pass ultimate for 3 months. Cc needed.
i write my own process viewer in RAW C.
Its a system monitor
what does that mean
uh, think of task manager, but on linux
it monitors how much RAM, CPU, and Swap your computer uses.
ooh what's that
gotop
ah, that's much easier to understand
they can also show running processes.
pretty
this is even more prettier
Go
imagine having a program that is not standard in UNIX as your tool.
||/s||
this post was made by the C gang
Go? 👀
terrifying i know
don't let joe hear you talking about Go
what is he going to do? ban me?
👀
much worse.
he'd post these
i will advertise C to him.
it would not surprise me actually if Joe did not know how to actually code.
"The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt." - Rob Pike
and instead just made this server for the lolz.
I'm actually glad Go exists
go is awesome
The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned Python or C++, probably learned PHP. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt. - C gang
fastest net libraries in the world
It's a great language because if Go exists, the kinds of people Go is built for won't write C++, C, or Zig.
good, do the gene pool a favor.
lmao
I think Go is actually a good language even though I will probably never write it, ever.
say that again
i fucking dare you.
I think you missed my point
I hate that you need 5 (logical) lines for hello world
The syntax is kinda mid
you only need 4 logical lines for C. 
C superiority right boys?
C good, although I haven't properly learned it yet
Go is good because it keeps Go users out of the C "gene pool" as it were.
fn main(){println!("Hello, World!");}
#include <stdio.h>
int main() {
printf("%s", "get fucked Go users.\n");
}
Go is a great language because people who shouldn't write C will use Go instead of using C.
That's still 3 logical lines imo
WOOOOOOO
lmfao this reminds me of Linus Torvalds comment on C++ bashing
too late 🐌
oh jesus fucking christ.
oof
I remember that one lol
didn't he admit a few years later he was out of line?
In other words: the choice of C is the only sane choice. I know Miles
Bader jokingly said "to piss you off", but it's actually true. I've come
to the conclusion that any programmer that would prefer the project to be
in C++ over C is likely a programmer that I really would prefer to piss
off, so that he doesn't come and screw up any project I'm involved with.
seeing Linus laugh at anti-vaccine people was funny but he is unironically kind of a dick.
Here's an example of the kind of programmer who should write Go
OH MY GOD WHAT
kill it with fire.
oh my
bonus points for strtok because wut
So this is how cat works, got it
you did not know how cat works?
and for casting 0 to a pointer instead of using NULL
have you ever touched a Unix-like operating system? 
My god I'm a fucking idiot. I spent hours looking for ways to recursively search directories in Rust when I could just have used a glob...
Because it makes my life a lot easier
Right
.bm hemispherical hill + frictionless sled solution
tfw bookmarks
I like this article
they talk abut rust
It's November and I only just realized that "[search query] 2021" doesn't get me not outdated results anymore
https://docs.rs/walkdir/2.3.1/walkdir/struct.WalkDir.html is this what you tried? looks like the filepath walk in Go
API documentation for the Rust WalkDir struct in crate walkdir.
Yes, I tried that. globs are so much better.
Oh, here we go again - Rust, Rust, and Rust again.
Why always Rust?
Well, I tried real hard to keep Rust out of all of this. Among other things, because people are going to dismiss this article as coming from "a typical rustacean".
But for all the problems I raise in this article... Rust gets it right. If I had another good example, I'd use it. But I don't, so, here goes.
I love this explanation from that , it's so great
It's how it is for a lot of things
i love rust lol it makes me feel good when I write it
but I always find Go faster to develop and more convenient
since I don't do a lot of systems or low level stuff
I mean, I don't really touch systems stuff in Rust and I'm still fine
i guess i just have a lot more experience in Go and I can't get myself to use Rust even tho Rust is awesome
Anyone ever wished that Discord had a feature to search an entire category
In another server I’m trying to search a category and there’s two to thirty channels in said category so I’m losing my sanity doing it
twenty*
I do now - it does popen("cat")!
YEAH
I have a source right here; that's how you open files in C, right? ||:p||
filefullpath = fmt.Sprintf("%s%c%s%c%s%c%s%c%s%s",
a.DataDir, os.PathSeparator,
m[0:1], os.PathSeparator,
m[1:2], os.PathSeparator,
m[2:3], os.PathSeparator,
m, ext)```
Bro what the fuck

Does this language not have something for os_paths lol
Go programmers having a stroke be like: %s%c%s%c%s%c%s%c%s%s
bruh what
it's an example from the first link about Go
Had to wing it
only print certain values for numbers in certain ranges
the biggest takeaway was that the values need to be between 1 and 200 inclusive
you are definitely not
What was the prompt?
^
yeah ngl classes will often make you do dumb as bricks exercises in lower levels of programming especially
just an unfortunate thing
I can think of at least 1 solution off the top of my head.
or they could systematically promise to give you homework and procrastinate on doing that for weeks
you know, hypothetically
where's our fucking homework, prof
you even wrote that in the lesson schedule
Being a professor sounds.. fun
i just took a deep dive into the world of NASM preprocessor tomfoolery and this is all i have to say
NASM preprocessor is absolutely goated
teaching is hard af
i "teach" dsa to our programming club and holy shit it's actually hard
i thought teachers just chilled all day
Well, in fairness I doubt you were professionally prepared
and for higher education, becoming a prof is actually hard
i'm fairly sure our prof does in fact chill all day, or at least it's not teaching he's busy with
since we have to submit our homework in class rather than send it, and we don't have much lessons with him at all
Doesn't help that the profs who actually know the subject are teaching the advanced courses on it
the good C prof usually isn't the one teaching people how to declare ints and write for loops
yeah, it's cool when someone is literally teaching a class about their research
Fun fact, professors aren't prepared to teach.
Teachers are, but professors just need to have the knowledge, they don't take any kind of teaching exam or do a teaching practical or anything.
there's also no objective indication which teaching organisations are better, and the prestigious ones mostly exist due to perverse incentives
tl;dr: humanity's educational system should be burned down and rebuilt from the ground up
as with every other system humanity has
meh, you can at least order them by importance, and education is, surprise, pretty important
widespread education is one of the hugest contributors to economic growth
making it mandatory was probably one of the best things to happen
having an educated population is definitely good, but there's tons of ways in which the... world's, really... educational system is disfunctional
for sure, but you can say that about everything
that's true, most things in the human civilisation are broken like that
omg it's the programming assignments' favorite friend elif chain!!!111
I think that's one TAB 🙂
yikes
how this code looks is actually not the worst thing about it
you see, what this code does is makes wooden cauldrons burn
and instead of making them, y'know, a ticking tile entity
it scans every single tile entity in the world every tick
looking for wooden cauldrons
so that it can do that
( 🤮 )
Punishment for using such unholy whitespace
who uses tabs D:
Is using offer up safe to buy items?
Guy is selling ps5 for 560 and is willing to use offer up
He also sent this image saying he was heading to fed ex to ship. Used tineye and yandex with no results
Is he selling the PS5 or his selfies :faint:
Lol
probably selling himself
But what do you all think?
btw im single
maybe he's selling the phone
Is offer up safe to buy things on(using their app)?
he is selling his head
tbh I've never heard of "offer up"
so I have my doubts
They have a policy where you don't pay for a item until 2 days after it arrived and if you don't like it or want it it will go back
hi
you need to refactor, also 4 spaces >>>>>> 8 spaces
oh tyhats not ur code
Lol
hi!!!!!!!!!!!!!!
:>
He sent this video showing the weight. Look legit to you all?
That's a very blurry video
Yeah which is sus since his photo is high res
lol
He said I have to pay the 21 dollar shipping fee now
Hmm
I asked where
He asked if I got cash app
Lol
I told him I don't have cash app
That seems really suspicious overall
Ye
lol
He asked what do I have then
back out
I said offer up which is the app he posted on
he'll run off with the $21 shipping fee
He said we can't use offer up for the shipping because he needs it now
If you use PayPal isn't that safe(not friends and family)
back out
Just back out
seems sus.
I'm curious what he has to use now(not gonna buy)
i dont think anyone should ask a cashapp
He said he has apple pay
Hi :D
not pay before
lmfao
Don't do anything outside of the app you have a contract on
call the authorities
Yup
like me. i will handle it
He said he is a cop
lol
He wanted to meet a police station near me
This is why I stick to Amazon
I said no
ah yes a cop arrested for being a scammer
i stick ;)
He said he got that as well
you wot
All you have mentioned are safe, but you shouldn't do anything outside of the app you're buying from
I'm with Cypheriel here, do it only on this app
they're "safe" in that the guy could still run away with your cash but it's not a platform scam
Well he doesn't want to use it because it won't go through imdiently
I ain't buying it
Literally or not, you shouldn't
Let him know that. You're either going to buy through the app for the insurance, or you're not gonna buy at all
WAIT
If he says no, move on
He said he can pay the fee then just add the 20 to offer up price
Offer up protects you because you don't pay until 2 days after the item came
@oak hemlock what do you think now?
If you trust the platform, I think that should be fine
Yeah I do
why is that guy so seemingly sus
lol
Some people are
I agree tho
But him saying he can pay the fee then just use offer up to purchase is pretty legit sounding
This is the app
He hasn't text back yet
lol
Yeah
His offer up page is very fucking sus
He has a evga 3080ti for 800
But he said the ps5 shipped
My dad uses this platform frequently.
This look legit(blurred personal info)?
methinks someone's finna get scammed
I don't get why the sub total is 47 but he was charged 27
Maybe I am dumb
But can anyone explain why that could be
Some of this seems suspect
Just... formatting inconsistencies
Also the address is messed up
It goes: road. First and last name. Address(the numbers)
None of that makes sense to me and the formatting inconsistencies have me doubt legitimacy
Yup
Not to mention, I've never seen any online receipt like that
oh hey
Didn't want to send all
But he has a 3099 for 800 
wait that laptop is stupidly cheap
like half the price of my current one, and that one is better
Look at all of that stuff
is Effective C a good starting C book
I’ve heard it’s good (courtesy of @cursive agate)
ok
lol why does that image say it's copyrighted by Google
oh wait, i feel like we talked about this earlier
He got mad
icc©️ Google Inc. 2016
Are you in the US? \🤔
Yeah
hmmm
Hello
Hey
His profile
How is everyone
Is it almost like "racist" to be weary of people with bad English like this
Yeah.. No..
maybe it's just me but like
But the thing is inconsistent
Like you pointed out
I trust people with bad English a little less
das racist
Do you mean “wary”?
I wouldn't say it's racist but like usually scammers have poor English so it's something that is always there
😩
idk I don't mean to be racist but like... there are just so many more foreign scammers than natives
"racist" doesn't seem like the right word here
Stereotype?
That’s because the natives are the target 
i would say thats not a good evaluation if you were european
doesn't native differ on where you live
well duh
native americans arent native in europe
nah
fun fact native americans arent native anywhere but the americas
:faint: surely y'all get what I mean
omg really
who knew
i bet you didnt aboo, youre welcome for this fact
Ok why is it he just called me and my phone says Chicago and not easton(where he claims he is)
i hope you had fun
They're native americans for a reason
Native to the Americas
perhaps
It depends on the area code
you can have an area code from wherever, basically and it'll say that
bruh it just got hella cold all of a sudden
That's such an indecisive answer I don't like it
ghosts
Oh thanks
ono
The dementors
just bri'ish weatha'
it is yes
sips tea I see I have been summoned
Might be an old phone
My friend has a Honolulu phone number despite living in PA
it'd be the number that's old
theory: might it be that we're exposed to scammers outside the country bc they're not likely to get prosecuted by american government?
gl catching the russian guy lol
buy a fursona instead 
buy two books instead
Both two books and a fursona
buy a book on intelligent spending 
inconsistent indents but still valid in the indentation stack >>>>>>>>>>>>>> 4 spaces
buy the special edition limited production exclusive karl marx funko pop
wat?
i havent bought anything this year
imma buy a julia book this friday instead
last year i have a book spree
all i want for xmas is you
how to flirt. teach me you 18+ yrs old
@mortal hull :white_check_mark: Your eval job has completed with return code 0.
hey
lol
wtf
just has to be consistent within the block
noooooooooo
🤮
"greetings female would you want to see my jar of toenails?"
._.
i know, i'm smooth
lmao a "dont @ me" worthy
U = Q*tπ
That’s a pretty good one
Yes I gonna move my bot to a vps but I will host my mongodb on my old free host cz I don't have root there
I'm honestly just weird all the time makes things easier since then nobody gets funny surprises later on
U = tπ * Q
what life be like if
if i take my normal pills
you are definitely not 18 Starcy
at least according to Chili
this is completely irrelevant to the current conversation but i would just like to let you all know that Spotify has a 'League of Legends' genre.
it is
there's K/DA
but uncomfy said 18+

That’s… English
I’m saying “you = cutiepie”
I think uncomfy means your nickname
did the toenail jar upset u?
Ah. That’s Chinese though
Let’s drop that, don’t you think?
I'll show u if u want dawn
please no

That sounds horrifying
Well this is a very weird conversation.

So how old are you, Starcy, if you don't mind saying?
Im back
Hello back, I’m dad

Hello back, I'm not dad
getting milk
Went to the grocery store to get milk
Oh no, are you the milkman?
it's funny to get some wild guesses so maybe later
getting cigarettes.
I don’t do regular cigarettes anymore. You don’t get high on them (this is a joke)
not only did dad leave, but he is also a crippling alcoholic and smoker.
I beg your pardon?
Nothing wrong with blazing up sometimes...
Everyone begs your pardon, why don't we beg my pardon
keep in mind that from this point onwards, anything dawn says is from someone who's doing homework and trying to get to sleep soon and who's sanity cannot be attested too
I'll beg for a damn pardon if I so please, monsieur
Je’mappelle cloaking
I should go to sleep instead of discussing getting high, with strangers on the internet
never done it seems like too much trouble where I'm in
oh i just realized it is chinesse
strangers to love
Yep
A stranger is just a friend you haven't met yet
Salut cloaking, how are you doing
You know the rules and so do I
so do u have a chinese gf now? that was fast
bruh
I’ve got a handful of them

I lost count at 7
damn. just dont make too much
I already forgot how to say good in french, so, vive le france
bien or bon(ne) iirc
poly is based
I would go full french, but this is an english server
Amogus
I thought it was "vive la france"

Un chat et un garçon
c'est la vie
bonjour mon bon ami vester
Vive le’italia
imma rekt your chinese girlfriends
What does that even mean?
Ok that sounded really weird without the edit
aka steal vestergurkan's chinese gfs
dawn speaking Cinnabon
le chat va tuer le garcon
Como estas?
Why?
sharing is caring
It went from "hello my vester" -> "hello my good friend vester"
Because the first is weird
What is happening here? Nevermind, I like it. Carry on good citizens of the world
hello my vester
Kerbal space program person
Very… possessive
get owned
!otn a hello-my-vester
shame
I mean, if you want to be simplistic about it
Oui
Nein
i wish people can just talk through telepathy
no need for language. the construct is there
no no no this does not need to be immortalized
don't do this to me
I’m definitely going to bed now. Night, humans and members of other species 👋
also shutup Cloaking. stop lurkin or talk >:(
Night Vester!
sleep tomorrow. goodnight!
Yeah I'm out too, this Dune book isn't going to re-read itself
Imago mortuorum
Bye brad!
have you watched the movie?
nope

Not yet, planning to do so soon
I'm being stumped by what should be a stupidly simple problem
its pretty good, but the book is probably better. anyways bye brad
Imagine having your native language be english
hmm.... I have an idea
Epic brad moment
The spice must flow
Fear is the mind eater
Yea i hate the usa
🇺🇸 u
Just to be clear i live in the usa
me too
not me 

The former works fine?
is that emote just a small small portion of 
Hi can I write in this channel for AutoPyToExe/Pyinstaller questions? Not sure which topical channel to post in.
Yes

Pretty sure the language itself is masc, may be wrong though
.bm
Lmao that emote
i'ma add it and call it :smol_troll:
Lol
go ahead and ask, if no one responds you can try #❓|how-to-get-help
Appreciate it thanks.
yeah but that sounds possessive
I solved my problem and I am not proud of my solution
def get_entities_with_components(self, *component_types: Type[T]) -> Iterator[int, Iterator[T]]:
for entity_id, components in self._entities.items():
if all(component_type in [type(component) for component in components] for component_type in component_types):
yield entity_id, [*filter(lambda component: type(component) in component_types, components)]
Look at this monstrosity :/
Actually no maybe not that
well it sounds very relationship-y
can't think of a better word for that, but that
So I'm having issues with converting one of my projects into an executable. The error that comes up is
Traceback (most recent call last):
File "BreakFixer.py", line 16, in <module>
ModuleNotFoundError: No module named 'xlsxwriter'
However, I already have my import in my code as import xlsxwriter as xl and within AutoPyToExe, I have one of my --hidden-imports as xlsxwriter. Am I doing something wrong?

I realize that, but... it's such a mind bending problem for me
I didn't know what else to do
this was the only solution so far that has worked and my brain cells have been depleted
Is it because I imported my xlsx writer and referred to it as a different name that is causing issues?
what code do you have at line 16?
import xlsxwriter as xl```
would I need to specify my alias in my hidden import as well?
with your environment active type py (or whatever equivalent if not on windows) and type import xlsxwriter..... are you sure you have it installed..?
i have no idea what hidden imports are though
I made sure to install it through pip as well as in my PyCharm
I'll redo it again to be safe
:faint:
i receive the output of
C:\Windows\system32>pip install XlsxWriter
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: XlsxWriter in c:\python27\lib\site-packages (2.0.0)```
I'll just steal this :faint:
are you using python 2.7
I'm on 3.9
You're installing to 2.7
Strange. Cause this import works in my code. Its just when running as an executable is where it trips.
Let me check my dependencies
I believe this is why we use venvs
Intresting i do have 2.7 installed... when did I do that...
This project runs on 3.9 though 🤔
Source the PyCharm venv, assuming you have it
How would I do that? Never done that before
Likely one of the last 2
<venv> will be the location of your venv/ directory
so for one of my projects, it's in ~/PycharmProjects/random_shit/venv
no clue about Windows
I see it here

And how do I source this file for PyInstaller?
Maybe using a different xlsx library might be easier. This is going a bit over my head
The simpler solution is to use --hidden-import=modulename along with the PyInstaller script. It will add modulename as import statement silently.
i found that in stack overflow. does it help? 
in your first post you wrote "as" so just checking
there are many things you can do to check, import sys and check your executable, import xlsxwriter and make sure it's actually there.. idk that choosing a different xlsx library will solve anything
That's what're written here:
I did a bit more research into venv and looks like I'd have to use that environment for xlsxwriter
but to use that one instead... 🤔
do you have 0 experience with virtual environments? bc i have 0 experience with py installer. this will end great
my dude @sick olive has been typing for 10 minutes 😂
try #❓|how-to-get-help i think that'll be your best bet -- activity might be lower at this time but you can try multiple times until you get someone that can help 🙂
bros typing a full essay out here
i love seeing these random names for the off topic
"tooth grabber scam" lmaoo
yes
santa is scam too
everything is a scam if you try hard enough
@whole dock okay i’m gonna copy what u said here
This:
. The things you lists under it are the following:
Name: Title of the theme.
Author: Author name.
Author URL: A URI that points to the author’s home page or e-mail. Valid schemes are http, https, and mailto.
Version: Version 2 indicates themes for Opera 18 and higher.
The [Start Page] category lists the details required for the theme when start page is displayed. The start page is the page displayed whenever you open a new tab (this typically includes the speed dial view you see). You need to list the following things under this section.
Background: File name of the image that goes behind Speed Dial.
Position: Position of the start page image — optional, any CSS keyword for position: left, top, right, bottom, center.
First Frame Image: An image of the first frame of the video. This is useful as a fallback image in case the video takes a slight delay to come up. (Note: This fallback image will automatically created by the server if you have upload your animated theme to the Opera add-ons catalog, so you only really need to mention this if you don’t plan to share your animated theme through the add-ons catalog). This is available on Opera 35 and above.
The [Web UI Pages] section lists the things needed for the other web UI pages. For example, the downloads, settings, and extension management pages.
Background: File name of the image that goes behind other pages.
Position: See above for positioning details.
In the above section, we just used a .jpg image here. However, we could use another video here too (and even include a First Frame Image file as a fallback for it if we desire).
You can includes comments in the persona.ini page as well. They need to be in a separate line of their own, and need to be started by a semi-colon ;.
smh fish isnt posix. it should be platform Unix/Linux
Find some example in files
okay i’ll probably just copy one of the already ready ones and see if i can get my file in there somehow
i’m not trying to publish the wallpaper or anything, sho shouldn’t have to worry ab author and all that
and idc if the name is correct
That's how i would do it :)
thanks again 😄
I don't think zsh is posix either
Damn Crow, what essay are you typing
Idk why but I am thinking of wandering into a painful linux distro such as void or arch
And you're doing that in Discord? Fun.
you were coding in notepad and now in discord
noice
Hi :D
I have had a great idea
I shall create a react clone
Oo maybe I'll write one for wasm
how many new project ideas do you get each day
this seems like too many to be humanly possible
Do you write these all down somewhere?
No it's not
too many
No lmao
I just remember them
I need to get better at ts
My skills are mediocre at best
Probably worse
Although I believe it's close
hastebin was acquired by a site i don't know
ugh
I liked it as some random person doing stuff for fun
those are always nice
it was broken for months
it was?
https://mfrachet.github.io/create-frontend-framework/ oh shit this is cool
Build a frontend framework from scratch, just to understand how it works
There's a whole ass book on it
I have too many things to do and not enough time or motivation
Hm maybe I'll write one for python
it can be posix compliant but fish isnt zzz
void isnt painful. it has an installer ¯_(ツ)_/¯
u have to learn a bit about runit tho
Simple answer: Because I respond to he, him, they, or them naturally.
how many sets of pronouns are there
Quite a few! Actually depends on your language too.
theoretically could someone be every pronoun
fuck that crap
technically that's two (sets of) pronouns, not four
Sure, but folks usually have a preference.
true true
reviving old Rust projects be like:
cargo clean && cargo build && cargo build --release
&& go drink coffee for 10 minutes
oof
hello!
fish actually wanted to be posix at the start, I'm guessing. a year or two back I came across a standard sort of document and it says something along the lines of "fish should make improvements and enhancements, but it should be posix-compatible" and I'm guessing now they're just doing they own thing and giving up on making it posix
👀 hmm is using it painful?
yi. giving up is good
!mute 893179139845128293 "1 day" One thing we won't tolerate on this server is hate towards people on the basis of their gender identity. Keep such opinions to yourself. You're being muted for this comment in combination with your 'about me' and the fact that you have a prior warning. If you're looking for something to do in the mean time, read our #code-of-conduct.
:incoming_envelope: :ok_hand: applied mute to @sick olive until <t:1636169917:f> (23 hours and 59 minutes).
no. the only painful thing is me
How??
its kinda hard to make a good shell and have enhancements on the syntax without breaking compatibility imo
i mean i am using Void January to May and October to present. the gaps are just me distro hopping
i came back to it because arch is sad. and i am strong

Lol
actually idc what distro youre using 😂 they all do the things you wanna do. the only issue is if the packages are outdated or not so choose either a rolling release or a point release
Hmm
hmm. im not even able to select a zip file. i can only select .img or .jpg
it does make sense yeah
imma just symlink fish to /bin/sh
is that good? 
going back to your old Rust projects be like:
type CallbackFunc<'a> =
&'a mut dyn FnMut(&HashMap<Position, F>, &HashSet<Position>, &[Position], F);
I was, uhh, sure doing something here 
damn that's unreadable
its kinda funny how little of that syntax i know
I get a feel for what it's doing but not really
learn rust with me so i learn about u too ;)
😳
this type (generic by a lifetime), is a mutable borrow (with that lifetime) of a function that takes 4 arguments (3 references - to a hashmap, set and a slice, and a float (F is a certain type alias of mine))
does the dyn mean FnMut is a trait
FnMut is a kind of function in Rust - the ones that can be called multiple types, but might mutate stuff by being called
yeah
hmm
seems like bacterial cells mutate every second
but if it can mutate the arguments why isnt there an &mut in the arg list
oh
Awesome. I'll reach out in there. Thanks 🙂
FnMut is implemented automatically by closures which take mutable references to captured variables, as well as all types that implement Fn, e.g., (safe) function pointers (since FnMut is a supertrait of Fn). Additionally, for any type F that implements FnMut, &mut F implements FnMut, too.
basically, if you have some kind of pure function, or a closure with no mutable captures, it can be Fn
hmm
but if you have, say, a closure with a mutable capture - not Fn anymore, FnMut at best
how do you make a closure with a mutable capture
you just, like, modify something in a closure
oh lol
e.g. (what I'm actually doing)
let callback: &mut dyn FnMut(&HashMap<Position, F>, &HashSet<Position>, &[Position], F) =
&mut |g_score, open_nodes, path, cost| {
let img = img_as_png(get_progress_img_rgba(
n, m, g_score, open_nodes, path, map, threshold,
));
frames.push(img);
calls += 1;
if calls % 10 == 1 {
println!("Call #{} - investigating node with g-score {}", calls, cost);
}
};
oh god, why am I not using my own type alias here
now that looks like arcane
I sure have progressed in Rust huh
yeah. so much so
hmph i can more or less understand that
what major projects are u planning with it?
yay me
lmao
it's been 6 months and it shows
same but i dont understand the FnMut stuff
modify this thing with my new arcane knowledge of ffmpeg
specifically, of :pipe
basically, Rust several traits for functions
Fn, the strictest one, is a function that doesn't mutate state - which means it can, say, be called in a multithreaded context without any race conditions, etc
hmm it is a good thing i am in many servers. i get many sources of motivation lol
FnMut is less strict - it may mutate state, which means it needs to be called more carefully
and the least strict is FnOnce, which are functions, well, about which we know only that they can be called once.
(do they mutate state? maybe, we don't care, we're calling them once at most anyway)
makes sense
yes
eh
I want something new tho
y'know one of these days I'm gonna buy myself a profile picture
I want something cool and unique \😩
how about some deepfried profile picture
I don't wanna be too meme-y
i liked deepfried pics 👌
ok
oh RIP. They took the Unity thing off of GitHub Education's student developer pack
Windows:
No Pain
Easy software installation
more app support
Ubuntu:
Terminal
fast and smooth
customizability
ig the pain might strengthen my computer capabilities..
hmm i think leaving ubuntu for the pain was a bad idea 
"easy software installation"?
Can't you just... run .debs
Or like, just sudo apt install ____
That's even easier then going to download an executable off a website
did you know you can install .debs with apt
does Brave support the youtubers when it blocks ads on yt? because I think they said it does in an ad.
sudo apt install ./foo.deb
ik but... ||oh crap I didn't know||
I'm of the opinion that Brave is there to support nobody but themselves
^

And why would they anyway, that's just them paying money to youtube
Which is a net loss
just stick with good ol chrome
I use Firefox over Chrome for CSS tools, it's good.
81k wheez
but many times, while installing something on ubuntu, a lot of packages are missing and while installing the missing ones... packages for them are missing, so it becomes pain sometimes. for example for Polybar, I couldn't install it even after installing the required stuff 😮💨 .
huh...?
I don't understand
Can you not just... sudo apt install polybar
oh
oh oof it's 20.10 only
actually you know what, I know what I did wrong lol
you quit programming?
no
On a side note didn’t you say you needed to sleep roughly 2 hours ago lol
1.5 hours*
I love cats but I’m allergic to some of them
I pet a cat once and forgot to wash my hands before rubbing my eye and the next day wasn’t pleasant at all
same
Pink eye sucks tbh
isnt that just pink eye but not too virulent
maybe
my eyes were pink
we used to say that farting on someone's pillow would give them pink eye. is that still a thing 🤔
wat
LOL. this may be one of those "back in myyyy day" things
pretty sure that isnt true

