

Your “statistics” are fantasy numbers, not statistics. And statistics or probabilities, no matter how low or high, are not proof.
Your “statistics” are fantasy numbers, not statistics. And statistics or probabilities, no matter how low or high, are not proof.
I like the question.
I had to think of two songs immediately:
Coldplay - Magic. I really feel the lyrics but the “of course I do” at the end always leaves me in tears.
Daft Punk - Touch. I always interpret the song as a robot struggling to become sentient, but it also reminds me of my process of leaving behind my angry and frustrated teen and early twenties self because I realized that it made me unhappy.
The firmware update did it :)
That wouldn’t exclude Cyberpunk for example.
Oh, updating firmware sounds reasonable. Thanks!
Just get a Bakfiets.
If you ever need help with language concepts, just ask ChatGPT. It has some good definitions and examples for you. This will help you in a language based environment like Lemmy. 👍
Well, since obviously no one ever has, let me introduce you to the concept of “sarcasm”, which everyone else here understood. Just keep getting angry for no reason.
I guess I just used bash as deonym for shell. Sry. It was late and I was tired.
I don’t think he’s anywhere near to having sex.
Why not?
Yeah, that’s a point I didn’t consider.
Can’t you just mount them on different high level folders? I got /Games for games, /Misc for tinkering with stuff and everything else on /. So I usually know what hard drive my stuff is on.
The best way to learn Linux for ne was to make comparison table to all the distros and to look for what I want to make decision. Whenever I got questions, I asked ChatGPT. Then, the biggest step, was just using it. As my Daily Driver. I tried dual booting / a second “tinkering laptop” and it did just not work for me.
Now I am happy and keep learning all the small details.
Feels like when I was young and got my first PC.
Does it have to be a VM? Is Steam or Lutris not an option?
I personally try to avoid deeply nested if/else. Or else in general, because I think it makes code more readable. Especially when one of the branches is just an exit condition.
if exitCondition { return false } // long ass code execution
is way more readable than
if !exitCondition { // long ass code execution } else { return false }
In a loop, you can just return the value instead of passing it to a “retVal” variable.
With those in mind, you could refactor HasPermissions to
func (r *RBAC) HasPermission(assignedRoles []string, requiredPermission string, visited map[string]bool) bool { for _, assigned := range assignedRoles { if visited[assigned] { continue } role, ok := r.Roles[assigned] if !ok { //role does not exist, so skip it continue } for _, permission := range role.Permissions { if permission.String() == requiredPermission { //Permission has been found! Set permitted to true and bust out of the loop return true } } //check inherited roles if permitted := r.HasPermission(role.Inherits, requiredPermission, visited); permitted { return true } } return false }
The same could be applied to LoadJSONFile and I think that really would approve the readability and maintainability of your code.
edit: This refactor is not tested