balsoft

joined 2 years ago
[–] balsoft@lemmy.ml 1 points 2 hours ago* (last edited 1 hour ago)

Oh, you are correct!

In that case we just need one more step of -∞ = eml(1, ∞). Let me fix the original comment

[–] balsoft@lemmy.ml 3 points 20 hours ago

I'm not really addicted to my phone. Most of the day I don't even know where it is. I am however a bit addicted to my laptop/desktop, but that's easier to avoid since it's location-dependent — I usually go on daily walks/jogs. Since there's also some external stimuli (people, weather, dogs, etc) it's much easier to keep the internet off my mind entirely.

If it's safe to do so, going on walks without the phone could be a good way to start a habit like this, IMO.

[–] balsoft@lemmy.ml 2 points 20 hours ago (1 children)

Windows 11 is less of a poop smelling ice cream truck and more of a Kaiser's Coffee Shop van. And you ain't in the driver's seat.

[–] balsoft@lemmy.ml 0 points 20 hours ago (1 children)

Better still, in the Nix world there's https://github.com/nix-community/plasma-manager which allows you to set up all the settings exactly once, and then auto-apply them on all the machines!

[–] balsoft@lemmy.ml 4 points 22 hours ago* (last edited 21 hours ago) (2 children)

Yep, the ln/exp immediately made me think about the multiplication/addition thing. I could also get 0 easily: eml(1, eml(eml(1, 1), 1)) (basically e - ln(e^e)), and it's trivial to just get the exponential: exp(x) = eml(x, 1)

What I didn't think about is that we could do some tricks with infinities :)

  • negative infinity -∞ = eml(1, 0)
  • allows us to get the negative logarithm: neg_ln(x) = eml(-∞, x)
  • from which it's easy to get negation neg(x) = neg_ln(exp(x))
  • regular logarithm ln(x) = neg(neg_ln(x))
  • then trivial subtraction x - y = eml(ln(x), exp(y))
  • and finally addition x + y = x - neg(y)

That's so cool!

Edit to add: Apparently this is multiplication…

Yep, multiplication is easy when you have the above, it's basically x × y = exp(ln(x) + ln(y))

~~As far as I can tell just following through with substitutions leads to exactly the same expression as the one in the image~~

Actually their expression is different, I'm not sure exactly how they got to it...

[–] balsoft@lemmy.ml 3 points 1 day ago* (last edited 1 day ago) (4 children)

I can kinda see how to get pi (and most of trig in general), the imaginary unit, and even some calculus, but (weirdly) basic arithmetic seems to be more difficult. I'll check out the paper, seems cool!

[–] balsoft@lemmy.ml 15 points 1 day ago (4 children)

Honestly for desktop usage it doesn't really matter. All inits have their idiosyncrasies ("A stop job is running for Session"/logging hell on openrc/etc). But for managing a fleet of bare-metal servers I find systemd to be the best, most polished one out of the lot.

[–] balsoft@lemmy.ml 27 points 3 days ago* (last edited 3 days ago) (4 children)

~~Sounds awesome, why c/Slop?~~

Just saw the source 🤮

[–] balsoft@lemmy.ml 2 points 4 days ago

And the moment they have a nuke and show it off, all hell will break loose

As you can see, all hell has been broken loose for them already even though they don't have nukes and weren't planning on making them. I think it's time they armed themselves against the aggressors, with the only weapon those aggressors actually fear.

[–] balsoft@lemmy.ml 2 points 4 days ago

Nukes are the epitome of hard power tho. There is very little need to understand anything apart from "if I bomb that country, they nuke me (or, in this case, israel)". I'm sure the financial markets would not appreciate a nuclear war either, so the profit incentive is there too.

[–] balsoft@lemmy.ml 14 points 4 days ago (7 children)

Iran not getting nukes ensures that this war will happen again too. The only ways to keep sovereignty in the face of imperialists are:

  1. Be economically irrelevant (a-la Cuba)
  2. Kick their ass in a land war so hard that they are scared to even try (a-la Vietnam)
  3. Have nukes (a-la North Korea)

If you don't have any of those three you're bound to be coup'd by US-backed fascists at some point, see: history of South America and West Asia.

Iran has oil and control over the straight of Hormuz, so (1) is out of the question. (2) is more likely but I'm not sure if the US leadership is dumb enough yet to just go head first into another land war in asia, and in any case this would lead to hundreds of thousands of dead civilians. This leaves us with (3) as the most viable strategy.

[–] balsoft@lemmy.ml 2 points 4 days ago

Yeah, the centralized nature of Rust's dependency management always bugged me a bit. Of course there's nothing stopping you from just pointing directly to the source code of crates in your Cargo.toml, and I think I will start doing that from now on. Adding better tooling for this would be great.

92
submitted 2 months ago* (last edited 2 months ago) by balsoft@lemmy.ml to c/ManufacturingConsent@lemmy.ml
 

Yeah sure, this movie with 1.3 rating and 5 (out of 100) metascore, with only 50k ratings, is the #1 movie this week. The algorithm is really transparent and trustworthy, clearly there's no manipulation going on.

(for those who don't know, IMDb is owned and operated by Amazon)

 

This is my daily driver at the moment - X201s modded with a 51nb motherboard with i7-10710u (a.k.a X2100). A lot of geo nerd cred to whomever can guess the location by the mountains :)

 

cross-posted from: https://lemmy.ml/post/33203710

Sunrise in Wadi Rum desert. Taken from my phone with OpenCamera's stacked HDR.

31
submitted 9 months ago* (last edited 9 months ago) by balsoft@lemmy.ml to c/photography@lemmy.ml
 

Sunrise in Wadi Rum desert. Taken from my phone with OpenCamera's stacked HDR.

101
submitted 9 months ago* (last edited 9 months ago) by balsoft@lemmy.ml to c/pics@lemmy.world
 

cross-posted from: https://lemmy.ml/post/32177363

Moon rising during sunset. Taken from Gombori mountain. Nikon D700, 85mm, cropped.

63
submitted 9 months ago* (last edited 9 months ago) by balsoft@lemmy.ml to c/photography@lemmy.ml
 

Moon rising during sunset. Taken from Gombori mountain. Nikon D700, 85mm, cropped.

 

cross-posted from: https://lemmy.ml/post/31830215

I liked posting a picture here so I think I will try to do it weekly :)

This is what the dawn of January 1st 2025 looked like for me. We've slept in my van through the night to get this view. The temperature was about -20℃ but it was worth it in the end.

The flats in the picture is the frozen Lake Paravani and the mountains are the Samsari ridge.

23
submitted 10 months ago* (last edited 10 months ago) by balsoft@lemmy.ml to c/photography@lemmy.ml
 

I liked posting a picture here so I think I will try to do it weekly :)

This is what the dawn of January 1st 2025 looked like for me. We've slept in my van through the night to get this view. The temperature was about -20℃ but it was worth it in the end.

The flats in the picture is the frozen Lake Paravani and the mountains are the Samsari ridge.

 

cross-posted from: https://lemmy.ml/post/31459711

Since today is my first cake day, I've decided it's time to post instead of commenting. This is a picture I took last month on my phone through binoculars. Taken from Gomismta, the mountains you see are the Main Caucasian Ridge.

 

Since today is my first cake day, I've decided it's time to post instead of commenting. This is a picture I took last month on my phone through binoculars. Taken from Gomismta, the mountains you see are the Main Caucasian Ridge.

view more: next ›