I had been wondering - "if I create my own iterator structure, how do I implement map and all the rest on it?" During this talk it clicked for me why I don't have to.
Also loved the bit at the end between bound and unbound.
A waltz through iterators in #Rust, while discussing how type-driven API designs can help.
@esther this article helped me with my #Rust error handling... I regularly find myself checking back in on it, actually.
https://nick.groenen.me/posts/rust-error-handling/#application-errors
That's the Application section, which is most of what you're talking about in your post. But I find myself the API section more, then only needing some of the application patterns and not actually using the anyhow crate.
https://blog.ammaraskar.com/roku-tv-philips-hues/
A great walkthrough of finding bugs and putting them together to get execution on an embedded device. I especially appreciate this because I have a couple old #Roku at home and now I can consider using them as general purpose Linux boxes.
@albnelson Imagine there's no Mordor...
Another year, another blog post. I'm closing out 2022 by channeling my inner
@fasterthanlime with a deep dive into the basic TFTP protocol and my approach
to parsing packets in Rust. Please enjoy!
https://tuckersiemens.com/posts/parsing-tftp-in-rust/
#rust #rustlang #rustdev #tftp #networking #parsing #nom #blogging
A sad story about User Agent strings.
https://miketaylr.com/posts/2022/12/how-the-IE-11-ua-string-broke-sites-in-firefox.html
Just had a fantastic virtual #LANParty with some high school buddies. #JustinCON 2022 baby, one for the books.
@ceoln @obi lol, bookwyrm. I'm on an Android phone right now, but following that method above, then clicking the finished date brought up a date picker, the date picker had a "clear" option, that worked for me.
Maybe it's a browser difference, it maybe you're getting to a similar but different dialog. I like bookwyrm quite a bit, but there are a few different ways to accomplish the same thing sometimes, and they don't all feel the same unfortunately.
@ceoln @obi if I navigate to a book page, then click the drop down for lists to add it to (default says "want to read"), then select "read" to mark to as already read, there is a started and finished reading date field with finished defaulting to today. But you can delete that and still click post/submit.
Whoa, I didn't know rustdoc had an (unstable) "scraped examples" feature. #rust
See it in action on the aws-sdk-s3 docs: https://docs.rs/aws-sdk-s3/latest/aws_sdk_s3/error/struct.HeadObjectError.html#method.unhandled
Docs: https://doc.rust-lang.org/nightly/rustdoc/scraped-examples.html
@lazzarello that's a pain. Probably email from GCP instances has a hard time getting through spam filters anyway... Can you forward email to a service like AWS's SES?
I'm not sure why a container-based build isn't the default recommendation on the dd-wrt or OpenWrt forums. But here's mine:
It's my first container-based build environ. I'm not sure what other folks do, but I'm mounting the source dir in the container (with -v), changing to that dir (with -w), and running the compiler. When that's all automatic via make, it's seamless and easy. So I think I like it.
Cross-compile build environs usually screw up my normal host environ more than I like, and compete with each other, so I'm putting it in a container.
Computer science guy, electrical engineer, US Air Force officer, jogger, likes teaching programming, aka KC0BFV.
Likes programming in: Rust, Python, JavaScript, C
Reluctantly uses: Roku's BrightScript, C++, anything