#ot1-perplexing-regexing
1 messages · Page 605 of 1
???
is that a halloween joke lolz
???
No pfp setting
???
I was on phone during the night when you started it
bruh
but this is all on desktop
Save money on your phone bill and get $25 off at https://polymatter.ting.com
Twitter: https://twitter.com/polymatters
Patreon: https://patreon.com/polymatter
Pins & T-Shirts: https://standard.tv/collections/polymatter
Reddit: https://reddit.com/r/PolyMatter
Sources: https://pastebin.com/kHNnKHkv
Music by Graham Haerther (http://www.Haerther.n...
idk why im binge watching
binge watching economics 😎
who keeps deleting their posts from this channel
i got my eye on you, watch your step
lol
🔪
satan is good
ye
damn that's a good way of thinking thankyou very much for the advice!
hmm, the number one thing that distracts me is youtube and reddit. Maybe I'll just disconnect from the wifi and see how it goes. tyty
From the command line I think
or that
In cpp
Ty
How to create makefile
I think just
CXXFLAGS = -Wall -Wextra -Wpedantic -Wno-virtual-dtor -O0 -g
main: main.cpp
run: main
./main
``` in a file called `Makefile` should work
don't quote me on -Wno-virtual-dtor, it could not exist
I usually just have two tabs on the terminal and switch between the two
yeah, most vim users just use the terminal rather than staying in vim
Maybe not the best, but it works
Sorta like me and my coding
Imma do terminal I do g++ anyways
some terminals support splitting the screen
and if they don't, just slap tmux or baoyu on it
It's not about vim, it's about your choice of language (compiled) and not being used to console-based editors
wtf is this indentation(its 4 spaces but it looks like alot)
i think its the default for neovim
you can change the tab space length in init.vim iirc
it looks like it is hmm
The indent looks more like 6 spaces based on space width in second line
it looks like 8 if you count the chars around it
namesauce would have been better
Slightly less than 156px for whole indent and slightly less than 24px for one. That's 6.5 with those values.
Weird ag
Wtf, it's really mono :o
it is
Wtf
spooky danger monospace
You really went all in that
Lol
why namesoace btw
This
This
I'm bored and tried to do anything but do the dishes XD
Micheal Vsuace have you ever had a Thought
His full name
@wheat lynx
Here's your reminder: How’s life? //Vester
[Jump back to when you created the reminder](#ot1-perplexing-regexing message)
lmao
An inescapable void of pain and sadness
expiration
Daaaaaaaaamn. That's cool
@narrow pecan Life is good, thanks for asking!
I feel like just saying good after a whole year of waiting is a bit anticlimactic but oh well
!remind 572303014346489866 1y How's life part 2, the long awaited sequel
Your reminder will arrive on <t:1664653279:F> and will mention 1 other(s)!
That’s nice to hear :) I can’t fully grasp that was a whole year ago
Yeah haha, setting a reminder on the bot for a year just feels like something that will never happen
Both still here though 😃
Yeah, I feel the exact same way
Yep! And I’m planning on being here for that next reminder as well 😄
Your reminder will arrive on <t:1664573622:F>!
!remind 363d ban vivek before they delete the server
Your reminder will arrive on <t:1664487323:F>!
wow, ruuuuuuuude
!remind 362d ban wookie so he can’t ban vivek
Your reminder will arrive on <t:1664400969:F>!
also: There is no more vivek. Only steak.
Guess we'll see if that's still true a year from now
That can be accomplished through steak's method
||⓪||||⓪||⓪||⑥||||⑹||||⑷||||④||||①||||⑤||||⑷||||④||
||①||||①||||⑦||||⑫||||⑯||||⑩||||④||||①||||⑴||||⑧||||⑦||
||①||||⑴||||⑩||||⑹||||⑥||||⓪||||⓪||||①||||⑦||||⑮||||⑶||
||①||||④||||⑶||||⑨||||⑥||||⓪||||⓪||||⓪||||⑥||||⑹||||⑸||
||⓪||||③||||③||||⑨||||⑥||||⑥||||⓪||||⓪||||⑥||||⑪||||⑪||
||⓪||||⓪||||⓪||||⑥||||⑹||||⑥||||⑤||||⑧||||⑧||||③||||⓪||
||④||||④||||⑦||||⑨||||⑨||||⑥||||⑤||||⑸||||⑶||||③||||⓪||
||④||||⑷||||⑦||||⑶||||③||||⓪||||⑧||||⑪||||⑪||||⑨||||⑥||
||④||||④||||⑦||||③||||③||||⓪||||③||||⑶||||③||||⑥||||⑹||
numbers in brackets mean that many mines are in a square.
circle numbers are the bomb numbers.
hehe
"hacks"
we could make a bot out of this
Minesweeper bot
this is good!
Can anyone share their opinion
which text spinner does the best:
ORIGINAL: Whether it’s simple sentences for those just learning the English language or phrasing for an academic paper, this easy-to-use sentence generator will help you choose your words with confidence.
SPINNER 1: This easy-to-use sentence generator will help you choose your words with confidence , whether it is simple sentences for those just learning the English language or a more complex paper .
SPINNER 2: This easy-to-use sentence generator will help you pick your words with confidence, whether it's basic phrases for people who are just learning the English language or wording for an academic paper.```
The spinner 2 is an online paraphraser and it's pretty good but the people running it are greedy
spinner 1 is one that I made using transformers pegasus and nltk
which one sounds better, honesty will help me
spinner 1 has improper spacing in punctuation, the wording is also inferior IMHO.
spinner 2 is definitely much closer to the original and better phrased
Don't mind the punctuation, but thanks for the feedback
not cool man not cool 
👀
you saw all mines. you're dead. you're not supposed to see the mines 😛
is there a performance difference between //td[@nowrap and @align] and //td[@nowrap='' and @align='center']?
I assume there is, because it has to match values as well as attributes, but I don't think it's significant enough?
hm thanks
does anyone know where you can find the emoji implementation of the haskell prelude?
Why is that a thing that exists
Haskell uses a LOT of symbols
it was half meme half teaching tool where it replaces scary haskell words with emoji
What symbol was map
Why not just \🗺️ 
no idea
Next up, haskell prelude in twitch emojis
funnily enough, that was the exact thought that made want to look this up again
lol
does anyone know how do i decrease the alpha of pixels by a fraction each frame through shaders? i want to like dissipate trails, i have this texture with those blue trails drawn over it, now i want to decrease the alpha of those trails over time
:incoming_envelope: :ok_hand: applied mute to @grizzled bridge until <t:1633197455:f> (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 99 emojis in 10s).
!unmute 848029150722654230
:incoming_envelope: :ok_hand: pardoned infraction mute for @grizzled bridge.
what's the maximum # of emojis??
20 in 10s
Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field. The game originates from the 1960s, and it has been written for many computing platforms in use to...
code:
import random as r
numbers='⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿'
mines=' ⑴⑵⑶⑷⑸⑹'
max_mines_in_square=1
lst=[]
width=11
height=9
default=21.7
diff=40 #% of squares which are mines
for i in range(height+2):
lst.append([0]*(width+2))
for i in range(1,height+1):
for j in range(1,width+1):
if r.random()<diff/100:
num_mines=r.randint(1,max_mines_in_square)
lst[i][j]=-1000000000*num_mines
lst[i-1][j-1]+=num_mines
lst[i-1][j]+=num_mines
lst[i-1][j+1]+=num_mines
lst[i][j-1]+=num_mines
lst[i][j+1]+=num_mines
lst[i+1][j-1]+=num_mines
lst[i+1][j]+=num_mines
lst[i+1][j+1]+=num_mines
a=0
b=0
for i in range(1,height+1):
for j in range(1,width+1):
if lst[i][j]==0:
a=i
b=j
break
for i in range(1,height+1):
for j in range(1,width+1):
if (lst[i][j])<0:
print('||'+mines[-1*(lst[i][j]-1000)//1000000000]+'||', end='')
else:
if (i,j)!=(a,b):
print('||'+numbers[lst[i][j]]+'||',end='')
else:
print(numbers[lst[i][j]], end='')
print()
(improved)
We can run this and get an example nvm the bot sends the output in a codeblock
sure
I tried to eval it but it didn't work 😔
it's fine, just copy-paste into a discord message
!e
the code for minesweeper:
import random as r
numbers='⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿'
mines=' ⑴⑵⑶⑷⑸⑹'
max_mines_in_square=1
lst=[]
width=11
height=9
default=21.7
diff=40 #% of squares which are mines
for i in range(height+2):
lst.append([0]*(width+2))
for i in range(1,height+1):
for j in range(1,width+1):
if r.random()<diff/100:
num_mines=r.randint(1,max_mines_in_square)
lst[i][j]=-1000000000*num_mines
lst[i-1][j-1]+=num_mines
lst[i-1][j]+=num_mines
lst[i-1][j+1]+=num_mines
lst[i][j-1]+=num_mines
lst[i][j+1]+=num_mines
lst[i+1][j-1]+=num_mines
lst[i+1][j]+=num_mines
lst[i+1][j+1]+=num_mines
for i in range(1,height+1):
for j in range(1,width+1):
if (lst[i][j])<0:
print('||'+mines[-1*(lst[i][j]-1000)//1000000000]+'||', end='')
else:
print('||'+numbers[lst[i][j]]+'||',end='')
print()
@grizzled bridge :white_check_mark: Your eval job has completed with return code 0.
001 | ||②||||②||||②||||⑴||||③||||⑴||||⑴||||⑴||||②||||③||||⑴||
002 | ||⑴||||⑴||||③||||③||||④||||⑴||||④||||③||||⑴||||⑤||||⑴||
003 | ||③||||④||||⑴||||③||||⑴||||③||||①||||②||||③||||⑴||||⑴||
004 | ||①||||⑴||||③||||④||||⑴||||②||||①||||②||||⑴||||④||||③||
005 | ||②||||②||||③||||⑴||||③||||②||||③||||⑴||||⑤||||④||||⑴||
006 | ||⑴||||②||||④||||⑴||||④||||③||||⑴||||⑴||||⑴||||⑴||||②||
007 | ||④||||⑴||||④||||⑴||||④||||⑴||||⑴||||⑤||||⑴||||⑤||||③||
008 | ||⑴||||⑴||||④||||②||||⑤||||⑴||||④||||②||||③||||⑴||||⑴||
009 | ||③||||⑴||||②||||①||||⑴||||⑴||||②||||⓪||||②||||⑴||||③||
||②||||②||||②||||⑴||||③||||⑴||||⑴||||⑴||||②||||③||||⑴||
||⑴||||⑴||||③||||③||||④||||⑴||||④||||③||||⑴||||⑤||||⑴||
||③||||④||||⑴||||③||||⑴||||③||||①||||②||||③||||⑴||||⑴||
||①||||⑴||||③||||④||||⑴||||②||||①||||②||||⑴||||④||||③||
||②||||②||||③||||⑴||||③||||②||||③||||⑴||||⑤||||④||||⑴||
||⑴||||②||||④||||⑴||||④||||③||||⑴||||⑴||||⑴||||⑴||||②||
||④||||⑴||||④||||⑴||||④||||⑴||||⑴||||⑤||||⑴||||⑤||||③||
||⑴||||⑴||||④||||②||||⑤||||⑴||||④||||②||||③||||⑴||||⑴||
||③||||⑴||||②||||①||||⑴||||⑴||||②||⓪||②||||⑴||||③||
Yeah very cool!
Hey @grizzled bridge!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
import random as r
numbers='⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿'
mines=' ⑴⑵⑶⑷⑸⑹'
max_mines_in_square=1
lst=[]
width=11
height=9
default=21.7
diff=40 #% of squares which are mines
for i in range(height+2):
lst.append([0]*(width+2))
for i in range(1,height+1):
for j in range(1,width+1):
if r.random()<diff/100:
num_mines=r.randint(1,max_mines_in_square)
lst[i][j]=-1000000000*num_mines
lst[i-1][j-1]+=num_mines
lst[i-1][j]+=num_mines
lst[i-1][j+1]+=num_mines
lst[i][j-1]+=num_mines
lst[i][j+1]+=num_mines
lst[i+1][j-1]+=num_mines
lst[i+1][j]+=num_mines
lst[i+1][j+1]+=num_mines
a=0
b=0
for i in range(1,height+1):
for j in range(1,width+1):
if lst[i][j]==0:
a=i
b=j
break
for i in range(1,height+1):
for j in range(1,width+1):
if (lst[i][j])<0:
print('||'+mines[-1*(lst[i][j]-1000)//1000000000]+'||', end='')
else:
if (i,j)!=(a,b):
print('||'+numbers[lst[i][j]]+'||',end='')
else:
print(numbers[lst[i][j]], end='')
print()
(improved)
through shaders?
shaders calculate everything per pixel, they don't know history. so you need to pass some kind of "age" to your shader and use it in your calculations as well
if it's 2d, then you can use z to model this and apply some linear fade with distance.
basically imagine it's moving towards you over time (and you're backing off - camera has current time z; you don't have to modify existing structure's z coordinate) or you're staying in place and "drawing" it and it floats away and fades (camera's z is constant but you have to update coordinates of the fading points to change z).
I didn't get the details, but it's amazing for research
@paper tangle even if the set does exist entirely within those bounds, that does not mean that it will always stay within those bounds
take the point -2+0i
this starts at 0, then -2, then (-2)^2 - 2 = 2, then it stays at 2 forever
the point 2 is not in the set, but it is still an acceptable fixed point if c = -2
You're right, I should've seen that
thinking about it... this would mainly affect the bit at the left, wouldn't it? since those can converge to high positive points which get squared but then reduced
so that actually explains why you got that particular issue instead of some other problem
Yeah, any value < -1 would do it I think
I also made a multiprocessing version of the script, trying to render a 12000x9600 image with a max_iter of 600
Idk of 600 is enough. How would I estimate that?
Just trial and error?
What window manager will do tiling and non tiling and support d menu, and have virtual desktops
bspwm? Its a tiling WM, but you can have floating windows
tfw no HLWM smh ;P
that seems so so far off of english lol
herbstluft wm
o.o
they don't know history
yeah, thats why i was running into this problem, so i thought maybe if i could write to the texture, but i couldn't figure out how to do that either
so you need to pass some kind of "age" to your shader
thought of that, but that will affect all trails equally right? i want to make dissipate the old ones before the new ones
same with thezusage i think hmm 🤔
!or-gotcha
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
who pinged
why don't you check?
it doesnt show up
so why do you think if there's a ghost ping, someone will tell you who did it?
good point
https://www.youtube.com/watch?v=aC8npnaq9IA Sentence mixing go brrrr
well uhhh.. i was not expecting this video to blow up THAT fast. (check out my main channel if u want. its linked on my channel page somewhere and in this link below me)
🙂 https://youtube.com/c/CurtisTRY
Sentence mixing test
also.. a swear!!?!?!?!?!??!?
the REAL version which this video is based off of (which is a reupload): https://youtu.be/d...
it feels a little hot here
Maybe she or he doesn't even look at the contents
dam another raid just happened
dam?
where?
in one of my servers
oh.
!e
import random as r
numbers = '1', '2', '3'
print(random.choice(numbers))```
@prisma wraith :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | NameError: name 'random' is not defined
!e
import random
numbers = '1', '2', '3'
print(random.choice(numbers))```
@prisma wraith :white_check_mark: Your eval job has completed with return code 0.
3
!e
import random
numbers = '1', '2', '3'
print(random.choice(numbers))```
@prisma wraith :white_check_mark: Your eval job has completed with return code 0.
2
!e
import random
numbers = '1', '2', '3'
print(random.choice(numbers))```
@prisma wraith :white_check_mark: Your eval job has completed with return code 0.
3
yk there's a thing called #bot-commands
@edgy crest Might as well ask you here to just....stay away from #ot0. When writing tests, what are the things that should be tested? Because writing a test for every possible functions with every input is impractical and unnecessary
i have never written a test
but i assume it will be for things that i do when i run the program multiple times with different inputs manually to see if it works for those
duude
i prefer lists
!e
import random
numbers = [1,2,3]
print(random.choice(numbers))
@distant burrow :white_check_mark: Your eval job has completed with return code 0.
3
!e import random; print(random.choice(range(1, 4)))
@round rose :white_check_mark: Your eval job has completed with return code 0.
3
!e
print(import('random'). choice(range(1,4)))
@solemn leaf :white_check_mark: Your eval job has completed with return code 0.
3
from random import*;print(randrange(3)+1)
what do you mean by "old" ones? because I meant each drawn point having the age/z.
like... drawing a fading circular shape -> from the "side" it would look like a spring. 3d spiral. not a ring
the simulation is going continuosly, as the pendulum moves it draws new trails, the tails which were drawn too long before should start dissipating
at least thats what i want to do
yes. each drawn point has its time/z stored
and you move your "camera" back (pass current z to shader as well)
so that you can decide colour intensity based on time lived (difference between camera and point z)
older points will be "far" -> faded
newer points will be "near" -> full colour
ohh interesting
but the thing is how will i store the z for each point
im not storing the points
using raylib, it lets you make a texture which you can draw over
that's not shader
you're drawing over a picture
so what you need to do is draw partially transparent bg colour over everything, and then redraw new points (and constant stuff if you really did "over everything")
if you cannot do overlaying of transparent colour over existing stuff, you need to read current pixel value and manually calculate next colour
i can do something like that i think, like draw a transparent bg in a fixed time period over the things
but how will i draw the transparent bg?
and this is for making every pixel get semi transparent
"partially transparent bg colour", not "transparent bg"
yes
alright ill try that
this is 10% black over colour as drawing software layers it
and this is even more overlays of black
hi
yeah i got what you mean, though when i draw the black color with alpha of 0.1 its fully hiding the trail, so i think the alpha does not work for backgrounds, not sure why
if you draw it with some bg drawing function, then it probably draws the whole thing because it's supposed to be a background, so the last thing there is
you might want to draw it with something for drawing objects
or as I said - read current colours, adjust values (e.g. highest rgb value -x and rest proportionally to it - so you don't have an accidental hue shift) and draw directly over them
oh i can draw a rectangle i guess
it works!
@harsh tundra thanks a lot for the help the solution was simple and i was overthinking on it 🛐
Man I love Numba. I made a program that generates an image of the Mandelbrot set, tried it for a 60k x 48k image, when I passed the 3 hour mark I wasn't even half way. I added Numba, and it was done in 15 minutes
whats numba
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
its so annoying using java mc instead of bedrock like wtf are these commands
Java is by far the Superior version
It shouldn't be much different at all
it really is and i hate it
wtf bro COBOL and Applescript are much better
if 3 is less than or equal to 5 then
log "3 may or may not be less than or equal to 5"
or smth like that
thats so so lengthy but so pseudocode
It's too length
lmao
i feel bad for whoever was assigned to make the monstrosity that is apple code and google script
that's when people thought "if it looks like English it's more natural"
yeah but after you write like ten lines of that you burn 100 calories just from typing
apple script is so bad, it's like those BDD-test frameworks, but actually tries to do stuff
like Cucumber
given: test that the software actually works then: it doesn't break
etc.
ew
yo what thats sick
I did
how do cryptocurrencies determine a hash without showing exposing it to anyone? if it is decentralized would anyone not be able to see where it came from?
but where does the hash itself come from?
hmm
i was asking about those using proof of work, proof of stake it wouldnt matter yeah
but by the network decides do you mean all of the nodes?
so then they all know the source of the hash?
haha its always like that
ohhkay
that makes a lot more sense like that thanks
have u created some major projects on scala?
Hey @grizzled bridge!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
beautiful
wdym indian
a lot of people around the world use it
It's really nothing to do with nationality, basically everyone on Windows at some point has used IDLE
a simple math question. is (5 + 20 root(2)) / 15 equals to (1 + 4 root(2))/3?
yes
okay thanks
yep
lol y only indians
We used IDLE at PolyTech since they wanted the most bare-bones env to start people off coding. It's really lightweight. I found it much better than VSCode. I still use it now if there's a really short block of code I want to test, or if it's a simple script that will only rarely be run.
Is windows 11 officially out yet? Because some of my friends have it, or is it just leaked version?
I think it's like beta version, but I'm not sure
Alright thanks
Just checked, it is not officially released.
Yea, it's not fully released, but you can try it early by enrolling in the windows insider program
I've been on Windows 11 for a few weeks and it's been pretty nice
I've heard some people have ran into bugs though
does it has any visual changes?
windows have rounded edges
Yea, it's nice
that looks nice
also the rounded edge looks a bit better, compared to this.
where did you install the windows 11 from?
thx
if you go to windows update
there should be an option to join the insider program
If I'm remembering correctly
which link?
thx, I will take a look for it
i have a python stand up it's like. statements, right?
there's one bug ive seen, if a program that is pinned to ur taskbar is prompting you, and you close it before you open it, the halo will still be there
the app open animation
partially like mac
hah
guess i will shift to stable version since it is gonna launch tomorrow iirc
also the current build has some annoying watermark
:why:
e
E
because your build is different
i presume you are using alpha
also when will 3.10 release 
Tonight
whats the time there
tonight on which timezone
37 for me
pog
cya
@rough sapphire hey, i remember you wanted to edit the interpreter's source and do some cool stuff, can u make type annotation forced to be the type like def ajfkabf(a: int) and make a must be an int? lol
That's a better question for #esoteric-python
@scenic fiber hello
Hello, can anyone give me a script that can select automatically elements on a webpage after refreshing?
Nice. I forgot it's so soon!
Should I start targeting my project for 3.10? There's one place where the match case would already be useful :D
i cant find any usecase for them in any of my projects 
I had to change my code to use a nice db wrapper with common interface (so any swap is easy) and I have to return data and status (enum) because it can be ready, already having a result, or being expired... Or just not existing. And I don't want to have freaking status codes in my db classes, in case plan changes (right now it's 404 for not existing, and 204 for correct id but expired and wrong status... And those are in two endpoints where 2 different statuses are "right")
So I have ifs based on enums anyway
i have a problem
half the time i forget what my code does but i also refuse to write comments
then i come back and cant figure out what it does and rewrite it still without comments and do that until i make it completed
Either start issuing penalties for past-you's lack of comments. Or start issuing rewards for past-you's rare cases of comments
Positive reinforcement is said to be better
positive reinforcement only works if you ever do something positive
So we're back to negative reinforcement and penalties for lack of comments...
We also have a new year in 3 months. New year resolution to make comments + positive reinforcement?
I encourage you to continue not writing comments but instead improve how you name and organize your code to make it more readable and intuitive.
I almost never use comments
can you not multipost?
im confused what the screenshot means
it's a shitpost
they posted it earlier in another channel too
I guess they deleted it?
also oof....their profile https://i.imgur.com/M2kflzy.png
is that allowed?
sus
well if the case is true , why will it look for other patterns
time to check docs
case str: is always true
its the same as a wildcard match, except you also capture it in a variable
if you wanted the equivalent of if isinstance(x, str):, its case str():
ye
ty
.reverse nwod uoy tel annog reven ,pu uoy evig annog reven
never gonna give you up, never gonna let you down
.reverse nuts
stun
stunned
since it's been posted in every channel except this one, bot commands go in #sir-lancebot-playground
.reverse nwod uoy tel annog reven ,pu uoy evig annog reven
never gonna give you up, never gonna let you down
...
weenhallow
stun tea
wot
(don't) reverse it
aet nuts
https://spins.fedoraproject.org/en/soas/ i am quite interested in using this desktop environment once i got bored of twms
it's not a desktop environment though
It's like Fedora education edition
whatever the DE is... it's absolutely terrible lol
thansk for letting me know
The OLPC things came with it
Had one when I was like12
Absolutely terrible to use
No multitasking
Yeah
oh well
Oh Sugar
I think it was meant for
- Low powered devices
- Persons with conditions
- That OLPC thing
It's written in Python apparently
I don't exactly remeber
Just post them here
post here
Oh, I didn't realize image perms are allowed in this channel. Anyway, most of them are solved now.
Remaining are just questions. Not paradoxes.
how did you manage to solve the paradoxes but not the questions
lol
lmao
It's likely because the paradoxes never existed
Just misunderstandings of concrete things
like the ship of Thesius is not actually a paradox
The link I posted is a head scratcher: infinite surface area but a finite volume
well, being a physical object, it would have to be finite
even theoretically, I see now way that it could have infinite surface area, everything is built of matter, unless it's a higher dimensional object that loops around itself
The way the math works out though, the surface area is unbounded whereas the volume is definite
it's one of those things where it's countably infinite
Right
Hahaha
because it has to come to a point eventually, at the subatomic particle level at the worst
That's so funky
what's supposed to be paradoxical about it though
Just that it has two seemingly opposing charachteristics
I can't really think of any calculus "paradoxes"
spheres are the way to cover as much volume as possible with as little surface as possible. The opposite kind of objects, spiky ones, would cover little volume with a lot of surface area. Turns out, if your object can be infinite in a dimension, it can have infinite surface area with finite volume
Yup! A pretty clever trick
hmm, I wonder if it's within my capabilities to prove that spheres the the optimal ones volume/surface wise
it'd be, like, uhh
Depends on how you count your volume right? Like do these need to stack?
If it is a single object, then spheres are the best volume / s.a.
yeah, but how does one prove it formally?
you'd need to start from, like, setting up a volume functional, and treating it as a functional minimization problem with a constraint that the surface area must be constant
and I'm not totally sure how to describe an arbitrary surface with a function, for that matter
hmm, actually... you could perhaps define all closed surfaces as all continious functions mapping from the surface of a sphere to 3d points
I was thinking more that you would need a collection of equations that relate the volume and surface area to a characteristic length, optimizing them down to the ratio of volume / s.a. and then comparing the ratio of different objects to each other
yeah, but what objects? you can prove that spheres are better than cubes, but there's an infinite amount of possible shapes
Polyhedrals maybe? I'm sure there is a generalized equation out there
yeah, but what if it's not a polyhedral that's optimal?
yellow chat
Not anymore
of course
that's the surface functional I think
sanity check: let's see if it works right for spheres
I would never have guessed that the surface area is related to cos
for spheres,
f(phi,theta) = [cos(theta) cos(phi), cos(theta) sin(phi), sin(theta)]
(the z axis is the one we count theta from)
so:
S[f] = \int \cos(\theta) d\phi d\theta |[-sin(\theta) \cos(phi), -\sin(\theta) \sin(\phi), \cos(\theta)] \cross [-\cos(\theta) sin(\phi), cos(\theta) cos(\phi), 0] |
It's from the surface element in spherical coordinates
so, uhh
does hsp's latex thing still work?
what latex thing
the bot
i have heard of no such thing
rip
You know, your thing
that cross product is I think
S[f] = \int \cos(\theta) d\phi d\theta |[-\cos(\theta) \cos(\theta) \cos(\phi), -\cos(\theta) \cos(\theta) \sin(\phi), -\sin(\theta) \cos(\phi) \cos(\theta) cos(\phi) - \sin(\theta) \sin(\phi) \cos(\theta) \sin(\phi)]|
mm yes
and that vector squared length is I think
which is
and I think I might have screwed something up then
or, hmm
meanwhile in #488104216678760469
lol
hold on, I'll calculate that cross product again..
yup, definitely messed up some calculation, that's the right answer
Deleted channel 😳
moooom, hsp deleted the channels again
smh, not even on the mathematics server
isnt it from another server? lol
1 + 1 = 4.. quick mafs my brudda
damn, my surface functional isn't quite right
oh, right, lol
I forgot 1/2
that's it:
nice
there
that's the surface area functional for a surface defined in the way above
now one'd need to:
- Figure out the volume functional too
- Find the
fmaximizing V[f] while keeping S[f] constant.
Yeah this is way over my head now
I hate that I can read that and be like "... yeah okay"
that's the right one
(I messed the limits up)
and that's the volume one:
where you can use y or z instead of x, doesn't matter.
so, uhh
Is this only for spheres?
This works for any f
(and any f matching my conditions will be a closed surface due to, uhh, topological reasons I think)
damn
now I "only" need to do variational calculus
and I'm not even sure how it's done for weird functions like I have (defined on S^2 instead of something normal)
to enforce a constraint, I need, uhh, something something lagrange multipliers
What would the f look like for a sphere?
where theta is from -pi to pi, phi is from 0 to 2pi
Ohh because it is spherical coordinates
Still, this is stuff I haven't seen in years, crazy stuff
fuck I forgot my variational calculus, aaaa
I need to:
- Consider
L[f] = V[f] + lambda*(S[f]-s) - Solve
dL/df = 0forf. - Use that to take
lambdasuch thatS[f]=sis true, I think?? I don't remember how to solve for lambda
oh, right, I remember
I find the solutions of dL/df = 0, then take these solutions and plug then into S[f], and solve for S[f] = s to get the lambda
and I don't actually need lambda*(S[f]-s), just lambda*S[f], I think
so, uhh
time to take the variation of these two functionals with regards to f
that's going to suck
in sandbox simulations which simulate individual particles of various substances, is the rendering of the particles O(n)?
hmm, what else would it be?
same, but wouldnt linear still be really slow for like 10k particles?
well, on the CPU it would, yeah
on the GPU, if you use instancing like a sane person, not so much - they are very good at drawing the same thing 10k times
interesting
what is instancing?
wait nvm learnopengl has a chapter on it
i feel like vinam should just skip highschool
🛐
btw what is the time now currently in sweden?
me who can just google it
ah good i thought that dev will sleep, it is the afternoon or early evening nice
i need it
what's that reverse 6 looking symbol
lol
csharp question
does csharp have a yield from? e.g.
is there a shorter way to write this?
// Suppose we override some IEnumerable method
override IEnumerable<Type> GetThings(){
// We want to yield all the super's things and also add some of our own at the end
foreach (var x: base.GetThings()) {
yield return x;
}
// yield our own things
}
apparently not https://stackoverflow.com/a/59869151
pathetic, thanks
what
you're being held responsible for the absence of an equivalent of yield from in C#
no idea
dont think so
It will get better soon joe ._.
the amount of CSharp things I discover just from my IDE suggesting them is insane
Having issues with windows 11.
Settings>Updates said that my pc is not windows 11 compatible, I downloaded PC Health Check and it said that TPM was disabled.
So I went into the bios and enabled it, now PC Health Check says that it is compatible.
But if I go into Settings>Updates it still says that my pc is not compatible.
me be like:
var testCommand = new Command_Action();
testCommand.action = () => Log.Error("Pressed!");
and my IDE be like: Why not use an object initializer?
var testCommand = new Command_Action {action = () => Log.Error("Pressed!")};
same but with java
If you're on .NET 5 you can also do
Command_Action testCommand = new() { action = () => Log.Error("Pressed!") };```
May or may not need the parens, not sure
I'm hyped for .NET 6 releasing in november
it's supposed to ship with their new cross-platform gui framework
I'm on 472 for reasons, but nice to know
yo link???
yeah, it's the evolution
aw, it seems like they aren't ready to push a stable version alongside .NET 6
Early Q2 2022 is the current plan, unfortunate
Though it appears all the features will be available, it's just that it'll be a preview and not a stable release
hey
has anyone seen Castlevania?
is it worth watching
youv'e seen the whole show
ah
have u seen aot tho
you'd be suprised
that show is one of the best of all time imo
that and evangelion
me 
fr tho
i didn't either but then aot happend
yeah i haven't started on season 2 with that
death note season 1 is 👌👌👌
have u seen evangelion
Death Note season 2 is [redacted because you haven't watch it yet]
thats up there as well
the show or the movies
ah
yea i just saw the remake movie series
its only on prime video for some reason
yea u can skip the first 2 they're just recaps
wait theres a season 2?
hi pwease help ;-;
i can't connect to a network
i mean it shows that i'm connected, but when i try to browse something, it just goes off
i tried to connect to the same network from another device and it worked
windows diagnostics keeps on saying "dns not responding"
sometimes rimworld code uses loops where a linq would be appropriate, but oh boy does it go brr sometimes:
public IEnumerable<ICommunicable> GetCommTargets(Pawn myPawn) => myPawn.Map.passingShipManager.passingShips.Cast<ICommunicable>().Concat<ICommunicable>(Find.FactionManager.AllFactionsVisibleInViewOrder.Where<Faction>((Func<Faction, bool>) (f => !f.temporary && !f.IsPlayer)).Cast<ICommunicable>());
oooooookay
that's vile
could this be rewritten with the from syntax?
actually, don't answer that
I'm not sure I want to know
the what syntax? 👀
oh, yield from? Well, this basically is yield return from ...; yield return from ...;
No, with the syntactic support for Linq
Of course, if one did that, it wouldn't be an expression body, and we can't have that, can we 🙂
from i in iterable where i < 80 select i * 2, that kind of thing
ah
Sometimes you can use both method calls and from-in, but more advanced cases pretty much require you to use the method style
it's more of a "part 2" than season 2
it's marked by the change in the intro sequence
IEnumerable needs an operator form of Concat, that's what would have made it nicer.
thankfully, I like the method style 🙂
That would definitely be nice to have, but I don't think interfaces are allowed to have that unfortunately
like,
public IEnumerable<ICommunicable> GetCommTargets(Pawn myPawn) => myPawn.Map.passingShipManager.passingShips.Cast<ICommunicable>() + Find.FactionManager.AllFactionsVisibleInViewOrder.Where<Faction>((Func<Faction, bool>) (f => !f.temporary && !f.IsPlayer)).Cast<ICommunicable>();
hmm, that's a shame
That's one of the (very) few things i seriously dislike about C#
you can't use extension methods to implement operators, and some restrictions are... not exactly impactful during regular programming, but still limiting for reasons I can't comprehend
For example, overloaded bitshift operators are forced to take int as the second argument
So no cout, unfortunately 
lol
😔
And you're also forced to make a function call or assignment (I believe there's something else, can't recall right now) in a statement
You can't just put a + b; and leave it as is, that's a compilation error, even if it has an effect
that's the dumbest rule imo
why did the name change?
if (faction.PlayerRelationKind == FactionRelationKind.Hostile)
root = new DiaNode((faction.def.permanentEnemy || !"FactionGreetingHostileAppreciative".CanTranslate() ? "FactionGreetingHostile" : "FactionGreetingHostileAppreciative").Translate((NamedArgument) str).AdjustedFor(pawn));
else
root = faction.PlayerRelationKind != FactionRelationKind.Neutral ? new DiaNode("FactionGreetingWarm".Translate((NamedArgument) str, (NamedArgument) negotiator.LabelShort, negotiator.Named("NEGOTIATOR"), pawn.Named("LEADER")).AdjustedFor(pawn)) : new DiaNode("FactionGreetingWary".Translate((NamedArgument) str, (NamedArgument) negotiator.LabelShort, negotiator.Named("NEGOTIATOR"), pawn.Named("LEADER")).AdjustedFor(pawn));
aaaaa, why so many ternaries
my pfp hot anyone
SO comments are great sometimes.
Modding be like
// Use reflection to regenerate stock
var regenerateStock = __instance.GetType().GetMethod("RegenerateStock", BindingFlags.NonPublic);
regenerateStock.Invoke(__instance, new object[]{});
😔
neither, bow tie supremacy
seems out of place
It's clearly 2
Then i clicked delete app button, bot is used in 100+ servers with 200+ commands
Aight now it’s gone
What do you mean? My friend said it would let it join all the servers on discord
uh, no?
That application no longer exists
That bot is in no servers
Wait what
I still have the code
But he's dead...
and use that token
sady though, all your servers are gone
so now you gotta re-verify your bot etc,
why did u listen to ur friend lol
stun zeed
You're trolling right?
no. its gone
What else could a big red "delete" button mean?
he basically gave me the bot by giving his account (it was alt which bot was on) and then i didnt know much so he tricked me
but he kinda still forced the button.
he was next to me as it was deleted
he said, "act like ur actually deleting bot so type bot name name, we are not actually going to delete it" and then i did it and then he quickly took cursor and clicked button
he made me a new one
tho
Rip
there are two plant species talking. great
!pypi keyboard
hello everyone who like to use their keyboard
same
pyenv update
o
3.10.0
lol
oh, how did you install
If you installed through official repos, that version doesn't have the update command yet
try uninstalling from apt
i have open sus
oh
so ill just unisntall with zypper?
yeah
kk
sudo zypper rm pyenv
yeah
yay
I want to migrate my stuff to 3.10 and use patma but this project will be on aws and I don't think 3.10 will be anytime soon on lambda nor easily installable on amazon linux (even 3.9 is installable from source)
Using pyenv makes it a lot more tolerable imo
I'd need to install it as well. And amazon linux is weird af when it comes to installing stuff
Amazon Linux kind of sucks, honestly
I regretted the first time I installed it
by "installed" I mean selecting it for my VPS
amazon linux?
yeah
👀i can smell shit
It's CentOS but with Amazon defaults
Oracle linux is also quite mediocre
Ubuntu server feels so much better
how about redhat linux
RHEL is great if you are an enterprise
I've never used RHEL, but I don't think I have any need to want to
but it has the same issue as most of its derivatives, in that all packages are old
but it is highly secure
ye, RHEL is afaik mostly freestanding, like debian
though unlike debian it focuses more on polish than supporting every possible kernel and platform
debian can run on the BSD kernel for example
wouldn't that mean that all the RHEL packages come from Fedora, though
since that's where they are tested
amazing
no
i think we can say it is a lil bit of both
Well Fedora packages can't come from RHEL if RHEL doesn't have them \🤔
no. fedora wont have most packages to test if it does not come from rhel
er
im not sure where i heard it from but fedora is a test bed
whatever new packages rhel throws at, it is tested further in fedora i think
huh, seems like fedora is actually the origin, and RHEL is a repack for enterprise users
but i think im wrong since fedora is from community
I think I might've mixed up the semantics or something but basically... RH > Fedora > RHEL
I wonder how usable centos stream is
RedHat has all the packages that go through Fedora for testing and eventually end up in RHEL
is centos stream just a rolling release now?
afaik yes
ah no wonder centos died
Yeah
Someone made something that was supposed to replace it
but I forgot the name
bedrock and alma
bedrock is a fork made by the founder of centos
alma is probably new
but not sure if it is a fork
uh
ah i misremembered the name
yes it is rocky linux
Bedrock's the one with all of the package managers in one
What exactly are the advantages of "enterprise" operating systems?
Like what exactly do they entail?
stability and support are generally the goal
Good codestyle
imagine changing a package version everyday introducing breaking changes? good, youre wasting time and increase the amount of money to spend
yeah but what differentiates it from any other stable release distribution
with RHEL, you actually can call redhat and yell at them when something breaks
it means u can use a very old kernel for let's say 4 decades, and use the same packages from 30 yrs ago with patches. thus, avoiding downtime, and focus more on maintenance.
just an example but i know it is not that simple hmm
@latent scaffolda mod in opensuse told me that btw. i mean im sure it was phrased differently. probably im wrong too
yeah, interprise seems like a strange world
I once downloaded windows enterprise edition just to see and you can really tell that the requirements on the OS are very different from the average user
I feel like the whole maintenance thing just seems like a somewhat "lazy" solution
I mean surely eventually you have to update something... Why delay it?
you really don't
in the end, software doesn't get worse with time
so the only time you have to update is if you find vulnerabilities or your requirements change
I guess it depends on the software
but I feel like that'd lead to some lack of innovation
you don't innovate your dependencies, you innovate your own code
idk, I guess I really don't know enough about what goes on
or you did innovate your dependency and now you have to manually maintain your patched version
So then enterprise linux is really just... same constant version + security updates? lol
and someone you can call who will respond within reasonable time
(and often some special configs, e.g. selinux)
what a business lol
yis
damn
now make a vpn using your school's network and let me connect to it to get speed
that's not how anything works
its an ot channel nobody cares abt facts smh
oof just when i think i finished final one, i left one line reee
i dont think that's.. nvm
gimme some pizza mi amico
Yes

https://twitter.com/AmberLytical/status/1430307441644867584
support ad-free shitposting, get voice files: https://patreon.com/GetGianni
song used: Kevin MacLeod - Bushwick Tarantella
http://GetGianni.com
i had one fucking local commit ready to push to github for 10 months
OT1 for the non-pedantic
hello there
Hi
are you leaky, farmer relu
Fuuuuuck
Is that possible???
no
if your internet is 100Mbit down, and the school's is 600Mbit, routing through theirs doesn't change much, you're still downloading at 100Mbit
the only thing that would happen is that you'd definitely get expelled hah
speaking of internet speed, has anyone tried using a download manager?
I'm thinking of downloading an open source one cuz my browser download speeds are garbage
I've never had any use for except when I was on a connection that would drop regularly
Otherwise if it improves dl speed you probably got a problem with your browser
I'm usually saturating a servers availability rather than my own connected anyway
use it as a vps instead
use 600mbit down to download obscenely large files, view them on that computer and comfortably stream the video output at 100mbit
Hey guys I need help
I updated all my drivers recently
When ever I try to play any video on my pc like youtube or videos, it lags a lot
Do U know how to fix
i want a book to learn AI and data science
i'v heard nnfs is good but i don't think it uses libs like tensorflow and also doesn't teach you CNN'S
oh wow
Can anyone suggest me a resource that provides information about upcoming hackathons and competitions etc
#ot1-perplexing-regexing = Protogen
basically
Protogens are also unoptimized Electron apps
And you put them under Qt's licensing
I don't think protogens are free for private use
N~N~No...
Hello class.
Please square this simple number:
Hello class.
After you have squared that very simple number.
Solve this.
(Square it)
kinky
Sir RAMs a lot
Pycharm is g~g~gone...
ok.
lol
I have a reason.
I installed python 3.10 and then everything started to malfunction.
Gtg
I'm guessing that was user error
oof
i used 3.11 it works fine
Malfunction as in... some libs stopped working? Some libs don't support 3.10 yet
................
?????
https://github.com/tal1992/svelte-webcomponents
Neat, I may or may no longer need Stencil I guess
Basic hamburger be like:
||Top Bread||
||Cheese||
||Meat||
||Salad||
||Bottom Bread||
Why on every ot channel..?
Because theyre asking for a ban
ora ora ora ora ora
what are you, a functional programmer
map(metro, lines)
34 in Warsaw, I win
I wonder where Warsaw got its name
yes haha
because we have 3 tramways and a TON of buses
that's all our public transports
It's Warszawa
There are are legends about Wars and Sawa
But it's from Warcisław or Wrocisław, name which was shortened to Warsz. It was Warszewa in 14th century, changed to Warszawa in 16th
Warsaw also got 2. It had one for years
and that's where I am right now
120-some
idk
I mean, how many people are in London haha
Here we see the competition between two programmers comparing the size of their public transportation
Interactive map Map of Warsaw Maps of public transport i 2nd fare zone Other maps and schemas
.wa inhabitants in Marseille vs inhabitants in London
lmao x10
So yeah, seems fairly reasonable
Okay, our train station has something you don't have
interior rain!
Sir Ramcebot
how, is there a cloud in there
sounds like what i do
i bring water in intentionally, im a bad person
cya
no no, the ceiling didn't work properly
there was an incredibly heavy rain, our buildings aren't made to handle this
I know, I know
i am tempted to take a short sprint and skidd
it looks soo made to skid on 👀
Yeah a short sprint
Wrote up a new blog post on how to schedule text messages on iPhone. This is very useful for me and the work I do as an Executive Assistant. For others, this could be helpful in sending texts automatically on friends or family members birthdays etc.
https://www.iamericfletcher.com/blog/21/10/how-to-schedule-text-messages-on-iphone.html
You should do one for Android
How long does it take to crack Y@kGDBGH4*G7M!9siH!@6$Vv8
I think I can do that now, by holding down the send button
