#ot2-the-original-pubsta
652 messages · Page 100 of 1
best movie?
they're only ever Marvel movies
like I watched Shang-Chi and the Legend of the Ten Rings, that one was really good
ooh u a marvel guy
I only watch movies for like the fantasy "cool" stuff ¯_(ツ)_/¯
most other things I just think are completely boring
I didn't like the older ones, I liked the newer one though
"Dark Phoenix"
idek what those words mean
don't remember much about it, I don't think I'm interested enough to rewatch it
recently I rewatched all of the Iron Man movies
I usually hate rewatching things just because I hate knowing exactly what happens next
worst was my gf i had at time took me out to teater watch lord of the rings, omg i had to sit on left ass right ass back to left for 3hours xD
so I'll rewatch if I forget just about everything that happens
i will nvr do a 3h movie in a teater again
tbh 3 hours feels somewhat normal but apparently it's pretty long
there was a single movie I watched at a theater and didn't like
it was about some girl who was trying to get recruited by a terrorist
it was... very boring
literally the whole movie was some girl on skype
that was the entire thing
best movie i saw on teater was lionking the orginal my dad was sleeping htrou whole movie
hahaha
this one?
sum ISIS woman?
yea
is that the right word
I just remember like internally yelling at her
haha
like "wtf are you doing, man. surely you're not falling in love with him"
and she was like giving away all her details and stuff
but was she there at the time?
I live in sweden its crazy they allow back womans that been ISIS wifes
she sits at the same computer the entire time lol
literally the entire movie is on skype
tryna catfish ISIS 😄
haha
i bet
thanks for headsup if anyone say lets watch that movie
i will tell it with ur words
lol
am getting lil tipsy ova here 😄
christmas eve here tomorrow
some has 25th as eve
how about you?
@hazy laurel
oh wow. Christmas Eve is indeed tomorrow
what are the worst languages? (answer can be biased cause its literally an opinion)
i think greek
and russia
and chinese
cause they makes no sense of their letters
n arabic
aliens
@jovial island
or you mean programming languages?
haha ok well now u know about languages tho
worst language i dont know actually
bash can be annoying
or perl
imo
i like python
maybe DOS is worst? 😄
best overall is probally C cause 99% of shit is build by it
and its been here for ages
but its a hell doing small things with
python ❤️
it looks way better now n more OOP
oh ASP is probally the worst
please don't use ableist language
i stopped
But i used php when doing websites like 10 years ago
😄
it was php or asp
@hidden kerneldo u use python for web? maybe u dont do any web
“It’s fun” ;-;
It is fun but you could have said it was also mind breaking 😞
It actually has a lot of machine learning

