7,172 reputation
1827
bio website
location Seattle, WA
age
visits member for 2 years, 11 months
seen yesterday

I am a computer programmer. Knowledge representation and algorithmic complexity are my main interests.


Dec
6
comment freebsd10 disc cloning
More details, please. What did you expect to happen, and what happened instead?
Nov
30
comment Regex long list of numbers
Indeed, the idea of using a regex to match a range of integers definitely rings warning bells that this is likely an XY problem.
Oct
14
comment Files and Directories Dissappearing from Software Raid on Power Failure
What filesystem are you using on top of the RAID?
Oct
13
comment When is a symlink treated as the thing it links to, and as a symlink?
Related: unix.stackexchange.com/questions/31114/find-usage-with-l/… .
Sep
8
comment Shell loses keypresses when running SSH in the background
Well, if he's running it with &, ssh obviously does not need a password.
Sep
6
comment stream edit >GDRLR5L04EQY8D 3931|1166 into >3931
@thermophile You mentioned that the line contained a tab character. That certainly would cause the code above to fail. It expects a space before the strings of digits, not a tab.
Sep
5
comment stream edit >GDRLR5L04EQY8D 3931|1166 into >3931
@thermophile Well, I can only guess that the parsing required is more than the single example you gave us suggests.
Sep
5
comment stream edit >GDRLR5L04EQY8D 3931|1166 into >3931
@thermophile sed reads from standard input and writes to standard output, so the usual shell i/o redirection will work. I've edited the answer to show how to do this.
Sep
5
comment nfsroot freezing every once in a while presumably due to network glitch
NFS should resume working once the network comes back, so you should investigate the possibility that the network isn't coming back, due to hardware failure or some other cause. Try pinging the server continuously and disconnecting/reconnecting your network cable. If ping resumes working, you've ruled that out.
Sep
5
comment stream edit >GDRLR5L04EQY8D 3931|1166 into >3931
@Mikel Thank you.
Sep
4
comment Linux cannot compile without GCC optimizations; implications?
The coding practices question fits Programmers.SE. The question about what future version of GCC might break Linux kernel builds would be opinion-based, so that question should be dropped.
Sep
4
comment Linux cannot compile without GCC optimizations; implications?
This question is off-topic here, but would be a good question on Programmers.SE, I think.
Sep
3
comment git diff of copies that only added lines
If you "diff copy_A copy_B", every line after the initial stretch of identical lines will be a conflict. How could it be otherwise?
Aug
30
comment Apply given rsync exclude patterns on given directory
Write it up as an answer, explain why your way works better, gain some rep.
Aug
29
comment sshd suddenly wants a passphrase from Linux box, but not from windows (putty)
Use ssh -v to see the steps ssh goes through to authenticate the connection, and perhaps that will ring a bell for you.
Aug
28
comment Why would a partition be in use by the system if it isn't mounted?
So you booted off sda3 then mounted sdb3 on / over top of it, which overwrote the mtab entry, hence the mount command output showing no sign of sda3.
Jul
10
comment Would you store the Makefile for later uninstallation?
+1 for the idea of using script. It seems obvious now, but I never thought to do it myself.
May
27
comment Which command to force a drive to spin up?
Without /dev/raw I think you're out of luck. As for disk buffer cache, it's hard to say. I'm used to using kernels that disable on-disk cache, but it's possible that the drive won't spin up if that cache is used. A further complicating factor are the hybrid drives that use flash+rotating rust.
May
22
comment How to print the first three lines and last two lines of a file using perl?
... as in one of the many available at CPAN. For the love of God don't write another parser yourself.
May
14
comment What does the *.*;auth,authpriv.none -/var/log/syslog line mean in rsyslog config file?
It's implied in the documentation above. The priority part is skipped (ignored) for all but the last facility if you list multiple facilities using a comma. The docs could certainly be improved in this area.