Option
and error handling. (Or the more complex Result
, but it’s easier to explain with Option
.)
@lyse@lyse.isobeef.org lol – I explicitly kept them in there so that the code is easier to understand for non-Rust people 🤪😂
@kat@yarn.girlonthemoon.xyz lol, oof, well, better than nothing. 🥴 It appears to run quite well. 🤔
OpenBSD has the wonderful pledge()
and unveil()
syscalls:
https://www.youtube.com/watch?v=bXO6nelFt-E
Not only are they super useful (the program itself can drop privileges – like, it can initialize itself, read some files, whatever, and then tell the kernel that it will never do anything like that again; if it does, e.g. by being exploited through a bug, it gets killed by the kernel), but they are also extremely easy to use.
Imagine a server program with a connected socket in file descriptor 0. Before reading any data from the client, the program can do this:
unveil("/var/www/whatever", "r");
unveil(NULL, NULL);
pledge("stdio rpath", NULL);
Done. It’s now limited to reading files from that directory, communicating with the existing socket, stuff like that. But it cannot ever read any other files or exec()
into something else.
I can’t wait for the day when we have something like this on Linux. There have been some attempts, but it’s not that easy. And it’s certainly not mainstream, yet.
I need to have a closer look at Linux’s Landlock soon (“soon”), but this is considerably more complicated than pledge()
/unveil()
:
@movq@www.uninformativ.de Lol, what the hell!? Reports like that turn me away even more from iron oxide. Also, great naming choice on the method they made there. display()
doesn’t actually display it. But it’s a Rust thing.
I am also enjoying the tweaking of my Frankenstein monster CSS. LOL.
@movq@www.uninformativ.de the Rock Dove has some seriously sly eyes! LOL.
@quark@ferengi.one LOL! :-D
@movq@www.uninformativ.de LOL 🤣 I don’t think I could ever take Rust seriaujly 🤦♂️
@lyse@lyse.isobeef.org LOL. I barely use my mother tongue. 😫
lol a fren called me nigalee and somehow i liked the name, started to use as a new alias
@nghialele@nghia.im SAME HERE LOL i’m so pissed
@nghialele@nghia.im hello there nice to meet you! your site protection thing is super funny with the touhou theme lol
@prologic@twtxt.net interesting that ruby is so low on the list, i find it the easiest to learn! hell i struggle with python more than ruby and i’ve been told that python is like ruby but better lol. maybe it’s just my weird brain!
@prologic@twtxt.net I remember going through your “introduction to Golang”, I don’t remember the URL, but I vividly remember going through it, and I was lost at chapter one. So, about that “mastering” the core in hours, “I don’t believe you.” (insert I don’t believe you meme animated GIF here). LOL.
@movq@www.uninformativ.de i feel like when i read go code i’m reading some algebra shit where every part is 1-5 letters long and then there’s weird symbols like :=
and it’s just infinitely harder for me to parse and infer meaning from lol. it’s such a me problem
@lyse@lyse.isobeef.org now, that’s as clear as water! See? How come @prologic@twtxt.net wasn’t able to put it that way? LOL.
@prologic@twtxt.net I am not convinced. LOL. Can you ELI5 the problem, and what breaking the feed in smaller chunks solves?
YW!!!!! GLAD U LIKE IT LOL
@bender@twtxt.net elon musk is so fucking pathetic oh my god lol
sooo many ideas for my site now that it’s SSG powered, not enough energy….. i wanna make little content collections but no energy T__T also i only half know what content i wanna put in them lol!
@prologic@twtxt.net oh yeah a friend of mine ran into that after they forgot to log in while we were working on something together, it was nuts lol
like wouldn’t it be easier to do proof of work or something?!?!
@lyse@lyse.isobeef.org those tuxes are kinda cute but not what i’m looking for! i want a silly stupid looking tux the most lol
last night my timeline randomly reset to only show my own recent twts and i restarted my instance a few times and pulled from main and shit and it didn’t change but it seems fine now lol?!
@prologic@twtxt.net you are certainly a special case of a luddite. Or you like to self-punish. Or both! LOL.
@prologic@twtxt.net LOL. It is from the Severance, AppleTV+ series. I am about to finish watching it with my kid—well, what’s available for seeing. The series is still ongoing. I recommend it!
@movq@www.uninformativ.de OH SHIT I TOTALLY FORGOT LOL! thanks for telling me! they’re just frontends for ultimate guitar - so these links
https://tabs.ultimate-guitar.com/tab/fifty-fifty/cupid-twin-version-chords-4667768?no_redirect
https://tabs.ultimate-guitar.com/tab/chappell-roan/good-luck-babe-chords-5191149?no_redirect
And yes I’m taking some inspiration from Anubis here 😅
@lyse@lyse.isobeef.org oooh that’s a good point! woodworking is scary and i don’t have much room for it but i do have SOME room in mind that could work for it… i feel like i’d just hurt myself in the process though LOL
@prologic@twtxt.net noted! that all sounds very scary to me but i should lock in for the best experience for my users! (the best experience for my users is my server not crashing most of the time though so i guess the next best experience LOL)
@movq@www.uninformativ.de I LOVE THIS POST LOL
slowing working away at my latest code project: learning PHP by recreating the 2000s fandom mainstay known as a fanlisting! it’s been super fun i added a dynamic nav bar and other modifications in the latest commit
fanlistings even to this day rely on old PHP scripts dating back to the early 2000s that need whole ass mySQL or postgres DBs and are incredibly insecure. you can look at them here they’re like super jank lol it’s sad that new fanlistings have to use them because there’s no other options….
@prologic@twtxt.net Lol I totally forgot about this. I will put it on my todo list
@prologic@twtxt.net ODD, lol. I don’t wanna be rude, but this sounds more like Code And Fix.
@prologic@twtxt.net nice! lol that’s such a real way to develop
@movq@www.uninformativ.de mine too, mine too! Imagine my frustration being married to someone who prefers the heat. It’s like a polar bear married to a desert rat. LOL.
@movq@www.uninformativ.de welcome to a (for us, Floridians) “fresh day” temperature! Soon the daily rains will come, so it will be even hotter, and humid, and sticky. Lovely, eh? LOL.
git checkout main && git pull && make build
. Few bug fixes 😄
@prologic@twtxt.net done! hey i got a question, you got any clue why my feeds aren’t updating? maybe it has to do with the new cache flag but i messed with that a bit and didn’t notice a difference. basically it’s like i have to manually restart yarnd
to see new posts it’s really weird lol
it seems i do have to restart my instance to re-queue feeds or something so i definitely fucked up migration to v16 lol
@kat@yarn.girlonthemoon.xyz what did i fuck up this time lol
@movq@www.uninformativ.de oh this would be handy! i think my feed’s busted after the migration lol
@bender@twtxt.net i forgot it LOL
@kat@yarn.girlonthemoon.xyz I CAN’T SEE TWTXT.NET ANYMORE?! WHAT’D I DO IN THE MIGRATION HELP LOL
@movq@www.uninformativ.de oh dear lord, take it away, take it away! LOL.
gah i’ve been so busy working on love4eva! TL;DR i switched image backends from the test/dev only module i was using to the S3 one, but with a catch - i’m not using S3 or cloud shit!!! i instead got it to work with minio, so it’s a middle ground between self hosting the image uploads & being compatible with the highly efficient S3 module. i’m super happy with it :)
i posted a patreon update that details the changes more: https://www.patreon.com/posts/i-am-now-working-127687614
that post says i didn’t update my guide yet but i actually did like right after i made that post lol so you can CTRL+F
for minio stuff there!
@prologic@twtxt.net exciting!!!!!! i’m SO SORRY i didn’t get to doing the migration for my instance though - i’ve been really busy! T__T but i hope to get to it sometime this week i really wanna upgrade i think i’m just a bit nervous for whatever reason lol
@prologic@twtxt.net if I tell you I will lose the edge. I want to mass produce them, as a business venture. LOL.
LOL Amazon displaying tariff prices “hostile and political,” White House say is this the kettle calling the pot black? 🤣 Trump, pfft, what a fucking idiot. No clue how economies work, let alone countries.
@bender@twtxt.net LOL how would I have guessed that?! 🤣
Nothing like being paged at 00:30
(midnight) for a P2 incident that is now resolved at 02:10
🤯 Obviously I’m not going to work tomorrow (I mean today lol 😂) at the usual start time 🤦♂️
The OP strikes me as a boomer (they might not be!). LOL. I don’t think there is going back. If anything, it will get worse.