Better HN
topnewbestaskshowjobs
Log inSign up

robostac

14 karma · joined Jul 4, 2013 (13y ago) · 6 submissions

Submissions

comment 3y ago · link · parent

If it thinks it's going to be plugged in for a long time (based on previous usage) it'll pause the charging around 80% to preserve the battery health.

https://support.apple.com/en-us/HT

comment 4y ago · link · parent

https://docs.pi-hole.net/ftldns/blockingmode/

Pihole has many options for different blocks, but all have downsides.

comment 5y ago · link · parent

QEMU does do x86 emulation (and UTM provides a nice frontend) but it's not something I'd want to use often as the speed is horrendous.

comment 7y ago · link · parent

I used this years AoC to learn rust and had similar issues with input parsing. I found a fairly simple parsing crate (https://docs.rs/scan-rules/0.2.0/scan_rules/) which helped a lot with the simpler inputs (day 24 was still a pain). It pretty much exactly matches the format you described.

comment 9y ago · link · parent

This means that using auto for iterators (which is one of the most useful uses in my experience) wouldn't be allowed.

comment 12y ago · link · parent

They might not have the ability to do that - I could quite easily see the bit of code that can tell if its fake being the same code that bricks the device. Maybe all the real ftdi chips will reject a PID of 0 (as it's invalid), while the fake ones accept it.