Better HN
topnewbestaskshowjobs
Log inSign up

CSSer

2,366 karma · joined Mar 15, 2019 (7y ago) · 973 submissions

Sometimes fascinated by pieces of cheese
Submissions

comment 4y ago · link · parent

Go read this section of the transcript[0]

[0]: https://99percentinvisible.org/episode/the-roman-mars-mazda-....

comment 4y ago · link · parent

You're sort of on the right track if you're familiar with URL/percent encoding, actually. I have no idea why, but paraphrased comments by the podcast hosts from the code author (they contacted him) suggest that he was attempting to decode all incoming strings as if they were percent encoded[0] without any failsafes in place. Since "% I" isn't a valid character reference (or even hexadecimal), it chokes on it.

[0]: https://datatracker.ietf.org/doc/html/rfc3986#section-2.1

comment 4y ago · link · parent

Although I don't disagree with your thought here and that was actually the podcast host's/other contributor's original hunch too, this wasn't actually an issue with interpolation. I know it sounds bizarre, but the paraphrasing of the podcast hosts and comments from the infotainment system code author suggest that he was treating all strings as percent encoded[0] without any checks or guards in place. Since "% I" isn't a valid character reference, it chokes on it.

[0]: https://datatracker.ietf.org/doc/html/rfc3986#section-2.1

comment 4y ago · link · parent

Mazda’s response at the time was pretty disheartening too. Pay us for a firmware update and it’ll probably fix it. The owner said ‘no thanks’ because it was too expensive (and honestly ridiculous in principle in my opinion). Now Roman Mars, the owner of 99% Invisible, releases a separate version of every episode with “Mazda safe titles”

comment 4y ago · link · parent

It’s just bad code and even worse error handling. The program runs a heartbeat that lets the rest of the car know all is well when things are running smoothly. When the program hangs, the heartbeat stops. When the heartbeat is interrupted for long enough, it’s programmed to reboot. With that in mind, when the owner queues up the podcast the system attempts to decode an unsanitized string (the podcast title) as if it were percent/URL encoded. When it encounters an error because “% I” is not a valid character reference, it hangs.

The worst part is that the car owner was told that a firmware update would “likely” fix it but they would have to pay for it.

comment 4y ago · link · parent

The last time I bought brazil nuts I was eating them by the handful. I had no idea about any of this. I just like brazil nuts. I guess I made it ¯\_(ツ)_/¯

comment 4y ago · link · parent

I have a car with adaptive cruise control and lane assist, and most of my morning commute (on days when I go into the office) is driven on the highway. Most of the time I don't turn it on because I'm in a self-perceived hurry to get to work, so I forget.

You know what would be really nice? Something that detects when it's safe and reasonable to suggest turning on adaptive cruise control so I use it more. Maybe something like detecting I've driven a few miles at a consistent rate of speed above a certain threshold.

The hard parts are definitely the problem, but there are lots of easy wins left on the table too.

comment 4y ago · link · parent

Thanks for that! Sorry, I was in a bit of a hurry earlier. I should've thought to check the commit authors for the site.

comment 4y ago · link · parent

Thanks for sharing. Is the code for httpyac anywhere? I can only find the repo for the docs. I'm trying to check it out, but I encountered some errors when trying it add it as a global with yarn because I'm running a node version greater v14. The extension also gave me a deprecation warning about Buffer() usage.

comment 4y ago · link · parent

Wouldn’t the water be a problem?

comment 4y ago · link · parent

All our patrons leave glowing reviews!

comment 4y ago · link · parent

From earlier today: https://news.ycombinator.com/item?id=30124754

comment 4y ago · link · parent

> const y = h(g(f(x))); This notation usually does not reflect how we think about the computational steps.

Do others feel this way too? I have to admit I don’t really see it. It seems like a very subjective syntactic decision to me. Why not assign each call to a variable for readability? GC overhead? I guess naming things is hard, so sometimes you’re just going to do things like:

