StrangeAstronomer

@StrangeAstronomer@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

StrangeAstronomer,

So he’s a journalist </s> Thanks for the warning, saved me a read.

StrangeAstronomer,

It might be more expected for you but I’m going to differ.

for an article (or a link to a image), it takes you there instead.

… and then you can’t get to the discussion.

The RSS-2.0 definition of <link> is


<span style="color:#323232;">The URL to the HTML website corresponding to the channel.
</span>

so clearly, it should point to the lemmy post. No other RSS feed that I know of has this problem.

Fortunately, emacs can flex around this, but duh! Where can I raise a bug report?

StrangeAstronomer,

thanks!

StrangeAstronomer,

I followed up on github as you suggested and a very nice young man took a look at it and said that the code already does work the right way (at least the way I and their little poll think it should work). But, it turns out that the fix (from 2021) has not been deployed - it’s to be in the next release.

So I don’t know what will happen now - I’ll continue to use my workaround, so I’m happy enough.

StrangeAstronomer,

Wow! Just wow!

StrangeAstronomer,

OK, more than wow! Probably the most helpful, in-depth and up to date coverage of this topic I’ve seen in 40 years of barely scratching the surface of emacs. Thank you!

StrangeAstronomer,

Nice, sensible article.

You might also be interested in i3-menu for i3 and sway which presents a menu of i3/sway commands - very useful for those commands which one rarely uses or for which there is no key binding. It uses ‘smart’ comments in the config file.

StrangeAstronomer,

Another approach entirely is to use pam_mount(8) which can automatically mount a disc on login. I use it to mount /home/$USER (obviously this couldn’t be used to mount the root fs !!)

Is anyone using VMware under a Wayland host?

I’ve been using VMware Player (free version) for a while now and it’s been working fine. Recently I switched to Wayland and VMware’s grab input behavior broke. The guest gets most keys correctly but Alt and Super are intercepted by the host. Clicking on the vm also gives me a remote desktop popup on the host prompting to...

StrangeAstronomer, (edited )

I find the various linters and checkers a bit too intrusive while I’m trying to code - I prefer to just have a check when I stop fiddling with the code and save it. So I have these checks run in after-save-hook - if there are errors, I get a popup otherwise nothing and all is good:


