Activity for Quasímodo
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Why is Pause/Break key is immediately released? Can that be fixed? From Wikipedia: Break key: > The Pause key is different from all other keys in that it sends no scancodes at all on release in PS/2 modes 1 or 2, so it is impossible to determine whether this key is being held down with older devices. In PS/2 mode 3 or USB HID mode, there is a release scancode, so... (more) |
— | about 3 years ago |
Edit | Post #284642 |
Post edited: |
— | about 3 years ago |
Comment | Post #284642 |
@#8049 Since `showkey` only prints scan codes, it shouldn't matter if the key is made a modifier or not. It's interesting that you cannot reproduce it. I tried it on a spare old computer and it was the same behavior. (more) |
— | about 3 years ago |
Edit | Post #284642 | Initial revision | — | about 3 years ago |
Question | — |
Why is Pause/Break key is immediately released? Can that be fixed? Since the Pause key is useless, I tried to map it to a modifier key. What is straightforward for other keys turned out not to work fine for Pause. By inspecting the output of `xev -event keyboard | grep -E '^Key|state'` for holding Pause and then pressing s, ``` KeyPress event, serial 28, synt... (more) |
— | about 3 years ago |
Suggested Edit | Post #282978 |
Suggested edit: Add a kernel tag (more) |
helpful | over 3 years ago |
Comment | Post #284594 |
@#8056 Yes, Gentoo's `lesspipe` also looks for `~/.lessfilter`. Very bad taste if you ask me... (more) |
— | over 3 years ago |
Edit | Post #284583 |
Post edited: Show environment variables; Explain why the issue may not be reproducible for some people. |
— | over 3 years ago |
Comment | Post #284583 |
@#8049 Thanks, indeed the problem was a different environment variable: `LESSOPEN=|lesspipe %s`. So either deleting that variable or using `-L` solves the problem. Would you like to write an answer? (more) |
— | over 3 years ago |
Comment | Post #284583 |
@#53503 Please see edit. (more) |
— | over 3 years ago |
Edit | Post #284583 |
Post edited: The problem is reproducible in a clean environment |
— | over 3 years ago |
Edit | Post #284583 | Initial revision | — | over 3 years ago |
Question | — |
Make Less use a normal view instead of hexdump view Less does not display data files normally, but if it were some sort of Xxd. ``` $ bash --norc $ export LESS= $ file -i /var/log/lastlog /var/log/lastlog: application/octet-stream; charset=binary $ less -EX /var/log/lastlog 00000000 a3 4c d2 60 74 74 79 32 00 00 00 00 00 00 00 00 |.L.`tty2... (more) |
— | over 3 years ago |
Edit | Post #284389 |
Post edited: Cleanup comments in first script; Add POSIX shell alternative. |
— | over 3 years ago |
Edit | Post #284389 | Initial revision | — | over 3 years ago |
Answer | — |
A: In a bash shell script, how to filter the command line argument list to unique entries only, for processing each? Bash Here Bash's associative arrays come handy. The idea is to put every argument as a key in a separate array, and then only process arguments that are not keys to that array. ```bash #!/bin/bash declare -A processed #Declare that "processed" is an associative array for e in "$@"; do #... (more) |
— | over 3 years ago |
Comment | Post #284250 |
Point 2 is moot: You can put the Sed script in a file and then the shell doesn't get in your way, all quotes are literal. Can you clarify point 1? Sed does allow multi-line scripts and can even do multi-line operations. (more) |
— | over 3 years ago |
Edit | Post #284251 | Initial revision | — | over 3 years ago |
Answer | — |
A: How to figure out the licenses of files installed from packages? The Debian Administrator's Handbook: The Inner Workings of the Debian Project: > Documentation for each package is stored in /usr/share/doc/package/. (...) The copyright file includes information about the authors and the license covering the software. (more) |
— | over 3 years ago |
Comment | Post #283816 |
@#8049 That is great! I never bothered to find out how to get rid of the latency. Also that led me to find an Arch Linux article with some alternatives (answer edited with that). (more) |
— | over 3 years ago |
Edit | Post #283816 |
Post edited: |
— | over 3 years ago |
Edit | Post #283816 | Initial revision | — | over 3 years ago |
Answer | — |
A: With a V4L2-compatible webcam, how to see its video feed for the purpose of adjusting aiming? I routinely use MPV for that. mpv --profile=low-latency --untimed av://v4l2:/dev/video0 You may need to try other devices, as listed by `ls /dev/video`. Thanks to Canina for suggesting the two --options, necessary to avoid latency. I also found Arch Linux: Webcam setup: Applications,... (more) |
— | over 3 years ago |
Comment | Post #283657 |
Are the dollar signs part of the copied selection? If not, does it not work if you paste it right away in the terminal? In most cases, each newline character should trigger the execution of the line as a command. (more) |
— | over 3 years ago |
Edit | Post #283521 |
Post edited: Edit title and remove tag |
— | over 3 years ago |
Edit | Post #283522 | Initial revision | — | over 3 years ago |
Answer | — |
A: What are IUSE flags? IUSE flags are simply the list of available and default USE flags for a package as defined by the Ebuild maintainer. Definition IUSE is defined from a developer's perspective in `man 5 ebuild` (not `man ebuild`!): >IUSE > > This should be a list of any and all USE flags that are l... (more) |
— | over 3 years ago |
Edit | Post #283521 | Initial revision | — | over 3 years ago |
Question | — |
What are IUSE flags? Every Gentoo user knows USE flags. Occasionally I stumble upon IUSE flags, for example, `man emerge` mention them in the description of an option: > --newuse, -N > > ... > > USE flags may be toggled by your profile as well as your USE and package.use settings. If you would like to skip rebui... (more) |
— | over 3 years ago |
Comment | Post #281869 |
How would unatended-upgrades package figure out that you, as a person, has access to root account? Also, from the `sudoers` file + (if needed) groups info it could figure whether the logged user has full, partial or no sudo rights, but it could hardly figure out whether a user actually has the sudo p... (more) |
— | over 3 years ago |
Edit | Post #283088 |
Post edited: Mention manual page; Add tag. |
— | over 3 years ago |
Edit | Post #283088 | Initial revision | — | over 3 years ago |
Question | — |
What does `emerge --update --newuse --deep @world` have to do with package removal? In Debian-based distributions, one can update the system with `apt upgrade` and cleanup unused dependencies with `apt autoremove`. Period. On Gentoo that is apparently not as straightforward. From Gentoo Cheat Sheet: Package removal: > The recommended way to remove a package is by using `em... (more) |
— | over 3 years ago |
Comment | Post #282695 |
The question describes that the GTK theme changes. This may be caused by the GNOME desktop environment. If you switch to a non-GNOME environment (no need to uninstall it, rather just don't start it), you might narrow down whether GNOME is to blame by looking at programs that use GTK, such as Firefox.... (more) |
— | over 3 years ago |
Comment | Post #282695 |
It's hard to tell what's going wrong. Can reproduce that behavior in a small and simple window manager (e.g. Dwm or Cwm)? GNOME is too pervasive for tracking things down... (more) |
— | over 3 years ago |
Edit | Post #282408 |
Post edited: A firmware tag should be appropriate. |
— | over 3 years ago |
Edit | Post #282411 |
Post edited: Some users may already have configured sudoers, so let them choose to use sudo or su. |
— | over 3 years ago |
Suggested Edit | Post #282411 |
Suggested edit: Some users may already have configured sudoers, so let them choose to use sudo or su. (more) |
helpful | over 3 years ago |
Comment | Post #282409 |
Great answer. I'm just wondering about the necessity of editing the modules files (see, for example, [Modules – Debian Wiki](https://wiki.debian.org/Modules#Automatic_loading_of_modules)). In my Debian system the wireless card firmware is auto-loaded at boot and all I ever had to do was to install th... (more) |
— | over 3 years ago |
Suggested Edit | Post #282408 |
Suggested edit: A firmware tag should be appropriate. (more) |
helpful | over 3 years ago |
Comment | Post #282372 |
If it contains a non-line, it is not a text file. See for example a more extended answer in [What conditions must be met for a file to be a text file as defined by POSIX?](https://unix.stackexchange.com/questions/446237/what-conditions-must-be-met-for-a-file-to-be-a-text-file-as-defined-by-posix). Al... (more) |
— | over 3 years ago |
Comment | Post #281930 |
I don't really ask for a Platonic category of file, but for the POSIX category. Most text-processing utilities (sed, grep, awk, ...) assume text files in the POSIX specification. To keep my applications portable, I try to conform to POSIX. But then there are many users/editors that, for example, don'... (more) |
— | over 3 years ago |
Edit | Post #281930 |
Post edited: Fixed misplaced hyphenation |
— | over 3 years ago |
Suggested Edit | Post #281930 |
Suggested edit: Fixed misplaced hyphenation (more) |
helpful | over 3 years ago |
Comment | Post #281930 |
Indeed, I had only read `man 1p file`. To be honest I don't see how the information you bring explains the matter. Note that none of the files are reported as UTF-8, but instead the first three as "ASCII", the next two as "non-ISO extended-ASCII" and the last as simply "data". An important question: ... (more) |
— | over 3 years ago |
Comment | Post #281929 |
@celtschk Well, `file` is [POSIX specified](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/file.html), so I would suppose it conformed to POSIX idea of what a text-file is. (more) |
— | over 3 years ago |
Comment | Post #281929 |
@Moshi But then any kind of file would be a text-file, since you could say it contained zero lines. Even a file with a NUL would be a text-file. Instead, I interpret that if the file contains non-lines, then it is not a text-file. In that sense, an empty text file would be the only case for which "ze... (more) |
— | over 3 years ago |
Edit | Post #281929 |
Post edited: Octal 200 cannot be the first byte of a character |
— | over 3 years ago |
Comment | Post #281929 |
@Moshi True, I said 0x80 was straightforwardly invalid but it is not. Still, it cannot be the first byte of a valid character. It forcefully follows that neither file 4 nor file 5 are newline terminated or that they have an invalid character. File 3 is also not newline terminated (even in ASCII encod... (more) |
— | over 3 years ago |
Edit | Post #281929 |
Post edited: Fix link that pointed to a irrelevant section; address Moshi's comment explaining why I think files 3 to 6 are non-text files. |
— | over 3 years ago |