@sotolf a small tip for the crates you're currently using: I saw you import `reqwest` and I guess you plan on using that to query the Wallhaven API?

So `reqwest` is a really great http client but it uses async/await features and that topic is a bit complex in Rust.

As you are just starting with rust I would recommend you `ureq` or `attohttpc` as alternative because they don't require an async/await runtime and therefore a little bit more beginner friendly.

@sotolf if you just need to list all things in a dir non-recursively then read_dir should be fairly sufficient

doc.rust-lang.org/std/fs/fn.re

If you want to iterate recursively there is a convenient crate for it:

docs.rs/walkdir/2.3.1/walkdir/

In case you have any trouble with the APIs, feel free to ask πŸ™‡β€β™‚οΈ

I made a new that allows you to remote control via the obs-websocket plugin.

With that you can switch scenes, adjust scenes items and all kinda sorts of stuff directly from (all the heavy lifting done by obs-websocket though, this is a client library for it).

You can listen for events (created by user interactions) as well.

crates.io/crates/obws

@kornel this is great. Currently exactly my biggest (and actually only) pain point when building docker images for rust projects. Especially on sometimes slow network connections it can take several minutes sometimes up to 10-20 minutes even.

I'm really happy to see this and hope for it to be approved and implemented. Thank you for this proposal πŸ™

.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€β €β €β €βœ¦ β € β €γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€β €β €β €β €β €* β €β €β €.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€. β €β €β €β €β €β €β €β €β €β €β €β €βœ¦β €β €β € β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β € β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β˜„οΈ β € β €β €β €β €β €β €.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€γ€€γ€€οΎŸ .γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€. γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€βœ¦ γ€€γ€€γ€€γ€€γ€€,γ€€γ€€γ€€γ€€γ€€γ€€γ€€.

β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €
β˜€οΈ

γ€€γ€€γ€€γ€€γ€€γ€€*γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.

.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€. γ€€γ€€βœ¦β €γ€€β€‚β€‚β€‚γ€€γ€€γ€€,γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€*

γ€€γ€€γ€€γ€€γ€€β €γ€€γ€€γ€€γ€€β €γ€€γ€€,

β €β €β €β €β €β €β €β €β €β €β €β €.γ€€γ€€γ€€γ€€γ€€β€ˆγ€€γ€€β €γ€€γ€€γ€€β €.γ€€

γ€€γ€€Λšγ€€γ€€γ€€β €γ€€β €β€‚β€‚γ€€γ€€,γ€€γ€€γ€€γ€€γ€€γ€€.

γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.

γ€€γ€€γ€€γ€€γ€€γ€€*β €γ€€γ€€β €β€‚β€‚γ€€γ€€γ€€γ€€γ€€β €βœ¦β €γ€€

γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.

γ€€γ€€γ€€γ€€.γ€€γ€€γ€€γ€€.γ€€γ€€γ€€β €
πŸŒ•

γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.

γ€€γ€€γ€€γ€€γ€€γ€€γ€€
πŸš€

γ€€γ€€γ€€Λšγ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€οΎŸγ€€γ€€γ€€γ€€γ€€.

γ€€.β €γ€€γ€€
πŸŒŽβ €β€β €β€β €β€β €β€β €β€β €β€β €β€β €β€β €β€β €β€β €,

γ€€γ€€γ€€*γ€€γ€€β €.

γ€€γ€€γ€€γ€€γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€β €βœ¦

γ€€Λšγ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€*

.β € γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.

γ€€γ€€γ€€γ€€γ€€βœ¦β €γ€€β€‚β€‚β€‚γ€€γ€€γ€€,γ€€γ€€β€ˆβ€Šβ€Šβ€Š
πŸ›Έ β €γ€€γ€€

.γ€€γ€€γ€€γ€€γ€€β€ˆγ€€γ€€β €γ€€γ€€γ€€.

γ€€γ€€γ€€Λšγ€€γ€€γ€€β €γ€€β € γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€,

γ€€γ€€. β €β€ˆγ€€γ€€β€‚β€‚β€‚β€‚γ€€γ€€γ€€γ€€γ€€β€ˆγ€€γ€€γ€€γ€€γ€€. β €β €β €β €β €β €.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€β €β €β €βœ¦ β € β €γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€β €β €β €β €β €* β €β €β €.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€. β €β €β €β €β €β €β €β €β €β €β €β €βœ¦β €β €β € β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β € β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €β €
β˜„οΈ β € β €β €β €β €β €β €.γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€.γ€€γ€€γ€€οΎŸ .

Thanks to using markdown and allowing raw HTML in the doc comments, I now have the nice ASCII art from the website directly in the docs of my coding challenge solutions.

dnaka91.github.io/advent-of-co

@reconbot in a last year's challenge I first solved it with Rc + RefCell and later realized that I could do it without by changing the data structures. The speed improvement was about 40x.

It's definitely interesting to do once with Rc + RefCell once πŸ‘

@reconbot you are trying to solve the advent of code day 7 challenge right?

I had similar problems with challenges that seem to want you to build a graph/tree like structure. You can do that with Rc + RefCell but it will be quite a bit slower and often you don't need a whole tree with parent/child relations but often just one direction.

If you want I could give you some hints about how I solved it but I'm worried I might spoiler you too much.

@jrss Their git repo has still quite something going on, but the development definitely slowed down a bit. No new version since a year already. git.joinplu.me/Plume/Plume

I don't use dev.to that much, but I know they have an RSS import feature. As long as you have some blog with an RSS feed you can auto-import to dev.to and it will create your posts as drafts on dev.to. That helps in reposting quite a bit.

@jrss the first thing that comes to my mind when thinking about a medium alternative is dev.to/

Maybe that's what you're looking for?

Or if you meant a fediverse platform, maybe joinplu.me/ ?

@marix ripgrep hat support fΓΌr look-around und andere Features, wie in der GitHub readme beschrieben:

ripgrep has optional support for switching its regex engine to use PCRE2. Among other things, this makes it possible to use look-around and backreferences in your patterns, which are not supported in ripgrep's default regex engine. PCRE2 support can be enabled with -P/--pcre2

Did you know that the over at Integer32 provides the top 100 crates for you to directly use in the playground? How cool is that!?
play.integer32.com/help#featur

For example, try out , a data-parallelism library for Rust:
play.integer32.com/?version=st

@epilys Hey just in case you didn't know already. Your terminal email client is in the top news of lobster.rs right now, congratulations!

lobste.rs/s/2isvp9/meli_termin

Good news everyone! I passed my thesis defense yesterday, and now only have some minor revisions to the thesis itself left before I am completely done πŸŽ‰ You can find a recording of the thesis presentation here: youtu.be/GctxvSPIfr8.
Since the thesis isn't _completely_ done, I haven't posted the actual document yet, though I will make it public once it's finalized. You can find the slides at jon.thesquareplanet.com/slides.

@musicmatze the way it works is really cool though. But took me a while to understand the whole async/await concept first.

Wrapping other futures is relatively easy though.

Show more
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!