• 10 Posts
  • 795 Comments
Joined 1 year ago
cake
Cake day: August 4th, 2023

help-circle



  • I once had an interesting conversation with a nurse at my GP’s office. I was scheduling an appointment with my GP. The nurse asked what I wanted to see him about. I mentioned light headedness, dizziness, globus, chest pain, palpi-

    She stopped me at “chest pain” and said “I’m going to write down chest pressure, because otherwise, they’ll send you to the ER.”

    At the time, I was scheduled for all the heart tests you can think of and a few neurological tests and had been having chest pain daily for months during which I’d had plenty of heart tests already. And the nurse was familiar with my case. Had she not been, she definitely would have just sent me to the ER.

    She made the right call. All the heart and brain tests came back fine. Nobody ever saw fit to give me a diagnosis beyond “your nervous system is too sensitive.” (I asked if he was talking about “dysautonomia” and he agreed to that. Not a “diagnosis” per se, but better than nothing.)














  • Yeah, #2 is both more space efficient and more time efficient.

    How I’d generally do something like that:

    1. Create an empty linked list.
    2. Generate a random integer between 0 and 51 inclusive.
    3. Iterate over the linked list and increment the random integer by one for each integer in the linked list less than or equal to your newly-generated random integer. You can break out of that loop as soon as you hit the first integer in the linked list greater than the newly-generated integer.
    4. Binary insert that integer into the sorted linked list.
    5. For the denomination, output the newly-generated integer modulus 13 plus one. Translate 1 to ace, 11 to jack, etc.
    6. For the suit, output floor of the newly-generated integer divided by 4 plus one. (Translate zero to “hearts”, one to “diamonds”, etc.)
    7. Loop back to step 2 51 more times.

    Step 3 can definitely be optimized much more with a B-tree and a little thought. If you want jokers included, it’s pretty straightforward. (Just change step 2 to generate a random integer between 0 and 53 and tweak steps 5, 6, and 7.)


  • “Dysautonomia.” Which my doctor hasn’t stuck his neck out so far as to say was from COVID, but it was. Heh.

    I was an “early adopter” of COVID, so there weren’t tests yet when I started having symptoms, so I guess take it with a grain of salt because I don’t have a positive test result. But all the weird symptoms I had match up with COVID – though to be fair it’s really wild the range of different things COVID can do to you – and there were visitors from the London office at my workplace just a few weeks before I had that syncope and subsequently got long-term sick. (I’m in the U.S.)