“The simplest way” belongs both to occam and razor?
Mark with a Z
o hai mark
- 2 Posts
- 31 Comments
I’ve had that unhelpful error popup blocking os install. In my case it was bad system time. Check the clock.
Mark with a Z@lemmy.kde.socialto Technology@lemmy.world•OpenAI warns that its upcoming models could pose a higher risk of enabling the creation of biological weapons and says it is stepping up testing of such modelsEnglish7·15 hours agoBecause “biological weapons development” sounds a d v a n c e d
Warning: our product can be used for advanced high tech work!!!11
Mark with a Z@lemmy.kde.socialto No Stupid Questions@lemmy.world•What happens to the content if an Lemmy instance shuts down?6·2 days agoWhen instances federate, they don’t send old content. Old content will be fetched if a user tries to open it, for example by clicking a link to an old post (on some apps) or pasting its url into the search box.
The data copied to the other instance will stay on the other instance, unless manually deleted for some reason.
Mark with a Z@lemmy.kde.socialto Apple@lemmy.world•this is probably a long shot, but any idea how to get iCloud Passwords to work on Linux?11·3 days agoOfficially:
No.Unofficially:
Maybe, but the downsides are jank, security, and that you’re relying on Apple not killing access for “unauthorized” software.Alternative:
Use a cross-platform solution, like Bitwarden
Mark with a Z@lemmy.kde.socialto Reddit@lemmy.world•Reddit will help advertisers turn ‘positive’ posts into ads12·3 days agoIntentionally blurring the line between ads and user posts. Same stuff as always.
Mark with a Z@lemmy.kde.socialto Europe@feddit.org•Leaked surveillance of Tusk phone call published by opposition-linked Polish mediaEnglish15·3 days agoI don’t understand how it ever seemed like a good decision to release an illegal surveillance tape that contains just some mild disrespect.
Mark with a Z@lemmy.kde.socialto Technology@lemmy.world•The Trump Mobile T1 Phone looks both bad and impossibleEnglish49·3 days agoHeadphone jack
Hey, they didn’t fuck everything up!
Mark with a Z@lemmy.kde.socialto Technology@lemmy.zip•Meta's Llama 3.1 can recall 42 percent of the first Harry Potter bookEnglish8·4 days agoIt’s not copyright infringement if you’re as big as meta.
Mark with a Z@lemmy.kde.socialto Ask Lemmy@lemmy.world•What's your fav Nicolas Cage film and why?1·4 days agoI think the color had just shown up. It’s been a while, I don’t remember specifics that well. The movie was great though and the encounter was so funny we didn’t mind it.
Mark with a Z@lemmy.kde.socialto Ask Lemmy@lemmy.world•What's your fav Nicolas Cage film and why?3·5 days agoI watched this in theater. It was very late and there was only one other group of people. During the film one of them loudly said something like “what the fuck is this shit” and they walked out pretty early.
I guess it’s not for everyone.
Mark with a Z@lemmy.kde.socialto Ask Lemmy@lemmy.world•What's your fav Nicolas Cage film and why?5·5 days agoClassic, but I’m more of a Con Air man myself
Mark with a Z@lemmy.kde.socialto Ask Lemmy@lemmy.world•What's your fav Nicolas Cage film and why?6·5 days agoYou’re god damn right with that opinion
Oh boy, now I can stop missing C++
Mark with a Z@lemmy.kde.socialto Games@lemmy.world•Steam beta gets native Apple Silicon support — the only public Arm version of SteamEnglish9·6 days agoNot very likely. Translating cpu architectures is completely different from from what wine/proton does. A compatibility layer for arm would be even more difficult and expensive, and have a performance penalty. They might plan that for further into future though, if arm pcs take off. A Mac implementation would probably need a lot of apple-specific work, and there aren’t many mac gamers out there.
I know, but it does let you sled off a cliff if you choose to.
Mark with a Z@lemmy.kde.socialto Technology@lemmy.world•ChatGPT will avoid being shut down in some life-threatening scenarios, former OpenAI researcher claimsEnglish271·7 days agoOh boy, not this bullshit again
Prefix the name with what it’s for. For example, I’ve previously got a
SoundFontError
from opening soundfont file.“Error” is already used by
std::error::Error
. It might not be imported by the code that imports your error type, but I think it’s better to give it distinct name.The other thing is that you might want to use more than one library. Typical imports at the top of the file might look like this:
use bingbong::{BingBong, BingBongError, SomethingElse}; use bogos::binted::crotchidizer::{Crotchidizer, CrotchidizerError};
If both libraries named their error enums just “Error”, the collision could be worked around, but it’s an unnecessary extra step:
// Not sure how renaming affects compiler hints. use bingbong::{BingBong, Error as BingBongError, SomethingElse}; use bogos::binted::crotchidizer::{Crotchidizer, Error as CrotchidizerError};
or if you want to avoid renaming:
use bingbong::{BingBong, SomethingElse}; use bogos::binted::crotchidizer::{self, Crotchidizer}; /* ... */ match result { Ok(value) => return value, Err(bingbong::Error::MissionFailed) => panic!(), Err(bingbong::Error::UrMom) => todo!(), _ => unreachable!(), } if let Err(crotchidizer::Error::SomethingsWrong) = result2 { // ... }
If the screenshot had followed conventions, the message would say something like this:
could not convert error type `BingBongError` to `MyAppError`
You can wrap everything in unsafe and keep living dangerously!
At that price point, something used and not particularly recent. Even an old laptop will be good performance-wise, but not necessarily storage-wise.
However, buying a laptop to run at home might not be the most reliable or economical way to host Lemmy: you can rent a virtual server for not much, provided that you have access to a computer to remotely access the server with.
I have zero experience with YunoHost, so I don’t know how that may or may not limit the options. Probably the most common way is to use Lemmy-Ansible. It’s easy (well, relatively speaking) and is maintained by the actual lemmy devs themselves. Managed services (ones where you don’t have to deal with the server) should also exist for lemmy, but I’ve never used them.