1,882 karma · joined Sep 22, 2012 (14y ago) · 201 submissions
comment 1y ago · link · parent
The nice thing about container-based systems is that all the existing documentation for configuring a given program continues to apply as expected. Of course the tricky part is figuring out how to compose them together.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
I've already decided that my personal line in the sand is when they replace the scenic screensavers on Apple TV with ads, something they're already toeing the line with in the newly added Peanuts screensavers. At that point Apple has lost the plot and I want nothing to do with their products anymore.
comment 1y ago · link · parent
- It took me a second to find auto-pause. Maybe some of those things in the settings menu could be more accessible, similar to how Spotify puts shuffle/repeat icons near the play button.
- I would really like the arrow keys to move back and forth between auto-pause points.
- Regarding auto-pause, it seems to clip off a little early, maybe consider extending the duration or adding a little bit of overlap?
- When clicking to define a word, "Define in Context" is a nice feature to have but is maybe a little slow (and possibly expensive on your end?) to have as a default. I think just opening a static dictionary lookup by default would be nice. With Japanese, I am able to work around this with the Yomitan browser extension though.
- I probably wouldn't use the spoken translation feature, but when I tried it, the voice sounded very robotic considering the high standards for AI-generated voices these days. Though I imagine a better voice might be a cost barrier.
Please don't take this as harsh criticism, just some initial impressions. Overall I really like the idea and will likely continue to use it for listening practice.
19.
Apple Intelligence Isn't Driving iPhone Upgrades(macrumors.com ↗)
4 points · by dmart · 1y ago · discuss
comment 1y ago · link · parent
You can absolutely have two different enum variants from the same source type. It would look something like:
#[derive(Debug, Error)]
pub(crate) enum MyErrorType {
#[error("failed to create staging directory at {}", path.display())]
CreateStagingDirectory{
source: std::io::Error,
path: std::path::PathBuf,
},
#[error("failed to copy files to staging directory")]
CopyFiles{
source: std::io::Error,
}
}
This does mean that you need to manually specify which error variant you are returning rather than just using ?: create_dir(path).map_err(|err| MyErrorType::CreateStagingDirectory {
source: err, path: path.clone()
})?;
but I would argue that that is the entire point of defining a specific error type. If you don't care about the context and only that an io::Error occurred, then just return that directly or use a type-erased error.comment 1y ago · link · parent
comment 1y ago · link · parent
I think that would have been the single biggest improvement to the Python onboarding experience ever.
23.
Based Static Typing for Python(github.com ↗)
3 points · by dmart · 1y ago · discuss
comment 2y ago · link · parent
If ICANN really chooses to break every GitHub Pages, crates.io, gcr.io, quay.io, etc. URL just to blindly follow a policy, then they will have proven themselves an incompetent arbiter of the domain name system. This feels so unlikely that I'm not worried about it all.