1,444 reputation
825
bio website
location
age
visits member for 3 years, 3 months
seen Apr 11 at 1:58

Feb
19
comment Does a duplicate entries in a PATH variable revoke the precedence given by the first entry?
aha! Yes I should have thought of that. The fact that things changed after manually altering my PATH was just coincidence of timing. Makes perfect sense now.
Feb
14
comment Easily get a particular column from output without sed or awk
Actually, the problem here is that the function doesn't take arguments, so it's very narrowly focussed on a specific case, and is not flexible. If you could work out the quoting so that you can pass arguments into it, that would be useful. And of course remove everything before the pipe, so you can use it with any arbitrary input, and specify which columns you want.
Feb
14
comment Easily get a particular column from output without sed or awk
That's an overly-narrow definition of "futz". Would you prefer I used "fiddle"? I'm in no way disputing the value of sed or awk, just pointing out that I don't want to shift focus from one thing to another.
Jan
30
comment When should I not kill -9 a process?
@dhruvbird: just because your DBs are supposed to come equipped with bullet-proof vests doesn't mean you should shoot them if you don't need to. While you may be right that it's not as risky as Arcege seems to say, I think his point still stands that it's risky and should be a last resort.
Jan
16
comment How to hide files from Bash?
D'oh! yes you're right... I forgot that on my Mac I'm usually trying to hide Unix stuff from the window manager, not the other way 'round. Other than .DS_Store OS X doesn't leave its turds lying around, at least not in the home directory. I've corrected the question.
Jan
1
comment How to turn off color with `ls`?
You could also use command ls, of course, but this is a little faster.
Jan
1
comment How to turn off color with `ls`?
This is really the answer I was looking for, but I'll keep slm's answer as the chosen one since it handles cases of non-GNU ls, like BSD-derived versions (OS X, Solaris, and of course *BSD).
Dec
31
comment What is MEAN (on Ubuntu)?
Since I assumed that (unlike Ruby on Rails or something) Ubuntu is incidental--that is, MEAN does not require Ubuntu (they say "MEAN on Ubuntu" simply because they're giving you an Ubuntu VM with MEAN)--I didn't think of searching for the whole thing in quotes. But you're right, since other people were confused by the very same Digital Ocean panel button as I was, there you have it: relevant search results.
Dec
25
comment Stop vim from messing up my indentation on comments
I was able to skip the last two lines and still solve the problem
Nov
26
comment Is there a way to get *actual* (uninterpreted) shell arguments in a function or script?
Amazing answer! It might take me a while to absorb it all.
Oct
14
comment On Linux, can you write to HFS+ extended attributes?
So I guess the remaining question is this: will the extended attributes from the client FS (HFS+) get translated to extended attributes on the NAS FS (ext4 or possibly ZFS) and make the round trip completely intact?
Oct
11
comment On Linux, can you write to HFS+ extended attributes?
@derobert: are you suggesting that I can just push files with HFS+ extended attributes to the server and they'll be preserved no matter what FS is used on the server? And that I can modify them from OS X clients?
Oct
11
comment On Linux, can you write to HFS+ extended attributes?
@derobert: FreeNAS (which includes AFP, NFS, Samba, etc.), if it will do what I need. But any Linux (or BSD) product would be fine.
Sep
27
comment Converting relative path to absolute path
The -f switch does not exist on Mac OS X (at least as of 10.8.5). Without the -f switch it just returns an error code.
Aug
16
comment How to set up a “child” proxy that doesn't need a “parent” proxy
The solution to that problem is to use CNTLM, which I'm already using. It does mention using a PAC, but doesn't explicitly answer the question whether a PAC file will work globally. Can you answer that?
Aug
16
comment How to set up a “child” proxy that doesn't need a “parent” proxy
Won't this only work for browsers? I need something that works for yum, curl, git, wget, etc., etc.
Aug
14
comment Run “logout script” for non-login shells
D'oh! Of course, the -. I ended up putting trap . "$HOME/.bash_logout" 0 in the .bashrc before coming back here and being reminded why I should always use -... a forgotten habit...
May
14
comment Is there any way for group “owners” to have full rights of a file or directory owner?
ahh... I knew you had to have write permissions on the directory before you could delete things in it, but I didn't realize that the permissions on the file were irrelevant. Thanks. I'm editing the question to reflect the fact that deletion is a different matter entirely.
May
14
comment File owner must belong to file group?
Are you saying that if I'm the owner of a file, and I'm in the group that "owns" it, and the group has permission to write and execute while I only have read permission, then the group permissions will be ignored for me?
Apr
3
comment How can I bind multiple tmux commands to one keystroke?
Really?... It's been a while since I tested the other approach, but I'd be surprised if tmux broke that. If you're absolutely sure it doesn't work, then I'll test again and possibly accept this answer instead.