derpgon

joined 1 year ago
[–] [email protected] 5 points 1 year ago (3 children)

I do, and I'd like a push in the right direction.

[–] [email protected] 4 points 1 year ago (2 children)

Right alt + 4 for me lol

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Arrays are passed by copy by default. Every scalar or array value is copied by value. Every other thing (objects basically) is copied by reference.

Passing array by reference passes everything it used to copy by reference.

Attempting to clone an array will result in an error.

Reassignment of a variable containing an array will do the same as if passed to a function by value.

Reassignment of a variable containing an array using the reference operator will do the same as if passed to a function by reference.

So, in order to deep copy an array, just reassign and recursively traverse the array calling clone on each object. Of course, this would break (or not, depending on the intended use) when the same object is referenced multiple times under different keys.

[–] [email protected] 7 points 1 year ago

Same, plain old HTML, and if I need some reactivity then Stimulus. And if need even more reactivity, then VueJS / Alpine. If the form can't be submitted via a regular submit button, it infuriates me.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

"As you can see on this graph, the Twitter axis represents time, and the Y axis represents total number of unique visitors"

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (2 children)

It is open source, but Louis said that albeit it is open source, the app is 10$ or something like that, but you are free to pirate it and he won't be stopping you.

Or, rather, the "premium" features. No idea what are those tho.

[–] [email protected] 2 points 1 year ago (1 children)

Oh I am liking this trend. I absolutely hate this form of self-censorship (like some people writing"sh*t" - what did someone dl to you? Who huer you?), but this I can get behind.

[–] [email protected] 0 points 1 year ago (7 children)

The app is supposed to be something like 10$, no subscription. Not sure if it's paid atm.

[–] [email protected] 4 points 1 year ago (1 children)

Vaultwarden, a FOSS Bitwarden server compatible with upstream clients, is able to store TOTP, and when self hosted, you are the watchmen.

[–] [email protected] 2 points 1 year ago

Most of these services are FOSS and they can't be shut down because they don't break any laws. The only thing that is in the gray zone are torrent sites, which are in abundance and it's not really that hard to switch from one to another or create a new one as operating costs are almost zero.

[–] [email protected] 14 points 1 year ago

Or the fine is so small it's just a "cost of doing business"

[–] [email protected] 6 points 1 year ago

I understand where the strictness comes from. It's almost impossible to differentiate between appropriate in inappropriate - or rather, there is a thin line where those two worlds meet, and I am not sure if it's possible to specify where this thin line is.

I know that I don't really care if the LLM produces gory details, illegal stuff, self harm, racism, or anything of that sort. But does Google / Facebook / others want to be associated with it? "Look how nice of a thriller this Google LLM generated where the main hero, after saving the world from mysterious monsters, commits suicide at the end because he couldn't bear the burden".

Society is fucked, and this is where we got to - overappropriation. Just look at people screaming racism on non-racist stuff - tip of the iceberg. And it's been happening more and more over the last few years. People are bored and want to outraged at SOMETHING.

view more: ‹ prev next ›