FSMaxB boosted

Remember: You are not responsible for dealing with someone who is "good hearted and means well, just a freak", but tires your Emotional mental capacities. Especially if the person keeps overstepping boundaries and tries to negotiate what your boundaries are.

Key takeaway: Consider your /etc/shadow to be containing essentially plain text passwords.

-> Don't reuse Linux login passwords for anything else
-> Encrypt your system partition (and be sure to configure a sensible key derivation function when setting it up using cryptsetup, I don't think they use sensible defaults yet. In other words: Tell cryptsetup to use Argon2id and optimise --iter-time and --pbkdf-* to be as slow and memory consuming as acceptable)

OMG, why can't we have nice things. Just found out that passwords in /etc/shadow are hashed using SHA-512 by default (which is the least bad option ...) but only 5000 rounds by default (not that more rounds would make it significantly more resistant against brute force in any case).

Today: Have you ever looked at the semantics of "round" in your programming language. Look at JavaScript and Python for example.

The biggest unsolved problems of applied computer science:
* floating point numbers
* date/time
* text

Just found some interesting code in jemalloc's implementation of a mutex:

if (ncpus == 1) {
goto label_spin_done;
}

github.com/jemalloc/jemalloc/b

I quite like the idea of the new operator, although I think it looks ugly.

But #bash can also do it in 46ms 

Then I came up with a solution in that took me ~5 minutes to write but with an execution time of 20s.

Expressions that evaluate to 100 

At first I came up with a solution in JavaScript.
time spent: 22min
execution time: ~170ms
loc: 21

At todays C++ meetup I was told a programming quiz:

Given the digits 1-9 (in that order), you can combine them with either '+', '-' or nothing.
Now find all of these mathematical terms, that evaluate to 100.

You can use any programming language and library you like and you have 1 hour to complete the task.

Interesting. I just found out that ldd is a shell script.

I just found out that a.out is not actually a.out but ELF. I feel tricked.

FSMaxB boosted
Show more
mastodon.cloud

Generalistic and moderated instance.