elrik
@elrik@lemmy.world
- Comment on It's a matter of perspective 1 month ago:
What? The first ordinal you start counting at doesn’t change the total count, and alternatively the last item would be indexed at 2 if you used 0-based indexing.
- Comment on It's a matter of perspective 1 month ago:
Rectangular prisms have 6 sides though.
- Comment on Pharmaceutical Commercials (sound on!) 2 months ago:
It’s a gif with audio.
- Comment on Big Penny! 3 months ago:
Sure, but what does that have to do with this picture? The bridge looks deteriorated on that leading edge because 75 trucks have crashed into it at speed.
- Comment on Big Penny! 3 months ago:
Or counting has gotten better
- Comment on Suffering 4 months ago:
It really depends on the specifics of the top track. Are people added to the top track just in time to be run over by the trolley, or is the track pre-populated with an endless arrangement of people waiting to be run over.
If it’s the later case, how do people further down the track survive for an unbounded amount of time while waiting to be run over? Do they wait, bound and screaming for an eternity? How do they survive long enough to be alive before being run over?
I need to know if the top track reduces to running over an infinite arrangement of corpses. Or, if trolley time for the top track has some different meaning, such that the trolley brings an end to the finite life lived by each next person on the track.
- Comment on Breast Cancer 4 months ago:
Ductal carcinoma in situ (DCIS) is a type of preinvasive tumor that sometimes progresses to a highly deadly form of breast cancer. It accounts for about 25 percent of all breast cancer diagnoses.
Because it is difficult for clinicians to determine the type and stage of DCIS, patients with DCIS are often overtreated. To address this, an interdisciplinary team of researchers from MIT and ETH Zurich developed an AI model that can identify the different stages of DCIS from a cheap and easy-to-obtain breast tissue image. Their model shows that both the state and arrangement of cells in a tissue sample are important for determining the stage of DCIS.
- Comment on How do you rank sums of single-digit numbers ? 5 months ago:
8+8=16 is absolutely S tier
- Comment on Irresistible 5 months ago:
Richard evaporated, almost instantaneously.
- Comment on Glorious Victory 7 months ago:
Isn’t it available on PS5?
- Comment on It's important to get a good interest rate 7 months ago:
Yes. Effectively you will not have any credit history, so you simply won’t qualify for lower interest credit products or will be rejected on applications that have a credit score threshold.
- Comment on There it is 7 months ago:
That’s awesome - nice work!
- Comment on A photography depicting the construction of the Great Pyramid of Giza - 2565 BCE. 7 months ago:
Only those who could lift more than average survived for the photo, obviously.
- Comment on I just want to view the recipe 8 months ago:
Sure, I agree.
Unfortunately, no such solution currently exists or has been widely adopted.
- Comment on I just want to view the recipe 8 months ago:
I use an app called Recipe Keeper. It’s amazing because I just share the page to the app, it extracts the recipe without any nonsense, and now I have a copy for later if I want to reuse it. I literally never bother scrolling recipe pages because of how terrible they all are, and I decide in the app if the recipe is one I want to keep.
It also bypasses paywalls and registration requirements for many sites because the recipe data is still on the page for crawlers even if it’s not rendered for a normal visitor.
- Comment on Staying for the week at an AirBnB in Rochester, MN. This is what I just found out I'm stuck with. 8 months ago:
You’re in the wrong Rochester!
- Comment on Why do we have an internal monologue? 11 months ago:
It’s the same inner voice speaking thoughts instead of words on a page.
- Comment on Why do we have an internal monologue? 11 months ago:
Read this sentence one word at a time. As you read it, do you hear the words spoken inside your head?
- Comment on I'm locked out of my 6 year old Chipotle account because they now say my email address is invalid when I login. Here is me asking for their help: 1 year ago:
I disagree. You should have validation at each layer, as it’s easier to handle bad inputs and errors the earlier they are caught.
It’s especially important in this case with email because often one or more of the following comes into play when you’re dealing with an email input:
- You’re doing more than sending an email (for ex, creating a record for a new user).
- The UI isn’t waiting for you to send that email (for ex, it’s handled through a queue or some other background process).
- The API call to send an email has a cost (both time and money).
- You have multiple email recipients (better hope that external API error tells you which one failed).
I’m not suggesting that validation of an email should attempt to be exhaustive, but a well thought-out implementation validates all user inputs. Even the underlying API in this example is validating the email you give it before trying to send an email through its own underlying API.
Passing obvious garbage inputs down is just bad practice.
- Comment on I'm locked out of my 6 year old Chipotle account because they now say my email address is invalid when I login. Here is me asking for their help: 1 year ago:
Yes, but no. Pretty much every application that accepts an email address on a form is going to turn around and make an API call to send that email. Guess what that API is going to do when you send it a string for a recipient address without an @ sign? It’s going to refuse it with an error.
Therefore the correct amount of validation is that which satisfies whatever format the underlying API requires.
For example, AWS SES requires addresses in the form UserName@[SubDomain.]Domain.TopLevelDomain along with other caveats. If the application is using SES to send emails, I’m not going to allow an input that doesn’t meet those requirements.
- Comment on Facepalm 1 year ago:
Honestly I don’t understand what’s wrong with the subscription model. You get YouTube ad free and YouTube music.
- Comment on This wasn't meant to happen! 1 year ago:
FedEx has one of the worst phone support systems. It goes out of its way to tell you you’re an idiot for wanting to speak to a human being because you can’t possibly need any more information than what it has already told you. Then it proceeds to just hang up on you.