Show newer
hedy boosted
hedy boosted
hedy boosted
hedy boosted
hedy boosted
hedy boosted
hedy boosted
hedy boosted

I think my camera's SD card is failing because I'm trying to copy moon pics off of it and every ~50 photos it spontaneously and unprompted unmounts and interrupts the transfer. No issues actually writing photos to the card, which is weird…

hedy boosted

#Rust help requested. I am officially at wits end here.

Please take a look at my source file sdlstate.rs.

I'm getting a borrow checker error E0597 on line 39, indicating that tc does not live long enough. However, looking at the sdl2 sources (via its rust-docs), I don't see how my created texture, t, can possibly still refer to tc, which as far as I'm aware, is the only way this error can be generated under current conditions.

error[E0597]: `tc` does not live long enough
--> src/sdlstate.rs:39:21
|
14 | impl<'a> SdlState<'a> {
| -- lifetime `'a` defined here
...
39 | let mut t = tc
| _____________________^
40 | | .create_texture(
41 | | Some(sdl2::pixels::PixelFormatEnum::RGBA8888),
42 | | sdl2::render::TextureAccess::Streaming,
43 | | self.width,
44 | | self.height,
45 | | )
| |_____________^ borrowed value does not live long enough
...
49 | self.current_texture.set(Some(t));
| --------------------------------- argument requires that `tc` is borrowed for `'a`
...
56 | }
| - `tc` dropped here while still borrowed

Why is this happening? Why can't I re-arrange the code to prevent this from happening?

Right now, the only way this code will compile and run correctly is if I manually inject the re-paint code where I invoke f(), which utterly defeats the purpose and benefit of using closures in the first place.

In an attempt to fix this, I've tried:

  1. Replacing the Cell with RefCell.
  2. Removing Cell all-together and just using a raw Option type.
  3. Removing the 'a lifetime annotation.

None of these work, and almost always introduce some manner of errors on their own.

Please help. Thanks.

hedy boosted
hedy boosted

So, how do people run their own personal #fediverse instances? What software? Self-hosted or paying for hosting?

To do my part in ensuring the fediverse stays diverse, I think I'd rather not use mastodon. Also, I'd rather not run that kind of bloat on my small homelab when selfhosting

#boostsappreciated

hedy boosted
hedy boosted
hedy boosted
hedy boosted

throwback to when i forgot the word “hieroglyphics” so i told someone that the ancient egyptians used to write with emojis

hedy boosted

The inclusion of any link does not imply endorsement of the site.

When your image can be 100% represented in text, you put that representation in the alt text... Voilà, terminal clients can "render" your image!

This is my favorite commit for today
git.sr.ht/~hedy/site/commit/5f

Also I can't believe the alt text being two non-alpha characters is actually acceptable for Lighthouse. I mean why shouldn't it? It describes the image perfectly well :)

hedy boosted
hedy boosted
Show older
tilde.zone

masto instance for the tildeverse