abrahambelch

joined 1 year ago
[–] abrahambelch 1 points 1 week ago

Thanks for your answer, that sounds promising!

[–] abrahambelch 2 points 1 week ago

Thanks for the link, I think it indeed looks best to use a second one then (I think I'll do some more research though). But it's interesting to see (in case of the Yellow) you could theoretically use one device for both if they operate on the same channel.

15
submitted 1 week ago* (last edited 1 week ago) by abrahambelch to c/[email protected]
 

Hello everybody,

Im currently planning on migrating my smart home to Home Assistant and run the HA docker image on my home server.

Most of my devices communicate via Zigbee so I was thinking of getting the Connect ZBT-1.
I also have a few Matter/Thread devices which would be nice to integrate as well, although not necessarily in the initial migration.

I read the ZBT-1 can experimentally be used with Thread as well. Now my question is: Is it possible to buy two devices and connect to Zigbee and Thread devices simultaneously?

Maybe someone has a similar setup and would like to share their experience.

Thanks in advance and have a nice weekend!

[–] abrahambelch 7 points 1 week ago (2 children)

You don’t get the point, do you? I know I can block those, yet it’s hypocritical to complain about privacy and tracking in an article while doing the same. It’s not even the fact they use cookies at all, I get they might need them for analytics and such. But this site is out of control

[–] abrahambelch 33 points 1 week ago (4 children)

Meanwhile the linked website is full of intrusive ads and hundreds of "legitimate interest" tracking cookies. Oh the irony...

[–] abrahambelch 1 points 2 weeks ago

Sad to see on one hand but in the other hand they weren't really worth it anyway. Switch games are so ridiculously overpriced even a discounted game hurts to buy

[–] abrahambelch 30 points 2 weeks ago

Agreed. But as long as people don't actively leave Lemmy in favor of the new service I'd be okay with it I guess. I mean it would still be cool if Lemmy grew larger but hey, we got a nice little community here

[–] abrahambelch 2 points 2 weeks ago

I legitimately thought I was becoming crazy when my favorites kept disappearing lol Glad they fixed it!

[–] abrahambelch 5 points 3 weeks ago

Well that's kind of rewarding indeed :D

[–] abrahambelch 22 points 3 weeks ago (2 children)

I'd seriously consider quitting my job if my managers sabotaged work like that

[–] abrahambelch 1 points 1 month ago* (last edited 1 month ago)

Not sure what the hardest was for me but Scarlet/Violet have by far been the easiest for me. There was literally no challenge at all.

[–] abrahambelch 1 points 1 month ago

You don't need to self-host, you can register an own domain and associate it with Simple Login. You would still need to re-create your aliases with the new domain but are free to change services any time onwards (assuming they allow you to bring your own domain as well).

It all reads harder than it basically is, just try it out and if it doesn't work for you, you can still use the default Simple Login domain instead :)

Here's the official documentation: https://simplelogin.io/docs/custom-domain/add-domain/

[–] abrahambelch 4 points 1 month ago (1 children)

Looks good! 🤩

31
submitted 6 months ago* (last edited 6 months ago) by abrahambelch to c/rust
 

Hey there, I'm currently learning Rust (coming from object-oriented and also to some degree functional languages like Kotlin) and have some trouble how to design my software in a Rust-like way. I'm hoping someone could help me out with an explanation here :-)

I just started reading the book in order to get an overview of the language as well.

In OOP languages, I frequently use design patterns such as the Strategy pattern to model interchangeable pieces of logic.

How do I model this in Rust?

My current approach would be to define a trait and write different implementations of it. I would then pass around a boxed trait object (Box<dyn MyTrait>). I often find myself trying to combine this with some poor man's manual dependency injection.

This approach feels very object oriented and not native to the language. Would this be the recommended way of doing things or is there a better approach to take in Rust?

Thanks in advance!

view more: next ›