6,597 reputation
1723
bio website
location Seattle, WA
age
visits member for 2 years, 7 months
seen yesterday

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


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.
May
14
comment What does the *.*;auth,authpriv.none -/var/log/syslog line mean in rsyslog config file?
auth,authpriv matches both auth and authpriv. The .none part applies to both of them. *.*;auth;authpriv.none would behave as you describe.
Apr
11
comment How to determine eth0 gateway address when it is not the default gateway?
Interfaces don't have gateway addresses, netblocks do. A gateway address tells the kernel where to forward packets destined for some host on some network. If the address is associated with a given interface then that interface will be used, but the address is independent of the interface.
Apr
9
comment Why does parallel slow down after a while?
If you renice the parent process, all future spawned children will share that niceness value.
Apr
8
comment Why does parallel slow down after a while?
Use the renice command.
Mar
16
comment Terminating an infinite loop
@cirosantilli Yes, that's the reason. If a process handles the signal and quits, that's different than the process being terminated by an unhandled signal.
Mar
15
comment Terminating an infinite loop
@cirosantilli Done.
Mar
8
comment DHCP lease acquired , yet no ping, not even to default gateway
Please provide the complete output of netstat -rn and ifconfig.
Jan
22
comment Why doesn't setuid on /sbin/dhclient work as intended?
I'm assuming a C program which would call setreuid(), then execve().
Nov
7
comment Split tmux windows with same keys as in Emacs?
Have you read the man page for tmux? It should be obvious what to do. Unfortunately if you do it, then C-x stops working as a prefix key in Emacs because tmux will interpret it instead.
Oct
19
comment Mac OS X Darwin: how to reset admin password?
I advise buying an old installation DVD and doing a complete OS reinstall at your earliest convenience. I would not trust the existing installation to not be compromised in some fashion.
Sep
29
comment Tune write disk cache flushing algorithm
Which filesystem are you testing against? What kernel version are you using?
Sep
14
comment Debian machine makes repeated requests to DNS for <gateway_ip>.in-addr.arpa
That log entry says that .2 is trying to reverse resolve .1, not itself. Just ping'ing the router would be enough to generate such requests. netstat -r or traceroute would do the same.
Jun
18
comment perl one liner + how to replace any last IP address octets
Why do you need a Perl one-liner?
Jun
12
comment How do I trigger autocomplete without a tab key?
For some reason I didn't see the Ctrl button overlaying the text, so you could use that, I guess.
Jun
11
comment How do I trigger autocomplete without a tab key?
You don't, at least not to bash. Normally I would tell you to type Control-q A or Control-v A to get an A in this case but you don't seem to have a control key either. Pick Z or one of the easy symbols if A looks like something you can't live without.
May
12
comment How to disable caps-lock, without remapping or disabling it?
Please provide details as to what you tried, i.e. the exact xmodmap expressions. Without details we can't tell whether you knew what to do and did it wrong, or whether you did it right but the code failed for some other reason. Also give us the OS you're using because some have keycode processing that occurs below the X server level.