• 0 Posts
  • 16 Comments
Joined 2 years ago
cake
Cake day: August 7th, 2023

help-circle

  • Not really. Using % of forecast area as % chance of rain inherently gives equal weight to your position being anywhere within that area. Even if you limit the forecast area to the 5m or whatever it is radius that smartphone GPS is typically accurate to which a weather app could theoretically do, simply using % of the forecast area covered as % chance of rain inherently gives equal probability of you being literally anywhere within that 5m radius. It would obviously still be more accurate, but those numbers wouldn’t be the same thing.




  • #include <stdio.h>
    
    int main() {
    
    Long long x = 0x7165498511230;
    
    while (x) putchar(32 + ((0xC894A7875116601 >> ((x >>= 4) & 15) * 7) & 0x7F));
    
    return 0;
    }
    

    Might be wrong on a few things here as I haven’t done C++ in a while, but my understanding is this. I’m sure you can guess that this is just a very cheekily written while loop to print the characters of “Hello, World!” but how does it work? So first off, all ASCII characters have an integer value. That 32 there is the value for the space character. So depending on what ((0xC894A7875116601 >> ((x >>= 4) & 15) * 7) & 0x7F)) evaluates down into you’ll get different characters. The value for “H” for example is 72 so that first iteration we know that term somehow evaluated to the number 40 as 72 - 32 = 40.

    So how do we get there? That big number, 0xC894A7875116601 is getting shifted right some number of bits. Let’s start evaluating the parenthesis. (X >>= 4) means set x to be itself after bit shifting it right by 4 bits then whatever that number is we bitwise AND it with 15 or 1111 in binary. This essentially just means each iteration we discard the rightmost digit of 0x7165498511230, then pull out the new right most digit. So the first iteration the ((x >>= 4) & 15) term will evaluate to 3, then 2, then 1, then 1, etc until we run out of digits and the loop ends since effectively we’re just looking for x to be 0.

    Next we take that number and multiply it by 7. Simple enough, now for that first iteration we have 21. So we shift that 0xC894A7875116601 right 21 bits, then bitwise AND that against 0x7F or 0111 1111 in binary. Just like the last time this means we’re just pulling out the last 7 bits of whatever that ends up being. Meaning our final value for that expression is gonna be some number between 0 and 127 that is finally added to 32 to tell us our character to print.

    There are only 10 unique characters in “Hello, World!” So they just assigned each one a digit 0-9, making 0x7165498511230 essentially “0xdlroW ,olleH!” The first assignment happens before the first read, and the loop has a final iteration with x = 0 before it terminates. Which is how the “!” gets from one end to the other. So they took the decimal values for all those ASCII characters, subtracted 32 then smushed them all together in 7 bit chunks to make 0xC894A7875116601 the space is kinda hidden in the encoding since it was assigned 9 putting it right at the end which with the expression being 32 + stuff makes it 0 and there’s an infinitely assumed parade of 0s to the left of the C.



  • Don’t get your hopes up too much, but potentially yes. Congress is the one that has the power of the purse. They appropriate money to be used for certain purposes and the Executive is responsible for spending that money on the things Congress appropriated it for by a certain date from the bill that did the funding. But usually the form this takes is Congress giving a number and the President deciding exactly what to do to meet that number. Any time before that deadline Congress can decide to reappropriate funds for something else. They usually just opt to change the numbers next time around. Biden tried to get them to do this with some sections of border wall that were funded under Trump. So theoretically yes Congress could cancel this later if they wanted to.

    But even if they don’t, if what you quoted is accurate this is probably one of the best case scenarios for us non-Genocide Enjoyers. This means that the Biden admin is eating up $18 billion dollars of the money Congress appropriated for Israel aid to build jets that they won’t get in time to further their genocidal aims. Since that money has to get spent arming Israel regardless since that’s what Congress appropriated it for it’s much better if it goes to expensive shit they won’t get for years than munitions they could use within weeks to bomb more civilians.




  • Those bottles already have that deposit on them in New York State. I regularly see tons of people going around Buffalo picking up bottles and cans to take back to redemption centers for the deposit. All that plastic in the river is happening in spite of that 5 cent redemption.

    Now this part is just an anecdote but the people I personally see most often chucking their bottles on the ground are Canadians tossing them out their car windows. Which makes sense since you can’t take them back across the border with you and still get the deposit back. They’d have to do it before heading back to Canada.


  • Yeah that’s pretty much it. You had multiple virtual desktops that let you have different sets of windows up on each and when you switched between them it played this cool animation of them laid out in a cube that you rotated to the next face. Then the wobbly windows is exactly what it sounds like. They’d jiggle when you dragged them around or when you maximized them.

    Ran like crap on my old laptop I used for school but my god it was necessary to have. Still brings a goofy smile to my face whenever I’m moving windows around today since it’s a thing you can still do in Linux desktop environments. Had I not had my Comp Sci degree pursuits disrupted by chronic illness I’d likely have had a similar experience to OP.





  • I’m theory I like this idea, make the person that killed the parent and remove that support try to replace it. I just don’t know how well it’s going to work in practice. Like, I don’t know how many drunk drivers have a high enough income that any meaningful amount of child support would be derived from this. Not that a drunk driver being poor or not should get them out of consequences. But like my dad weaseled his child support payments down to $25 a month and it was just ridiculous. It didn’t help at all. But some nice karma on him was that all those years of working under the table to lower his child support meant that when the piece of shit got injured and needed to try to get disability he hadn’t gotten enough work credits in the previous ten years.

    I feel like it would probably be better if the state established a fund that they could use to pay out to those kids that they could fund at least partially with fines brought against drivers convicted of DUI. That way we could guarantee some level of support for the kids that lost parents and still force the drunk drivers to at least partially fund it but a kid won’t get screwed just because the drunk driver that killed their parent particularly happened to be poor.