Unanswered Questions
35
votes
1answer
1k views
How to combine zsh autocomplete for wrapper function arguments and existing command
I work mostly in gvim and many terminals. Originally, I preferred to open all my files in a single vim instance. To that end I used an alias to open files from my terminals in the current 'vim ...
29
votes
1answer
1k views
Remapping keys that generate multiple scan codes
I have a ThinkPad W540. On its keyboard there are four multimedia keys above the numpad. Two of those keys generate keycodes (and, apparently, scancodes) that correspond to combination of keys, Win_L +...
22
votes
0answers
506 views
Auto-switching PulseAudio profiles based on input(s) channel count
I'm running audio over HDMI to my receiver, which has a full 7.1 setup connected to it. However, most of the stuff that I listen to has far fewer channels—some is mono, most is stereo, a bit is 5.1. ...
19
votes
0answers
365 views
Completion for the first argument of cd OLD NEW
In zsh, the cd command has a two-argument form: cd OLD NEW changes to ${PWD/OLD/NEW}. With the new-style completion system, zsh is capable of completing NEW: the second argument is completed based on ...
17
votes
2answers
4k views
Sharing your desktop with Google Hangouts, dual monitor and GNOME Shell
I have a laptop with a built-in screen and an attached monitor.
When I start a Google's video Hangout and share my desktop, I would like to be able to share only the attached screen, but I don't know ...
15
votes
0answers
669 views
Why are slab objects not reclaimed automatically
Everyday after a full system backup, various programs are failing with read errors until I run echo 2 > /proc/sys/vm/drop_caches to free reclaimable slab objects.
For example, here's the output of ...
15
votes
1answer
705 views
allow regular users to use network namespaces
I have an architecture using network namespaces (netns). I would like to allow regular users to do some operations in these netns.
I could write a script netns-exec.sh, inspired by this post, ...
15
votes
2answers
6k views
clipboard not working when connecting via rdesktop to xrdp-sesman
I have a Debian machine with xrdp-sesman setup following way
Xvnc 127.0.0.1:5910
xrdp-sesman 127.0.0.1:3350
xrdp 0.0.0.0:3389
I am connecting to this machine with rdesktop ...
14
votes
1answer
678 views
change icon sizes in Gtk+ 3 applications
Using Gtk+ 2, I could use the gtk-icon-sizes option like this:
gtk-icon-sizes = panel-menu=32,32:panel=32,32:gtk-menu=32,32:gtk-large-toolbar=64,64:gtk-small-toolbar=48,48:gtk-button=32,32
gtk-icon-...
14
votes
0answers
3k views
git-upload-pack hangs indefinitely
I have the following call structure:
Jenkins runs fab -Huser@host set_repository_commit_hash:123abc.
set_repository_commit_hash runs git fetch with pty = False.
The child process ssh [email protected] ...
13
votes
0answers
288 views
How to make the zsh “correct” functionality, remember my spell-correction decisions
I have enabled correction (I wouldn't call it autocorrection specifically because of this issue) in zsh by enabling setopt correct in my .zshrc.
Now, when I type dtae in a terminal, I get:
dtae ...
13
votes
1answer
1k views
Why are there two different values for the size of a drive and how to reconcile them with device-mapper and LVM?
I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
13
votes
1answer
453 views
What does POSIX require for quoted here documents inside command substitution?
In this question someone reports a problem using a here document with a quoted delimiter word inside $(...) command substitution, where a backslash \ at the end of a line inside the document triggers ...
12
votes
0answers
5k views
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
I get this error in Xorg.0.log
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
Googling quickly reveals that this error is caused by starting Xorg as non root user. Problem ...
11
votes
2answers
4k views
How do I increase the maximum swap space on Mac OS X?
On Mac OS X Yosemite 10.10.5, when I try to run a calculation that needs to allocate and use 128 GB of memory (it is a command line program written in C), the kernel kills my process with extreme ...