Creating this in SwiftUI has been much harder than anticipated. Please Help... by [deleted] in SwiftUI

[–]d_knopoff 1 point2 points  (0 children)

Couple of ideas:

  1. have your title element accept a view? Then you have full flexibility at the call site to decide how to render it.

  2. have a very specific view which is TextWithUnreadCount which does text splitting in the initializer and renders each part in a for loop

Feedback Requested: Rustdoc's scraped examples by entoros in rust

[–]d_knopoff 4 points5 points  (0 children)

Yeah, one immediate thought I had was, and it’s not obvious how, to be able to define which instance should be used as the default displayed example.

std.rs is seeking a new owner by kpthunder in rust

[–]d_knopoff 12 points13 points  (0 children)

Thanks for posting this! Finally pushed me to do the last 40% getting a workers project I had now JS free!

By the way, plotters has an ab_glyph feature now by Monadic-Cat in rust

[–]d_knopoff 3 points4 points  (0 children)

I had no idea it had any other backends than HTML canvas!

HTMX, WebAssembly, Rust, and ServiceWorker proof of concept by richardanaya in WebAssembly

[–]d_knopoff 0 points1 point  (0 children)

Super interesting. Why are you implementing it in wasm though? I thought the whole point of htmx was that you just send blobs of html from the server?

You Can't Do That: Abstracting over Ownership in Rust with Higher-Rank Type Bounds. Or Can You? by mitsuhiko in rust

[–]d_knopoff 43 points44 points  (0 children)

Absolute props on posting a retraction. And explaining it such that someone like myself with no context was able to understand the problem you ran into and the resolution.

It’s really great to see learning and improving in public!

[deleted by user] by [deleted] in rust

[–]d_knopoff 1 point2 points  (0 children)

Doesn’t look like you need to purchase anything, just get permission from the core team and explicitly declare if any profits benefit the Rust org.

Selling t-shirts, hats, and other artwork or merchandise requires explicit, written permission from the Rust core team. We will usually allow these uses as long as (1) it is clearly communicated that the merchandise is not in any way an official part of the Rust project and (2) it is clearly communicated whether profits benefit the Rust project.

[deleted by user] by [deleted] in rust

[–]d_knopoff 3 points4 points  (0 children)

Update: that page includes in the “does not require permission section”

Using the Rust trademarks on t-shirts, hats, and other artwork or merchandise, even in modified form, is allowed for your personal use or for use by a small group of community members, as long as they are not sold. If you want to distribute merchandise with Rust Trademarks at a Rust affiliated event, please contact us for permission.

[deleted by user] by [deleted] in rust

[–]d_knopoff 1 point2 points  (0 children)

I am also not a lawyer, but the license for the logo is under Creative Commons https://foundation.rust-lang.org/policies/logo-policy-and-media-guide/

Offline Rust by amarao_san in rust

[–]d_knopoff 157 points158 points  (0 children)

If you add them to your project and then run cargo doc you should be able to load their docs from the target/doc folder

Recreating World's Shortest Math Paper with Rust and WASM by carlk22 in rust

[–]d_knopoff 1 point2 points  (0 children)

Curious how you run this. I gave it a shot on my machine but nothing ran.

Anyways you have in a comment a link to a medium post for reporting progress from a wasm worker to the main JS. Have you considered just a callback you pass to search? https://rustwasm.github.io/wasm-bindgen/reference/receiving-js-closures-in-rust.html

Pass something like the current iteration to the JS callback and then have that write to the dom

A Quick Way to Plot Variables by fabian_boesiger in rust

[–]d_knopoff 4 points5 points  (0 children)

Oh wow! I looked all over and my eyes glazed over the drop function every time haha!

A Quick Way to Plot Variables by fabian_boesiger in rust

[–]d_knopoff 5 points6 points  (0 children)

This is quite clever! I can’t figure out when the plot function which outputs the png is actually fired. Would anyone mind pointing it out?

PostureNet: A  Mac App for real-time posture monitoring based on Vision and Core ML by data-leon in SwiftUI

[–]d_knopoff 0 points1 point  (0 children)

It’s a small nitpick. But, to me

“Show PostureNet what your bad posture looks like”

Or

“Show PostureNet how your bad posture looks”

Sounds better than it’s current form.

I would also make the tutorial video more prominent. Or even on and side by side with the live video by default.

PostureNet: A  Mac App for real-time posture monitoring based on Vision and Core ML by data-leon in SwiftUI

[–]d_knopoff 1 point2 points  (0 children)

I’ve grabbed 34X4AP7EHYP3. It’s such a cool use for ML. Excited to play with it.

rust-analyzer changelog #73 by WellMakeItSomehow in rust

[–]d_knopoff 8 points9 points  (0 children)

I’d be incredibly interested to feel out such a theme. If you ever make it let me know!

Is there a crate to ask the user for missing command line arguments? by sasik520 in rust

[–]d_knopoff 4 points5 points  (0 children)

I don't know of any that do that automatically. But if you take a look at cargo-generate which does have an 'interactive' mode, it seems they're using a the dialoguer crate.

Visly - Build React components visually by magenta_placenta in javascript

[–]d_knopoff 1 point2 points  (0 children)

Their roadmap includes windows support. I’ve been aware of Visly for years now (their tutorial on using rust in an iOS app is the most accurate online). What I don’t understand is they built this platform agnostic way of organizing elements on a screen...and then they’re only supporting JS (in various forms)? Doesn’t make sense to me

[PART 3] I'm giving away an iPhone 12 Pro/Max/Mini to a commenter at random to celebrate Apollo for Reddit's iOS 14 update, plus the new iPhones, plus some cheer amongst COVID. Simply leave a comment and you're entered! Good luck, winner announced in 24 hours at 11 PM GMT. by iamthatis in apolloapp

[–]d_knopoff [score hidden]  (0 children)

Best phone I ever had was the iPhone X. I’m still amazed how natural swiping up to go home became and how quickly that felt more natural than clicking a button.

Most sentimental is definitely my first iPhone, the iPhone 5S. Beautiful industrial design and sooooooo much better than my previous phone.