renzev

joined 1 year ago
[–] renzev 1 points 9 minutes ago* (last edited 8 minutes ago)

some people can’t handle that most humans just wanna be friends regardless of gov politics bs

Yes exactly. There are lots of internet weirdos trying to spread culture war nonsense, but if you actually go outside every once in a while, you realize that most people just aren't like that. I work in a restaurant that has a lot of ukrainian and russian visitors (migrants). At one point, a large group of russians came in for a birthday party, and they asked the owner to put on a playlist of russian music. Like, really cheesy russian pop. After some time, a girl from a smaller table of ukrainians calls me over and complains about the music. I relay it to the owner, and he asks them what they would rather listen to instead. They tell him, and he adds their songs on the queue. The rest of the evening was spent playing and dancing to russian and ukrainian and armenian songs (the owner is armenian, and there were some armenian guests too) and the atmosphere was just generally very chill. Not a single fuck was given about politics that evening.

[–] renzev 1 points 1 day ago

The reason the direct link works but not the post image is because post images use your instance's image proxy. So the post tries to load https://sopuli.xyz/api/v3/image_proxy?url=https%3A%2F%2Ffiles.catbox.moe%2F5vruxj.jpeg , which, at least for me, gives error 500 with the following json: {"code":"command-failure","msg":"ffprobe Failed with exit status: 1"}. Sounds like the image proxy on sopuli is broken.

[–] renzev 2 points 2 days ago

Looks like it works! Congrats!

[–] renzev 5 points 2 days ago

But being too rigid with letting stupid opinions of a project’s founder cause you to reject everything, would have you miss the big-picture benefits of having such a project exist

That's the truth. The reason online "communities" constantly argue and never get anything done is because everyone is focused on not doing the wrong things that they forget about doing the right things. A while ago I saw a post making fun of some chuds who compiled a list of "woke" video games that they wanted to boycott. The people in this thread deciding to leave proton because its ceo said something positive about trump once don't strike me as much different.

[–] renzev 8 points 2 days ago

The .net-ification of *nix just seems bonkers to me.

It IS bonkers. As a case study, compare the process of setting up a self-hosted runner in gitlab vs github.

Gitlab does everything The Linux Way. You spin up a slim docker container based on Alpine, pass it the API key, and you're done. Nice and simple.

Github, being owned by Microsoft, does everything The Microsoft way. The documentation mentions nothing of containers, you're just meant to run the runner natively, essentially giving Microsoft and anyone else in the repo a reverse shell into your machine. Lovely. Microsoft then somehow managed to make their runner software (reminder: whose entire job consists of pulling a git repo, parsing a yaml file, and running some shell commands) depend on fucking dotnet and a bunch of other bullshit. You're meant to install it using a shitty setup.sh script that does that stupid thing with detecting what distro you're on and calling the native package manager to install dependencies. Which of course doesn't work for shit for anyone who's not on debain or fedora because those are the only distro's they've bothered with. So you're either stuck setting up dotnet on your system, or trying to manually banish this unholy abomination into a docker container, which is gonna end up twice the size of gitlab's pre-made Alpine container thanks to needing glibc to run dotnet (and also full gnu coreutils for some fucking reason)

Bloat is just microsoft's way of doing things. They see unused resources, and they want to use them. Keep microsoft out of linux.

[–] renzev 12 points 2 days ago* (last edited 2 days ago) (1 children)

No, sorry. I'm a python dev and I love python, but there's no way I'm using it for scripting. Trying to use python as a shell language just has you passing data across Popen calls with a sea of .decode and .encode. You're doing the same stuff you would be doing in shell, but with a less concise syntax. Literally all of python's benefits (classes, types, lists) are negated because all of the tools you're using when writing scripts are processing raw text anyway. Not to mention the version incompatibility thing. You use an f-string in a spicy way once, and suddenly your "script" is incompatible with half of all python installations out there, which is made worse by the fact that almost every distro has a very narrow selection of python versions available on their package manager. With shell you have the least common denominator of posix sh. With Python, some distros rush ahead to the latest release, while other hang on to ancient versions. Even print("hello world") isn't guaranteed to work, since some LTS ubuntu versions still have python pointing to python2.

The quickest cure for thinking that Python "solves" the problems of shell is to first learn good practices of shell, and then trying to port an existing shell script to python. That'll change your opinion quickly enough.

[–] renzev 12 points 2 days ago

I learned about it the hard way lol. seq used to generate a csv file in a script. My polish friend runs said script, and suddenly there's an extra column in the csv...

[–] renzev 4 points 2 days ago

I think a good rule of thumb for getting offended is to first ask yourself: does this really offend me, or am I acting offended on behalf of some other theoretical person who's not actually here? And if it's the latter, then you probably shouldn't be offended.

It's just a rule of thumb tho. Like if someone is saying "death to jews", you still have every right to oppose that even if you aren't a jew of course.

[–] renzev 2 points 2 days ago (1 children)

Huh, I thought you were joking, but I just checked on google translate, and apparently the correct way to pronounce "threw" really is the same as "through". I always pronounced "threw" a bit more in the front of my mouth so it has a different sound. Crazy stuff.

[–] renzev 16 points 2 days ago

tbh almost every time I see a system settings panel or a program that lets you reduce blue light on a schedule, it's always accompanied with a description that sounds like "reducing blue light may help you sleep better". I don't think there are many people touting it as some sort of scientific neurological thing, it's just that many users have a personal preference for reduced blue light at nighttime, and the developers want to accommodate that preference. Not everything has to be backed up by scientific research, sometimes people just like things.

[–] renzev 3 points 2 days ago (3 children)

What is there to be confused about? They can speak english correctly, but they simply refuse doing so due to a lack of respect for the language. Almost every professor at my uni is also like this: they have the skills to follow grammatical rules, but they don't owe it to anyone to actually do it. This is normal.

 

Explanation for newbies:

  • Shell is the programming language that you use when you open a terminal on linux or mac os. Well, actually "shell" is a family of languages with many different implementations (bash, dash, ash, zsh, ksh, fish, ....)

  • Writing programs in shell (called "shell scripts") is a harrowing experience because the language is optimized for interactive use at a terminal, not writing extensive applications

  • The two lines in the meme change the shell's behavior to be slightly less headache-inducing for the programmer:

    • set -euo pipefail is the short form of the following three commands:
      • set -e: exit on the first command that fails, rather than plowing through ignoring all errors
      • set -u: treat references to undefined variables as errors
      • set -o pipefail: If a command piped into another command fails, treat that as an error
    • export LC_ALL=C tells other programs to not do weird things depending on locale. For example, it forces seq to output numbers with a period as the decimal separator, even on systems where coma is the default decimal separator (russian, dutch, etc.).
  • The title text references "posix", which is a document that standardizes, among other things, what features a shell must have. Posix does not require a shell to implement pipefail, so if you want your script to run on as many different platforms as possible, then you cannot use that feature.

 
 
 
 
 
 

It's funny when armchair experts insist that the fediverse won't catch on because "federation is too hard to understand" when arguably the most widespread communication system on the internet follows the same model

 
366
I'm going insane (lemmy.world)
submitted 3 months ago by renzev to c/lemmyshitpost
 
 
 
view more: next ›