| bio | website | |
|---|---|---|
| location | Seattle, WA | |
| age | ||
| visits | member for | 1 year, 4 months |
| seen | 11 hours ago | |
| stats | profile views | 157 |
I am a computer programmer. Knowledge representation and algorithmic complexity are my main interests.
|
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. |
|
Apr 30 |
comment |
Removing all spaces, tabs, newlines, etc from a variable? @magixx Thanks for the correction. |
|
Apr 24 |
comment |
How to demonstrate invalid PID assumptions? To end up killing the wrong process you need 1) a process that uses a PID file to die without removing the PID file, 2) the process not be restarted by systemd/init/launchd/whatever, which would put a new PID in the PID file, 3) 100,000 PIDs have been assigned so that PIDs start being reused, 4) a kill() system call directed at the PID of that old process while a new process is using the PID. If the user running the process isn't root, the odds of killing the wrong process decrease even further. There's no way to orchestrate these conditions easily on a live system. |
|
Apr 9 |
comment |
I have a route to the network but from the traceroute output it doesn't leave the server @depquid Yes, but 10.32.32.1 is being used as a gateway and it may be able to talk to 10.32.13.128/25 on another interface. There's no way to know whether it can from this table, but assuming that it can there's nothing wrong with the route. |
|
Apr 4 |
comment |
Emacs: mode-local macro with dashes and dots If you do regex searches using \w, dash and period are now going to be matched in buffers using the altered syntax table. Cursor motion commands will also be affected; forward-word will no longer stop before these characters. Similarly kill-word will delete more text than before. I think this behavior would be quite surprising and unpleasant in programming mode buffers, but in a text mode like HTML, I don't think it would cause much grief. |
|
Apr 4 |
comment |
Wrong behavior of xargs Shell variables do not maintain their values across different invocations of the shell, so what you're doing will never work. Try piping find's output to wc -l to count the lines of output. |
|
Apr 4 |
comment |
I have a route to the network but from the traceroute output it doesn't leave the server The routes look OK to me. Your gateway is on the same subnet, and you have a route through it to your destination. You need to make sure that 10.32.32.1 is actually acting as a gateway, and that it will respond to ICMP ECHO packets. Some admins turn off ping responses. |
|
Mar 31 |
comment |
mount error “is not a block device” newdir should be the name you want created that points back to olddir. newdir should not already exist. |
|
Feb 11 |
comment |
Why does “chmod 1777” and “chmod 3777” both set the sticky bit? @jippie setuid and setgid bits go away if the file is modified, so you can't get root access that way. |
|
Jan 16 |
comment |
How to fix the corruption of the tar balls? Test extract of the original files with tar -tf, because they may already be corrupted. If the test extract goes OK, then use some hashing tool like MD5 or SHA to check whether the transferred files and the original gz files are the same. If they aren't the same, then transferring the files corrupted them. If they are the same, then your gzip extraction tool on Windows is broken. |
|
Dec 9 |
comment |
Removing consecutive newlines with ed The FAQ says "You should only ask practical, answerable questions based on actual problems that you face." Using ed for this instead of sed | cat -s doesn't seem practical or a problem that anyone would actually face, so I think this question should be closed. |
|
Nov 29 |
comment |
Logging ALL stderr output of crontab to file @endolith I've edited the answer to give a basic setup which should work for sendmail and broadly compatible MTAs. You'll have to write the script yourself. |
|
Nov 19 |
comment |
SSH tunneling error: “channel 1: open failed: administratively prohibited: open failed” A useful general tip but not an answer to the question posed. |
|
Nov 1 |
comment |
Extract image from a m4a file? If you're referring to Apple's music files, I can drag the artwork from iTunes onto my Mac desktop. |
|
Oct 21 |
comment |
Samba's “inherit permissions” does not inherit modes for other You also need to consider the values of directory mask and force directory mode, either of which might be affecting your results. Set them explicitly and see if your results change. |
|
Oct 1 |
comment |
Reserved characters in file names @llua But the echo "*" command showed that the shell wasn't treating * specially within double quotes. Something odd is going on here. |
|
Sep 19 |
comment |
Dealing with script interruption Comment out the grep for the first run since nothing has yet been processed. Worry about a more efficient implementation if the system really does crash with 250k lines in the file and you have to restart. Editing files_to_process and removing the first N lines would be a straightforward approach, with N = wc -l files_already_processed. |
|
Sep 5 |
comment |
Why isn't cron running automatically? @JingqiangZhang If the command is running and failing, cron should be mailing the user the error messages. Also, cron itself should be logging its activities somewhere, probably in /var/log. |
|
Aug 31 |
comment |
How do I restore my console default font, and why has it changed? My guess is that you hit a key combination that told the terminal to increase the font size. |
|
Aug 30 |
comment |
Is it possible to stop emacs from down translating my key chords? The second part of the question says " I'd also like to know what advantage this (dubious) feature offers...", so that's why I posted this as an answer. But I'll also answer the first part of the question. |