[-] [email protected] 3 points 3 hours ago

Wrapping a value in a mutex just makes sense. After learning a bit of Rust I made a similar mutex wrapper in C++ when I had to protect a class member in a C++ project. I just had to change the type in the declaration, and bam the compiler tells me about all places this member was accessed. Much easier than using some buggy 'find all references', potentially forgetting a few places.

[-] [email protected] 1 points 22 hours ago

I think the author of the article just haven't understood how to use the ? operator yet, and don't think they deserve being called "utterly incompetent" for it. Whether something is a monad or not is not necessarily something a programmer should have to think about on a daily basis IMO.

I just think of rust errors as a tagged enum with either a value or an error. And the ? operator as syntax sugar for returning if something was an error. IMO that simple understanding is sufficient to do error handling in Rust. I don't think we should gatekeep programming behind some intellectual barrier of whether or not you understand category theory. I certainly don't understand what a monad is, but I can still write working software and do error handling without unwraps.

[-] [email protected] 1 points 4 days ago

Oh that's good then. I think they stopped using whitelists a while ago, so if it is slotted you can probably replace it with anything. Maybe they reversed course on soldered modules then, or perhaps it only applied to some models. I looked into specs of the T16 at some point, and that one had soldered wifi module.

[-] [email protected] 4 points 5 days ago

A lot of the modern thinkpads have the wifi module soldered to the motherboard nowadays unfortunately. Sad that they would use these crappy realtek cards in the first place as well.

[-] [email protected] 1 points 6 days ago

Yeah the thought is that as long as my patch applies without error, I would get the latest kernel automatically built and can just update my laptop normally with pacman. And since I have a server anyways I might as well use it to compile the kernel at night. I'm also thinking of doing the same with some aur packages as well.

[-] [email protected] 31 points 5 months ago

The scary thing about this is thinking about potential undetected backdoors similar to this existing in the wild. Hopefully the lessons learned from the xz backdoor will help us to prevent similar backdoors in the future.

[-] [email protected] 26 points 6 months ago

Until meta starts to slowly block small instances and we end up with the next email. Technically federated, but controlled by a few large corporations that dictates the block lists. Let us block them first so we get to define what the fediverse should look like, not them.

[-] [email protected] 24 points 7 months ago

It will go brrrrrrrt¤gdføTJwrgt65&<)5½$¥[[¥½{2ahgfh Segmentation fault (core dumped)

[-] [email protected] 23 points 9 months ago* (last edited 9 months ago)

I know how to fix this!

bool IsEven(int number) {
    bool even = true;
    for (int i = 0; i &lt; number; ++i) {
        if (even == true) {
            even = false;
        }
        else if (even == false) {
            even = true;
        }
        else {
            throw RuntimeException("Could not determine whether even is true or false.");
        }
    }

    if (even == true) {
        return even ? true : false;
    }
    else if (even == false) {
        return (!even) ? false : true;
    }
    else {
        throw RuntimeException("Could not determine whether even is true or false.");
    }
}
[-] [email protected] 26 points 11 months ago

If I'm at 127.0.0.1 why would I need to wear a 255.255.255.0?

[-] [email protected] 25 points 1 year ago

That kinda sounds like a bad cable. I've had the same issue with both HDMI and DP before and it was solved with a new cable both times 🙂 Display cables are quite hit and miss when it comes to quality.

[-] [email protected] 72 points 1 year ago

EU is the real MVP. Hoping that a few more years now and we'll have iphone with USB C, app sideloading, user replacable battery. I've never owned an iphone before but if that happens, I might consider one.

6
submitted 1 year ago by [email protected] to c/[email protected]

I've dabbled a bit with using Ardour and FOSS synthesizer plugins lately. I'm no expert, have only ever been in the dabble stage (played around with FL studio 6 when I was a kid). But I have gotten the urge to try to use a hardware synthesizer after watching a youtube video of using an old DAW on an Atari to control a budget 80s synth. (Video for those interrested).

I like the idea of being limited to a certain set of hardware, as it can get the creative juices flowing, when I have a limited set of knobs to turn for example, to get the most out of it. So I've impulse-ordered a second hand Roland SH-32 desktop synth (still waiting for it to arrive), that I should in theory be able to have 4 instruments at the same time from what I've understood.

Does anyone here have experience setting up hardware synths with a DAW on linux? I have an audio interface with MIDI in and out, so I should be able to connect it to a DAW in theory. Wondering if it is possible for the DAW to set up the correct settings on the synth through MIDI, when I open the project in the DAW.

I know I'm a bit early to ask since I haven't even gotten the hardware yet 😅. But I'm exited to try something new 🙂

view more: next ›

noddy

joined 1 year ago