HN user

HalcyonCowboy

29 karma
Posts0
Comments13
View on HN
No posts found.

Thanks for being skeptical, looked it up because of that. Looks like the primary study people cite is this one, which indicates around 65% of people filing for bankruptcy cite a medical contributor of their bankruptcy. That includes medical bills (highest contributor overall) and loss of income due to medical issues.

https://pmc.ncbi.nlm.nih.gov/articles/PMC6366487/

I’d like to see what information you have that’s different though.

The person you replied to specifically listed multiple studies that do account for socioeconomic factors. Take a look at the second paper, and in the introduction you’ll see that they did sub group analysis for multiple socioeconomic factors. I.e. among people of the same geographic, economic, and ethnic backgrounds, those with higher ACE were at higher risk for a bunch of diseases.

Not to say that I think it’s useful to focus so much on personal trauma outside of therapy, I don’t. But dismissing evidence presented to you without engaging with it doesn’t feel useful either.

Brilliant write up, glad you made the effort.

Trying to understand better where the JWT vulnerability was here, you said: “So you could log in with my username and password, grab the JWT, and then send that along with your request.”

Am I understanding here that you weren’t validating the sub/userId or role in the JWT? I.e. any user with a valid JWT could hit the admin api endpoints? Or did I misunderstand that?

I mean, as someone who's played drums from a very young age (30+ years now), I disagree with that description of how playing drums works. I went ahead and looked up that phrase, and it seems to be popular in the last couple of years, but it's the first time I've heard it. I'd honestly liken it to typing; each of your fingers are attempting to accomplish independent goals along with your other fingers to accomplish a coordinated task. In percussion, your limbs are maintaining rhythms separate from each other, but need to coordinate as a whole to express the overall phrase, rhythm, and structure of the music you're playing. When you're first learning a new style (the various latin beats are great examples), it can feel very disjunct, but as you practice more and more the whole feels very cohesive and makes sense as a chorus of beats together, not separate beats that happen to work together.

Nah, it's fine to be nitty. If you glance at my comment again, you'll see my usage devolve from A to amp halfway through, my brain can't help but write what it sounds like to me.

Yes though, ampacity is the correct word (for my home country). "Current" is an instantaneous measurement of current flow. That they use the same unit is pretty convenient for planning circuits. https://en.wikipedia.org/wiki/Ampacity#:~:text=Ampacity%20is....

It's not dangerous in practice. Reading through NEC in the US, there's plenty of leeway for mixing ampacity ratings on circuits, within certain limits. For example, it's fine to have 10x 15A duplex on a 20A circuit. It results in less wiring, and allows for logical grouping of circuits. Electrical code starts from the the most common causes of electrical failures, and tries to design down from there. The ampacity ratings on devices and various components of the circuit are designed to reject the common causes of failure, and conductor failure at the device isn't one of them (appliance manufacturers are more likely to get their devices certified, so if there's a failure in the appliance, some other part of the appliance's electrical system will fail before the conductors do).

So the ampacity of the connector (duplex and plug) is meant to reject certain combinations (plugging a 30amp appliance into a 15amp duplex/circuit). It's obviously very easy to get around that by just wiring things together wrong (18AWG wire on a 30Amp circuit), but by design, a 30amp appliance with the proper plug cannot be plugged into a 15amp outlet.

Of course, this is informed by the electrical code in my home country, so I understand that other places and people have different experiences, but electrical accidents have been on a steady downward trend since the 80's, so the NFPA NEC has to be doing at least some things right.

This is not true since the vast majority of electric whole home heating units sold today are heat pumps, which are up to 300% efficient [1]. If the power generation and distribution is 33% or higher efficiency, then a heat pump will outperform a natural gas furnace operating at 100% efficiency.

EDIT - Here's a video that explains it much better than I could, although it's a bit long, this YouTuber is great. [2]

[1] https://tristate.coop/advantages-heat-pumps-energy-efficienc... [2] https://www.youtube.com/watch?v=MFEHFsO-XSI

Yeah, case three was the one I was thinking of, though cases one and two are interesting as well. Number two requires you to think about using an arithmetic or logical right shift, though I'm struggling to think of a situation where you'd be promoting types and then not know what your intent was if you're then doing a right shift. I guess my confusion here is simply related to the idea that if you're getting that deep into binary, you'd probably want to be more explicit about what types you want to promote to, rather than relying on the Julia defaults. It's been a while since I've needed to think deeply about bitwise operations, still just as interesting as I remember.

It took me a couple of readings to make sure I understood what you were saying, thanks for the reply. I think my misunderstanding was from not knowing Julia and thinking about promotion of values as having a permanent effect on the variables used, which isn’t what’s happening. As well, it requires the user to understand what they’re doing when they’re using an operator that uses automatic promotion, and to think about what they want to happen. For example, if Int8 = -10 and UInt16 = 5, and I’m expecting an answer of -5, then I’ll need to be more explicit to get the number I’m looking for. If I’m expecting 65530, then the implicit promotion works fine. Of course, this is no different from any other programming language that allows addition of differing types.

Great point on the path dependence.

Wouldn’t that last example be incorrect mathematically? For example, if the Int8 was -10 and the UInt16 was 10, what would that casting do? Would a better promotion be Int32 for both? Just curious, Julia is a language I’ve been very interested in using for a long time, just haven’t had the opportunity to sit down and learn yet.

Haha, this happened to me for the first time recently. Asked a question, didn’t get any answers, ended up updating my post with the answer I eventually found. Even had a couple of responses thanking me for the follow up. Five years later, ran into the same problem and forgot the answer, my answer was the top result on google.