|
cruft posted:I should be able to pass -D to nut-scanner
|
# ? Mar 9, 2023 12:18 |
|
|
# ? May 23, 2024 03:52 |
|
jaegerx posted:I broke 3 people because I use vi mode in zsh not emacs. I use vi mode in ksh on my AIX boxes. But emacs? lol We have a few devs that still use it because it has a couple of useful functions for the 4GL code they maintain, but otherwise, it's a ghost town.
|
# ? Mar 9, 2023 12:51 |
|
Mr. Crow posted:I think you're confused, who the hell uses emacs emacs mode is the default state of most shells, it's the method that lets you use arrow keys or control commands to edit the command line or navigate the history. vi mode gives you the insert mode to type stuff in and you tap escape to enter the command mode of vi to edit the command. It's cool but is the weird deviant way to shell.
|
# ? Mar 9, 2023 12:55 |
|
I guess I never thought about it (or forgot about it) as emacs mode. It's the default for bash, which is everywhere, and that's how I've thought about it since the beginning.
|
# ? Mar 9, 2023 13:34 |
I can't imagine using tcsh in emacs mode.
|
|
# ? Mar 9, 2023 14:44 |
|
I use emacs.
|
# ? Mar 9, 2023 14:52 |
|
cruft posted:I use emacs. Found the beard grayer than mine. Edit: or RMS has entered the chat 😂
|
# ? Mar 9, 2023 15:20 |
|
I have a bunch of employees who use vi, which is fine, too. Actually they swear up and down they only know vim, and then I find out they don't even know what "dd" does. Their "vim" usage technique is to press "i" and use the cursor keys and backspace A TON. I don't understand how kids today reconcile themselves with such an incredibly painful and laborious method of editing text files. So this leaves me, an emacs user, explaining to people how to do super basic vi stuff. I guess that makes me a vi expert by today's standards.
|
# ? Mar 9, 2023 15:23 |
|
Inertia is a helluva drug. I started out in vi, and I'll probably continue to use it until I'm done typing for my life. It's my default workflow and muscle memory, which I'm sure is true for most others with the shell/editor they cut their teeth on.
|
# ? Mar 9, 2023 15:31 |
|
I use nano...
|
# ? Mar 9, 2023 15:35 |
|
Pablo Bluth posted:I use nano... Heretic!
|
# ? Mar 9, 2023 15:36 |
|
Pablo Bluth posted:I use nano... Honestly, so do my aforementioned employees who claim to use vi. Now that it lets you turn off word wrapping, nano is the right editor to teach new users.
|
# ? Mar 9, 2023 15:37 |
|
One thing that does piss me off is that nano is the default editor in Ubuntu and it's really difficult to change. The cognitive dissonance created when I type visudo and get dumped into nano...
|
# ? Mar 9, 2023 15:43 |
|
Is that controlled by $VISUAL or $EDITOR?
|
# ? Mar 9, 2023 15:44 |
|
AlexDeGruven posted:One thing that does piss me off is that nano is the default editor in Ubuntu and it's really difficult to change. The cognitive dissonance created when I type visudo and get dumped into nano... It's not that difficult to change: code:
e: f,b
|
# ? Mar 9, 2023 15:44 |
|
cum jabbar posted:Is that controlled by $VISUAL or $EDITOR? That's the problem I ran into. I don't use Ubuntu much anyway, so the fact that it's now $VISUAL and not $EDITOR threw me. See my previous statements about inertia, heh.
|
# ? Mar 9, 2023 15:46 |
|
iirc "visual" is an archaic distinction meaning "not a line editor"
|
# ? Mar 9, 2023 15:48 |
|
AlexDeGruven posted:That's the problem I ran into. I don't use Ubuntu much anyway, so the fact that it's now $VISUAL and not $EDITOR threw me. It's been $VISUAL since at least SunOS 4.2 (1982)... If $VISUAL isn't set, it falls back to $EDITOR. Why are there two? Well, in 1982, sometimes you logged in using one of these: e: f, b AGAIN `vi` started out as an extension to `ed` (or maybe `ex`, I don't recall). You'd pop into "visual mode" after starting, by typing `vi` at the `:` prompt. cruft fucked around with this message at 15:51 on Mar 9, 2023 |
# ? Mar 9, 2023 15:49 |
|
The real travesty is hjkl navigation. I know arrow keys didn't exist at that point but I still despise the layout. At least make it ijkl so up/down makes sense.
|
# ? Mar 9, 2023 15:51 |
|
xzzy posted:The real travesty is hjkl navigation. I know arrow keys didn't exist at that point but I still despise the layout. At least make it ijkl so up/down makes sense. But that positions your hand so that going northwest or southwest is a big long stretch. cruft fucked around with this message at 15:55 on Mar 9, 2023 |
# ? Mar 9, 2023 15:52 |
|
cruft posted:Honestly, so do my aforementioned employees who claim to use vi. But the linux text editor closest to my heart will always be nedit.
|
# ? Mar 9, 2023 15:57 |
|
cruft posted:But that positions your hand so that going northwest or southwest is a big long stretch. In what way? It's just like WASD, but located on a different part of the board. e: maybe this is just sarcasm that went over my head...
|
# ? Mar 9, 2023 16:02 |
|
cruft posted:e: f, b AGAIN That's what you get for making a higher quality post!!
|
# ? Mar 9, 2023 16:05 |
|
cruft posted:Actually they swear up and down they only know vim, and then I find out they don't even know what "dd" does. Their "vim" usage technique is to press "i" and use the cursor keys and backspace A TON. It's what they're used to. I can relate because I've had to train myself to think more in a "Linux" way when using vim rather than the Windows way of cursor keys and backspaces. It's an adjustment.
|
# ? Mar 9, 2023 16:06 |
|
Kibner posted:In what way? It's just like WASD, but located on a different part of the board. In Nethack, T and Y are NW and NE; B and N are SW and SE. But the real reason it's hjkl is that ^H is left, ^J is down, ^K is "vertical tab", and ^L is "line feed". ^I is tab, and it would have been weird to make the "go right to the next tab stop" key mean "go up".
|
# ? Mar 9, 2023 16:25 |
|
cruft posted:It's been $VISUAL since at least SunOS 4.2 (1982)... Ha, so I'm not as old as I feel sometimes.
|
# ? Mar 9, 2023 16:27 |
cum jabbar posted:iirc "visual" is an archaic distinction meaning "not a line editor" cruft posted:It's been $VISUAL since at least SunOS 4.2 (1982)... The modern vi in the BSDs is a complete re-implementation known as "new vi" by Keith Bostic in 1980, and is still maintained to this day - though what with it being a mature piece of software, there's not exactly much churn in the tree. It's worth noting that there's a split between nvi 1.x and 2.x, with NetBSD and OpenBSD favouring the former while FreeBSD and DragonFlyBSD favours latter - with the main difference between being support for BSD iconv (meaning proper Unicode support), Berkeley DB v3 locking, and file encoding detection.
|
|
# ? Mar 9, 2023 18:42 |
|
jaegerx posted:I broke 3 people because I use vi mode in zsh not emacs. cruft posted:I don't understand how kids today reconcile themselves with such an incredibly painful and laborious method of editing text files. AlexDeGruven posted:That's the problem I ran into. I don't use Ubuntu much anyway, so the fact that it's now $VISUAL and not $EDITOR threw me.
|
# ? Mar 9, 2023 19:11 |
|
xzzy posted:Just about everyone? I knew I liked you.
|
# ? Mar 10, 2023 00:51 |
|
its me, im the one person under 30 who ever used emacs as my primary editor. but nowadays i use sublime or vs code or actual fatass visual studio
|
# ? Mar 10, 2023 01:05 |
|
VostokProgram posted:its me, im the one person under 30 who ever used emacs as my primary editor. but nowadays i use sublime or vs code or actual fatass visual studio vim is my default, well nvim to be precise, but I will jump into vscode for some longer/bigger projects. It's just so loving easy to use when you're on a Mac or Linux desktop.
|
# ? Mar 10, 2023 01:10 |
Got a little further on my nut adventure.... nut-scanner found my device: code:
code:
code:
code:
|
|
# ? Mar 10, 2023 06:44 |
|
fletcher posted:Got a little further on my nut adventure.... So I was actually sort of impressed with the general quality and organization of the nut codebase. But the code running on your UPS? LOL. SNMP runs over UDP, and maybe it's doing broadcasts? If so, the Linux kernel may not be able to associate the outgoing packet with inbound replies. I mean, who knows *. If the only thing you're doing in this container is running this client periodically, there's no additional exposure by giving it the host network. (* I could help you figure this out if you're just dying to know, but it's going to be a long and winding road)
|
# ? Mar 10, 2023 15:20 |
cruft posted:So I was actually sort of impressed with the general quality and organization of the nut codebase. But the code running on your UPS? LOL. Interesting! That's good enough for me Thank you for the insight!! I appreciate it
|
|
# ? Mar 10, 2023 17:40 |
|
Got a display settings question, figured I'd run it by y'all first before diving into reddit etc. This is in Pop!_OS 22.04 w/ NVidia card/drivers. For various reasons I want to be able to programmatically switch between a couple of display-settings arrangements, let's call them "profiles". I have a collection of xrandr commands to do that. In one case I am setting a monitor to 144 Hz. When I do that, the visible scaling goes to 200%. I can open the settings GUI and set "Scale" back to 100%, and all is well, but obviously I want to avoid the GUI. I don't know what is causing the "Scale" change, and I don't know how to change it back. The output of "xrandr -q --verbose" shows no difference before and after correcting the scaling through the GUI. Same for the output of "dconf dump /". Anyone know what the "Scale" widget in the display settings GUI is affecting, in Pop!_OS or more generally Gnome? Hm one other thing actually, "xrdb -query | grep Xft.dpi" shows 192 instead of 96 in the 200% scale case. But I don't know much about what's going on in X resource stuff. It looks like I could force it back to 96 with "xrdb -merge" but that doesn't seem to affect the current active state of things.
|
# ? Mar 10, 2023 20:07 |
|
JLaw posted:Got a display settings question, figured I'd run it by y'all first before diving into reddit etc. Hi, maintainer of 9wm here. Before I dive into trying to answer this, can you tell me what you get as output when you run: code:
|
# ? Mar 10, 2023 20:10 |
|
Yeah, not Wayland-ing here (yet... may try switching to that). That var is empty.
|
# ? Mar 10, 2023 22:49 |
|
JLaw posted:Yeah, not Wayland-ing here (yet... may try switching to that). That var is empty. Okay, interesting. All the distros I use, Gnome = Wayland. I was sort of hoping it was Wayland so there would be an avenue you hadn't checked yet. The fact that the DPI is halving is encouraging: it means X understands everything's gotten blown up. I reckon the answer is "yes" but have you played with xrandr --scale? Also, when you use the GUI control to scale back down to 100%, did you make sure you're still using the same frequency? Like, maybe for some weird reason this monitor halves the resolution at 144Hz? Shooting in the dark here. I was really hoping it was a Weston thing.
|
# ? Mar 10, 2023 23:01 |
|
cruft posted:I reckon the answer is "yes" but have you played with xrandr --scale? Yah, it doesn't fix whatever is going on. "--scale 1" leaves it doubled. I remember trying other scale values to see if I could "cancel out" whatever is going on, and it gets the overall icon and window sizes etc back down to the right dimensions but some things are weird like the rightclick menu popup being truncated. cruft posted:Also, when you use the GUI control to scale back down to 100%, did you make sure you're still using the same frequency? Like, maybe for some weird reason this monitor halves the resolution at 144Hz? Yeah using the GUI I can for sure get it to normal resolution/scaling at 144 Hz. Running some games in vsync verifies that they hit 144 FPS. It's tantalizing to know that it's possible to get the correct state using the settings GUI... seems like there would have to be some way to do it with the CLI.
|
# ? Mar 10, 2023 23:10 |
|
|
# ? May 23, 2024 03:52 |
|
JLaw posted:Yah, it doesn't fix whatever is going on. "--scale 1" leaves it doubled. I remember trying other scale values to see if I could "cancel out" whatever is going on, and it gets the overall icon and window sizes etc back down to the right dimensions but some things are weird like the rightclick menu popup being truncated. Well, if it wasn't quitting time on a Friday, I would dive into the code for the settings to see what's going on. But it is that. Maybe I'll get a chance to grub around this weekend. Probably there's some weird quirk they found and coded up and (hopefully) left a comment about, that will hint you about what you need to do in this case. The DPI thing, yeah. That's making it seem within grasp.
|
# ? Mar 10, 2023 23:20 |