#ot2-the-original-pubsta
652 messages Β· Page 41 of 1
I live in ot0 srslly
talking about data intensifies
for the most part, stats like that are the extent of what we can pull out of metricity
and I think it's pretty nice that way!
this sounds weird if you think about it
ok time to goto sleep its 10:30... π₯²
interesting
because those charts are fairly non-invasive, are quite fun to look at and provide an insight that discord can not grant you (well, not easily)
so giving users access to those would be neat!
@echo fern can I view the source code for this?
conversely, we like using those to pull out things like "oh, which topical channels are high/low on activity?"
ok
I haven't been posting it
discord has built in server insights right?
it's running on ggez and some handwritten physics
it does, but they're fairly generic, slow to process and have fairly bad retention
could you shwo them?
wow, the formation of a stuck together ball of balls actually seems like a rare event
I can't get another video of the same
nice
Warning: a tick of dt=0.017 took 18928ΞΌs, 1.14x the target!
it looks like 500 balls is about my limit, for O(n^2) physics
can't you remux it to mp4 in obs itself
I've spent like a day trying to figure out how to record videos directly from Rust for another project, gave up and ended up writing each frame as a png and then making ffmpeg make a video from them π©
ehh, maybe
ok
ouch
for context, I was using opencv
and it turned out it has some years-old problems with some users
like, I've found threads of it dating back to 2015
and none of the fixes worked for me
!teleport 2015
the images->png->mp4 via ffmpeg route actually worked pretty well
but I don't want to follow the same route for 60FPS videos π
how did you make the images
directly, pixel by pixel
passed a Vec<u8> of RGB values to image::png
aww
Custom Cargo profiles are a nightly feature π
that's a big sad
I wanted
[profile.final]
inherits = "release"
lto = "fat"
get nightly :P
is it worth it just for this?
idk :P
oh wait
I think I have it already
but wait, won't that mean I'd have to build for nightly too...
nooooooooo guys
#ot0-fear-of-python is popping off
hurry
we must beat the rush
m!stats
where on that page does it say which elements of discord data it collects
literally just this line
hmm, I'm running out of ideas about what to do with my balls
not in this project, but I've done it before
whatever you do, don't injure them also that's a horrible message to send here

@echo fern stop playing with your balls smh
it is acted upon by a periodic force of gravity
ohh
hmm, maybe I can simulate an asteroid field
yus
lmfao
discord's api is weird
for any activities where the use or failure of the APIs could lead to death, personal injury, or environmental damage (such as the operation of nuclear facilities, air traffic control, or life support systems);
welp
guess it's time to implement spatial hashing or something π©
1000 balls is weak
I need better-than-O(n^2) collisions
holy shit
spatial hashing is amazing
I went from being able to simulate 2000 balls at 0.5x speed to being able to simulate them using only 6% of the tick time
and that's using an inefficient algorithm where I recalculate the spatial hash each tick
oh wait, I messed up π©
Wh
@languid osprey i require your help
#help-pear please
Sure lol
Nice
more like colliding octogons :/
@grim seal
I have done something fantastic
But can ns jail have a virtual desktop?
That's why it uses docker
.gh repo onerandomusername/CloudAHK
Run AHK over HTTP with Python and Docker
Forked from G33kDude/CloudAHK
this is great
theoretically yes? never tried
there is another thing for that sort of stuff
https://firejail.wordpress.com/ this is one of them
sort of? worth reading the page
Because ideally this wouldn't use docker
So it could instead be deployed within docker
And not interested in making it nest docker containers if that's even possible
sandboxing desktops is difficult
Huh
You mind if i-- wait no I don't need to

