Better HN
topnewbestaskshowjobs
Log inSign up

Unklejoe

2,047 karma · joined Apr 30, 2015 (11y ago) · 616 submissions

Submissions

comment 3y ago · link · parent

> You can also set init_on_free=1 in linux cmdline, the kernel will overwrite freed memory.

Does this only work with kernel buffers? I’m wondering how glibc handles freed memory. I feel like there’s a good chance it doesn’t always notify the kernel that the memory has been freed.

comment 3y ago · link · parent

Can we talk about capacitive buttons while we’re at it? Worse in every way from a usability perspective. Supposedly more reliable, yet I’ve had plenty of failures.

My damn dishwasher has capacitive buttons…a dishwasher - something you use while your hands are wet like 90% of the time. Infuriating.

comment 3y ago · link · parent

BMW uses a rotary encoder for their iDrive thing. I have it in my 2011 3 series.

People trash talk it, but I actually like it.

comment 3y ago · link · parent

I’d become a burner technician for boilers. You have to be technically minded so there are some barriers to entry, and it’s basically critical infrastructure so there’s some security. They also get paid well.

comment 3y ago · link · parent

Cars didn’t really start getting wireless CarPlay until around 2021. It would take a while for those cars to age out. My guess is that if Apple makes a portless iPhone, they will also make a wireless to wired CarPlay bridge.

comment 3y ago · link · parent

There is a serious push to find a way to tax electric car owners to make up for the lack of a road tax that’s normally rolled into gasoline prices. Some people will propose tracking the mileage, while others will resist that idea because of privacy reasons. It will be debated here on HN.

Kind of a cheat guess since it’s already starting to happen now, but I expect it to intensify as more and more people get EVs.

comment 3y ago · link · parent

It’s actually kind of cool to see Mastodon being enough of a threat to be talked about these days.

comment 3y ago · link · parent

> That seems to suggest that folks who have goods stolen from their stores would be justified in using violence to stop the thieves?

I’d be happy with a store owner not being liable for injuries if they tackle someone who is trying to steal from their store and the thief ends up getting hurt.

I don’t think they should be able to start blasting thieves with a gun but you should be able to use some reasonable amount of force. Let a judge decide whether it was reasonable or not.

comment 3y ago · link · parent

You could use heat exchangers (coolant) with a thermostat. It would stay closed until the batteries reached a certain temperature then it would dissipate heat through a radiator. Just like a coolant system on an ICE car.

comment 3y ago · link · parent

> BUT ALSO shot out of an "injector" to fall precisely into alignment with the lasers, in vacuum within a plasma field...

It does sound like magic, but doesn't EUV involve some process similar to this? Something about shooting drops of tin with a laser? That sounds like magic to me too but is apparently a thing. Obviously two totally different things, but the level of magic to me is the same.

comment 3y ago · link · parent

One thing I've always wondered about is how the ECC is handled on a modern SSD with regards to data retention.

SSDs often have a data retention spec that basically defines how long you have until your bits start flipping, and it usually falls off a cliff w.r.t. temperature, which can make SSDs non-ideal for offline backups.

However, I've read that reading from the SSD periodically allows it to detect these errors. Some say that even keeping it just powered on is enough.

My question is, do SSDs run some sort of internal scrub while they're powered on? I don't think so, based off of some power consumption tests I've done.

Also, if they do detect an ECC error, will they actually re-write the block in question, or just correct it and return a successful IO, while leaving the compromised data still on the media?

comment 4y ago · link · parent

Not surprised to see you on here. I was the guy who got into the discussion about the merits of single mode vs multi mode with a few of your friends on Facebook a while ago. I was in the multi mode camp mainly due to cost reasons whereas they were in the single mode camp for future proofing reasons.

That said, the cost gap between MM and SM optics today is much smaller especially for 10G (and for the fiber itself it seems to have even reversed), so single mode definitely makes more sense. For some reason, MM fiber is still widely deployed in certain niche use-cases though. Not quite sure why.

For example, I know that it's used on modern military jets for their 10GBASE-SR networks. I wonder if it has something to do with being able to repair terminations in the field? I know MM is pretty forgiving that way. Or maybe it's just another case of them adopting whatever was popular at that exact moment.

comment 4y ago · link · parent

You can attach a string to a foam ball/plunger type thing and then suck it through with a vacuum from the other side. Then, fix your wire to the string and pull it back in the other direction.

comment 4y ago · link · parent

Another example is how garage door opener trip-beams work (the sensors that detect if something is in the way before lowering the door).

The transmitter and receiver are wired in parallel and connected to a power supply through a series resistor. When the receiver receives the signal from the transmitter, it pulls the supply voltage down, which then causes the transmitter to stop transmitting, which then causes the receiver to stop pulling the supply down, and the cycle continues. The end result is that if there's no obstruction, the supply voltage pulses and the system checks for this. If there's any other type of condition, the signal is either 0 or VCC. Basically, the system is designed so that false positives are extremely unlikely since that's the worst case scenario.

There's some capacitors in the transmitter/receiver to control the frequency.

comment 4y ago · link · parent

It’s fine for debug builds, but people should be aware that building with the address sanitizer enabled balloons the size of the executable and slows it down tremendously.

comment 4y ago · link · parent

I’m not sure about that. Most cars can stop way faster than they can accelerate. The differences in force would be even more extreme for front wheel drive cars where the weight transfer allows for more grip on the front wheels during braking compared to accelerating or peeling out.

comment 4y ago · link · parent

There were basically VPN services back in the day that would allow you to play Halo CE over the internet with strangers (the game would think it's on a LAN).

This was before Xbox live (Halo CE didn't support live AFAIK), then even afterwards for modded consoles that got banned from live.

comment 4y ago · link · parent

Corded electric mowers are very rare in the USA. I live in a suburban neighborhood in the North East and have never seen one in my life. I see some battery powered ones though.

I wonder if it’s due to our outlets being 120V? We’d be limited to less than 2.5 HP with a normal outlet, whereas gas push mowers typically have engines in the 5-7 HP range.

comment 4y ago · link · parent

Wow. I had no idea that was something that could happen. I would have expected you to wake up before damaging yourself like that - sort of like falling asleep in the bath tub.

comment 4y ago · link · parent

My problem with that is:

> significant decline in economic activity

What is "significant"?

> more than a few months

How long exactly?

All I gather from their description is that they basically just get a "feel" for it. That's why so many people choose to follow the two negative quarter thing - it's objective and clearly defined, but maybe less accurate (particularly in cases like now where unemployment is still really low).

comment 4y ago · link · parent

I'm shocked to see people here arguing for keeping leap seconds, accusing the Meta engineers of just being lazy.

Leap seconds are stupid in my opinion. Under no circumstances should a timescale have discontinuities like that.

12345
21