<span style="color:#323232;">;; ** syntax checking on file save:
</span><span style="color:#323232;">(defun bh/check-syntax ()
</span><span style="color:#323232;">  "Check syntax for various languages."
</span><span style="color:#323232;">  (when (eq major-mode 'emacs-lisp-mode)
</span><span style="color:#323232;">    (ignore-errors (kill-buffer byte-compile-log-buffer))
</span><span style="color:#323232;">    (let ((byte-compile-warnings '(not free-vars obsolete unresolved)))
</span><span style="color:#323232;">      (unless (byte-compile-file buffer-file-name)
</span><span style="color:#323232;">        (pop-to-buffer byte-compile-log-buffer))))
</span><span style="color:#323232;">  (when (eq major-mode 'sh-mode)
</span><span style="color:#323232;">    (compile (format "bash -n %s && shellcheck -f gcc %s" buffer-file-name buffer-file-name) t))
</span><span style="color:#323232;">  (when (eq major-mode 'ruby-mode)
</span><span style="color:#323232;">    (compile (format "ruby -c %s" buffer-file-name) t))
</span><span style="color:#323232;">  (when (eq major-mode 'python-mode)
</span><span style="color:#323232;">    (compile (format "python -B -m py_compile %s" buffer-file-name) t))
</span><span style="color:#323232;">  (when (eq major-mode 'awk-mode)
</span><span style="color:#323232;">    (compile (format "AWKPATH=$PATH gawk --lint --source 'BEGIN { exit(0) } END { exit(0) }' --file %s" buffer-file-name) t)))
</span>

(add-hook 'after-save-hook #'bh/check-syntax)

I don’t work much with json files but I daresay the idea could be extended to them. Sorry about the crappy elisp.

StrangeAstronomer,

“64-128mb ram” is hardly “low memory”!

Bash script to move focused container to new empty workspace

So I migrated from i3 to sway. Had a python script that I found on the internets that did this, and really like the functionality. Figured I’d give an attempt at making my own script in bash. My programming skills and bash scripting aren’t great, so I had chatGPT help me with some syntax. Thought others might be interested...

StrangeAstronomer,

You can’t avoid IBM/RedHat - they contribute to the kernel and many, many other parts of Linux eg systemd. I have no idea what you mean by DIY distros, what a peculiar adjective in this context. Linux itself is DIY. Life is DIY.

That said, voidlinux is an independent distro without systemd or snaps based on runit for init and xbps for package management. It’s also a STABLE rolling release.

I started using tiling window managers. What tips do you have? What packages do you use to make yours fully functional? Lost noob needs some guidance...

I decided to dive heads first into window managers and need your input for your guidance. I’m absolutely not a Linux-pro. I basically never use the terminal, just started using Github, and only used Gnome (+ KDE for 1/8th the time) for now....

StrangeAstronomer,

waybar is good

scrcpy for android connectivity; syncthing to get files to and fro android (and any other linux system)

clipman for clipboard manager

wallpaper - whatever for? with a TWM you rarely see the background

emacs - because it’s life (I jest)

StrangeAstronomer,

Can’t believe no-one mentioned voidlinux yet. It’s very tasty.

Is there such a thing as split-screen grep?

I want to run a command and see all of its output on the left hand side, while simultaneously searching/grepping for particular lines on the right hand side. In other words, I want a temporary vertically split screen in my CLI, ideally with scrollback on each side of the split, but where I expect the left hand side to be...

StrangeAstronomer,

I daresay there’s a way to do something like this with fzf

StrangeAstronomer,

waypipe - yes. But also wayvnc - I’ve been using wayvnc for a couple of years to export a headless wayland session from a file server. FOr my sins I use vncviewer on XWayland to consume it as it still seems to be the fastest.

StrangeAstronomer,

To imply that systemd is merely an init system is ingenuous at best and dishonest at worst - systemd is so much more than an init system, as that article mentioned. Since the article was written in 2014 systemd has grown massively in scope, even more than the author feared.

It manages DNS, home directories, system services, seat managment, cron, system logging, booting… the list is ever growing. As such many people fear it is becoming too dominant through making more and more software dependent on it. It is not atomic - it is very difficult to have just one piece of systemd as its parts are tightly integrated and inter-dependent.

One could even claim that systemd failed in it’s original remit - to make startup as fast as macOS by running tasks in parallel and by deferring service startup until they are actually needed. The result has been a not very performant init system - many init systems are faster eg runit, dinit. The systemd people now claim that speed is not a design goal.

It is, however, open source and very widely adopted. Most people don’t care - they just want to run their browser and word processor.

StrangeAstronomer,

What for? Even if they have improvements in some areas, the original POSIX standard utilities will continue to be needed for script compatibility. You’re not going to swap them out - at best you can add them and then you just have an additional code base to support with additional attack surface to protect.

StrangeAstronomer,

I vote for voidlinux - I have no idea why, but I get almost double the battery life compared to fedora. No doubt it’s something stupid I’ve done on fedora but - I just love void.

Who here uses a less popular Linux distribution? What made you choose it?

Hey fellow Linux enthusiasts! I’m curious to know if any of you use a less popular, obscure or exotic Linux distribution. What motivated you to choose that distribution over the more mainstream ones? I’d love to hear about your experiences and any unique features or benefits that drew you to your chosen distribution.

StrangeAstronomer,

voidlinux on my laptop (from Fedora) - why? I wanted to see what a systemd-less distro was like nowadays. I have used Linux since 1992 and Unix since 1984 so I’m used to SysVinit. What I find with voidlinux is a system I can understand easily - not that I struggle with systemd, but I felt there was just so much happening under the hood, just too clever by half. If I wanted MacOS, I’d have bought an Apple.

The packaging system on voidlinux is sooooo much faster than fedora. The really weird thing is that my battery life almost doubled. I can’t explain it except to say that the laptop is much calmer than under fedora, which seems to run the fan constantly. Same workload, CPU governers, powertop tweaks etc etc - but battery life almost doubled.

The one downside is a smaller array of packages in the repositories. But since I’m happy installing from source for those few corner cases, it’s no biggie.

I’ve left fedora on my media/file server for now as I still do some fedora packaging (mainly for sway related packages).

StrangeAstronomer,

Link for the video?

As a general rule of thumb, I’ve been told that anything less than a 50% performance boost is hardly noticeable.

I’ve also heard (but ready to stand corrected) that mitigation costs only about 10% CPU (depending on the CPU).

I don’t get out of bed for a 10% performance boost.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • megavids
  • modclub
  • normalnudes
  • cubers
  • ethstaker
  • mdbf
  • Durango
  • khanakhh
  • tester
  • provamag3
  • cisconetworking
  • Leos
  • anitta
  • lostlight
  • All magazines