« first day (1965 days earlier)      last day (2380 days later) » 

7:10 AM
[ SmokeDetector | MS ] Bad NS for domain in body, bad keyword in body, bad keyword in title, blacklisted website in body, link at end of body, +1 more: Alphamax 10 Products by Allan L. Anderson on askubuntu.com
 
 
3 hours later…
11:17 AM
I edited it a bit
But I might have misinterpreted...
 
11:43 AM
Looks fine to me.
So, what should be done on this answer? Originally it didn't contain an explanation and was dangerous because it gave the impression that unlink is specifically for symlinks. (People delete their regular files all the time assuming they'll just get a harmless error message if they use the unlink command on them.) Then it was edited by someone else and is no longer dangerous, but the explanation they added is totally wrong: unlink isn't an alias of rm.
Also it has 13 upvotes, all but one of which were cast after the edit.
 
12:11 PM
Oh dear...
Possibly we should just correct the explanation?
 
I guess so. A better explanation would be "unlink is like rm except worse in all these ways (list) so don't bother using it hardly ever." I doubt that would've garnered 12 upvotes though.
Leave Closed, but I've flagged the first comment as rude or abusive.
I feel pretty confident that wholly unsubstantiated accusations against an OP (or anybody) are a violation of the be-nice policy both due to the common understanding of what it means to be nice and under the specific example about assuming good intentions.
 
12:35 PM
@EliahKagan agreed, even if the question sounds weird (i guess due to language barriers) it doesn't seem that hes trying to pirate anything. And even if, this comment could have been worded more sensible.
this sounds more as if he hasn't set the execute bit or if hes using the app-store version of minecraft that his OS doesn't allow the execution and he has to enabled 3rd party sources to install and ise the app
 
1:11 PM
@EliahKagan what i dont get is why putting the grep into a variable and then outputting this
why not directly grep and be done with it when the variable is not needed for something else later on
 
Do you mean, why is the OP making a script at all?
 
no the script itself
if [ "$#" -eq 0 ]; then
          echo "Please enter an argument"
    else
          $result=`grep $1 Sales.csv`
          echo $result
    fi
 
Oh, you mean, why is the OP putting it in a variable?
There is no good reason.
 
yes i think so ;)
and the rest well is normally redundant too
if he not uses ascript he puts in his argument directly in grep
 
The main problem with that script is that $1 is not quoted.
This will actually usually fail with that grep command.
 
1:15 PM
┌─[11:46:59]─[michael@NEXUS-ONE]
└──> backup $ TEST=deb
┌─[14:14:40]─[michael@NEXUS-ONE]
└──> backup $ grep $TEST /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu artful main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu artful main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu artful-backports main restricted universe multiverse
 
Yes, it is possible to come up with trivial cases where the regular expression contains no IFS whitespace and no globbing characters (*, ? and [ are all both regex metacharacters and globbing characters).
In all currently used Bourne-style shells except zsh, word splitting and filename expansion are performed on the results of unquoted parameter expansions. (zsh will also do so if it's emulating a shell that does, such as if is being used as sh.)
ek@Io:~$ test='xenial main'
ek@Io:~$ grep "$test" /etc/apt/sources.list
deb us.archive.ubuntu.com/ubuntu xenial main restricted
deb-src us.archive.ubuntu.com/ubuntu xenial main restricted
ek@Io:~$ grep $test /etc/apt/sources.list
grep: main: No such file or directory
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu xenial main restricted
/etc/apt/sources.list:deb-src us.archive.ubuntu.com/ubuntu xenial main restricted
/etc/apt/sources.list:deb us.archive.ubuntu.com/ubuntu xenial-updates main restricted
 
yep
terrance answer is then slightly wrong too, and for the question itself backticks are to be avoided and it should be used $() instead
still ok for learning, tho but the script in itself is purely redundant
grep is not that complicated line in itself so it should be wrapped
i would make wrappers for comlicated lines like this
function tcd(){
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl |  head -n10
}
and im sure this could be golfed down even to a more simple line
or this
alias toclip='xclip -sel clip'
where i pipe into this command and dont want to type it all time again
this way i can simply do command | toclip and have it in the clipboard
if it offers a pipe
not to speak about if he goes over a big file lets say multiple GB in size with the version using a variable he will have build a real memory hog
depending on what he searches for in this file
 
1:36 PM
How could only apt-get update have fixed it??
 
@AndroidDev possible PEBKAC
 
2:31 PM
@AndroidDev What does NSS_VersionCheck actually do?
 
I thought ah they found an instruction to edit a file with nano to fix the typing problem, but they can't launch nano, because there's an "a" in it haha
 
That could well be. Who knows! You may want to comment though. You could ask a number of other clarification questions related to that, too, like whether or not they can ever type a, did they have to use another machine to write their Ask Ubuntu question so it could have a in it, and so forth. This sounds silly but I am not making fun -- I do believe this would be helpful.
 
 
2 hours later…
4:48 PM
[ SmokeDetector | MS ] Username similar to website in answer: Uncomplicated Firewall (UFW) is not blocking anything when using Docker by mkubaczyk on askubuntu.com
 
5:45 PM
I mostly like this tag wiki but can the first sentence be reworded in such a way to avoid misleading people? Right now it makes it sound like if you make a file whose contents are a path then that's a symlink.
> A symbolic link is a file that merely contains a text string which is a path to another file or directory.
 
 
2 hours later…
7:15 PM
of course, but what do you suggest?
 
7:26 PM
I'm not sure what a good way is.
Btw I think the reason this question hasn't gotten a fifth close vote yet, for no repro, is that the answer in which the OP reported switching to Arch was deleted (and was only recently turned into a comment). So if somebody who sees this wants to cast that vote...
 
@EliahKagan I will leave the tab open and hope my brain is working better tomorrow haha
 
 
2 hours later…
9:28 PM
Currently unclear. Depending on the OP's reply (or lack thereof) it might later become clear or it might be no repro.
 
9:58 PM
@EliahKagan Closed
 
Thanks.
This edit suggestion deliberately vandalizes the question to make it misrepresent what the OP did. It also removes some relevant path information. It needs another rejection.
 
@EliahKagan ypu sure you linked the right one, the one im seeing there is a legit edit tbh, hes only removing the username from the prompt
 
Yes.
It replaces the entire prompt, which indicates a root shell (and shows the current directory), with another prompt that the OP did not actually have, that indicates a non-root shell. It is part of a strategy to deface the post in order to admonish the OP not to use root shells. See the comment on the post.
 
well i rejected it
 
Thanks.
 
10:03 PM
just woke up after having a long afternoon nap
 
Good morning afternoon/evening!
 
ah well i love Sundays, i normally even if i don't leave my home hold me to a strict time to stand up and do household stuff etc, but on sundays i dont go after that rule
im at home almost 24/7 due to a psychical illness
 
10:17 PM
Do i read this answer right? askubuntu.com/a/970026/522934 should'nt this be an edit to the question?
 
10:28 PM
If it's the OP's solution, then it's appropriate as a self-answer.
 
mhmm ok, for me it reads more like a question tho, but well, actually going through all the minecraft questions and for sure what i see there is the GLX13 openGL context missing question over and over again those should/could be possibly merged into one making the answers a community wiki since noone cared to mark answers as accepted
good example askubuntu.com/questions/820764/minecraft-crashing if you look in the suggested questions on the right side you'll find at least ten of the same question, all about OpenGL context not found and all partly answered but none with an accepted answer you could point to as a dupe target
 

« first day (1965 days earlier)      last day (2380 days later) »