Two slackware 14.2 systems,ssh is 7.9p1.  On local system  mkdir -p -v "I want to create long dir name with spaces" mkdir: directory 'I want to create long dir name with spaces' created   And is OK  On remote  ssh remote mkdir -p -v "I want to create long dir name with spaces" mkdir: created directory 'I' mkdir: created directory 'want' mkdir: created directory 'to' mkdir: created directory 'create' mkdir: created directory 'long' mkdir: created directory 'dir' mkdir: created directory 'name' mkdir: created directory 'with' mkdir: created directory 'spaces'   Why?  I have tried using ' instead of " and  ssh remote mkdir -p -v 'I want to create long dir name with spaces'   Exit with 0(success) but no dir created
I often end up issuing complex commands over ssh; these commands involve piping to awk or perl one-lines, and as a result contain single quotes and $'s.  I have neither been able to figure out a hard and fast rule to do the quoting properly, nor found a good reference for it.  For instance, consider the following:  # what I'd run locally: CMD='pgrep -fl java | grep -i datanode | awk '{print $1}' # this works with ssh $host "$CMD": CMD='pgrep -fl java | grep -i datanode | awk '"'"'{print $1}'"'"   (Note the extra quotes in the awk statement.)  But how do I get this to work with, e.g. ssh $host "sudo su user -c '$CMD'"?  Is there a general recipe for managing quotes in such scenarios?..
It often occurs to me to add an edit summary to a question-edit immediately after submitting the edit, especially if the changes aren't obvious (formatting etc.). So I:   Click "edit" again. Fill in the summary Click on "Save Edits".   The 'edit' (no actual change has been made to the title/body/tags)  is accepted, but the summary doesn't show up, i.e. it is silently rejected.   I don't think it should work this way because the summary has been added by the original editor within the original edit's edit-window. In fact if I remember correctly, it to used to work as expected earlier; so perhaps this is a recent change. Badass and BAMF are both modern words with approximately the same meaning: "Someone who is awesome to an extreme level, thereby leveraging unquestionable authority." Is there another noun or title that would convey the same level of awe, admiration and toughness that calling someone a badass does, without the vulgarity?  Thanks for any help. :) How to evaluate these two integrals. External arrows in tables How to achieve similar arrows as in the picture?    The main issue cause of arrow   a(2,1) -> a(1,3), a(3,1) -> a(1,4), etc. Or at least how to make them on top of the table, but to make it look readable.  \documentclass[border=10mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \begin{tikzpicture}[&gt;=stealth] \matrix (A) [matrix of nodes,row sep=3mm,column sep=3mm,nodes in empty cells] {   $a_{11}$ &amp; $a_{12}$ &amp; $a_{13}$ &amp; $a_{14}$ &amp; $a_{15}$ &amp;  $\dots$ \\   $a_{21}$ &amp; $a_{22}$ &amp; $a_{23}$ &amp; $a_{24}$ &amp; $a_{25}$ &amp;          \\   $a_{31}$ &amp; $a_{32}$ &amp; $a_{33}$ &amp; $a_{34}$ &amp; $a_{35}$ &amp;          \\   $a_{41}$ &amp; $a_{42}$ &amp; $a_{43}$ &amp; $a_{44}$ &amp; $a_{45}$ &amp;          \\   $a_{51}$ &amp; $a_{52}$ &amp; $a_{53}$ &amp; $a_{54}$ &amp; $a_{55}$ &amp;          \\   $\vdots$ &amp;          &amp;          &amp;          &amp;          &amp; $\ddots$ \\ };  \begin{scope}[thick,black,-&gt;] \draw (A-1-1)--(A-1-2); \draw (A-1-2)--(A-2-2); \draw (A-2-2)--(A-2-1); %\draw (A-2-1)--(A-1-3); \draw (A-1-3)--(A-2-3); \draw (A-2-3)--(A-3-3); \draw (A-3-3)--(A-3-2); \draw (A-3-2)--(A-3-1); %\draw (A-3-1)--(A-1-4); % etc. \end{scope} \end{tikzpicture} \end{document} When is $\mathbb{F}_p[x]/(x^2-2)\simeq\mathbb{F}_p[x]/(x^2-3)$ for small primes? I've been considering the rings $R_1=\mathbb{F}_p[x]/(x^2-2)$ and $R_2=\mathbb{F}_p[x]/(x^2-3)$, where $\mathbb{F}_p=\mathbb{Z}/(p)$.   I'm trying to figure out if they're isomorphic (as rings I suppose) or not for primes $p=2,5,11$.   I don't think they are for $p=11$, since $x^2-2$ is irreducible over $\mathbb{F}_{11}$, so $R_1$ is a field. But $x^2-3$ has $x=5,6$ as solution in $\mathbb{F}_{11}$, so $R_2$ is not even a domain.  For $p=5$, both polynomials are irreducible, so both rings are fields with $25$ elements.  I know from my previous studies that any two finite fields of the same order are isomorphic, but I'm curious if there is a simpler way to show the isomorphism in this case, without resorting to that theorem.  For $p=2$, neither ring is even a domain as $x=0$ is a solution of $x^2-2$ and $x=1$ is a solution for $x^2-3$, but I'm not sure how to proceed after that. Thank you for any help. How to add repository from shell in Debian? How to view and export database content? I'm trying to view the actual entries, not the backend identifiers.  &gt; db.&lt;collection&gt;.find({"_id": "486b4ca55b144b119f4551417c5798c8"}).pretty()  {     "_id" : "486b4ca55b144b119f4551417c5798c8",     "date" : ISODate("2017-04-20T05:47:06.176Z"),     "content" : ObjectId("58f84b5a0318762cb6e230a6"),     "digest" : "d064a874c872d75f6ab67c04d8b79b26f65f9b4f",     "short" : "5f9b4f",     "size" : 2374694 }   Also tried mongoexport:  $ mongoexport --host 127.0.0.1 --port &lt;port&gt; -o test --pretty --db &lt;database&gt; --collection &lt;collection&gt;   This also shows backend data. I just want to see what was uploaded to the database. The actual content itself. I recently got my Blacksmithing skill to 100. Now in the skills menu I can press space to make it Legendary, which will put it back to a skill level of 15 and reset my perks.  I am wondering: What benefit is there from making a skill Legendary apart from being able to level up the skill more thus having infinite levels? Maximum area of isosceles triangle with perimeter 6 cm What is the use/meaning of 'swap area' while linux installation? When i installed ubuntu in my x86 machine, I had to configure some memory as 'swap area'.  What is the use of this memory and what is the importance of this memory in linux file systems?  How can I determine the exact size of 'swap area' in a machine for the safe working of linux inside in it? Force NTFS permissions inheritance for newly created files Does anybody know a way to force that all files that get created inside some folder inherit the NTFS permissions of that folder.  The problem is the following:  I have a third party software that is creating PDF files inside a certain folder, but the problem is that those files get created with only the permissions for that user and for the administrators group, the file doesn't inherit the permissions of the folder it is in (Include inheritable permissions... is not marked on the files that get created), which give access to other groups of users also. What would you call a person who systematically dumps his work on you in a bid to evade responsibilities (with a work philosophy that when you don't learn or do it, you are never given the responsibilities and thus have no fear of making mistakes) but cluelessly whines to the same people around him for not having all the benefits that they (the higher ranking hardest working colleagues) earn.  PS: Owing to a bad management (Racial discrimination, Poor work ethic,ignorance, etc), if it helps. On my headless NAS I have sdf1 (a flash-card) mounted as / while /home is mounted from lv00 (an LVM volume backed by a software RAID). To be able to access the machine when the RAID fails, I have a copy of my ssh public key, etc. in /home/foo/.ssh on the file-system from sdf1. To update the files that are hidden by the mounted /home I normally remount lv00 in /mnt/home, do what I have to do, and then move lv00 back in place. Is there a way to achieve this without unmounting /home? How do I deal with NAs in residuals in a regression in R? What is the best, easiest, preferably cheapest way to make OS X write to NTFS-formatted drives in Mac OS X? (Originally  by AJAY.)  What is the geometric, physical, or other meaning of the third derivative of a function at a point?  If you have interesting things to say about the meaning of the first and second derivatives, please do so. Addition is to Integration as Multiplication is to ______ Prove that if $V$ is an inner product space, then $|\langle x,y\rangle| = \Vert x \Vert\Vert y\Vert$ if and only if one of the vectors $x$ or $y$ is a multiple of the other.  I am given a hint to let $a= \frac{\langle x,y\rangle}{\|y\|^2}$, and let $z = x - ay$, then prove $y$ and $z$ are orthogonal and $|a|= \frac{\|x\|}{\|y\|}$. I don't know how they come up with this, what was the original idea? Why does aptitude give me intel-microcode upgrades when I have an AMD processor? I have a Supermicro AS-2022G-URF (H8DGU motherboard) with 2 AMD Opteron 6272 16C/16T 2.1GHz and an LSI MegaRAID SAS 2108 RAID controller currently running Ubuntu Server 14.04 LTS (scheduled to be upgraded to 16.04 this summer). Several times over the last year, when I have done aptitude update/upgrade, the intel-microcode package has shown up as one of the packages that will be installed. Since this server has AMD processors, not Intel, Why does aptitude offer this package? Is it in any way necessary for other reasons? Any ill effects from going along with aptitude on this? Efficient evaluation of functions defined by NIntegrate