[-] TwilightKiddy@programming.dev 3 points 4 months ago

People did that too often without any "AI" assistance already.

$ rm -rf /
rm: it is dangerous to operate recursively on '/'
rm: use --no-preserve-root to override this failsafe
[-] TwilightKiddy@programming.dev 3 points 4 months ago

The ones I got ~15 years ago had installers on them. Makes sense, running a game from a DVD drive would probably result in terrible loading times.

[-] TwilightKiddy@programming.dev 3 points 5 months ago* (last edited 5 months ago)

It's an infinite series, love, I just moved it, there are still enough elements in them because, well, they are infinite. If you are so sad about it, write the second one as 0-S, changes nothing but now you have a donut to pair up with the 1 in the first series.

[-] TwilightKiddy@programming.dev 3 points 9 months ago

That's kind of the nature of this sort of apps. Instead of implementing the clipboard handler yourself, you just rely on whatever clipboard utility the system already has.

[-] TwilightKiddy@programming.dev 3 points 1 year ago* (last edited 1 year ago)

Oh, no, Russian government ends up leaking each and every piece of information it has for 50 rubles per person through sheer incompetence. So, you are both flying out the window and getting your data sold.

[-] TwilightKiddy@programming.dev 3 points 1 year ago* (last edited 1 year ago)
.for_each(|((_, _, t), (_, _, b))| { ... }

This is actually fairly similar to what C# has.

This is a closure syntax:

| arguments | { calls }

In C#, the closest is lambda expressions, declared like this:

( arguments ) => { calls }

Parentheses are tuple deconstructors. In C# you have exactly the same thing. Imagine you have a method that returns a two element tuple. If you do this:

var (one, two) = MethodThatReturnsATuple();

You'll get your tuple broken down automatically and variables one and two declared for you.

First of all, I'm using .zip() to pair the rows of the picture by two, that returns a tuple, so, I have to deconstruct that. That's what the outer parentheses are for. The pixel enumeration stuff I'm using returns a tuple (u32, u32, &Rgba<u8>) first two values are x and y of the pixel, the third one is a reference to a structure with color data. I deconstruct those and just discard the position of the pixel, you do that with an underscore, same as C#.

I'm not that far into learning myself, but I'm not a textbook learner at all. Poking around opensource projects and wrestling with the compiler prooved to educate me a lot more.

[-] TwilightKiddy@programming.dev 3 points 2 years ago

As a hopeless Gentoo user myself, I must warn you: it's very addictive and it will become your one and only hobby, whether you like it or not.

[-] TwilightKiddy@programming.dev 3 points 2 years ago

The one I compiled. The benefits are not that obvious. If you are not into that sort of stuff, I would not recommend it.

But yes, if you don't support as wide of a range of hardware, you can usually squeeze a bit more performance out of your kernel.

Although, most processing time is spent not in kernel code. There will be a difference of course, especially if you know where to look for it, but nothing groundbreaking most of the time.

[-] TwilightKiddy@programming.dev 3 points 2 years ago

Not to invalidate the point made, but…

While Japanese indeed uses question marks, you can get screwed if you think that every sentence without a question mark at the end is not a question. For example, this is a grammatically correct question:

それは質問ですか。

[-] TwilightKiddy@programming.dev 3 points 2 years ago

Thunderbird for desktop, K-9 Mail for Android.

[-] TwilightKiddy@programming.dev 3 points 3 years ago

You don't need to check female port orientation, it's always the same, pins inside the port are looking at the board the connector is soldered to. Of course, unless manufacturer decided to do something funny, but no standard is protected from that.

view more: ‹ prev next ›

TwilightKiddy

0 post score
0 comment score
joined 3 years ago