Forgot screenshots were a thing and was gonna ask if I could invite you to the server
It runs autohotkey code and returns an image as a result
Eventually anyhow
Cool thing is it took that screenshot with autohotkey 
I didn't write that code
But moving it to fire jail does seem possible kinda.
Hmmmm
@echo fern
You would need AI to do that
regexes just contain characters
and a computer can't tell a regex apart from a normal string unless it is told already
which is which
regexes most certainly don't look like most other strings
for example, you can do things like detect "one of range" patterns like [a-z]
those are very indicative
also anchors and lookbehind/aheads, they have a distinctive syntax
the main problem is doing that via a regexp, which is why that's a challenge π
well still
remember computers are just 0s and 1s
they have no way of telling if a string contains the answer to the universe
or a string that roasts you
it is easy because we are humans
and our brains just know its a regex
sure, but they have plenty of ways of telling if a string contains certain patterns indicative of regexpes, as I outlined above π
you seem to think like I believe there's a magic "find regexp" button somewhere
only with the aid of certain modifyers that actively tell the computer this is a regex, do special things with it
liek in python
the re module
or in javascript
the 2 slashes
/regex boi/
I don't think you get my original question
techincally you could
you could make a regex to listen for characters that regexes use
but regexes don't contain all the symbols
they are used interchangeably
and regexes can't deal with that
suppose you have a ton of strings. Some of them are regexpes, and some aren't. Detect, with as much accuracy as you can, the ones that are - and the massive limitation is that you need to do so via a regexp that matches the regexpes.
see my point above
regexes don't even have to have symbols
they can just be a word
"match this work pls ty"
yeah, simple string literals are valid regexp
and all the symbols are interchangable
which means you can't just listen for one
you have to listen to all of them
and some are used in common english
but classifying those are regexps would be bad for accuracy on a dataset including normal strings π
for example the $ sign
...so? what's your point? I didn't say it was easy.
it appears often in formal literals
the point is
the regex .+
is just as valid as some 700 character behemoth
there is too much variation in the symbols, the length, and the difference
you would need something that works like a human brain to pick it out
computers don't really understand context
so you need one that does
in short, AI
you seem to be trying to argue "this task is hard" as if it means "this task is silly and impossible".
it can be done
but you wouldn't be able to use regexes
which is what your question requires
in fact, watch me:
r"[^A-Za-z\s]"
matches any special char. Already better than random chance at detecting regexpes π
true
proceed further to exclude combinations of special chars that are common in normal text, include ones that are common in regexpes...
that would kind of work
but not really
the % sign, $ sign, and & sign all appear often
in normal english
all are valid regex characters
About the dollar sign, you could see if they appear at the end
not in the same context as in regexps
that still leaves two on the table
look, you're trying to argue that there's no way to distinguish regexps from normal strings
there isn't
we need to tell the program specifically this is a regex
isnt that what you did here
with the r string
yet for some reason I suspect that you can, in fact, distinguish that [^A-Za-z\s] is far more likely to be part of a regexp than of a normal string π
in the context of generic strings there is no way to distinguish each other
if you removed the r and made it a normal string you would have nothing special about it
you do realize that this is a best-accuracy task, not a "theoretically perfect" task, right?
even still there could be some large pitfalls
but i suppose this is as close as you could get
I'm not claiming that regular expressions and "normal strings" are disjoint subsets π
well i have one last argument
what about invalid regexes
@echo fern
like the regex
%&4984\s\d\h^&
or something
idk im no regex master
the point is that this is not a valid regex and could not work if used
syntax errors that make the regex invalid are probably even easier to detect than most signs of a regex
@grim seal fire jail runs the wine desktop on my own desktop
Oh wait I think I missed something
all strings are techincally regexes
so you have no way to detect syntax errors if you were to try and use the regex
Hm? All regexes are strings, but but not all strings are valid regexes
"*" isn't, for instance
in short, AI
how does AI fit into this?
You can't make a regex that matches regexes, because regexes can't match arbitrarily nested parentheses.
That is, the grammar of a regular expression is not itself a regular language, and so it cannot be validated with a regular expression.
oh, I hate this a lot
Why do you need to detect regexes?
I don't
I remembered https://xkcd.com/1313/
and decided to torture you people with a question
If you finish the regex, I'd like to see it lol
not quite what the comic mentions, but... so, how'd you write a regexp to find files that look like regexpes? π
Public statistics for the Python Discord server
eyy
were at half of ot0 hahaha
Lol
Very, I haven't seen it though
amazing
Really?
best lawn ever
That's good.
otn a who cuts eivl's lavn
Lol
does he though?
Deleted to send it to message-logs
My message was so weird
Since I didn't finish typing.
Lol
Eivl has the best lawn 
message logs go so fast no one will notice that I am
Agreed
cya in a bit have to go install kde on arch
Ik. But I still had to mention it because my message was so screwed up.
Lol
Cya
Good luck
Dang, only 2 online mods (mod only)
Lol
Mods are asleep, post pics of eivl's lawn
Pretty
Pretty sure this is what you mean
Where's the ram garden?
ah, its not quite perfect
Ram garden?
Where eivl grows his ram
Duh
I see.
now 1
Right I do this all the time
wanna see an economics meme?
yeah shows my paper
PFFT
it was funny
memeys
@sturdy relic guess where I'm pitching my tent tonight
On this lawn?
aw fuck i broke arch ill have to install again tomorrow
wow same
Can I join you all out there?
of course theres enough room on the lawn
hell yeah it is
Pog
@sturdy relic ive pitched my tent
his heart

