Activity for matthewsnyderâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: What is cat abuse/useless use of cat? UUOC is an ancient Unix yarn. I can't find the original essay (I believe from Usenet, where else...) but if memory serves it's either from early 90s or before. `cat` is actually a program for concatenating files. `cat file1 file2 ...` will give you `file1+file2+file3`. Together with `split`, this ... (more) |
— | about 2 months ago |
Edit | Post #291136 | Initial revision | — | about 2 months ago |
Question | — |
What is cat abuse/useless use of cat? Sometimes I share Unix commands online, and people chastise me for "useless use of cat" (UUOC) or "cat abuse". My cat is quite comfy and doing very well, thank you. What are they talking about? (more) |
— | about 2 months ago |
Edit | Post #291135 | Initial revision | — | about 2 months ago |
Answer | — |
A: How do you generate random strings from /dev/random? `/dev/random` is a stream of every possible value. You're supposed to filter it to take the ones you want. This is efficient, although if the values you want are such that only, say, 1% of what comes out of `/dev/random` is acceptable, then it will obviously take 100x longer to generate them. But luc... (more) |
— | about 2 months ago |
Edit | Post #291134 | Initial revision | — | about 2 months ago |
Question | — |
How do you generate random strings from /dev/random? Of course every language has some kind of `random` library... But can you generate custom random strings with just basic CLI tools? For example, we have `/dev/random` which provides a stream of random values... But they're random bytes, so a lot of them are non-printable or special characters. If ... (more) |
— | about 2 months ago |
Edit | Post #291123 | Initial revision | — | about 2 months ago |
Answer | — |
A: Which Linux system to use? Most Linuxes are small, and I would consider them for experts by default. This is because you won't be able to just Google problems and copy the solution from some blog. You'll have to actually troubleshoot yourself, read manuals, understand the system and discover the fix yourself. Most Linux softwa... (more) |
— | about 2 months ago |
Edit | Post #290450 |
Post edited: |
— | about 2 months ago |
Edit | Post #291114 |
Post edited: |
— | about 2 months ago |
Edit | Post #291114 | Initial revision | — | about 2 months ago |
Answer | — |
A: How do you remap mouse buttons? No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in part of Xorg via xinput. The process is something like this: `xinput list` and find the ID of your mouse `xinput get-button-map $MOUSEID` and see the current map `xev -event button | gr... (more) |
— | about 2 months ago |
Edit | Post #291088 | Initial revision | — | 2 months ago |
Question | — |
Is there a way to automatically normalize paths when extracting RARs? I use `unrar` to extract rar archives sometimes: ``` UNRAR 6.24 freeware Copyright (c) 1993-2023 Alexander Roshal ``` Sometimes the archive root has several files, so if I do `unrar x foo.rar` it will create a bunch of junk in my working directory. Therefore I must do `unrar x foo.rar foo/... (more) |
— | 2 months ago |
Comment | Post #291020 |
WSL can act funny because of the way it's integrated into Windows, where many core Linux functions are disabled because Windows does it for WSL.
Docker, while also not a full Linux, tends to have fewer problems so try running it in a container like https://hub.docker.com/_/archlinux . Plus, many p... (more) |
— | 2 months ago |
Edit | Post #290987 | Initial revision | — | 3 months ago |
Question | — |
How do I diagnose TLS errors? For reasons of my own, I have services on my LAN which use HTTPS and I create my own certificates for these. Over the years, the usage of TLS has evolved considerably. Many features that were once supported are no longer considered secure, and there are many things that were once "optional" but no... (more) |
— | 3 months ago |
Edit | Post #290939 | Initial revision | — | 3 months ago |
Question | — |
What's the point of faillock? On a default Arch install, `faillock` makes it so that if you enter the sudo password wrong too many times, even the correct password will be rejected until the timer is up. At the same time, you can type `faillock --reset` without sudo and reset the timer. What is the point of this? I can s... (more) |
— | 3 months ago |
Comment | Post #290914 |
You should mention the distro. The baseline audio set up usually differs a lot between them. (more) |
— | 3 months ago |
Edit | Post #290891 |
Post edited: |
— | 3 months ago |
Edit | Post #290891 |
Post edited: |
— | 3 months ago |
Edit | Post #290891 | Initial revision | — | 3 months ago |
Answer | — |
A: What is synchronization in Wine? I'm not an expert on this at all, but so far there are no answers, so I'll try one. "Synchronization" is in the context of multithreading. For those who don't know how multithreading works: Multithreading is like having multiple CPUs run parts of the program in parallel. This runs into a proble... (more) |
— | 3 months ago |
Comment | Post #290827 |
>`sudo ls ~` will not tell you whether `sudo` sets `HOME`
This claim is not made in this question.
(more) |
— | 3 months ago |
Edit | Post #290827 |
Post edited: |
— | 3 months ago |
Edit | Post #290827 |
Post edited: |
— | 3 months ago |
Edit | Post #290827 | Initial revision | — | 3 months ago |
Answer | — |
A: Why does Linux use the sudo command? In Unix systems like Linux, some commands are considered dangerous and only the `root` user can run them. Normally, you don't login as `root`. So when you want to run dangerous commands, you must first become `root`. Then you run your dangerous stuff, and go back to your own user. This switching b... (more) |
— | 3 months ago |
Edit | Post #290797 |
Post edited: wc supports filename arguments, and prints the filename as well. |
— | 3 months ago |
Suggested Edit | Post #290797 |
Suggested edit: wc supports filename arguments, and prints the filename as well. (more) |
helpful | 3 months ago |
Edit | Post #290702 | Initial revision | — | 3 months ago |
Question | — |
What is Kmail running in the background? When I run Kmail on i3, and then close it, it appears to continue running some stuff in the background. For example, I periodically get notifications about new mail from dunst, even though I have closed Kmail. What does Kmail do in the background? (more) |
— | 3 months ago |
Edit | Post #290687 | Initial revision | — | 4 months ago |
Question | — |
What is synchronization in Wine? Wine has options for "Synchronization", like "Esync" or "Fsync". What do these actually do? What is the purpose of such an option? What is the impact to normal usage of a Windows program in Wine? (more) |
— | 4 months ago |
Edit | Post #290631 |
Post edited: |
— | 4 months ago |
Comment | Post #290666 |
I posted this to share what I know, but I am curious if there are other ways to do it. So please feel free to post an answer if you know any others. (more) |
— | 4 months ago |
Edit | Post #290666 | Initial revision | — | 4 months ago |
Answer | — |
A: How do you remap mouse buttons? Piper can be used for this. All mice supported by Piper (actually libratbag) are a result of the community reverse engineering the mouse protocol. It will not support all mice, but only selected ones. Corsair mice are not supported by Piper, but they are supported by ckb-next which is analogous to... (more) |
— | 4 months ago |
Edit | Post #290665 | Initial revision | — | 4 months ago |
Question | — |
How do you remap mouse buttons? How can I remap buttons on my mouse, especially for more exotic ones like MMO mice? (more) |
— | 4 months ago |
Suggested Edit | Post #290631 |
Suggested edit: (more) |
helpful | 4 months ago |
Edit | Post #283940 |
Post edited: |
— | 4 months ago |
Edit | Post #290588 | Initial revision | — | 4 months ago |
Question | — |
An alternative to pacman sudo nag? Some pacman functions require sudo. When I forget the sudo, you get: ``` error: you cannot perform this operation unless you are root. ``` I then have to press the keys: `up, home, s, u, d, o, space, enter` to rerun with sudo. I find this irritating and it breaks my flow. Is there a better... (more) |
— | 4 months ago |
Edit | Post #290549 |
Post edited: |
— | 4 months ago |
Edit | Post #290549 | Initial revision | — | 4 months ago |
Answer | — |
A: How do I safely replace brew on Big Sur? You can try to search your shell's history for `brew install`. Every shell has its own history command, but for example on fish I can do `history | rg brew install`. (`rg` is https://github.com/BurntSushi/ripgrep) This should make it easy to figure out most things you explicitly installed, but it ... (more) |
— | 4 months ago |
Edit | Post #290525 | Initial revision | — | 4 months ago |