• 1 Post
  • 46 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle
  • 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.


  • 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.


  • Couples can do different things at the same time. It doesn’t mean the relationship is over, on the contrary it means you’re both comfortable with the other being independent. If you both like Chinese and Mexican, have Chinese this time and Mexican next. Or as you say, order from two different places. If you always have Mexican then she’s getting her way all the time which isn’t meeting halfway.

    Women do seem to like showing of their husbands. So you’ll need to go places with her sometimes, providing that you also get some restful weekends at home where she is either present or off with her girlfriends somewhere. If you don’t ever want to do stuff with her then she’s right to be concerned: why did you get together if you don’t actually want to be together?

    Where to draw the line: I’d suggest keeping count. If you compromise all the time and she never does, then that would suggest something of a lopsided relationship. But as others have said, you don’t want to count everything otherwise you’ll be the asshole.



  • how does housing come into being?

    Well one “simple” way is for all the builders to be rolled up into the civil service: the government pays them to do their job, i.e. build houses, which the government then owns and allows people to live in. This must necessarily be rent-free, otherwise the government becomes one massive landlord therefore not solving the problem, and also takes the bottom out of the mortgage market because why would anyone buy when they can just move into government-provided housing without a 25-year millstone tied round their necks. It also creates a ton of job security because it means you can just walk away from a shitty employer without fear of becoming homeless.

    It also drops anyone with a mortgage into the worst possible negative equity problem, which will be a massive problem for a massive number of people, therefore has zero chance of ever being voted in. So for this to work there has to be a solution to the mortgage problem, e.g. the government buys all that housing stock for the current outstanding mortgage amount, but that’s a massive investment into something that now necessarily has zero value, which would likely crash the economy. IANAE so it’d be interesting to get a real economist’s view on how this might all work in practice.


  • Yes of course. Nobody wants someone walking the streets who thinks it’s their right to dish out the death penalty without due process. Who’s he going to pick next?

    That said, obviously with limited resources the police have to pick what cases take priority over others. For example Sheffield police don’t do anything about motorbike theft (even if there’s a tracker installed) because they’re too busy chasing down all those people who hurt others’ fee-fees by misgendering them.



  • So what you’re talking about is for a minority to raise arms against the democratically elected government. again, not what I’m saying.

    Then I recommend you crack open a dictionary and check the meanings of “get organized, involved, and armed”, “stand, fight, and maybe even die” (your exact wording). Because raising arms against a democratically elected goverrnment IS EXACTLY what you are saying, albeit that you might not be saying you necessarily want to start that fight, but it certainly looks like it to me.





  • Sorry I’m not well enough versed in American politics to know who’s blue or red.

    Whether you should vote or not doesn’t depend on the people around you. It is your right to have your say. The result is the cumulative effect of everyone in your area doing the same. Whether you think you’re surrounded by millions of blues or millions of reds doesn’t make any difference. Your perception may be incorrect, and your analysis, that there is literally zero chance that your vote will matter, is incorrect.

    Nobody knows the results of an election until the votes are in and have been counted. It doesn’t matter that your area has always been red, blue, green, turquoise, pink or whatever. Areas can change allegiance, and it is by individuals getting out and voting.

    If you don’t vote, you strengthen the position of those who vote the other way. It is not considered a protest vote because the system would prefer to consider this as voter apathy. If you want to register a protest vote and “none of the above” isn’t an option, find the official way to spoil your ballot paper and do that, but whatever you do, get out and vote.






  • letsgo@lemm.eetoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    8 months ago

    That’s not a real operator. You’ve put a space in “i–” and removed the space in “-- >”. The statement is “while i-- is greater than zero”. Inventing an unnecessary “goes to” operator just confuses beginners and adds something else to think about while debugging.

    And yes I have seen beginners try to use <-- and --<. Just stop it.