• 0 Posts
  • 36 Comments
Joined 3 years ago
cake
Cake day: June 26th, 2021

help-circle














  • There’s pros and cons. On one hand, packing your dependencies into your executable leads to never having to worry about broken dependencies, but also leads you into other problems. What happens when a dependency has a security update? Now you need an updated executable for every executable that has that bundled dependency. What if the developer has stopped maintaining it and the code is closed source? Well, you are out of luck. You either have the vulnerability or you stop using the program. Additionally bundling dependencies can drastically increase executable size. This is partially why C programs are so small, because they can rely on glibc when not all languages have such a core ubiquitous library.

    As an aside, if you do prefer the bundled dependency approach, it is actually available on Linux. For example, you can use appimages, which are very similar to a portable exe file on windows. Of course, you may run afoul of the previously mentioned issues, but it may be an option depending on what was released.


  • Sure. If you are using an nvidia optimus laptop, you should also add __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia at the start of the last line when running in hybrid mode to run mpv on the dgpu. You should have a file at ~/.wallpaperrc that contains wallpaper_playlist: /path/to/mpv/playlist. You may want to add this script to your startup sequence via your wm/de.

    #!/bin/sh
    
    WALLPAPER_PLAYLIST=$(cat ~/.wallpaperrc | grep -v '^\w*#' | grep 'wallpaper_playlist' | sed "s/wallpaper_playlist: //")
    
    
    xwinwrap -g 1920x1080 -ov -- mpv -wid WID --no-osc --no-audio --loop-playlist --shuffle --playlist=$WALLPAPER_PLAYLIST
    

    Hope this helps!





  • If you have ever seen a police interregation, you may notice the detectives ask a question and then, after either no answer or insufficient answer, they will just look at the suspect expectantly. This is done to put phsycological pressure on the suspect to answer the question. Given this info, I would say so, at least in a face to face situation.

    Online, I am not so sure. How many posts did you scroll past in the last week on Lemmy that ask a question that you did not answer? How many did you answer? Even if you answered most, you would be in the minority, as if you were not, we would expect far higher engagement rates on posts.