[-] varsock@programming.dev 3 points 2 years ago* (last edited 2 years ago)

When I was in college, two older classmates whom I respected got into a hilarious argument of why Gnome was awesome and now eats rocks (their views, I had no views).

Their elaborate and very specific descriptions of functions and inconveniences drew up a picture of functionality and a e s t h e t i c I had never experienced on windows. So I proceeded to install a distro and take it for a ride

[-] varsock@programming.dev 3 points 2 years ago

hey I'm right there with you. I didn't want to type out all the details but the customer didn't want to use any tools they had to "learn". All they wanted to do was be able to do is view a file structured similarly to CVS. View, filter, and sort alphabetically. This was like a subtask of a bigger project.

Bottom line is we were like "hey don't waste your money on this request, there are tons of tools that can do this"

Their response was essentially "we contracted you, you guys figure it out." LOL okay, pay us for 1 additional month and you can have a program to load your csv and sort it

[-] varsock@programming.dev 3 points 2 years ago

he was not, nobody cares about his 2 bytes

[-] varsock@programming.dev 3 points 2 years ago

thank you for answering my questions :)

[-] varsock@programming.dev 3 points 3 years ago

There are many skills I'm an absolute beginner in. ChatGPT helps me drown out unnecessary noise and points me in the right direction. For things I'd consider myself proficient in, I ask it to write me tedious tasks. Love it for Makefile expansions

[-] varsock@programming.dev 3 points 3 years ago

agreed. and well said, Mozilla:

This means that no single party decides which form-factors, devices, operating systems, and browsers may access the Web. It gives people more choices, and thus more avenues to overcome personal obstacles to access.

[-] varsock@programming.dev 3 points 3 years ago* (last edited 3 years ago)

I'm having a lot of fun taking these inscrutable lines of shell and asking AI to decipher it. Check it out:

spoilerThe ZDOTDIR variable in Zsh specifies the directory where the configuration files (.zshrc, .zshenv, .zshlogin, .zshlogout, .zprofile, and .zlogin) are located. By default, this directory is the home directory of the current user. If ZDOTDIR is set, Zsh will use the configuration files from that directory instead of the home directory.

The script you've posted appears to be setting the ZDOTDIR variable in a complex way, using Zsh parameter expansion and modifiers. Here's the breakdown:

${(%):-%x}: This is using Zsh's %(x,y,z) prompt sequence expansion. This construct is used to insert conditional strings in the prompt. However, in this case, the construct is being abused to get the full path of the currently running script (%x), since the else branch (- modifier) of a prompt sequence expansion is always executed.

:P: This is a Zsh parameter expansion modifier that makes the resulting path absolute by resolving symbolic links. It effectively "canonicalizes" the path.

:h: Another Zsh parameter expansion modifier, which removes the trailing component from a path, effectively getting the directory portion of a file path. This is equivalent to dirname in a POSIX shell.

In summary, this script sets ZDOTDIR to the directory of the currently running script, resolving any symbolic links to get the absolute path. This would make Zsh look in that directory for its configuration files, instead of the home directory. It seems to be useful for a script that's bundled with its own Zsh configuration files, and wants to use those instead of the user's configuration

[-] varsock@programming.dev 3 points 3 years ago

man he is just razor sharp and all business, really interesting person to listen to. I feel he wouldn't have time to lurk here 😅

[-] varsock@programming.dev 3 points 3 years ago

how the fugg do we add friends in Lemmy now

[-] varsock@programming.dev 3 points 3 years ago

@ChatGPT@lemmings.world who are all these people?

[-] varsock@programming.dev 3 points 3 years ago* (last edited 3 years ago)

I too am worried about what happens when instances start beefin and defederating.

But if a corp such as Meta owned Lemmy.world and one day decided to charge others for the right to federate, then it is also shitty.

The predatory practice of Big corps is offer service at a loss and once enough people on board, force users to pay to keep using.

Current Lemmy(ers?) have to realize this and not post or interact with monetized instances to avoid putting their content behind a paywall.

[-] varsock@programming.dev 3 points 3 years ago
view more: ‹ prev next ›

varsock

0 post score
0 comment score
joined 3 years ago
MODERATOR OF