• 5 Posts
  • 149 Comments
Joined 2 years ago
cake
Cake day: January 25th, 2024

help-circle
  • Storing videos, and streaming them without latency is a huge problem. Specifically if you also have to process for different resolutions and such for different devices.

    Edit: I don’t know how true it is now, but in the past YouTube would have local servers and specific agreements with ISPs for higher bandwidth for them in many countries.


  • I guess it can go unnoticed, I use Arch so maybe that’s why I got more involved. I remember searching why auto completion didn’t work, then finding out I need to install bash-completions package. After knowing that it makes one curious about how it works. Then the next stage is writing it for my own programs because it obviously won’t come with bash-completions package.

    I once wrote a shell (terminal) to watch anime, and I wrote auto completion for different commands on it, it was really nice to just type play then prefix and then tab for auto completion on anime names, and even for episodes I wrote auto completion give me last episode I watched + 1.


  • Whenever someone says they don’t really like terminal because they don’t like to type or remember commands. This is what I think “they didn’t use auto complete”.

    Auto complete works for file names and paths by default, but the development can write it to only complete certain extensions. Like auto complete for image program only completes image files. Then you have completion for commands, subcommands and flags.

    Auto complete is done through calling a bash script with currently typed line, and the bash script can call other commands. So developer can write a really complicated auto complete and make it available as a binary if they want, and just use that in bash. Or you can use many tools that will generate auto complete script for you based on your commandline args.

    If you write your own scripts/cli binaries I recommend learning how to write auto complete for it. Makes it incredibly easy to use the tools.




  • You expected version should always be more than what you’re today. Not because you’re bad but because you’ll just get better anyway. Learn to be satisfied in life with little things and little improvements, those will slowly make things better.

    Also I find that having little projects (in computer or real life) where you make things helps with mental health. When you build something, however minor, it gives you the feeling of accomplishment. And if you can focus on making something, solving those problems, then you are sufficiently distracted as well.


  • If they have a bar they’ll have water. The cases I’m talking about is just beer/wine/soda situation.

    Edit: Mostly just a container with ice and drinks. And I guess they didn’t think water deserves a place.

    Also in places that don’t include alcohol it’s just soda and coffee and again no water











  • Tiff is for science. Like for actual values that need more than 0-255 level of precision.

    For example we use Tiff (or GeoTiff because it has coordinates) for storing elevation, temperature, slope, etc variables of an area for processing. It can also have a lot of bands not just RGB.

    For example, satellites record RGB, infrared 1, infrared 2, and many other bands and even if we can’t see them it’s useful to get that information for processing. That helps for example to recognize river from forest even if both look green to our eyes.




  • Extensions are just suggestions to your OS on how to open the files.

    I use it to know the filetype for binary files, or what is the purpose/format of the text inside is for text files. But you can just save anything as anything. You can open PDF in text editor and edit things inside too if you know what you’re doing.