• 0 Posts
  • 8 Comments
Joined 2 years ago
cake
Cake day: July 17th, 2024

help-circle

    • 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?





  • 0t79JeIfK01RHyzo@lemmy.mltoLinux@lemmy.ml•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 months ago

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

    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.