the comic is called Grim Tales from Down Below.
the main problem with the comic is that it contains incest between two characters.
who are both children.
nothing ever happens
like, nothing is ever shown, but they are just in love with each other.
the comic is very edgy and i stopped reading it.
yeah, the comic is very old.
I think i clicked the wrong link
it is from 2004.
no you are in the right place.
it is still going actually.
snafu-comics.
I dont understand shit
good, the comic's plot is all over the place.
the comic is a giant mashup from all sorts of pieces of media.
surely that's where you've gotten your name from \😩
err...what?
lame
nevermind
the -iel
Hebrew for "of God"
that's why most angels end in -iel/-el
eh maybe I mixed something up there
that's all I remember
very nice
that looks really cool
is it databases?
big brain stuff
like on a website?
whats cloudflare...
ohhh ok
thats really cool
i dont do much front=back end programmation stuff so i didnt quite understand at first
lol what
tumbleweed.jb3.dev
that's the webserver yea
ns1, ns2 and tumbleweed
hmmmm
do i get another rootserver
lol
i need a name for it
i need better names for all the hosts
i will have 4 hosts
what is a good name of 4 to name things after
turns out it was 5
so that's annoying
i'm going for bond villains
scaramanga, largo and zorin already provisioned
arch
need to update the rdns
does it support dig flags
i use so many dig flags
so so many
ug
final 5
where scaramanga is web, blofeld is router for AS211224 and largo&zorin are primary-primary nameservers
and stromberg is for shitposts
I know this is a programation discord... but my computer is really messed up somehow and everytime I cue in a game my laptop gets frozen and I'm forced to reset it; so is there anyone who knows abaout computers here to help me?
cue in a game? which game are you talking is it a very heavy game?check if the game's minimum requirements matches your laptop, does your laptop only frozes while playing that game specifically?
@jovial island
Hi
!e ```py
print({i: [x for x in range(j - 10, j)] for i, j in enumerate(range(10, 110, 10))})
@rugged portal :white_check_mark: Your eval job has completed with return code 0.
{0: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 1: [10, 11, 12, 13, 14, 15, 16, 17, 18, 19], 2: [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], 3: [30, 31, 32, 33, 34, 35, 36, 37, 38, 39], 4: [40, 41, 42, 43, 44, 45, 46, 47, 48, 49], 5: [50, 51, 52, 53, 54, 55, 56, 57, 58, 59], 6: [60, 61, 62, 63, 64, 65, 66, 67, 68, 69], 7: [70, 71, 72, 73, 74, 75, 76, 77, 78, 79], 8: [80, 81, 82, 83, 84, 85, 86, 87, 88, 89], 9: [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]}
Oh, lemme try :). Thnx
@jovial islandWait i think i know a better easier solution
Kk
!e ```py
def num_group(number: int) -> int:
return round(number / 10)
print(num_group(66))
@rugged portal :white_check_mark: Your eval job has completed with return code 0.
7
!e ```py
def num_group(number: int) -> int:
return round(number / 10)
print(num_group(1))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
0
!e ```py
def num_group(number: int) -> int:
return round(number / 10)
print(num_group(9))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
1
: (
better take a help channel
!e ```py
from math import ceil
def num_group(number: int) -> int:
return ceil(number / 10)
print(num_group(2))
@rugged portal :white_check_mark: Your eval job has completed with return code 0.
1
!e ```py
from math import ceil
def num_group(number: int) -> int:
return ceil(number / 10)
print(num_group(66))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
7
!e ```py
from math import ceil
def num_group(number: int) -> int:
return ceil(number / 10)
print(num_group(0))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
0
ye 0 == 0
Do you ever input 0 then?

nah its not about inputting
think of it like i have multiple arrays inside a dictionary
user inputs page number
{[a1],[a2],....}
!e ```py
from math import ceil
def num_group(number: int) -> int:
return ceil(number / 10) if number != 0 else 1
print(num_group(0))
@rugged portal :white_check_mark: Your eval job has completed with return code 0.
1
so from total, i can caclulate which range/page number
def num_group(number: int) -> int:
return int(number / 10) + 1
This would always return the answer + 1 so it will always be wrong 
?
!e ```py
def num_group(number: int) -> int:
return int(number / 10) + 1
print(num_group(1))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
1
!e ```py
def num_group(number: int) -> int:
return int(number / 10) + 1
print(num_group(10))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
2
!e ```py
def num_group(number: int) -> int:
return int(number / 10) + 1
print(num_group(66))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
7
hm
This is also valid i tested.
!e ```py
def num_group(number: int) -> int:
return int(number / 10) + 1
print(num_group(100))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
11
100 should be in 10
!e ```py
from math import ceil
def num_group(number: int) -> int:
return ceil(number / 10) if number != 0 else 1
print(num_group(100))
@rugged portal :white_check_mark: Your eval job has completed with return code 0.
10
Then it is inaccurate past 99
yea
^^
!e ```py
from math import ceil
def num_group(number: int | str) -> int:
return ceil(int(number) / 10) if int(number) != 0 else 1
print(num_group(0))
@rugged portal :white_check_mark: Your eval job has completed with return code 0.
1
this return 1 for 10 though
I'd code it like this as final code to also pass strings that are numbers.
and 2 for 20
9 entries per page
def num_group(number: int) -> int:
return (number // 10) + 1 if number != 100 else 10
Ye this code breaks after 999, but i'm guessing he doesn't have that many entries.
it doesnt breaks it just breaks at 10^n, n>1
Yep
Was?
any way of excluding certain servers in discord's ctrl+k?
i have too many servers with overlapping channel names
or rather i'd want to select which servers get cataloged for ctrl+k
yeehaw
yea mtr is glorious
if we ever move off lke
@grim anchor will 100% get an mtr command
uhhhh
lol
so
i think when i did this
i had a binary that setuid
🤡
so beautiful
why do you need root though
socket.SOCK_RAW``````py
socket.SOCK_RDM``````py
socket.SOCK_SEQPACKET```
These constants represent the socket types, used for the second argument to `socket()`. More constants may be available depending on the system. (Only [`SOCK_STREAM`](https://docs.python.org/3/library/socket.html#socket.SOCK_STREAM "socket.SOCK_STREAM") and [`SOCK_DGRAM`](https://docs.python.org/3/library/socket.html#socket.SOCK_DGRAM "socket.SOCK_DGRAM") appear to be generally useful.)
yes
but also no
ping doesn't need root
no
ping uses ICMP
ping doesn't actually have any support for TCP/UDP
setcap is fine for tihs
setcap cap_net_raw+ep /usr/bin/mtr-packet
probably not
no idea for mac
i never tried
traceroute is ping with limit of jumps set as 1, 2, ... and so on to your limit or until you reach your target. and reading who told you "sorry, I cannot reach it because packet died"
and you can just use use subprocess.call to call ping - https://stackoverflow.com/questions/2953462/pinging-servers-in-python and add time to live (jump limit in the packet) tag. in a loop.
PS C:\Users\Ev> ping -i 2 -4 google.com
Pinging google.com [142.250.203.206] with 32 bytes of data:
Reply from 192.168.225.1: TTL expired in transit.
Reply from 192.168.225.1: TTL expired in transit.
Reply from 192.168.225.1: TTL expired in transit.
Reply from 192.168.225.1: TTL expired in transit.
Ping statistics for 142.250.203.206:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
(I added -4 to force ipv4 because it kept saying that the same ip as my target replied that ttl expired??? just windows things...)
yea the question is why ping can do this without capabilities
may be the case things are looser on windows
but on Linux up until fairly recently you needed setuid or setcap
huh
I just showed how I did that on windows
you need to check it for linux
because number of requests flag is also different on both systems
we're going on midnight mass soon, I'll check on you when we get back :3
this ot is true
@wicked hollow 
🥺 🥺

Is that cheating tho? Traceroute literally uses the same type of requests and in the same way (ttl and seeing who responds). That's what ccna says.
Source code: Lib/platform.py
Note
Specific platforms listed alphabetically, with Linux included in the Unix section.
🤔
okay here it is
lol
no context is provided and none will be given
it
lol
lol
@rapid zinc this should be an otn
pydis needs to pay a living wage, not just minimum
i love the mistlebast branding 
ah yes. the only pun I could come up with for "Bast" was not a good one
i could be "hollyberry" except that my name is mina and not berry
says who
pretty sure she just did
my name is mina and not berry
its right there
I bet that's just Mina talking
lmfao
is berry trying to escape?
fuck it, tea time
I'd be willing to put in 1000% for godly
excuse me who approved your budget
moi

that's when I learned you do read every message

@wicked hollow Ill give you infinite times more than what you get now
why, that's way better than anyone else's offer!
unfortunately it's indeterminate
not if its exactly inf and not just tending to it
what does exactly inf mean
weigh ur mom to find out
yo mama so fat, when she stepped on the scale, it said pi without the decimal point
lmao

Lol i sat on many a chair and two beds and broke them i might have inf mass but i have since lost it and chairs and beds ok for now with me
Mass of course since my mass wont change in space but weight will..
Matter of inertia ... too inert to exercise anything but fingers
True story btw i did break office chairs by sitting on them and two beds one at home another in the office
i have a good laptop but i get low fps in minecraft(other games are ok)
do you know why is that?'
You're probably using your integrated GPU if you've got a dedicated one
java
What laptop do you have
lenovo gaming 3
maybe
yes
Okay so then search "Graphics Settings" from Windows
go to that
go to "Add an app", browse app and add "javaw.exe"
this is where it is for me
I also added java.exe for good measure
thanks a lot
how'd that fare?
i was getting 26 and its 50 to 60 now thanks
i had another question if you dont mind
i tried to use nvidia control panel but it shows this
um... did you not install NVIDIA drivers?
that still seems pretty low... What's your refresh rate and what's your dGPU?
refreshrate is 120.21 hz and my gpu is gtx 1650
yeah I'm pretty sure that's way too low
Can you go into Minecraft, press F3, and send a screenshot?
that's still using your iGPU
you can see cause it says "Intel UHD"
which is Intel integrated graphics
first time I see a resolution of 991, lol
its set here too what should i do?
might be not-maximized
yes
you do it from the Windows 11 Graphics settings
?
if its the thing you said befor i did it
i guess i fixed it
it was on "let Windows decide"
no i didn't its still using intel -___-
your Minecraft is using Java 17
this is Java 8
@naive pewter C:\Program Files (x86)\Minecraft Launcher\runtime\java-runtime-alpha\windows-x64\java-runtime-alpha\bin
Looks like that's where it is
so i do what i did befor with the file in this path right?
yuh
RIP. no clue what to suggest
I know it works fine with like curseforge and stuff
maybe you need the actual launcher
i'll try it
thanks for help
why must you hurt me in this way
i want gnome 40
idk, I heard from a bunch of people that GNOME 40 was kind of a let down
its not a huge upgrade over 30
but
its better
GNOME 30 wasn't a thing
hm
what should i do
right after installing ubuntu
snap stuff
@hazy laurel
do i sudo apt update immediately?
nice, thanks
and if you're gonna do Python stuff, you'll want pyenv
@hazy laurel i fixed it
my nvidia container ls was disabled i started it and its working now
i dont know what is it i saw it on google and the site said it should be running to nvidia control panel be able to work so i did it 😂
@fast hamlet sorry, I just saw #help-potato message
In Python, you can have as many nested subpackages as you want, each with their own __init__.py to handle importing names from the modules in the subpackage, thus making them available for convenience from the top level of that subpackage’s namespace
I don’t know JS/TS that well, but I guess you could say that __init__.py can be used as a Python equivalent for index.ts
No worries, the help channel died and I reopened one in #help-pineapple, and others are basically saying the same thing.
Appreciate the help 😄
hi do you do html and css here
@echo fern that interaction in ☕. 😔 😔 😔
oh no. Java interactions
lol i read this as "do you do html and css and care?"
not as bad as some of the misreads I've had
And I read this as "do html and css care?"
The obvious answer being no
one does not simply care about HTML or CSS
do you celebrate xmas ak?
I do!
merry xmas :3
oh so you celebrate christmas? name every elf
idk name them too if you want
Merry Christmas to you too?
I stayed up all night 😔
fuk i forgot the name of Rudolph and had to look it up lol
I will end up sleeping through all of Christmas
oh well. we weren't doing anything anyways
I have to make family dinner today
damn
and by that I mean chuck a bunch of mussels into a pot and hope for the best
i made mussels once and since then that has become our de facto holiday family meal
Hope the magic pot do the magic thing
i can't seem to find chonky mussels in grocery stores though
there are restaurants here that can source really nice ones
mussels... are those the creepy looking seafood things that look like fat
The dingus in my family ate oysters
tbf I guess literally all seafood looks creepy
That's just disgusting
Mina, it's Rudolph
"What's the name of Rudolph?"
red nosed guy
barack
yeah
thank you
There is a popular French joke that goes "What's the color of Henry V's white horse"
ah yes
Care
🤦♂️ okay I'll give you that one
mussels 😋
ah yes. crispy
oh I was like what a nice image.. and then I saw it was clams... ugh... I'd throw up on that
mussels!
whatevers... I'd throw up on mussels and clams too
I think any picture of food will make me throw up right now
I ate waaayyy too much
is this how you walk? 😄
it's sped up but yes
very weird... birds have the ability to keep their heads straight while their body is moving with the wind... I've never seen berries do that 🙂
have you guys seen the launch of the James Webb telescope a few hours ago?
I watched it... I was totally stressed about something going wrong, even though I have no affiliation with the project whatsoever... I just didn't want space exploration to be thrown back by a decade due to this 25-30 year, 10 billion dollar work going down the drain
but fortunately all was fine
feel free to show this second image to your flat-earther friends so they can see the curvature of Earth from around 1000 km 🙂
But this image is obviously doctored
I had some fun yesterday
of course it is, it received insulin
Someone talked about beliefs and gave me the example of "you have no proof that the earth isn't flat yet you believe it"
And I was like
Uhhhhh.. I in fact have three reasons why it isn't flat that you can test right now
tell me
I mean I'm pretty sure it's a sphere but I couldn't come up with something that could be tested right away so tell me
The best one is "Go outside. Do you see the horizon?"
If you see it, then the earth must be round haha
what? that's stupid
I live in a valley, my "horizon" is actually hills around me
that doesn't prove anything
lol, okay, then that's a bit more tricky
okay, number 2?
A similar experience is to watch a boat disappear at the horizon
You see it move past the horizon, like if it was going down
Okay, number two, uuhhh
yes obviously, I know that one, but you can't "immdiately test it" unless you're actually at the beach and a boat is about to disappear on the horizon
you said you have proofs that can be tested right now
I'll have to look them up, I don't exactly remember them
🙂 alright
it's okay, I'm not a flat-earther, you don't have to convince me right now... I just thought you actually had proofs that could be tested "right now"
Oh, with the horizon you can do something with sunset
If you are closer to the ground, wait until the sun is under the horizon, and then stand up immediately you'll see the tip of the sun reappear
btw I think this is the most beautiful example of the Earth not being flat
I believe that should work even if you are in a valley
lol the problem is people will say it is doctored
well... anything seems doctored if you're not doctored... you should go to a doctor, check your brain
🙂
anyway... arguing with someone who is as stupid as a flat-earther is pretty much the most useless thing you could do with your time
That's also a fun one
That makes me laugh tbh
I imagine you're young then... as you grow older you'll find it to be less funny and more useless 🙂
Yeah, I'd assume so haha
Muting them after was also fun
because "assuming gender" is fine according to them
what does gender have to do with flat earth?
what gender does the flat earth have? 😄
maby the earth has a genger and thats why its important
I just don't understand how genders came into the picture of an argument about flat earth
well, Earth's other name is Gaia, and it's a feminine name, so yeah, Earth has a gender
mother Earth, you know...
The argument was about gender first
Then idk they brought up flat earth
And then the tree falling in the forest
oh they went from arguing about gender to exposing themselves as flat earthers?
that's just sad
Yup
lol
so if a tree falls in a forest but nobody's there to hear it, does it make a sound?
print("exposed")
well it does make the sound but there wiløl be no documentation off it
it's a mental device to help you rid yourself of mental attachments to the worldly things and achieve nirvana, which is the ultimate enlightenment, the perfect result of existence according to Buddhism
this is getting to deep for me lol
so now you can put the ultimate experience of human existence against the mind of a flat-earther, and you know why koans aren't for them
but can you be sure of this?
if a sound is not heard by anyone, does it exist?
these are the types of questions what buddhists meditate on for years
well you cant ever be sure if it makes the sound without the documentation off it but comon sense tells you it will make a sound
your senses can be cheated
especially your "common" sense 🙂
there are myriads of ways to cheat your mind
im not a flat earther i just jumped into the convo XD
anyway... I don't want to go deeper into this
you have a great night @molten hazel 🙂
the point is, questions like "if a tree falls in a forest and nobody's there to hear it, does it make a sound?" or "what is the sound of one hand clapping?" are koans meant as mental devices to help a person shed their attachment to the physical, and not stupid shit thrown around by flat-earther idiots
you too @thorny sable and happy holidays!
oh yeah happy holidays 🙂 from norway
oh cool, I'm from Hungary
still need a few more messages before i can go into voice channel so whats up heruk ?
i lost my rubber ducky so im banging my head at the wall when im trying to learn and bringing the OS module into my adress book app
oh that sounds nice 🙂
how can you lose a rubber duck? isn't that a bathroom toy?
yess hes under the couch cuz he didnt give me anny answers yestorday so i threw him to the couch XD
so you didn't lose it, you're just too lazy to get it out from under the couch 😄
yess youre right i where just a bit to fast to type hehe
so... you know what?
what ?
I think you should get your ducky out from under the couch because of christmas
true true i prolly shuld
go on then
il do it abit later
I'll be here
you know what, I think I'm sad now that I didn't ask for a rubber ducky for christmas 😄 suddenly I feel like having one would be really nice 😄
it would be my emotional support plastic toy
or rubber toy or whatever it's made of
If I get an emotional support toy for programming it would be a plushie version of this:
hehe i dont realy have a duck but i call it that but its realy a pikachu pillow with a nice face to it but i got it
that is terrifying
You mean amazing
no, I'm pretty sure I mean terrifying
but fortunately it's gonna live with you and not with me, so it doesn't matter
yepp gonna get a reall duck soon
a real duck? you mean an actual animal?
year or ducky
you know rubber ducks aren't the real ducks, right? 😄
nah just a ruber one
thx i got it of a sale for 50 euro
its ment to creep you out thats why i give it a cute name 😛
50euros? that's a shitload of money around my town
well i went to the store to buy my dad one too for chrismas but then it had gona back to notmal price off 150 euro norway is expensive
so... you negotiated it down from 150 to 50? let me hire you to make deals for me 😄
also, your poor dad is now without a keyboard, shame on you
no it was like a black friday deal aparrently
well he s buying my dream computer now just to make funn of my shit computer he can buy his own
it's hard for me to understand who does what and why if you don't use punctuation
Im sorry im trying to type my best. but i fuck up alot ima try to be bether
I imagine you're quite young
so your father buys himself the computer that you like? is that what you were saying?
im 28 im just word blind and hevy dylectick
🙂 alright
yep hes buying it for himself and gloating to me abaut it.
so you bought the fancy keyboard in exchange to piss him off with that? 😄
nope i neded one but it was a good quincidence 😛
coincidence
alright
well, I hope your feud with your dad won't ruin your christmas
I'm gonna go offline because I'm very tired
its just a frendly banter good night
so happy holidays to everyone
I don't think there was a feud
nite
visual studio code's search tool is such a pleasure to work with
the fact you can ctrl-click the code in search results to jump to it is amazing
"black"
works in an entirely white environment
Ctrl-click is quite standard for 'jump to definition'
Well, he probably overwrote his builtin black (colour) with the tool
fair enough, I haven't explored the land of editors enough clearly 😅
You know I use discord light mode
Ctrl+space for autocompletion, alt+enter for whatever suggestion your ide wants to make (underline things and how to fix them), then ctrl+click for definitions. There are often also some combos with insert key (alt+insert? I think it was like that for netbeans)
I do the majority of my editing w/ vim so I get none of these fancy features :)
I know I could add plugins or add more lines in my .vimrc but I'm lazy
Things I use light theme for:
- GitHub
- GNOME desktop manager
- Discord
- Google (and all other google services if I can get away with it)
- Visual Studio Code
- so much more
the only things that's dark themed (that come to mind quickly) are my terminal and by extension vim
we're no longer on speaking terms
Y'all are relentless with the @-ing due to light mode 
Do you have sunglasses on when you code?
No.. ?
How do your eyes manage all this light then
I turn on the lights around me?
But that shatters the haxxor illusion
I should ask my partner that 'cause their netbeans is glowing af
I forgot people use netbeans
I don't like the dark hacker culture
aah yes. apparently twice as many people use Eclipse than Netbeans
.. or at least the visual design of it
and apparently twice as many people use IntelliJ than Eclipse
Whats netbeans for
It's a Java IDE
Lol
whenever someone posts anything with light mode, the replies are usually always "ew light mode" lol
How is it less popular than eclipse then
idk, everyone hears of Eclipse
Netbeans just isn't as popular I guess
plus I think Netbeans is a bit ancient
at least in terms of UI
Isn't popular but is less annoying than Eclipse
Ye, IntelliJ has a fancy ui, but I couldn't really find anything tbh
And I think it didn't have updates for some time so it kinda fell behind?
compared to Eclipse, IntelliJ was a huge step up for me
when I did anything with Java, anyways
I don't get why people feel the need to comment what theme people use when it's not even the point of the conversation 🤷
Apologies, it was just a light hearted joke about how you had black open in light theme
It's fine, I enjoyed the banter but sometimes it gets on my nerves when it ends derailing the whole convo because it happens often.
I'm all for silly jokes but I have my limits :)
esoteric block code
santa tracker lmao
@near lotus Sorry i wasn't clear, I meant like this:
def decorator(func):
def wrapped(*args, **kwargs):
result = func(*args, **kwargs)
# write some code here to do something with the result
return result
return wrapped
thanks, but I still think I should focus on some different function of python c:
Yeah no problem, just wanted to answer the question!
On-disk files in a container are ephemeral, which presents some problems for non-trivial applications when running in containers. One problem is the loss of files when a container crashes. The kubelet restarts the container but with a clean state. A second problem occurs when sharing files between containers running together in a Pod. The Kubern...
kube-state-metrics, cadvisor, node_exporter
yeah
hello
hey
let rec prepend (l:int list list) (x:int) : int list list =
begin match l with
| [] -> []
| ll::rest -> (x::ll)::(prepend rest x)
end
let rec prefixes (l:int list) : int list list =
begin match l with
| [] -> [[]]
| h::tl -> []::(prepend (prefixes tl) h)
end
let test () : bool =
(prefixes [1;2;3]) = [[]; [1]; [1;2]; [1;2;3]]
;; run_test "prefixes [1;2;3]" test
this test passes
but i don't understand prefixes much
more specifically "(prepend (prefixes tl) h)"
2::3::[]
3::[]
[]
should prefixes not ouput [[];[1]; [1;3];[1;2;3]]
if somebody can explain, please help me
thank you
@rare dawn hmm how do you have two role badges
I don't
the rhombus and pink trophy
bruh
It's an emoji
it's part of mark's nick
btw mark did you know on iOS the diamond/rhombus is bright red?
Yep
I don't like IOS emojis
they're a bit outdated
they're in the "3d everything" era when everything has moved on and said everything is more minimalistic
https://i.insider.com/5230c65769beddf84da48e6f?width=1000&format=jpeg&auto=webp
By "3D everything" era I mean this era:
i like the iOS food emoji... bc they look hyper realistic lol
🍵 this is a bit unrealistic ngl I think
I've never had green tea but is it actually green?
yeah that one's not too realistic
It's colour depends on the blend and the cup it is in, as well as lighting.
🫐🍓
Mostly green-ish, though, yeah.
No but I figured it's different. It's also red on Android.
hm
oh on my computer it's the same nice blue as your nick since it's just text
yeah it's like that for me too
✨ would you be interested in using a sparkle 👀
sparkle buddies!
nice ot name
I've grown attached to the diamond. The lore behind it is that when Discord introduced boosting, they added those pink diamond. So I added one to my name to poke fun at that.
And I just kept it ever since.
oh but you originally had some other diamond right?

No it was always just this
If you saw it differently it's probably your platform rendering the emoji differently
yeah 🥴
I don't have Pepsi but is this fine
Apparently there's someone else named Mark who is active so the diamond kinda helps distinguish us, I guess.
oh really?
Yeah, i've seen them in the discord bots channel.
mountain dew moment
give it to me
also btw thanks for that review. i need to not look/think about it for a few days and come back to it with fresh eyes
np
guys I installed Linux on a usb but I don't know how to boot into my usb can anyone help please..
Boot into your BIOS, and change the boot order so that USB boot comes before your HDD/SSD boot.
oh no... is this Arch based
I mean
the most important part is missing on this screenshot
what is the name of the start job that doesn't complete
AFAIK it never says
yes but I don't think that line ever says
iirc it usually only ever says "A start job is running for automatic startup" or something
waaaait
it is Arch based
this must be Manjaro
I remember now what it's supposed to say because mine failed to install the first time
that's the automatic MHWD driver install
mwhd being Manjaro exclusive
lol
@wicked hollow continuing on our conversation earlier, something interesting i never actually considered:
One of the common attributes ascribed to low-level languages is that they're fast. In particular, they should be easy to translate into fast code without requiring a particularly complex compiler. The argument that a sufficiently smart compiler can make a language fast is one that C proponents often dismiss when talking about other languages.
Unfortunately, simple translation providing fast code is not true for C. In spite of the heroic efforts that processor architects invest in trying to design chips that can run C code fast, the levels of performance expected by C programmers are achieved only as a result of incredibly complex compiler transforms. The Clang compiler, including the relevant parts of LLVM, is around 2 million lines of code. Even just counting the analysis and transform passes required to make C run quickly adds up to almost 200,000 lines (excluding comments and blank lines).
you need(?) a compiler to perform optimizations for you to produce faster code. whether or not this is due to laziness on the part of the programmer, or simply due to a lack of an ability of C to express it correctly, i am not sure.
obviously any language that is abstracted over direct processor instructions is not going to be able to 100% express the intentions of the programmer (not necessarily the semantic intentions), but i am just not really sure how much is actually lost in translation that the compiler actually needs to account for.
In particular, they should be easy to translate into fast code without requiring a particularly complex compiler.
[citation needed]
I don't think I agree with that definition of a low level language, and I'm not convinced that definition is in common use
I'm not sure there are any low level languages by that definition.
i am not actually arguing for either side now just so you know haha.
but yeah i am not 100% sure on the credibility of the uh, article there.
just the optimization part was something i never actually considered.
since they also say this:
This is essential because it allows C programmers to continue in the belief that their language is close to the underlying hardware.
which seems kind of conspiracy-like if you ask me.
Some C programmers do think that their language is close to the hardware, which isn't really true anymore. I've heard an experienced C dev say that "C is just a macro assembler", which was sort of true in the 70s and is definitely not true today
are you making a distinction between close to the hardware, and low level, there, or?
it might be for all i know haha
Of all the languages in common use today, C is probably the one that's closest to the hardware, except for maybe Fortran.
i keep forgetting Fortran exists..
but if your requirement for a low level language is that abstractions in the language must map directly, one to one, onto features of the architecture that the code is compiled to, then I don't think there are any low level languages. I can't think of any language that is directly tied to a single machine architecture, and every language I can think of abstracts away details of the machine it runs on.
i am beginning to think the low level qualifier is more and more arbitrary as time goes on.
I don't think there is one agreed, specific definition for low level
sure, if you want to consider an architecture's assembly dialect a language, then that assembly dialect might be the only low-level language for that architecture.
speaking of Fortran though
this article did also mention it.
For example, in C, processing a large amount of data means writing a loop that processes each element sequentially. To run this optimally on a modern CPU, the compiler must first determine that the loop iterations are independent. The C restrict keyword can help here. It guarantees that writes through one pointer do not interfere with reads via another (or if they do, that the programmer is happy for the program to give unexpected results). This information is far more limited than in a language such as Fortran, which is a big part of the reason that C has failed to displace Fortran in high-performance computing.
specifically,
This information is far more limited than in a language such as Fortran, which is a big part of the reason that C has failed to displace Fortran in high-performance computing.
that's true, the semantics of the Fortran language allow it to be optimized more easily in some cases than C can.
i am trying to find specific examples of where C or other languages simply lack the expressive capability that compilers must make up for.
i think in the big picture it is clear that they do.
but specific examples is what i am trying to find.
are you familiar with restrict and its intended use case?
vaguely, yeah.
it allows the compiler to make assumptions(?) that can optimize a progra- ah wait.
it tells the compiler that two memory regions cannot overlap, and that writes to one therefore cannot affect the other
oh I've read about this idea for rust
i can see how that could allow the compiler to optimize code more.

so do languages like Fortran simply provide more information to the compiler in its source code, or is it deeper than that?
the semantics of the language prevent certain things from overlapping by default
oh okay
whereas in C, if you've got two char *x and char *y, there's no way of knowing if the regions that they point to are distinct or not
but in rust !
Rust 
In C they could both be pointers into the same char array, or can point to two entirely different char arrays.
well this has been enlightening.
what does fortran do?
it kinda just doesn't have pointers.
TFW
it's got structures and arrays that are passed by reference, but it doesn't have pointers, and there are restrictions on the way that you can use references that make it a programmer error if you somehow manage to pass references to overlapping areas to a single function
interesting
so the solution is to ditch pointers in C. \s
use rust !
i am almost converted
What is rust even used for
the point is that the Fortran language solves a problem through its semantics that C requires extra information from the programmer to solve.
There so much hype and I don't even know why anyone would use it lol
memory safety
makes sense haha
Rust supposedly gives C-like performance with memory safety guarantees.
supposedly? 
rust forces you to either have immutable references, or one mutable reference
so you get the same thing
can we pin this
to one thing, not in the whole program lol
oh okay haha
Wasn't Fortran like... Reddit 1.0
you're thinking of 4chan
Wait nvm that's 4chan
chili chili
in conclusion
this is like dvorak not my kind of music lmao
"Fortran-was-reddit-v1"
oh here is another example i did not think of:
C also requires padding at the end of a structure because it guarantees no padding in arrays. Padding is a particularly complex part of the C specification and interacts poorly with other parts of the language. For example, you must be able to compare two structs using a type-oblivious comparison (e.g., memcmp), so a copy of a struct must retain its padding. In some experimentation, a noticeable amount of total runtime on some workloads was found to be spent in copying padding (which is often awkwardly sized and aligned).
but is it as good as the last pin 
I must admit I'm prouder of this one
second to last is really good

yeehaw
I was here 🥺
me too
you owe me
next time i want something pinned you have to guilt the mods into pinning it for me.
;-;
i own you now
muahaha it is all part of my master plan
you are but a pawn
you did not understand the consequences of your actions
peace was never an option
this is not legal advice and i take no responsibility for what may or may not happen in accordance to what has occurred on this day.
wait
too late

muahahaha world domination begins here
based
@rare moat what does void[] do
well the joke is that most people would think that void x[] translates to void *x.
but in reality it is invalid syntax.
Is there anyone I can send an exe and could you tell me if windows defender marks it as malicious you don't have to run it I'll also show me compiling it and sending it to you if you want in a vc
Its pyinstaller and I know it usually does mark as malicious but I just scanned a exe I compiled and it didn't mark anything as malicious but idk if that's just because I compiled it on my computer
nvm I forgot about virtual machines xD Ima just use vm to test it
ah thank goodness
huh
I wonder if that means that in C++, you can't make a template casting T[] to *T
well, all that matters is that its valid D
thats a CUTE dog
true
Cities: Skylines is a really fun game tbh
I'm making a ski resort and a quaint, rural town right now
well, [(); 128] is valid Rust
though it's a ZST.
I love using zst
how does the rural town have a ski resort
whats a zst
zero sized type
basically only exists at compile time
and it makes your type system 🥴
Go also has that with struct{}
And I think C would also allow this if you had an empty struct? Never tried, not sure
would C realise that an array or a struct of only ZSTs is also a ZST?
I assume it would, yeah
I can't imagine why it wouldn't, I feel like that's something you'd have to intentionally break
Ski resorts always have accompanied ski resorts which are rural
The Dark Arts of Advanced and Unsafe Rust Programming
hm
i c..
it is basically a array that can take any type in it
however you gotta cast the type
128 empty tuples?
or units?
is there unit type in rust?
yes
() is unit, an empty type
nice
So 128 of them is still 0
lol
bruh
?
after numpy.
cumsum is quite an awesome function, way faster than doing an itertools.accumulate
i guess you dont see it
feel free to think that
anyhow can you help me with something in #advent-of-code-spoilers-archive
i pasted my code over there
cummulative sum
cummulative sum
is that named derived from the scotichronicon
no
no
That channel name 👀
@sage void To clarify, don't make a custom client, that'd break Discord's terms.
Oh yeah, I definitely wont. Not a chance
And with a bot that'd just be a mess of cluttered messages tbh

