Trying to get samples from  to work, I made the following     \documentclass{beamer} \usepackage{tikz-cd} \begin{document} \begin{frame}{Hello Commutative Diagrams}   \begin{tikzcd}     A \arrow{rd} \arrow{r}{\phi} &amp; B \\     &amp; C   \end{tikzcd} \end{frame} \end{document}   and get error on next-to-last line "Single ampersand used with wrong catcode."   I try removing the ampersands or prepending a backslash to them and get "No shape named tikz@f@1-2-2 is known."    I try leaving in the backslashes before the ampersands and wrapping the tikzcd in {...} and preceding it with a \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em,ampersand replacement=\&amp;], which I snipped from another StackExchange answer, and I get "can't nest pgfmatrix environments yet."  I'm out of ideas.
I am having trouble getting a basic example of a matrix of notes to show up in my beamer presentation. I am using the code copied from the pgf manual. Here is a complete working example. The error I get upon compilation is:  "Package pgfbasematrix Error: Single ampersand used with wrong catcode."  \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,petri,positioning,matrix}  \begin{document}  \begin{frame}  \begin{tikzpicture} \matrix (magic) [matrix of nodes] { 8 &amp; 1 &amp; 6 \\ 3 &amp; 5 &amp; 7 \\ 4 &amp; 9 &amp; 2 \\ }; \draw[thick,red,-&gt;] (magic-1-1) |- (magic-2-3); \end{tikzpicture}  \end{frame} \end{document}
How to ssh into a server running on a home network, behind a router? Okay, so I have a PC in my home network, running Ubuntu on a VM with openssh server installed.    How can I remotely access it from another computer outside the home network, using the internet? What IP address do I use to connect to it? What kind of port-forwarding do I need to do? Is an Anti-Symmetric Relation also Reflexive? According to the definition of an Anti-Symmetric Relation if xRy and yRx then x = y  Which means, effectively, x is in relation with itself. Does this mean that anti-symmetry implies reflexive property as well? Low Quality Posts reviews add comments more than once on behalf of reviewer Find the sum $\frac{1}{2\cdot 3}+\frac{1}{3\cdot 4}+\dots+\frac{1}{99\cdot 100}$ Please help me calculate the following sum     $$\frac{1}{2\cdot 3}+\frac{1}{3\cdot 4}+\dots+\frac{1}{99\cdot 100}$$ I have 1-band GeoTIFF file. The color interpretation for band is gray. I want a color table in order to transform my Col.tiff to Col.jpeg or Col.png.  I tried putting a color table in this tiff via a .vrt:  gdal_translate -of VRT  Col.tiff Col.vrt   then adding in the .vrt:  &lt;ColorInterp&gt;Palette&lt;/ColorInterp&gt; &lt;ColorTable&gt;    &lt;Entry c1="0" c2="0" c3="255" c4="240"/&gt;    &lt;Entry c1="0" c2="0" c3="254" c4="240"/&gt;    &lt;Entry c1="0" c2="0" c3="253" c4="240"/&gt;    &lt;Entry c1="0" c2="0" c3="252" c4="240"/&gt; &lt;/ColorTable&gt;   And translate again :  gdal_translate Col.vrt Col.tiff   But it answered:  Warning 1: Unable to export color table to GeoTIFF file.  Color tables can only be written to 1 band or 2 bands Byte or UInt16 GeoTIFF files.   How can I do it?  For information, there is gdalinfo for the Band:  Band 1 Block=55x18 Type=Float64, ColorInterp=Gray   Description = Something   Metadata:     GRIB_COMMENT=Something[p]     GRIB_ELEMENT=TMP     GRIB_FORECAST_SECONDS=0 sec     GRIB_REF_TIME=1401926400 sec UTC     GRIB_SHORT_NAME=SMTHG     GRIB_UNIT=[p]     GRIB_VALID_TIME=1401926400 sec UTC Why is a ConcurrentModificationException thrown and how to debug it Why do I have blurred vision and how do I fix it? Word for something sad and funny at the same time Why are hexadecimal numbers prefixed with 0x? Another point of view that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is cyclic. I was thinking that the product of groups $\mathbb{Z}/2\mathbb{Z} \times\mathbb{Z}/2\mathbb{Z}$ is not cyclic, but $\mathbb{Z}/2\mathbb{Z} \times\mathbb{Z}/p\mathbb{Z}$ is cyclic if p is an odd prime. Then I found logic that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is certainly cyclic if $m$ and $n$ are coprimes.  I searched on google a proof of that, to compare with mine and the answer is that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is isomorphic to $\mathbb{Z}/mn\mathbb{Z}$ (which is clearly cyclic) $\iff$ $m$ and $n$ are coprimes.  But I got another proof and I want to know what you think about it :     I claim that $([1]_m,[1]_n)$ generates $\mathbb{Z}/m\mathbb{Z}$   $\times\mathbb{Z}/n\mathbb{Z}$, where $[a]_d$ is the canonical   projection of $a\in \mathbb{Z}$ into $\mathbb{Z}/d\mathbb{Z}$.       Let's take multiples of $([1]_m,[1]_n)$ until we get $m \cdot$   $([1]_m,[1]_n) = ([0]_m,[m]_n)$ (where I suppose $m=\min(m,n)$...   otherwise, consider $\mathbb{Z}/n\mathbb{Z}$   $\times\mathbb{Z}/m\mathbb{Z}$ and $\min(m,n)=n$).       The next step is $([1]_m,[m+1]_n)$. This pair is not equal to   $([1]_m,[1]_n)$, since $m+1 \not\equiv1$ mod $n$ ($m$ and $n$ are   supposed to be coprimes). We can now continue adding $([1]_m,[1]_n)$   to the results.      The last step is precisely reached when you got   $([mn]_m,[mn]_n)=([0]_m,[0]_n)$. At this point, the fact that $m$ and $n$ are coprimes is absolutely necessary because if they are not coprimes, $lcm(m,n)\ne m\cdot n$ and   $([lcm(m,n)]_m,[lcm(m,n)]_n)=([0]_m,[0]_n)$ but all the $m \cdot n$ possible pairs are not reached, only the $lcm(m,n)$ are ! Kali Linux: apt update returns "Hash Sum mismatch" error I'm experiencing exactly the same issue as described in this question: . Before you mark this as a duplicate however, I have tried the solutions posted there, as well as on numerous other sites, including:  sudo apt-get clean sudo rm -rf /var/lib/apt/lists/* sudo apt-get update   Editing /etc/apt/sources.list with alternate official mirrors, such as  deb http://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib or deb https://http.kali.org/kali kali-rolling main non-free contrib  Everything worked after I first imported the VM. I ran sudo apt update and it found some ~650 packages to upgrade. I ran sudo apt upgrade and it encountered an error partway through. That error was solved using sudo apt --fix-broken install, but that is when this hash sum error began. Unfortunately due to hours of troubleshooting I no longer have the details of the earlier error, but I believe it was an error extracting a package due to corrupt data.  I've tried multiple official mirrors, but I get the same error. Additionally, when I downloaded the Packages.gz file  on my Windows machine (VM host) and computed the SHA256 hash, I got the exact hash that apt printed as the expected value. This led me to believe that the error was not with the mirror but with my VM.  The next thing I tried was wget https://mirrors.ocf.berkeley.edu/kali/dists/kali-rolling/main/binary-amd64/Packages.gz followed by sha256sum Packages.gz, which provided yet another different hash output.  To be clear, I have seen 3 different hashes for the same file:   The "correct" hash shown by apt as expected, which is the one that windows also produced after downloading the file using a browser The incorrect hash calculated by apt, which led to the error A different hash calculated by sha256sum after downloading the file using wget using the same URL as for the browser download   I should also note that I have only been referencing the SHA256 hash in each step. The other hash functions are also mismatched when I run sudo apt update, but the file size is the same. I had considered that downloads might be failing due to limited disk space (it is a VM after all) but I don't think that's the case.  What am I missing? Why do we say "is it" when asking a question rather than "it is"? After my suspension period, my reputation was not returned On Stack Overflow, I have a suspension period of 7 days which ends today. But my actual reputation has not been returned to me as one of the moderators said it would. I have a message like this by @Andrew Barber:     Once your suspension period is over, you will be returned to your   correct reputation level, minus the votes from the accounts which have   been deleted. At that time, you are more than welcome to return, and   continue contributing your knowledge, and gaining legitimate   reputation points. Just please keep our rules in mind when you do.      Regards      Andrew Barber, Stack Overflow moderator   Can any moderator here help me or tell me what the rules are of getting back my reputation?  How can I get the attention of a moderator so that they can resolve my problem? Add table row in jQuery What is the best method in jQuery to add an additional row to a table as the last row?  Is this acceptable?  $('#myTable').append('&lt;tr&gt;&lt;td&gt;my data&lt;/td&gt;&lt;td&gt;more data&lt;/td&gt;&lt;/tr&gt;');   Are there limitations to what you can add to a table like this (such as inputs, selects, number of rows)? Probably a basic issue, but still something that irks me and I can't find an answer online. I want to change the default folder for saving new shapes/processing outputs from &quot;last used folder&quot; to &quot;project folder&quot; or &quot;something in relation to project folder&quot; - is this possible? If so, how can I achieve this? Code coverage for wrapper class is 0% I have written below Wrapper class.  global class BI_VA_AutomationWrapper {      global class BI_VA_AutomationRequest {      webservice String userName;     webservice String emailId;     webservice String buinessUnit;     webservice String orgName;     webservice String country;     webservice String environment;     webservice String myShopNumber;     webservice String BidsId;//for testing     webservice String Type; //for testing  }  global class BI_VA_AutomationResponse {      webservice String responseStatus;     webservice String myShopNumber;     //webservice list&lt;Error&gt; errorMessages;     webservice String  errorMessages;//for testing   } global class BI_VA_Error {      webservice String type;     webservice String message;    }}   And test class is,  @isTest public class BI_VA_AutomationWrapperTestClass  { public static testMethod void unitTest(){      BI_VA_AutomationWrapper.BI_VA_AutomationRequest wrap= new BI_VA_AutomationWrapper.BI_VA_AutomationRequest();        wrap.userName='Test@test.com';     wrap.emailId='Test@test11.com';     wrap.buinessUnit='AH';     wrap.orgName='ORD';     wrap.country='US';     wrap.environment='QA';     wrap.myShopNumber='123456789';     wrap.BidsId='123';     wrap.Type='ResetPassword';              BI_VA_AutomationWrapper.BI_VA_AutomationResponse res= new BI_VA_AutomationWrapper.BI_VA_AutomationResponse();     res.responseStatus = 'Success';     res.myShopNumber = '987654321';     res.errorMessages = 'Test error';      BI_VA_AutomationWrapper.BI_VA_Error error = new BI_VA_AutomationWrapper.BI_VA_Error();     error.type = 'Test';     error.message = 'Test';  }}   Code coverage is 0% only. I posted a question recently regarding my Windows 10 upgrade which ended up with a black screen and cursor.   I reverted back to Windows 8.1 using the "Revert to previous build" option in recovery, and all seems fine, except that Virtualisation is disabled.  I tried to open BIOS settings but it just boots into Windows. I've tried the usual F2 key and Shift F2, all the other F keys, tried pressing B and Shift+B but no luck.  I tried pressing the Lenovo key on the laptop when it is powered down, which shows a menu to either boot into BIOS, recovery, or show boot menu. I choose BIOS and it just boots into Windows.  I tried going into advanced startup options from Windows (Shift+Restart) and choosing "UEFI FIRMWARE SETTINGS" but it just reboots back into Windows.  Before the Windows 10 upgrade it was working perfectly.  Lenovo G580 laptop - Core i3 with Intel 4000 graphics. 8GB of RAM and a Crucial MX100 512GB SSD (replaced the original hard drive with this SSD). How long can I store a food in the pantry, refrigerator, or freezer? How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed. Suppose we have two short exact sequences in an abelian category $$0 \to A \mathrel{\overset{f}{\to}} B \mathrel{\overset{g}{\to}} C \to 0 $$ $$0 \to A&#39; \mathrel{\overset{f&#39;}{\to}} B&#39; \mathrel{\overset{g&#39;}{\to}} C&#39; \to 0 $$ and morphisms $a : A \to A&#39;, b : B \to B&#39;, c : C \to C&#39;$ making the obvious diagram commute. The snake lemma states that there is then an exact sequence $$0 \to \ker a \to \ker b \to \ker c \to \operatorname{coker} a \to \operatorname{coker} b \to \operatorname{coker} c \to 0$$ where the morphisms between the kernels are induced by $f$ and $g$ while the maps between the cokernels are induced by $f&#39;$ and $g&#39;$.  It is not hard to show that the morphisms induced by $f, g, f&#39;, g&#39;$ exist, are unique, and that the sequence is exact at $\ker a, \ker b, \operatorname{coker} b, \operatorname{coker} c$. With the use of a somewhat large diagram shown , we can even construct the connecting morphism $d : \ker c \to \operatorname{coker} a$. However, I'm stuck showing exactness at $\ker c$ and $\operatorname{coker} a$. I thought Freyd might have had an element-free proof in his book, but it turns out he proves it by diagram chasing and invoking the Mitchell embedding theorem [pp. 98–99]. Is there a direct proof? If an effect would prevent a spell from doing damage, does it continue to prevent that damage after the spell changes zones? Anthony casts , targeting Nathan's .  Nathan casts and resolves , choosing to 1) prevent all damage that would be dealt by Searing Blood this turn and 2) put a +1/+1 counter on Elvish Mystic.  Searing Blood resolves, deals no damage, and goes to the graveyard.  Anthony casts and resolves  to kill Elvish Mystic.  Searing Blood triggers from the graveyard, because Elvish Mystic died. Does the prevention effect created by Dromoka's command still apply to it after it changes zones? In other words, will Searing Blood deal 3 damage to Nathan?