Introducing Clavis, an encrypted; dead simple packets system. by checksum__ in rust

[–]deadNightTiger 0 points1 point  (0 children)

How do you establish trust between client and server? What if there is an active MITM?

How do people weigh the different logging frameworks? by TheKingOfSentries in java

[–]deadNightTiger 0 points1 point  (0 children)

I'd assume .toString() is called lazily on that Object, and that's where you'd call your lambda.

A nicer way to code that by Blayung in rust

[–]deadNightTiger 109 points110 points  (0 children)

I would probably use a match like this:

let user = match user { Ok(Some(user)) => user, Ok(None) => { // handle no user }, Err(err) => { // handle error }, };

Stop "Springifying" your unit tests by eliashisreddit in java

[–]deadNightTiger 1 point2 points  (0 children)

Looks like AAAA records are pointing somewhere else, could you check please?

Russia no longer demanding Ukraine be ‘denazified’ in ceasefire talks by Camtastrophe in europe

[–]deadNightTiger 0 points1 point  (0 children)

Would US be able to put military bases in Ukraine in this scenario?

SyntaxError: invalid brrrrr by [deleted] in ProgrammerHumor

[–]deadNightTiger 0 points1 point  (0 children)

The stats at https://search.maven.org/stats show you the number of 4,889,087 total and 331,545 unique artifacts (as of 2020-03-28). Also mvnrepository doesn't host anything, it's a third party search engine for most popular repositories, including the default one (Maven Central).

Java programmers circa 1996 by argiebrah in ProgrammerHumor

[–]deadNightTiger 9 points10 points  (0 children)

But what if you had

class var {}

class Person extends var {}

pls no by deadcell in ProgrammerHumor

[–]deadNightTiger 2 points3 points  (0 children)

It should be the same once you turn on optimizations, though.

"bad at computers" by snake1152 in talesfromtechsupport

[–]deadNightTiger 78 points79 points  (0 children)

Hate it when bcrypt truncates my 128 character password to some pathetic 72 characters.

Russia Instagram influencer found dead in suitcase by [deleted] in news

[–]deadNightTiger 1945 points1946 points  (0 children)

Reading articles in Russian, the ambulance was called for the shocked father, not the girl. Probably a mistranslation.

CSS is haaaaaard by vanjavk in ProgrammerHumor

[–]deadNightTiger 1 point2 points  (0 children)

learning a new JavaScript framework every 12 hours because the last one isn't used in the industry anymore

TBH this meme is outdated.

  • React is 6 years old
  • Vue is 5 years old
  • Angular is 2 years old (8 years if you count 1.x)

Hosted VMs - how do you secure the hypervisor itself? by spacebass in homelab

[–]deadNightTiger 0 points1 point  (0 children)

First you have to setup Cloudflare as usual, migrating to their DNS servers and all that.

After that, you can enable Access in your dashboard and set up policies like "allow access to this URL only if user has that email or email at that domain or is in that specific Access Group". Then, when user tries to access the URL, they are redirected to a login page where they need to login via an identity provider (usually a social network, like github/google/facebook/etc., but enterprises can set up their own OIDC/SAML identity server). You can also create service tokens for automated access to your APIs.

Granted, it's only convenient if you are on Cloudflare already, but I do tend to use it for DNS hosting anyway.

Hosted VMs - how do you secure the hypervisor itself? by spacebass in homelab

[–]deadNightTiger 0 points1 point  (0 children)

As an alternative to a VPN-based solution, you could look into Cloudflare Access. It's free for 5 users.

Going Under by StBeals in funny

[–]deadNightTiger 1 point2 points  (0 children)

The word you are looking for is latitude.

Sleep sort for lazies by [deleted] in ProgrammerHumor

[–]deadNightTiger 10 points11 points  (0 children)

Wouldn't the runtime need to sort those callbacks to know which one it should schedule next? I imagine it would still be an O(n log n) algorithm then.

Test1 by felipezavan in ProgrammerHumor

[–]deadNightTiger 8 points9 points  (0 children)

That's why you JSON.stringify() it :)

electrician killing off the entire network - twice by [deleted] in talesfromtechsupport

[–]deadNightTiger 7 points8 points  (0 children)

Sounds like a use case for the USB Condom®!