Lol, yet sometimes I wonder if my hello world contains vulnerabilities
Lol, yet sometimes I wonder if my hello world contains vulnerabilities
All bugs fixed == deleted the project
Now I can’t exit HELPPP^C^C
Lol understandable. Some days I am glad that I dysfunction
and there’s a weird sex joke in here I’m afraid to touch
edit: there’s a programming joke that instead I would like to touch
I cannot understate my satisfaction that you don’t need any /s to see my jokes (probably because I’m terrible at recognizing them myself), thank you <3
oh my goodness, I feel so heard right now, that’s exactly as I always felt, I’m glad I’m not the only human obsessing over these things (well, not meaning that I enjoy your struggle lol).
I also don’t want to be too personally identifiable
I think you could do like some other accounts I’ve seen doing, merging their name and surname in some peculiar way, I did the same, but just for having a sort of unique, easy to use handle, I still keep my actual git username as my real one because I want to be identified with it. You on the other hand could do that and also use the same nickname as the git username. Another system I’ve always liked is to use this neat page on Perchance that generates an adjective-animal couple and they are so convenient for making up random names.
If you go all out and keep one identity and in the clear too, big respect, I don’t do it because I never want to end up in a moment where I wonder “what I’m going to do is a bit in a gray area of acceptable, should I make a new account for this?” as that’s going to break all the continuity that is useful to stay connected with the community. When sioling the two identities, I can do everything with much more peace of mind.
I laughed at “adult friendly” but that’s seriously apt.
Very happy that the humor came across 😆
And seeing how exotic/esoteric nix looks to older people, yes apt is way more adult friendly than nix
It’s been the only declarative flatpak mechanism I’ve gotten to work
Can you say which others you tried? I’m curious myself and found this one as well, but I’m wondering if there is one clearly better than the others
This is why I made 2 accounts, as a bonus I get to make and comment weird stuff on my personal, while I can keep it all adult friendly in the other. Downside is that I almost never touch the second, but I’ll just pretend that the main one is some secret knowledge I can pull out last minute to show off at the interview (jk, they never ask me a single thing about my forges 🥲)
You were far ahead of professors that make you write it out with pen and paper
wayback machine and bookmark, name a more iconic duo…
But it sounds cooler when they don’t know what it’s about, right? Right??
it is a one tap move
that’s cool!
Thanks again, everyone!!!
btw, @[email protected], just updated my post with my solution as promised :)
I’ve analyzed the script a bit (…ok for more than 2 hours + 2 of refactoring), because the first time I absolutely didn’t understand it, now I’ve got it, but still, I won’t ever understand, why make the syntax so confusing?
My system definition shouldn’t be a codegolfing competition (•ˋ _ ˊ•)
TL;DR: I liked your script as a challenge to learn even more and I’m glad I did! Now I know a quite a bit more about the functions that Nix provides and how to use them, not a lot, but better than my previous almost 0, so thank you!
{
/*
builtins.unsafeGetAttrPos "_" { _ = null; }
yields:
{
column = 46;
file = "/path/to/this/slightly-unholy-file-finder.nix";
line = 14;
};
you want to get the value of the name (which is the "key" in this key-value list) "file"
*/
filePath = (builtins.unsafeGetAttrPos "_" { _ = null; }).file; # absolute path to current file
directoryEntries = builtins.readDir ./.;
entryNames = map
(node: "./${node}")
(
# get name of files
builtins.attrNames
(
/**
use the function from before to remove this file right here
from the set (NOT a list) of nodes found by readDir
(may be files, dirs, etc.)
Why?
Because we start reading from the path ./
which is where this file is located, of course
*/
builtins.removeAttrs
(builtins.readDir ./.)
[
/*
get the current file name with some built-in,
either un- or poorly documented function black magic fuckery
(I really wasn't able to find any proper documentation on this function)
*/
(baseNameOf (builtins.unsafeGetAttrPos "_" { _ = null; }).file)
]
)
);
}
run it with:
nix eval -f ./slightly-unholy-file-finder.nix
There were multiple problems with this solution as I tried it:
39
which was needed to actually filter out
the file path of the script that is being ran, because the paths I got out of readDir were relative (just for me? Did I change something in my environment? I’m not usre, the docs aren’t very clear).nix
filesI’ll post later my own further improved solution starting from my own (tbh, by now more like our) script.
Feel free to steal the idea. I stole it from another post somewhere in here myself. 😄
Ahh I see, then it’ll be an honor to copy from a true programmer.
We can only dream of dots.
Isn’t the launcher backup the “dots” for this?
This is really cool! I have to steal the idea of using emojis as tags.
Btw, any dots? 👀
I don’t have much of a math background, but that makes a lot of sense when talking about the application here! I like the explanation
I see, that’s really neat!
So joker
is the name for one of the machines right? If so, how do you select that particular section in the actual machine’s config?
Also, the code style seems normal to me? I’m not very familiar with Nix though, so maybe that’s why I don’t spot the weirdnesses
Gotta band it Windows tho, it just feels right, I want to enjoy my fake typewriter