Hacker News new | past | comments | ask | show | jobs | submit | more kam's comments login

The reserved values can be used as tags in outer enum types. For example `Option<bool>` might encode `None` as 2. If you did `Some(transmute::<bool>(2))` it'd turn into `None`.


They say that OpenWrt 19.07 and 21.02 are affected, but as far as I can tell, official builds of OpenWrt only use the mt76 driver and not the Mediatek SDK.


It’s similar for Ubiquti:

https://community.ui.com/questions/CVE-2024-20017/b3f1a425-d...

There are vulnerable drivers for some chipsets used by UBNT hardware, but they have zero products that use those drivers.


> The only gripe I have with Rust's unsafe is that I can't mark methods with preconditions as unsafe while still requiring `unsafe` clauses within the function body.

This is being fixed in the 2024 edition. Or now, with `#[warn(unsafe_op_in_unsafe_fn)]`.


Music to my ears, thanks!


`parse` is actually an inherent method on `str` that always exists: https://doc.rust-lang.org/core/primitive.str.html#method.par...

Its return type is generic, and here it's inferred from the left hand side. It's implemented using the `FromStr` trait, and you can equivalently write `Timestamp::from_str(t)`.

You're thinking of the "extension trait" pattern for using traits to add methods to existing types when the trait in scope, but that's not what's going on here. Jiff's `ToSpan` mentioned above is an example of that pattern, though: https://docs.rs/jiff/latest/jiff/trait.ToSpan.html


It says it encrypts the SPI flash with a PIN provided over USB on every boot...but if you can trust the host to store/handle the PIN, why can't the host do the rest of the cryptography too?


FLIR Chameleon3 connected via USB to a Intel Atom Linux SBC running ffmpeg to encode the video.

See EDLCAM in https://link.springer.com/article/10.1007/s11214-020-00765-9


I am really surprised they are using essentially off-the-shelf USB cameras. I guess if it works, it works, but surprising that they didn't need to design circuitry to work in a space environment.

I am guessing the requirements for circuitry operating on Mars isn't quite as much as a spacecraft or satellite, but it is still getting hit with cosmic particles and solar radiation with no atmosphere.


This is literally the most prominent thing on the https://ipinfo.io home page.


That's embarrassing for me... I thought that was a static image of an example. And I did look through the site looking for a search. Oops.


Huh, that's cool. It got my home IP about 15 miles from where I am, but still not bad.

Wait - how does this work for cell IPs? A lot of cellphone v4 IPs are now shared between hundreds or thousands of devices, right?


I work there, and I am supposed to know these things, but I don't exactly :/

It probably has something to do with important routers. What tags do we show when you visit the IP data page? The IP data page can be accessed by visiting ipinfo.io/<IP_address>.

We use the generic term "data experts," but it actually consists of about 2 dozen engineers, including data engineers, data scientists, infrastructure engineers, backend engineers, and a great technical CEO working on all that. All those folks have gone on a boating trip off the coast of Spain for a retreat.....except for me.

I will ask them and try to circle back with some answers.


And archivists. And people who prefer a different video player app or unsupported device.


They didn't take contributions under the MPL. They required their CLA too, giving them the rights to do this.

Contributors should consider it as a red flag when a project isn't willing to accept inbound contributions under the same terms as they grant to others.


They stopped sounding the alarm because they largely won that battle: The previous electronic voting machines everyone objected to had no paper trail and there was no way to verify that they were trustworthy. Modern electronic voting systems count paper ballots, and a recount can verify them by hand.


Riiight. That's probably why we stopped doing exit polls, after many double digit discrepancies in 2016.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: