• 1 Post
  • 122 Comments
Joined 1 year ago
cake
Cake day: August 8th, 2023

help-circle


  • jsdz@lemmy.mltoLemmy Shitpost@lemmy.world*Permanently Deleted*
    link
    fedilink
    Interlingua
    arrow-up
    13
    ·
    edit-2
    1 year ago
    int is_even(int n)
    {
        int result = -1;
        char number[8]; //should be enough
        sprintf(number, "%d", n);
    
        // check the number
        // TODO: handle negative numbers
        for (char *p=number; *p; p++)
        {
            if (*p=='0' || *p=='2' || *p=='4' || *p=='6' || *p=='8')
                result = 1;
            else if (*p=='1' || *p=='3' || *p=='5' || *p=='7' || *p=='9')
                result = 0;
            else {
               fprintf(stderr, "Your number is wrong!\n");
               exit(1); 
            }
        }
        return result;
    }
    








  • jsdz@lemmy.mltoLinux@lemmy.mlThe future of Linux
    link
    fedilink
    arrow-up
    21
    ·
    1 year ago

    Well okay, since it’s up to me: Let’s have free software. Fully free Linux on every phone, including all “firmware” which has gotten awfully soft lately. No more proprietary driver blobs for ethernet controllers or cellular modems. No more proprietary DRM modules. No more “smart” consumer goods that come without source code. The free software revolution has gone pretty well in some respects, but we need to finish the job and put an end to all that garbage.






  • It’s yet another scheme to gather data about Chrome users for the benefit of advertisers. Aside from the fundamental problems with that whole idea which people most often point to, it’s also underhanded in a way that cookies, tracking scripts, and browser fingerprinting aren’t: It’s code that’s built in to the web browser itself which exists for no purpose other than to act directly against the interests of its users. It may be the first time that’s happened in such an obvious and unambiguous way.


  • jsdz@lemmy.mltoLinux@lemmy.mlAnother post for not using systemd
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    1 year ago

    the packagers had not changed it as they were asked to do

    Were they really? Or were they told “change it if you don’t like it”? Genuine question, and it would make some difference.

    But in either case I’m sure not all of them did, and failing that it is all down to the one person (or worse, one team of people) administering the system. Badly configured networks resulting in DNS problems is not exactly rare, but that is beside the point. It’s clearly wrong no matter how uncommon is the situation that makes it materially detrimental.


  • jsdz@lemmy.mltoLinux@lemmy.mlAnother post for not using systemd
    link
    fedilink
    arrow-up
    4
    arrow-down
    4
    ·
    1 year ago

    It’s just one more annoying little thing to go on the big list of items to be corrected when setting up a systemd-equipped system, but more importantly believing that it’s acceptable to just leave it there demonstrates extremely poor judgement to a degree that makes many of us doubt the trustworthiness of the entire project. Perhaps in 2013, or whenever the decision was initially made, substantial numbers of people were sufficiently clueless as to think that adding in the possibility of inadvertently having your system quietly direct all its DNS queries to Google was better than the more obvious alternative of not doing so, but after everything that’s gone down since then it’s quite hard to imagine why anyone would stick up for such a bizarre point of view today.