Konlanx

joined 11 months ago
[–] [email protected] 24 points 10 months ago* (last edited 10 months ago) (2 children)

It's not. The default sorter does that, because that way it can sort pretty much anything without breaking at runtime. You can overwrite it easily, though. For the example above you could simply do it like this:

[3, 1, 10].sort((a, b) => a - b)

Returns: [1, 3, 10]

[–] [email protected] 14 points 10 months ago

Mobile browsing without ads is such a refreshing experience. Some apps show websites in the internal chromium webview, though and I am always unpleasantly surprised seeing websites in their natural state.

[–] [email protected] 43 points 10 months ago* (last edited 10 months ago) (7 children)

JS !== Java

Try Javascript some day!

  • We have truthy and falsy! Empty string or null? Yeah, that's false!
  • Of course we can parse a string to number, but if it's not a number it's NaN!
  • null >= 0 is true!
  • Assign a variable with =, test type equality with == and test actual equality with ===. You will NEVER use the wrong amount of = anywhere, trust me!
  • Our default sort converts everything to string, then sorts by UTF-16 code. So yes, [1, 10, 3] is sorted and you are going to live with it.
  • True + true = 2. You know I'm right.

Try Javascript today!

[–] [email protected] 7 points 10 months ago* (last edited 10 months ago)

I have my own mailserver just for me and it wasn't that complicated to be honest. I set it up with Mailcow in Docker in under a day. So far it has been stable with regular backups and updates through Lighthouse.

Maintenance comes down to 5 minutes every three months because somehow Let's Encrypt and Mailcow don't like each other and I have to renew the certificate manually.

[–] [email protected] 10 points 10 months ago* (last edited 10 months ago) (1 children)

Came here the same way you did and I share your point of view.

However I do think there is enlightening to be found in understanding that a human is only a consciousness that exists from moment to moment and receives external stimuli. Getting to this through meditation helped me being less affected by all the stuff that is going wrong in the world.

Step back from it. Reduce it to the light and sound it is. It takes some of its impact away.

I greatly disagree with seeing morality and immortality as the same, as well as life and death. Having an ethical and socialist view on the world is very important, even when not being affected by the unethical and unsocial aspects.

[–] [email protected] 14 points 10 months ago (1 children)

So you are saying it's not streamable?

[–] [email protected] 169 points 10 months ago (1 children)

Both of them are used to transport mostly a single person at a time. Even the small one is too big.

[–] [email protected] 57 points 10 months ago

So, my grandfather has a smartphone and knows enough about it to call, send messages and most importantly, use the emergency contacts. My grandmother doesn't really understand the phone. One time I called them to say congratulations for her birthday and she didn't know how to hang up, so apparently she just put the phone down. I could hear them talk, saying that "he's become a good person, always remembers us" and the fact that I wasn't meant to hear that made it extremely meaningful to me.

[–] [email protected] 27 points 11 months ago (2 children)

Yes, 4 tons exactly.

[–] [email protected] 10 points 11 months ago

If only there was a FOV slider. Why is it so low?! Makes me super nauseous. It can't be more than 70 or maybe 75. But I want at least 100.

[–] [email protected] 22 points 11 months ago

NASA has a super interesting explanation about it here: https://svs.gsfc.nasa.gov/4709

Probes have also been taking pictures: https://en.m.wikipedia.org/wiki/Far_side_of_the_Moon

I know you are joking, but it's super interesting to me, so I wanted to share something about it.

view more: ‹ prev next ›