415 reputation
38
bio website
location
age
visits member for 3 years, 10 months
seen Dec 14 at 18:54

Feb
26
comment What to do when a linux desktop freezes?
Problem: some modern keyboards do not have a SysRq key... (the one I'm typing from right now doesn't, for instance - although it does have "print screen", "scroll lock" and "pause/break")
Oct
21
comment Changing tmux .bash_profile behavior
I asked a similar question and was redirected here. @jw013 's comment gives an effective way of changing this weird behaviour of tmux from within tmux (rather than tinkering the .*profile files), but it requires a -g flag to be effective, as in set -g default-command zsh
Oct
21
comment How to prevent tmux from reading .profile/.zprofile/.bash_profile
@Marco Your last comment actually solved my problem perfectly. Thanks a lot! And sorry for the (mostly) duplicate question...
Oct
21
comment How to prevent tmux from reading .profile/.zprofile/.bash_profile
@jasonwryan I somehow missed that comment - and in fact it doesn't work as is, sadly, but Marco's variant in the comment above does exactly what I was looking for (the -g is fundamental, apparently - I'll add it to the original comment).
Oct
21
comment How to prevent tmux from reading .profile/.zprofile/.bash_profile
regarding duplicate question : I did find unix.stackexchange.com/questions/61719/… while searching before, but I don't want to test for tmux from within my .*profile scripts, but rather to change something on .tmux.conf so that shells in tmux don't read those scripts. Will edit question accordingly.
Oct
21
comment How to prevent tmux from reading .profile/.zprofile/.bash_profile
@Marco : then why do the shells within new tmux sessions, windows and panes behave like login shells, whereas the shells inside a new xterm don't and other subshells don't?
Sep
3
comment Executing a script in .zshrc
Shouldn't the last line be . x rather than . z?
May
1
comment How to do integer & float calculations, in bash or other languages/frameworks?
Just always use bc -l rather than plain bc, then never worry about scale.
Jul
31
comment convert single-page landscape pdf into rescaled double-page portrait pdf
This worked when commenting out p.scaleBy(math.sqrt(2)), which for some reason produced a blank output pdf. Fortunately, evince is smart enough to print the resulting split pdf in full A4 anyway, so this did answer my question and avoids using any explicit geometry, which is a really good thing. Note on ArchLinux: first line must be explicitly #!/usr/bin/env python2 as python3 is the default.
Jul
27
comment convert single-page landscape pdf into rescaled double-page portrait pdf
Folllowing a link from your link, I found a way to do it. I'm going to add it as a separate answer for clarity.
Jul
27
comment convert single-page landscape pdf into rescaled double-page portrait pdf
@Marco Thanks for the tip! Do you have a suggestion for an alternative?
Jul
27
comment convert single-page landscape pdf into rescaled double-page portrait pdf
From the man page and --help of pdfjam, I understand how to join two pdf files/pages/sheets into one. But I want to do the opposite: split one page into two. Is that actually possible?
Jul
27
comment convert single-page landscape pdf into rescaled double-page portrait pdf
What I actually want to do is the opposite of psnup: instead of putting several pages into one, I need to split one page into two.
Dec
19
comment Xmonad is not changing layouts
Also, if the problem persists, it might help if you posted your xmonad.hs which might help determine its cause.
Dec
19
comment Xmonad is not changing layouts
Did you try reloading xmonad without logging out, with <kbd>mod+Q</kbd>? Does the problem persist if you do this?
Dec
13
comment Passing values through pipes
Both man grep and grep --help tell you in the first lines that standard input is accepted by this command. This should be the case for any command accepting STDIN.
Dec
7
comment What is the best distro for Toshiba Satellite L10-205(old hardware) used mostly for development?
As long as he avoids Gnome, KDE and even Xfce, he should be fine. Of course it would be better to avoid desktop managers altogether and stick to a light window manager (I personally use xmonad) but he's new to Linux. Lxde is probably the lightest that will still be comfortable as a starting point, and Lubuntu installs it by default without asking too many questions.
Dec
6
comment Compare two files
@Kevin: you're absolutely right! Edited in consequence.
Dec
5
comment What was superuser password set?
@Kevin edited answer to aknowledge this
Dec
1
comment Pasting from clipboard to vi-enabled zsh or bash shell
This worked perfectly after installing xsel and copying your suggested code with a slight modification to my .zshrc (I chose '^P' instead of '^X', overwriting the original behaviour of '^P')