[-] abrahambelch@programming.dev 62 points 2 months ago* (last edited 2 months ago)

As a base: The Linux kernel source, GNU software sources and compiler binaries so I can - in theory - write missing software myself. For convenience probably some stable, offline-installable, ready to use distros.

I would probably also archive sources and binaries of day-to-day software like web-browsers (I might still have an intranet to use), office tools, photo management software, audio/video players and all the codecs, etc.

I think that's a solid starting point but im sure I'm missing something important :D

[-] abrahambelch@programming.dev 53 points 3 months ago

HP is a struggle (but yeah, Windows is too)

[-] abrahambelch@programming.dev 28 points 3 months ago* (last edited 3 months ago)

When Russia invaded Ukraine... It may sound like the first thing that came to my mind but for a few days I thought Russia would attack my country as well. Before, I was feeling very safe in my country.

Of course that's only the direct impact on me personally. Let's not forget how Ukrainians feel

16
submitted 4 months ago* (last edited 4 months ago) by abrahambelch@programming.dev to c/homeassistant@lemmy.world

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@programming.dev 32 points 4 months ago

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

[-] abrahambelch@programming.dev 29 points 4 months 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@programming.dev 71 points 9 months ago

No Forking: You may not create, maintain, or distribute a forked version of the software. Lol 💀

30
Strategy Pattern in Rust (programming.dev)
submitted 10 months ago* (last edited 10 months ago) by abrahambelch@programming.dev to c/rust@programming.dev

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!

[-] abrahambelch@programming.dev 27 points 11 months ago* (last edited 11 months ago)

I reverse engineered the Apple Photos library file on my Mac as a side project and can confirm that hidden assets are not actually encrypted or otherwise protected. The respective assets are just not shown in the apps and can be accessed via Finder on macOS.

I didn't know they were visible when you connect your phone to your PC but I guess it makes sense.

[-] abrahambelch@programming.dev 152 points 11 months ago* (last edited 11 months ago)

Don't make the same mistake as our generation and fall for TikTok, Instagram and that shit.

Almost everything is better without it, from concerts to weekend trips to relationships.

[-] abrahambelch@programming.dev 38 points 1 year ago

It's not an Apple fanboy but imo it's a lot more transparent on their side. There's a switch for each and every service to use iCloud or not in the settings. Services don't just re-enable their usage of iCloud after some random update and most importantly, they don't just re-install apps you previously deleted. Or bloatware.

[-] abrahambelch@programming.dev 78 points 1 year ago

Which language uses these signs? It truly looks like some kind of alien language

[-] abrahambelch@programming.dev 27 points 1 year ago

Goose Farmer - Remote

[-] abrahambelch@programming.dev 33 points 1 year ago

Yeah so effectively not federated. Pretty sure they're not actually interested in federating anyway

view more: next ›

abrahambelch

joined 1 year ago