Reputation
479
Top tag
Next privilege 500 Rep.
Access review queues
Badges
6 9
Newest
 Enlightened
Impact
~28k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
May
31
comment How do I delete all but 10 newest files in Linux?
duplicate: stackoverflow.com/questions/6024088/…
May
10
comment Mouse wheel scroll causes zoom in/out in Google Chrome
likely duplicate (or, at least, similar solutions) superuser.com/questions/243127/…
May
4
comment Disable OS X Server's shutdown prompt?
@adib one step at a time :-) once you have an script (a set of steps) that accomplishes what you want to do, you can execute it without a terminal. You can run osascript without using a terminal; see superuser.com/questions/360247/…
May
3
comment Disable OS X Server's shutdown prompt?
When you say "I try to shut down as a local interactive user" , I assume you mean via the graphical user interface, and not via the command line? If so, does the dialog disappear if you modify your user (the one you're logged in as) to be an administrative user? (I assume you're not ("logs in to a non-privileged account" ... and perhaps don't want this, "to make it convenient...") The other option is to go down to the command line (open Terminal); e.g., see apple.stackexchange.com/questions/103571/…
May
3
comment Given key-value content, how do I group values by key and sort by value?
Assuming the initial key sort (sort -k1,1 -k2) which also would result in sorted values (so you could just sort without any -k option), then the problem is simplified to merging lines with the same prefix; see unix.stackexchange.com/questions/47786/…
May
3
comment Copying Unix Executable File content from file to file
The key phrase here is: "I copy this file exactly as is using a text editor." ...yeah, that's not going to work. Now, if you used a binary editor, that's another kettle of fish altogether.
May
3
comment How to print new line character with echo?
the preferred solution is just to use printf "...\n" instead of echo.
May
3
comment How to print new line character with echo?
btw, this "echo -e ..." relies on bash's echo to work correctly (e.g., dash will just print the "-e"); but '/bin/echo' may (or may not) also work. Unfortunately (perhaps appropriately), there are a lot of echo's around, and you don't really want to care about which one you're going to get. Using 'printf "....\n" is a more portable option across env's and shells.
May
3
comment Why does bash need && to echo a variable on one line?
technically, "echo 1" returns 0, and the output is 1... that is to say, "echo" exits with status "0", and displays to stdout the arguments. The phrasing "returns 1" to me was implying "exit staus", not "outputs", and was a bit confusing at first glance.
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