[-] walthervonstolzing@lemmy.ml 35 points 2 months ago

The bot says it 'saved 0%'; so at least it's honest.

[-] walthervonstolzing@lemmy.ml 25 points 4 months ago* (last edited 4 months ago)

I am afraid that the need to understand how tools work will never go out of fashion. Not everyone's horizons are limited to one-time quick & dirty solutions.

chatgpt makes it ... go, amirite?

[-] walthervonstolzing@lemmy.ml 62 points 4 months ago

I was intrigued for a moment; installed the package; then got greeted with this -- I don't think I'll proceed any further:

[-] walthervonstolzing@lemmy.ml 19 points 5 months ago* (last edited 5 months ago)

Putting the following with executable permissions inside ~/.local/share/nautilus/scripts/SCRIPTNAME adds a right click menu to Nautilus that serves the same purpose:

#!/bin/bash

CLIPBD=''
[[ "${XDG_SESSION_TYPE}" == "x11" ]] && CLIPBD='xsel -ib'
[[ "${XDG_SESSION_TYPE}" == "wayland" ]] && CLIPBD='wl-copy --trim-newline' && wl-copy --clear

echo -n "${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}" \
  | tee >(xargs -I {} notify-send "Path Copied:" "{}") \
  | ${CLIPBD}

The 'notify-send' bit isn't necessary; it just puts up a notification.

Mentioning only because it's a simple demonstration of a pretty easy way to extend Nautilus for all kinds of purposes; w/o messing around with the pygobject interface. (There's supposed to be an xdg standard for file manager extensions like this, but managers use their own custom folders, syntax, etc. for such extensions. I think pcmanfm adheres to the standard; Dolphin requires a .desktop file somewhere; Thunar, Caja, & Nemo work similar to Nautilus.)

[-] walthervonstolzing@lemmy.ml 22 points 6 months ago

awk predates perl as well as python by a pretty large margin (1978); it's useful, of course, for processing things in a pipeline, but as it became obsolete as a general-purpose scripting language, users have had less and less of a reason to learn its syntax in detail -- so nowadays it shows up in one-liners where it could be replaced by a tiny bit of cut.

I had worked through a good bit of the O'Reilly 'sed & awk' book -- the first programming book I got, after being enticed by shell scripting in general. Once I learned a bit of Python, & got better at vim scripting, though, I started using it less and less; today I barely remember its syntax.

[-] walthervonstolzing@lemmy.ml 26 points 6 months ago* (last edited 6 months ago)

Skimmed over the whole article -- I wish this had been available back when I was trying to piece together the basics from the documentation. There really needs to be a 2nd part, though, with some discussion of the GVariant signatures, which the author says were 'beyond the scope of' this article -- which is true; nevertheless, understanding that syntax (and how to use it e.g. with gdbus) is an absolute requirement for using dbus properly; and as a silly amateur, I lost so much time over them.

[-] walthervonstolzing@lemmy.ml 18 points 6 months ago

Oh wow I didn't realize he repeated 'developers, developers, ...' 666 times on that event.

[-] walthervonstolzing@lemmy.ml 26 points 6 months ago* (last edited 6 months ago)

This can't go on, I must inform the Hurd,
Can this monolith be real, or just some crazy dream?
But I feel drawn towards the GPL-2,
Seem to mesmerize, can't avoid Tivoization!

[-] walthervonstolzing@lemmy.ml 32 points 7 months ago

Thanks indeed; but I think I'd be more impressed if it were actually true.

(but yeah, the first draft of Star Wars was called 'journal of the whills'.)

[-] walthervonstolzing@lemmy.ml 56 points 7 months ago

Little known fact: A Stanford mainframe kept logs of the activities of the 'wheels' in a journal -- the 'journal of the wheels'. Young George Lucas, who briefly attended the university, found that journal, and became fascinated with the 'Wheel Wars'. He later drafted a document that he called 'Journal of the Whills', based largely on what he read on those logs; this is the draft that later became 'Whill Wars', and ultimately, of course, 'Star Wars'.

[-] walthervonstolzing@lemmy.ml 74 points 9 months ago

I mean, this is cringe AF.

Kotlin 'built by communism'? Because the founders of JB are Russian? Is that it?

Swift is 'greed' how? It's open source since 2015 or so; & available on Linux. Apple's graphical toolkits are 'closed down'; & obviously restrict users' freedoms; though not sure how that implies 'monopoly'. 'Monopoly' would be trying to dominate all toolkits, not have one's own.

Vague word associations are cool, I guess.

[-] walthervonstolzing@lemmy.ml 50 points 9 months ago* (last edited 9 months ago)

007 is a pretty ideal permission scheme for a spy, though: Deny access to owner & group; let some 3rd party do whatever he likes.

view more: next โ€บ

walthervonstolzing

joined 1 year ago