HNHacker News
TopNewBestAskShowJobs

potatochup

491 karma · joined January 22, 2019

submissionscomments
potatochup··on GCC Rust Approved by GCC Steering Committee
Yup. We have microcontrollers that we'd like to write rust on, but we can't because llvm doesn't support the architecture.
potatochup··on Homeland security workers indicted in scheme to silence China critics in U.S.
I always thought it was "the featured article"
potatochup··on BMW F Series Gear Selector, Part Two: Breakthrough
Usually there is a whitelisted set of messages available through the OBD port, it doesn't give you unfettered access to the CAN bus.
potatochup··on In defense of blocks for local scopes
Hmm. Now you've got me thinking about the most ergonomic way do define a block in python. Maybe a no-op context manager? So you could do "with scope():"

I admit to using block scopes in rust a fair bit

potatochup··on Uber Halved Go Monorepo CI Build Time
The problem of rebasing off a broken main can be kinda avoided by keeping a separate "last-built/main" branch around that is automatically updated. People have to be quick about fixing main when it breaks though, else they get out of sync.
potatochup··on Lidar industry unites to make roadways safer for pedestrians
A related thought: if autonomous cars always prioritize pedestrians, I wonder what will happen to downtown main streets? Will you still have to give way to cars crossing the road? Or will there be enough pedestrians that you could simply walk across the road at any point and the cars will be forced to wait?

The traffic lights around me are really annoying for pedestrians, you have to wait for ages. I'm happy just crossing on a red if there is no traffic. But maybe if every car is autonomous, I would just make cars wait for me?

