0t79JeIfK01RHyzo

u/0t79JeIfK01RHyzo@lemmy.ml
2 posts · 53 comments

Recent posts

Recent comments

I think Flathub has actually received financial support from one of the previous Google CEO’s non profits in the past.

This is a request for $100k in funding from Flathub. On this page it states

The Open Source Software Virtual Incubator is now archived, but proposals are still available to view in this repository. Plaintext Group was a nonpartisan, technology innovation policy initiative developed by Schmidt Futures. For more information, see https://www.schmidtfutures.com/our-work/plaintext/.

Anyway, I think it’s fine, and have previously considered the governance of the Gnome Foundation as more weird.

While the GNOME Project was founded in 1997,[7]the GNOME Foundation was officially founded on 5 March 2001[1] by Compaq, Eazel, Helix Code, IBM, Red Hat, Sun Microsystems, and VA Linux Systems

It's dependent on the Desktop Environment.

OBS just uses xdg-desktop-portal. I think OBS allows you to to configure which encoder to use. So, for the most part, there really shouldn't be interesting differences in performance.

But like I said, KDE is fine, but Gnome's implementation for xdg-desktop-portals has issues. This is a work item on mutter demonstrating OBS failing to record at 60 FPS. There have been issues all the way back to 2020 on Gnome's screen recorder not performing well.

My best guess for why this happened is that Gnome's recorder was originally written for remote desktop with low bandwidth and high latency environments as a focus. I think the goal was to only send frames when changes were detected to them. But when the FPS becomes too high, Gnome fails to provide frames fast enough because it's stuck doing damage detection or whatever.

So in this case, it would be better for Gnome (for now), as it would allow at render rate FPS recordings.

xdg-desktop-portals isn’t perfect on Gnome and in my testing it almost always captures frames below 60 FPS. On KDE it’s fine though.

On some hardware, this does provide the ability to access the frame buffer at its frame rate. Though, in the past, I’ve seen KDE developers claim this is an unreliable hack (that shouldn’t be a preference) and will often produce garbage data and artifacts. (with the recommendation to use the portal instead)

edit: Expanding on this topic.

xdg-desktop-portals often supports DmaBuffers on popular desktop envrionments. These buffers are access to frames that are stored on the GPU. The portal itself connects to pipewire streams. The developer of the recorder can choose to save frames however they desire. As an example, they could keep the data on the GPU and use a GPU specific video encoder, or they could copy the buffer from the GPU to CPU memory and save each frame as a lossless image like a PNG.

The GPU recorder in the example skips the xdg-desktop-portals when necessary, it uses a GPU encoder, and it will use raw access to the frame buffer when necessary. All of this to record at (or closer to) the rendering rate.

  • When does 4 become 5?

4.5 >=? Lots of programming languages define casting as the largest integer value, not the the rounded value. Outside of programming, there are scenarios where 4 cannot be rounded to 5 either... Like a height requirement for a ride at an amusement park. Though, it might seem natural to round it to humans.

  • When does green become black in a gradient?

With computer languages, we define colors with red, blue, and green. The above is a gradient on horizontal x-axis, with

(r = 0, g = x, b = 0) 

This is more complicated. If we surveyed 1 million people, maybe we'd get a plot that defined the start of green as something like the following.

And then maybe we could take the the average and state that as green.

Though, is that really good enough description of green to serve as a legal definition of green? Maybe lawyers would select significantly different results than the general population when surveyed for the value of green. Maybe the results should be restricted to lawyers?

  • And when does 2 become 7?

If we restricted it pixels to a 3x5 grid...

We could possibly define 2 and 7.

But then is this a 2 or a 7?

I have yet to be impressed. I’m not very convinced*. I asked for format type mappings between Pipewire, WebGpu, and Vulcan and both ChatGPT and Gemini failed very badly only providing the most common type mappings. This should be a wildly easy task, something any programmer or even beginner programmers can complete. It’s just very boring, mundane, buffer shifting like work. It almost feels like pencil pushing.

Why couldn’t they do it?

on *Permanently Deleted* · c/linux · 1 pts · 109d

I have to pip install with uv and create a venv to.. wait why didn't gcc finish linking I can't read this error WTF where is my this lib I've installed 30 packages from apt

on *Permanently Deleted* · c/linux · 1 pts · 109d

It's easy to build most flatpaks on flathub into bundles from source.

::: spoiler An example building KDE's weather application from source

# Setup for building bundles
sudo apt install flatpak flatpak-builder git
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

# Building flatpak bundles from source code
git clone https://github.com/flathub/org.kde.kweather 
cd org.kde.kweather
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo builddir org.kde.kweather.json
flatpak build-bundle repo org.kde.kweather.flatpak org.kde.kweather

# Installing the build on any device that has completed setup
flatpak install -y --user ./org.kde.kweather.flatpak

# Running the installed flatpak
flatpak run org.kde.kweather

:::

The flathub organization account contains everything needed for most applications on flathhub

https://github.com/flathub

edit: I write code sometimes, and building projects from source is often a painful process that can feel overwhelming and hopeless at times. I was really impressed when I realized this was possible, and went and built some of my favorite applications from source afterwards.

The creator of Go has an infamous quote on the language.

The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt. – Rob Pike

source

In the past I've recommended onions for port forwarding. It's more simple than alternatives and using the network is free.

The authors or Tor really don't want their network used for torrenting though. They do support JS, and by extension I would argue the authors intended for their users to be able to use YouTube. In comparison to video, git traffic is insignificant. I don't see anything wrong with it, but then again, users of torrents don't usually have issues downloading without port forwarding.