awwww
..
NO
.topic
No.
Is the new codeblock comming to the python server? I asked this bout a week ago any plans of implementing it?
you mean text file embedded previews?
Yes.
Oh so we won't be seeing it again?
at least i think that's how it went 
the bot doesn't filter it's contents the same way codeblocks are, so it was an easy way to bypass them.
the botto would have to download every previewed attachment i think in order to do it
I see what you mean you'd actually have to open the file as bot the scan it.
yep
That would be pretty much stuff for the bot to do.
that's a fair bit of bandwidth, but we could probably manage it. but then it's possibly a point of weakness to the bot that could cost us money lol
Yeah i get what you mean, thanks for your time man.
no probs! to clarify though, i dunno if it's a forever thing, you never know what happens later on
feel free to ask anything else later on if you want too π
Hi.
@sturdy relic this is your land are you happy
do people still use x86 assembly?
Do people still use assembly?
do people use assembly?
I doubt any sane person does
python:
print(such_and_such)
assembly::
ererrwweijepoijip:{
mowjfowjfof
{
cwpoijoiweemp
}}
{
Xo4{
whateveryahyahyah
dothis and that read here 0x5a whatever that number means
}
}
yes
yes
no
Krunker.io is a free Multiplayer Online Game. No Download needed
if u join leave a msg
what is this game btw?
krunker
I'll pass.
noo
Haha
@nova ember still does
I can barely see the mods.
IT ISSSSSSSSSS
there's now more admins than moderators online at any given time
I mean as I said ealier in ot0 if I could keep just the color, I would
ask if two of them wanna step down π
Always
I love messing up the staff gradient
Demote two of the admins. Temporarily
chris got moderator and then admin like a month apart
He's really been putting some serious effort into this community
ye he's cool.
inb4 4th owner next month
yeah haha.
π
alphabetical
and it would destroy joe being at the top
looks better than that tbh
indeed
hello
@keen burrow Just curious, why did you step down from Open-Source Lead?
Long story short, I donβt think Iβm the right fit for this role right now
It is better for the organisation itself that someone else take the role in my opinion
^
you earned my respect.
Haha, thanks, that means a lot
I mean.. agreeing and stepping down because he thinks that someone else would do a better job at something even tho he is really good at it himself. salute
Yeah, that's very respectable.
.bm 832611584521797653 make the glasses black to look cooler.
So are you a mod or a mod now?
get gud and become two
Thatβs because there is me and the other little guy
two mods in a trenchcoat
But for real, we will be rolling soon a system to opt into mod pings
That will require two roles
yeah "off-duty"
Moderator and Moderator* π
lmao
morning aboo
eivl's lawn best lawn
breakfast?
Hey :D
nah im fasting
agreed 
heeey
does anyone know C# here?
Archcraft
Yes
WM's just, handle windows
Without any of the bloat of DE's
So no panel, dock, or anything
ok so what is the advantage of archcraft over arch
All that is seperately installed
Well, not much
Archcraft is somewhat easier to install, and it gives you a really nice config out of the box, and its really lightweight, a 100mb of ram while IDLE, but its a very new distro, and you won't find much documentation or support on it
lolol
ok so the ricing has to be done manually or are there presets?
cuz i dont wanna waste time ricing
go away
am I wrong?
ricing is one of the best things about linux
I have never heard someone in my entire 14 years of life say something so wrong
I mean you go to *nix porn on Reddit and you see all these nice looking but completely unusable setups
then I don't think it qualifies as a rice
I'm not quite finished
I need to add widgets, a sidebar, remodel the config for my bar
do the config for my picom
And I'm deciding on whether to have a dock
always see people out here getting TWMs, loading up neofetch to flex that they've got Arch
sheesh lmfao
I can't seem to figure out how to config my widgets lol
If I ever configure anything, it's 100% out of QOL or it's generally handy
I'm ricing till the day I die
or... I install a couple things because honestly KDE looks great with minimal configuration
Meanwhile you have people needing to create git repositories
for what purpose, though
cant do it in WM's??
huh?
nvm
People need to create repositories for their configuration files
dunno why, honestly... but they are tons
no, WMs are DEs without the DEs
WM's are lighter
but they're not comparable
Yes
I mean of course a WM is lighter because a "DE" is a DE + WM
900 Mb at boot for me
but it can be made much lower
RAM?
yes
Storage isn't enough to matter
I know the whole of my Arch install was just 10 Gb
if you can install Windows, you can install KDE
I wouldn't suggest Arch if you're barely getting into Linux
i have been in garuda and i dont mind if it fails
If so, I wholeheartedly recommend something from Ubuntu
been like 3-4 months in linux now
Ah, ok
Well, I would still suggest something else
Give arch a try, and if it doesn't work out, switch
Arch docs, Arch forums exist
Honestly, what it is it that you really want from Arch
light OS
yes but any distribution can be just as light
hmm
why do you do dis π
and if you're worried about storage... don't pick Arch
a week ago you wanted me to pick arch and now ...
π
ok, so which is the lightest on storage
If you have to choose between Arch or an Arch derivative, Arch 100%
If you want something similar enough to Arch but is easy to install and really solid, I'd suggest something like openSUSE Tumbleweed
or if you want really light... Xubuntu is probably perfect
Simplicity of Ubuntu but light because of XFCE
and if you ever go with Ubuntu, you always want LTS
Non-LTS becomes a huge pain sometimes
@sturdy relic do u have a big lawn??
can u print all ot2 messages and put them on ur lawn
Lmao
julia language
i am practicing plots
oooh math
whats that
i love that
ye
umm
for me its my second distro
i really like it
Public statistics for the Python Discord server
were getting there
@keen burrow why the pfp change 
also yes
yes & yes
ot2 is best ot
(this is continued from #community-meta)
Mhm
hey hey
guess what
nani
Because I think it is better to stop hiding behind a character
but
but
but
it means we gotta remake all of the emotes
π

Why would you
Dr. Akarys is still a thing
heh heh heh
Even better now
But character Akarys was cool
i woke up and the account of @keen burrow was rebranded and everything
aww
I don't have nitro but otherwise I'd totally use the Dr. Akarys emotes
Best emotes ever
now vester is like the only lead there and he isn't even a moderator
You can use the links
Hmm true
And restrict sizes afaik
Lol


Yeah, vester is the only top role lead
#ot2-emoji-spam
It worked
lel
π
so much akarys emojis
SO SAD
THE CHARACTER STEPPED DOWN
meanwhile some guy with the same name @keen burrow became a moderator
congrats @keen burrow
Lmao
lol
lmfao
can we get an akarys heart pydis emoji??
yes pls

steal it from gurkult
lmao
lmfao I hate the
emoji... why it look like that
lemon long more like lemon wrong

lmao
Change the colors of it and you've got something completely different
i hate llvm
i don't need to know about lemons long
its been compiling for 20 minutes now
Lmao
what are you compiling
LLVM
I would be writing my JIT if I hadn't spent two hours figuring out how to compile this
:blobpain:
lol
Im not making my lang in python
The lang I did make in python has a lexer made from scratch
logos
I wrapped it
It basically gives you a base lexer
Then you can write your own
around it
I made the parser from scratch
ok
I recommend writing the parser from scratch
You get more control over the errors
And other things
You get more control and less limitations than using a parser generator
A parser generator is fine for a first language though
@languid osprey what book/resource do you suggest for making this stuff
lexers/parsers etc
craftinginterpreters
i felt so smart when i did
Crafting interpreters
lol i saw that
thanks
It's in C, but the concepts are universal
Why's everyone here obsessed with writing their own interpreters
It's fun
lmfao I don't think I'm gonna find myself a project I wanna do
dies
agreed
i've never had to use classmethod but eh
but with staticmethod u can just reference the class urself
i refuse
a joke?
Well if it's a joke, there's an implication that it's... real
I'm confused
wtf is leetcode army
a failed joke apparently π
...
dot dot dot
β¦
help in #data-science-and-ml
wtf is leetcode
elite code
what makes it elite .-.
website
for programming questions
apparently very hard
i've never even tried
leetcode is designed for people to plug and chug coding problems
I want to throw up
I ate some bread last night
and... I looked at it this morning
it has mold on it
like... all over it
oh no
Ewww
no
no
I checked the other breads
the mold grows a lot before actually showing up
I am disgusted
its been fun knowing you Cypheriel
the colour comes last
That is so disgusting
i think im making things worse
I'm never eating bread ever again
expired*
I'm expired
bruh
interesting
I think I somehow blame Wal-Mart
wait apparently it wont do much harm
Even the bread we had that hasn't been touched had the green spots
Doesn't dampen my wanting to throw up
yes
I'd rather die of food poisoning
bruh
bruh
both mushroom and mold are fungi
therefore they are both safe π π π π π
yeast too
ywest
no
ynorth
ok
ysouth
if mold was good, people wouldn't care if it was on their bread
well if mold is on ur bread thats a sign that its old right?
it's not like an overripe banana
Ugh I hate overripe bananas
but I'd rather not eat fucking FUNGUS
You know it feels like if someone told me their ants escaped into my room
I no longer feel comfortable in my own skin
but mushroom is also fungus
bro
im not saying u should eat mold
but
mushrooms. don't grow on bread
mold is gold
well they could
if u let them
but that would be quite disgusting
and smell horrible
i assume
apparently smelling moldy bread can be harmful
bruh
cause you can inhale spores
well u didnt smell it u only ate it π
damn u did bnoth
YES AND I HATE IT
jeez
ok
bruh why lol
ah, same as in Rust
is that a rare occurence for you
Lol
no... but eating it is
oh lol
I ate it and later realized it had mold on it
was the taste really the same
yes
well... no
welp. is there's a fear of bread, I now have it
ok. I have artophobia
pfft
@tawdry fog can't really discuss it atm since I must flee to a different location besides my computer, but here's the graphing bot I'm working on that was mentioned in #community-meta.
Feel free to contribute!
most up to date branch is the development branch
still a bit messy and incomplete though. I'll get it done eventually.
Yea I just looked @ the code for a few seconds it does look tedious lmao.
Here is my Spectre-Based Meltdown proof of concept **in just 99 lines **
lol
pffft
Cool
@wide totem :white_check_mark: Your eval job has completed with return code 0.
you work here now?

oh wow
The magic of permissionsβ’οΈ
!e print('you work here now?')
@jovial island :white_check_mark: Your eval job has completed with return code 0.
you work here now?
@jovial island discord broke?
what?
I cant type in that channel now
oh
ok
i am happy :D
can I use it for python :roothink:
ok
@languid osprey i decided my first project in rust will be my language
i'm not writing it in python
Cool
I recommend making a stack based interpreter
Don't jump straight into compilers yet
Get some background first
I recommend logos
Its fast
ok
Aboo, quick question mate.
I'm not familiar with Rust, so excuse me if I'm wrong.
Rust libraries are called "crates" ?
yes
well it's because cargo
rust's dependency manager
Rust shouldnt have gone with a fucking crab for its mascot
What should've been the mascot then?
Idk but i feel like they should have stuck with the rusty/metallic theme
π¦
Yup
the more you knowβ’οΈ
I mean... why not just give the crab a rusty metallic shell?
Lol
A rusty, robotic crab that runs on Rust. Doesn't sound too bad.
but..but...
rustacean π₯Ί
The mascot's name is Ferris, as in ferrous
They picked the crab because rust is contained in crustacean
Im sorry but just pick a fucking lane
yeah but like, a lump of metal is not a very good mascot
Lmao but iron ingots are pretty cool
omg rust crab
i want that sticker
Donate that sticker please
idk how to do that
https://albinotonnina.com/ Pretty cool website
@soft quiver sorr for the π but do you know any nice place to learn fast api?
their docs read like a tutorial. The best way I found was just diving in and making an api. They make it a bit too easy, haha
^ this
god i love good documentation
i usually learn stuff by kinda deciding that I want to do something and then just frantically googling and making random stuff until i'm at the required skill level to make it
the praw/asyncpraw docs are so nice
yeah there docs are awesome, i made few stuff already, sir-lancebot -> api
converting commands of sir lancebot into a api
i am out of ideas, so just did that
meanwhile, reddit docs...
agreed.
but for some apparent reason, I get errors.
my $meme command doesn't work now 
wait lemme find it.
something something invalid
and then starts working all of a sudden again.
lemme open that shitty website to find the error.
fuck, I just opened 4 tabs of chrome because when I clicked it the first 3 times.. it didn't open.
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@dusky cliff error: https://paste.pythondiscord.com/kunohopene.swift
code
gimme a min.
actually I need to rewrite my bot and make the commands inside decors.. now I'm using the on_message listener and calling functions based on the first word of each message.
hm.. how do I verify it?
Donβt worry, we wonβt tell anyone your username. Log in to your Reddit account.
ah.
what?!
yes ik the bot is slow.






