bitfucker

joined 2 years ago
[–] bitfucker@programming.dev 3 points 2 years ago

Not just clickbait. Straight up lying.

[–] bitfucker@programming.dev 2 points 2 years ago (1 children)

It would be weird for say, a 12V-2A PSU to not be able to source and sink 2A. The current direction didn't change from the PSU perspective, only from the load. If you have multi-rail power supply, then yeah it may have different source-sink capabilities for different rail

[–] bitfucker@programming.dev 6 points 2 years ago

I also noticed significantly less activity than usual so you are not alone. Judging by the other commenter, it's likely some federation issue.

[–] bitfucker@programming.dev 1 points 2 years ago (2 children)

The spiral is a black hole. Anyway you take it, it goes downwards.

[–] bitfucker@programming.dev 1 points 2 years ago

That's a lotta heat

[–] bitfucker@programming.dev 3 points 2 years ago

Meanwhile my Auf Wiedersehen got deleted on a chain of J-A (granted it is small, but still)

[–] bitfucker@programming.dev 2 points 2 years ago (1 children)

Ahh, then the modification must be done on the AST level not the in-memory representation since anyway you do it, you must retain the original.

[–] bitfucker@programming.dev 2 points 2 years ago (3 children)

Hmm, maybe I am missing the point. What exactly do you mean by handling automatic updates in place? Like, the program that requires and parses the config file is watching for changes to the config file?

[–] bitfucker@programming.dev 1 points 2 years ago (5 children)
[–] bitfucker@programming.dev 3 points 2 years ago

Until someone cannot tell the difference between tab and space when configuring or you miss one indentation. Seriously, whoever thinks indentation should have semantic meaning for computers should burn in hell. Indentation is for us, humans, not computers. You can write a JSON with or without indentation if you want. Also, use JSON5 to have comments and other good stuff for a config file.

[–] bitfucker@programming.dev 4 points 2 years ago (1 children)

Yep. Much like we don't treat phone numbers like a number. The rule of thumb is that if you don't do any arithmetic with it, it is not a "number" but numeric.

[–] bitfucker@programming.dev 1 points 2 years ago* (last edited 2 years ago)

Its already in your word. Proportional. A proportional control, or P control (generally, a PID with the K_I and K_D set to 0)

Alright some edit as I will try to explain my answer. Say for example a value 'x' is > 0 and < 100 (so, 0 < x < 100). In this case, the point that you wanted to reach is 100, such that x is always getting bigger and closer to 100 (x->100). If you subtract x from 100, you get the remaining, call it 'y', that you need to add to get to 100 (y=100-x). So now, the rate of change must be proportional to that number. I.e., as x gets closer to 100, y will get smaller. How much faster is determined by a proportionality constant, that can be called K_P.

view more: ‹ prev next ›