FSMaxB boosted
FSMaxB boosted

Every time a dating site works as advertised, they just lost two customers.

Today's tip: Don't partition already partitioned data using the same hash function that it has already been partitioned with.

Or: Application specific keys for hash functions are there for a reason, don't use the same for different applications.

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)

Show thread

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.

Show thread

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.

Show thread

But #bash can also do it in 46ms 

Show thread

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

Show thread

Expressions that evaluate to 100 

Show thread

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

Show thread

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.

Show more
mastodon.cloud

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!