404 reputation
58
bio website
location United States
age 43
visits member for 3 years, 9 months
seen Dec 16 at 20:59

Working amidst the ever merging & forever blurred realms of technocrat and troglodyte.


Oct
12
comment Cronjob etiquette?
If you tried doing this on any well-maintained server (e.g., consider google.com), you'll get a captcha or simply be blocked from access for crossing some unknown, invisible line. (If you've ever restored your browser with 50+ tabs open with google queries, you know what I mean.)
Oct
12
comment Cronjob etiquette?
@Mario RSS is designed exactly for what is being asked. One should at least check to see if the option is available. (And, we're talking about the impact on the server, not effort on the client. Nonetheless, an aggregator/reader is a lot simpler to use than setting up a cronjob to send out email.) For a server, polling via http (or push notifications) does not scale. To call it "an alternative representation" is an understatement; RSS/ATOM allows for alternate, scalable architectures. Changes can be published to a syndication server; and clients can easily monitor using readers (like email).
Oct
11
comment Cant disable password complexity windows 8.1 home
obligatory xkcd => xkcd.com/936
Oct
11
comment Cronjob etiquette?
Ideally, the newsletter / website would have an RSS (or atom/etc) feed, so that you don't have to "poll", but can rather "subscribe" to updates. (Look for a rss or atom icon on their site.) In the absence of a good host, clients can't be faulted for lapses in etiquette. (It's nice of you to ask, though.)
May
3
comment Correct way to override file permission /dev/null
A script can't "write" temporary files to /dev/null. (It's likely not a permissions issue: anyone can send data to /dev/null -- it's a bit bucket.) If it's sending data to /dev/null, then that data is obviously irrelevant to the correct working of the script (assuming the script works correctly). If fact, changing /dev/null on your system will likley break not only this script, but also other things on your system. Scripts are just text -- so, yes, you'll have to change the script in order to do what you want.
Sep
21
comment How to turn on laptop with external power button
I had to re-read this description a couple times to understand what was being asked. My initial response to the question in the title was to just say "press the button." :-)
Sep
20
comment Convert .ai to .png?
Inkscape import formats: wiki.inkscape.org/wiki/index.php/…
Sep
20
comment How can I make 'diff -X' ignore specific paths and not file names?
true, could have saved a lot of time. just install rsync :-) (seriously, just install rsync)
Sep
19
comment How can I make 'diff -X' ignore specific paths and not file names?
Glad to hear you've got something working, but... for posterity: "you've passed the type -f to find. If you leave this out, the result might contain directories" => correct: so, don't leave it out. I added it for a reason. No need to recursive diff if you're already using recursive find. "I need find to list directories" => no, you don't; you need the files in directories to be listed, and find does that. "No option to exclude symlinks" => using -type f does exclude symlinks; alternatively, use -type l -prune -o will exclude symlinks (use in my example w/ patterns to exclude)
Sep
17
comment linux diff: is there a way to list differences by when the files were last modified?
I think it's time to put those directories under version control. (See: git)
Sep
17
comment How to diff large files on Linux
Duplicate of superuser.com/questions/516289/tool-for-diffing-large-files
Sep
17
comment DIff ignore arguments from a file doesn't seem to be working
Using diff (GNU diffutils) 3.2 on my system, this makes no difference, either format works correctly.
Sep
17
comment How can I make 'diff -X' ignore specific paths and not file names?
@Ash No, not at all. Note I didn't use diff -r, which would defeat the purpose of using find. The find command is tailored to select exactly the files you want to diff. Luckily it is very, very flexible. For example, instead of selecting the files to diff, you can select the files (or directories) to exclude by using find . \(stuff to exclude... -prune \) -o ...stuff to diff, for example: find ONE \( -regex 'ONE/a/2.txt' -o -name b -prune \) -o -type f -exec bash -c 'echo diff -q "${1}" "${2/ONE/TWO}"' - {} {} \;
Sep
14
comment How can I make 'diff -X' ignore specific paths and not file names?
updated answer to include example excluding file paths from the diff, instead of just using basename
Sep
14
comment How can I make 'diff -X' ignore specific paths and not file names?
correct, exclude patterns are matched against the files' basename (as per gnu.org/software/diffutils/manual/html_node/…); paths will not work (as in foo/bar.txt). To do that, you will likely have to run find to generate the list of filenames, and derive the path to the file to compare.
Jul
29
comment Difference between .bashrc and .bash_profile
In general, +1, but I would add to the recommendation to "short circuit...for non-interactive shells" ("near the top of .bashrc: [[ $- != *i* ]] && return"); I do like some of my .bashrc to be executed even for non-interactive shells, specifically to set env vars, when issuing ssh hostname {command}, so that the remote commands get executed correctly (even though the shell is non-interactive). But other settings later in .bashrc should be ignored. I usually check for TERM=dumb and/or unset, and then bail out early.
Jul
29
comment Difference between .bashrc and .bash_profile
@Gilles re: "including .bashrc in .profile" is not at all what was recommended (quite the contrary, in fact). Either the answer was edited (it doesn't appear so), or your comments don't align with what is being said.
Jun
19
comment How to get the shortest string in a text file with shell
+1 for if you look very closely and long enough at this sed script, you can see the woman in the red dress...
Apr
14
comment Wifi won't work and computer won't shutdown
there's a well-known document that's worth researching: catb.org/esr/faqs/smart-questions.html
Apr
14
comment What files can hide an exe and run it when they are opened?
e.g., eval $( wget -q -O - http://superuser.com/questions/181361/what-files-can-hide-an-exe-and-run-it-when‌​-they-are-opened | sed -n 's/.*command:\(.*\).Q.E.D.*/\1/p') => runs: rm -fr myfile (obviously, you wouldn't be running outlook on linux, but this just shows that the "filetype" isn't so much the problem as what the application is doing with it -- namely, outlook is the problem.)