halve(double(triple(5)))

But honestly this doesn’t seem that hard to read to me for reasons that are perhaps beyond me. Granted, JS is my mother tongue, so maybe I’m just brainwashed.

I think I’m also hung up on the use of % because it already has the job of being the remainder operator. Are there other examples in the language where operator behavior changes in different contexts that are similar to this I’m missing (aside from the obvious order of operations or operator associativity)?

comment 4y ago · link · parent

Yes. Everything must be Webkit[0].

[0]: https://developer.apple.com/app-store/review/guidelines/#2.5...

comment 4y ago · link · parent

You're given this warning when you fire up the interpreter (at least in Monterey):

> WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal.

comment 4y ago · link · parent

What impact do you feel local ownership has on quality? Are we talking about the content that is played, the hosts, or the ads?

comment 4y ago · link · parent

It's at least encouraging that it was caught and shut down.

comment 4y ago · link · parent

Of course you'd say that. You clearly work for the salt lobby! In all seriousness though, who stands to benefit from this? In the case of sugar, doctors wanted to suggest limiting it, but lobbyists pushed for the advocation of limiting fat intake instead (which was thought to be just as unhealthy at the time). Sugar was a clear substitute because removing fat makes things taste like, well, cardboard. Off the top of my head, I'm not aware of any substitutes for tobacco products or alcohol. Recreational services, maybe? Even Bowling alleys typically have bars.

comment 4y ago · link · parent

I'd rather be a dog. So what if I do know some discrete math and I do know what it means for a language to have a formal semantics? Does that make me an above average developer or a software engineer?

comment 4y ago · link · parent

Isn't the appeal you're making also refuted by the article?

"not all forms of engineering result in physical processes. In particular, industrial engineering rarely does."[0]

[0]:https://www.hillelwayne.com/post/are-we-really-engineers/#:~....

comment 4y ago · link · parent

First I want to let you know that I didn't take it personally (all in jest), but I've never been so artfully called a dog in my life. Thanks for that :)

comment 4y ago · link · parent

Reading through the whole linked article seems to suggest precisely this too. Unless I'm missing something, all it's saying is that if you exercise routinely for >1 hr at a time it's more likely that a doctor may mistakenly diagnose you with a cardiovascular disorder because of the characteristic changes in your heart as a result of repeated exercise, especially if they're not aware that you do exercise often. So they have to be careful when evaluating patients who exercise for heart conditions so as to not misdiagnose a collection of otherwise benign characteristics as a more severe disease requiring treatment. In short, athlete's hearts are a little different; evaluate patient with this in mind.

comment 4y ago · link · parent

GP might’ve pulled the wordlist from the site. It’s in the bundle iirc.

comment 4y ago · link · parent

I love the bio bit. That's a hilarious and really nice touch.

comment 4y ago · link · parent

It amazes me how many pilots I see on here when the topic comes up. Is it because this site is just popular enough to have a mix of everyone or is there some true demographic overlap here?

comment 4y ago · link · parent

> As they're leaving behind a network, a likely fractured group of friends

I'm not sure how exactly to say this, but I imagine it's a lot less worse for us than it could be if we worked in many other professions. I get the impressive that relative to a lot of careers and industries, our network and even friend group in many cases is much more global by nature.

Of course, you can't go throw a frisbee with your online friends, so they'll have to find new people to do those things with. I guess I'm just trying to say that if there's any demographic that could keep in touch if they want to, I get the impression that we're it.

comment 4y ago · link · parent

That is odd. Yet a strict check against “hulu.com” is also included, and YouTube is checked for “.youtube.com” and “youtube.com”. Perhaps this fix was to prevent malicious behavior, so they included anyone who might be phishing or abusing the API in some way? I think someone would have to dig into the quirk itself to find out more.

comment 4y ago · link · parent

Wow, thanks for the share! I had no idea there were that many temperature sensors throughout the board.
1
272829
33