• 0 Posts
  • 125 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle



  • Have you ever had Windows break so badly that you had to burn an install disk…

    As a programmer, yes under Windows 3.0 I could crash the computer so hard that the only way to recover was to reformat the hard disk. It got progressively better in later versions and everything from Windows 2000 has been virtually uncrashable.

    My most recent hard crash was when I had a VM, two Minecraft instances and Firefox all open at the same time and Windows ran out of memory (so I upgraded from 32GB to 64GB). It does make me wonder why some of that didn’t get swapped out though.


  • Well that’s OK. It’s not uncommon for different countries to name bits of land and water differently from everyone else. Take Germany for example. The locals call it Deutschland. The French call it Allemagne. Or there are the Falklands, known by the argybargies as Las Malvinas. If Donny McFart in North Mexico wants to call that bit of water the Freedom Gulf or whatever then good for him! As long as he realises it works both ways.







  • I think beginners would find it a lot easier if “it’s like email” was closer to the start. But as it is you have to dig a bit before you get that particular bit of insight.

    Where do you sign up? Wherever suits you. Posteo, Mailbox, Tuta etc; there are plenty of others. You aren’t limited to emailing those on your server, you can email anyone anywhere. You don’t need an account on all email servers to email people on those servers. It’s the same with Lemmy. You’re on beehaw.org, I’m on lemm.ee, and the next post down (on my screen) is on lemmy.ca.

    What if you’re on Posteo but all your friends are on Mailbox? Well you can switch to Mailbox if you want but it’s not necessary. You can still email each other.

    Defederation: if for example everyone on scammersunited.com is a scammer, the admins of your email server might decide to block email from that instance by default. Federation’s just a fancy word for people on Tuta to be able to email people on Runbox.



  • C++:

    int i = 5;
    i ^= printf("The initial value of i is %d\n", i)^
    printf("i=i+1; // this increments i\n")^
    printf("Trigger very obscure FPU bug %c",(int)((float)8.5953287712*(double)8.5953287713-'?'))/10;
    printf("i has now been incremented by 1 : %d\n", i);
    

    Output:

    The initial value of i is 5  
    i=i+1; // this increments i  
    Trigger very obscure FPU bug  
    i has now been incremented by 1 : 6
    

    I didn’t test other values but they’re probably OK.


  • Instead of dropping a system on her that she can’t/won’t use, try asking her what she wants to do. You can explain why passwords need to be different, but you can simplify it by sharing passwords across sites that don’t matter. So someone gets her BBC password and finds they can also use it on the Daily Fail, whoop-de-doo. Different pw for the bank.

    Simplify your own life. You have to do free tech support for your Mum, and to be fair she changed your nappies for years, but everyone else is expected to trade, especially if they expect you to pay for their services when you need them.

    Of course tinkering with something makes it your fault any time anything goes wrong, and the lesson we learn from that is …?


  • Well don’t write 600 lines of code without hitting compile then! You’re not writing an essay that has to be handed in once.

    The only time I ever “write” more than a few 10s of lines at a time (dev since the 1970s, pro since 1991) is when I’m scaffolding a new application with a code generator, and that usually compiles first time. And source control is revolutionary. Check in stuff that works, then no matter how bad things get you can always just roll back to the last good commit. Unpicking the last few hours without source control is horrible. Been there, done that way too many times.

    And even when you do get 700 errors just look at the first few. The rest are most likely junk caused by the compiler not being able to resynchronise with the remainder of the code.