potatochup··on Endocrine-disrupting chemical exposure in womb impact fear, anxiety behavior
It could be that some people are sensitive to nickel (which is the 10 in typical 18/10 stainless steel)
potatochup··on Ambulance waits: 'Can you please tell them to hurry up or I shall be dead'
It's not like the free market is immune to supply shocks either. E.g. Overbooked planes. It's never efficient to aim for 100% availability.
potatochup··on What Bosses Lost in the Fight Against Empty Offices: Leverage
Or just any nice commute. My current commute is either a 20min lazy cycle or 40min run through a park. Nice showers at either end. Very few cars, lots of trees, flat paths. Often the best part of my day.
potatochup··on EU reaches deal to make USB-C a common charger for most electronic devices
Random anecdote: I once got stuck at a friends place in Denmark with my Tesla, because the mobile connector wouldn't work. Turns out despite the voltage and socket being the same, the grounding can vary between countries and the connector wouldn't let me charge (this was back in 2016, I'm not sure if newer mobile connectors are better in that regard)
potatochup··on Tesla won’t give drivers their own crash data without a court order (2018)
Yes. Regen is only capable of what the battery can take in, which is limited at high SoC or cold temps. E.g. see https://electrek.co/2022/05/25/tesla-updates-car-software-re...

You still need friction brakes for everything else, which in Teslas (and most other cars) are hydraulically actuated.

potatochup··on Tesla won’t give drivers their own crash data without a court order (2018)
To most people, brake-by-wire means totally electronic control. Tesla's current models are only electronically assisted (in that there is an electrically powered hydraulic pump). There is still a physical connection between the brake pedal and the master cylinder. This means you are still available to provide some braking force if you loose 12v entirely.

See https://www.evcreate.nl/wiring-the-tesla-ibooster/ as an example

potatochup··on Tesla won’t give drivers their own crash data without a court order (2018)
The brake pedal is physically connected to a hydraulic cylinder. You need to be very strong to fully engage the brake pedal, such that many vehicles, when presented with a sharp brake pedal stab, will electronically increase the amount of brake pressure given (because the system assumes you want to stop, but the driver may not be strong enough/have the right feeling for where maximum pedal application is). If you did this at speed, you'd probably engage ABS which tends to mess with the force-feedback though.

On the other hand, the accelerator pedal is just a sensor, it doesn't require as much force to fully depress. I'd estimate the force required to fully depress the accelerator pedal to be 1/3 of the brake pedal.

potatochup··on Japan tested a giant turbine that generates electricity using deep ocean current
Related, underwater tidal turbines in the Cook Straight, NZ https://www.sustainableseaschallenge.co.nz/our-research/ener...
potatochup··on What a gas stove ban means for restaurants
Our heat-pump water heater is outdoors, so it doesn't cool the house down any further. Our hot water cylinder is also able to heat water if the heat pump can't keep up.
potatochup··on The Weight I Carry (2019)
I very humanizing account. I've had the blessing of having a very fast metabolism, even in my thirties I'm in the "underweight" BMI category despite eating whatever I want. I'm petrified it'll slow down at some point, and I'll get fat because I have no self control, as I've never needed it before.
potatochup··on The benefits of “low tech” user interfaces
My chevy bolt is a nice mix I find. It has physical buttons for: climate controls, cruise control, media volume, media channel, lane keep assist, sport mode, gear selection, park brake. There are also voice commands, which I use for selecting navigation destinations.

Touchscreen for other things: android auto, apple car play (which provide maps) and more complicated user settings (such as whether you want the lights to stay on after you turn off the car for a while)

potatochup··on Researchers demo Bluetooth relay attack against Tesla
I can't tell if your last sentence is sarcastic? But a Tesla doesn't call home to authenticate the kefob. Otherwise you'd never able to start the car outside of cellular reception.
potatochup··on Bluetooth relay attacks allow Tesla Model 3 / Y to be unlocked and driven away
I also imagine running the cameras would suck a lot more juice out of the battery than a few BLE radios.
potatochup··on Researchers demo Bluetooth relay attack against Tesla
Tesla uses BLE for their keyfobs as well. They probably just didn't consider it worth it to add additional hardware to prevent these attacks, especially when it has to be compatible with your average consumer smartphone back in 2017 (model 3 release date). You could have two separate radio systems, one for the keyfob, and one for the phone (and then correlate the phones GPS with the measured location), but that sounds expensive and complicated.

BLE has some other mechanisms for determining the proximity of a device, such as Time of Flight (ToF) and Angle of arrival (AoA). I'm unsure if Tesla uses these, or if the reachers were able to circumvent them.

Time-of-flight: https://software-dl.ti.com/simplelink/esd/simplelink_cc2640r...

Angle of arrival: https://dev.ti.com/tirex/explore/node?node=AOSUfCXMkNaUAy6wn...

potatochup··on Researchers demo Bluetooth relay attack against Tesla
Interestingly enough, apple has UWB on some of their newer phones, which would make these attacks a lot harder. https://developer.apple.com/nearby-interaction/

I imagine you would use UWB for the location, and BLE for authentication/data transfer though.

potatochup··on Researchers demo Bluetooth relay attack against Tesla
This is exactly the kind of methodology the attack in the article uses though. BLE peripheral devices are usually allowed to miss connection events to preserve battery life, and to increase the reliability of the connection in noisy environments. The attack exploits the ambiguity between "the transmission was intercepted and relayed with an additional 8ms" and "the phone/keyfob skipped a connection event". Allowing no missed connection events would probably make the system frustratingly unreliable as you'd constantly be re-connecting and re-authenticating with the phone/keyfob.
potatochup··on Actual is going open-source
Not the OP but I'd love to do something that contributes to the local community in a more tangible way than my current $BIGTECH job. I'd love to start a dance studio, a cafe/bookstore, a makerspace. But it'd be a huge pay cut, assuming I could even make a successful business out of it.
potatochup··on Airbnb’s design to live and work anywhere
I'm surprised no one has mentioned corporate tax yet. A worker in a foreign country (potentially) exposes the home company to corporate tax by the foreign company. Ianatl and there are probably a million caveats, but I've had multiple companies and tax people warn me about this.

Imagine Apple USA being taxed by New Zealand, for example. That's the main reason Apple employees are employed by Apple NZ

potatochup··on Parking kills businesses, not bikes or buses
I'm from NZ, but live in the USA. The same car-centric issue talked about in the article is common both many USA cities as well as Auckland.

The most pragmatic proposals I've seen revolve around optimizing for the most common trips, rather than trying to completely eliminate cars. Optimizing for the easiest 80%, if you will.

For most households, the easiest 80% to mode-change would look something like: - schools within walking distance - shops/cafes/restaurants within walking distance (either by removing euclidean zoning, or creating new, small retail zones) - better public transport specifically targeting the most common destinations (e.g. a central business district) - improving walking/cycling infrastructure so people aren't risking their lives when doing shorter trips

People are still going to want/need cars to go to the beach, home improvement store, etc, but that's fine, because these make up a minority of total trips taken.

Auckland is very suburban outside the center, but the older and newer suburbs have mixed use zoning which manages to support a few cafes, restaurants, shops per suburb. The middle-age suburbs are the worst for walkability. The population of NZ is increasing, and most of the cities are expected to increase in density, rather than size, which should mean more retail can be supported within a shorter distance to everyone. It remains to be seen enough mixed-use/retail zoning gets allocated in existing suburbs though.

I'm not sure how this would play out if the population was stable though. Possibly then like belval says, it would take 50-100+ years as housing stock gets rebuilt in different configurations.

potatochup··on Speedcam Anywhere – catch speeding drivers from your smartphone
This is not a charitable response. Vehicles accidents often harm the innocent in a random fashion (the only way to avoid being impacted by dangerous drivers would be to never go near a road) but the victim of heart disease is also the perpetrator in your case.
potatochup··on Elon Musk to join Twitter’s board of directors
Racing cars and environmentalism is cooler than optimizating ad revenue.
potatochup··on Stem cells may finally offer a cure for Type 1 diabetes
The article is light on detail (I couldn't view the video). It claims to use stem cells to create new insulin-producing cells in the host body, but what prevents these new insulin producing cells from being attacked by the immune system like the original ones were?
potatochup··on I built a receipt printer for GitHub issues
I've done code reviews on paper, although mostly when I want to understand something, not for review purposes.
potatochup··on Rust Keyword Arguments, Optional Arguments, and Variable-Arity
Me too. And IDE helps a lot (because it'll inline the argument names for you) but code reviews and etc are still difficult sometimes
← PreviousPage 5 of 8Next →