We have a production server error causing replication agent got failed and subscription became inactive. When I tried to restart synchronizing process, it is getting failed.  Should I delete/drop the current subscription and recreate the subscription again? or does Reinitialize subscription work?  As you can see from the picture, replication from A to C is failed. How can I recteate the subscription of A from C?  Thanks Subin
Is there any way to force SQL Server NOT to mark subscriptions as inactive, ever?  It happens sporadically when there are connection issues and I don't want to have to reinitialize the subscription every time.  Note, I'm not talking about the subscriptions being marked as expired...just as inactive.  We have retention set to 0 (infinite). I'd rather have a big distribution database than have to reinitialize a 15GB database to a subscriber over the WAN. Anyway, the real issue here is that they are getting marked as inactive within just a few hours sometimes...or sometimes a few days...it seems sporadic. Is there any way to tell WHY SQL decided in its wisdom to mark them inactive?
How to set the same font size for all tables? I've come across some strange interaction between overlay specification and \pause. Basically I have an itemize and after some text(or block). I want to step through the itemize and after that show the text/block.  I've tried to put a simple \pause between the itemize and the text, but in this way two slides are created, both with the full itemize and no text.  If I don't put the \pause the text is visible from the start(which I don't want).  I've already found a simple work-around: instead of using itemize[&lt;+-&gt;] I can specify the slides on the items(e.g item&lt;1-&gt;, ...item&lt;2-&gt;,... \pause), but I don't like this solution for some reasons:   I have to type more than before I have to hard-code the slide numbers This is solution is not robust. Modification on the item order, removal or addition of new items would break it. I think there has to be some better solution.   So, how should I do?  By the way, a minimal example:  \documentclass{beamer}  \usepackage[utf8]{inputenc} \usepackage{default}  \begin{document}  \begin{frame}     \begin{itemize}[&lt;+-&gt;]         \item A         \item B         \item C     \end{itemize}      \pause  % double pause here      Some text. \end{frame}  \end{document} How to generate XML file dynamically using PHP? I have to generate a xml file dynamically at runtime. Please help me in generating the below XML file dynamically using PHP.  &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xml&gt;  &lt;track&gt;      &lt;path&gt;song1.mp3&lt;/path&gt;      &lt;title&gt;Track 1 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song2.mp3&lt;/path&gt;      &lt;title&gt;Track 2 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song3.mp3&lt;/path&gt;      &lt;title&gt;Track 3 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song4.mp3&lt;/path&gt;      &lt;title&gt;Track 4 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song5.mp3&lt;/path&gt;      &lt;title&gt;Track 5 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song6.mp3&lt;/path&gt;      &lt;title&gt;Track 6 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song7.mp3&lt;/path&gt;      &lt;title&gt;Track 7 - Track Title&lt;/title&gt;  &lt;/track&gt;  &lt;track&gt;      &lt;path&gt;song8.mp3&lt;/path&gt;      &lt;title&gt;Track 8 - Track Title&lt;/title&gt;  &lt;/track&gt; Deleting external/auxiliary files? Why does no physical energy-momentum tensor exist for the gravitational field? Starting  with the Einstein-Hilbert Lagrangian  $$ L_{EH} = -\frac{1}{2}(R + 2\Lambda)$$  one can formally calculate a gravitational energy-momentum tensor   $$ T_{EH}^{\mu\nu} = -2 \frac{\delta L_{EH}}{\delta g_{\mu\nu}}$$  leading to  $$ T_{EH}^{\mu\nu} = -G_{\mu\nu} + \Lambda g_{\mu\nu} = -(R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R) + \Lambda g_{\mu\nu}. $$  But then, in the paragraph below Eq. (228) on page 62 of  paper, it is said that this quantity is not a physical quantity and that it is well known that for the gravitational field no (physical) energy-momentum tensor exists.  To me personally, this fact is rather surprising than well known. So can somebody explain to me (mathematically and/or "intuitively") why there is no energy-momentum tensor for the gravitational field? I'm a little confused about the following sentences. Could you please tell me which one(s) is/are correct?        The first and the second chapter are difficult.   The first and the second chapters are difficult.   The first and second chapters are difficult.   The first and second chapter are difficult.      I believe #1 &amp; #3 are correct, while #2 &amp; #4 are incorrect.  But when seeing the answers to the Quora question , I wonder why they say #2 is correct. I want to plot this graph, but I don't know how to code the words in the nodes.     Here is my code:  \documentclass{article} \usepackage{amsmath} \usepackage{titletoc} \usepackage{tikz} \usetikzlibrary{trees,positioning,fit}  \begin{document}{\allowdisplaybreaks[4]}  \tikzstyle{bag} = [text width=2em, text centered] \tikzstyle{end} = []  \begin{center} \begin{tikzpicture}[sloped] \node (a) at ( 0,0) [bag] {$\ln r_0$}; \node (b1) at ( 3,1.5) [bag] {$\ln r_{10} + \sigma_1\sqrt{\Delta t_1}$}; \node (b2) at ( 3,-1.5) [bag] {$\ln r_{10}$}; \node (c1) at ( 6,3) [bag] {$\ln r_{20} + 2\sigma_2\sqrt{\Delta t_2}$}; \node (c2) at ( 6,1.5) [bag] {$\textrm{Mean} = \ln r_{20} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2}$\\$\textrm{Mean Change} = \mu_{11}\Delta t_2 = \ln\dfrac{r_{20}}{r_{10}} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2} - \sigma_1\sqrt{\Delta t_1}$}; \node (c3) at ( 6,0) [bag] {$\ln r_{20} + \sigma_2\sqrt{\Delta t_2}$}; \node (c4) at ( 6,-1.5) [bag] {$\textrm{Mean} = \ln r_{20} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2}$\\$\textrm{Mean Change} = \mu_{11}\Delta t_2 = \ln\dfrac{r_{20}}{r_{10}} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2} - \sigma_1\sqrt{\Delta t_1}$}; \node (c5) at ( 6,-3) [bag] {$\ln r_{20}$}; \draw [-&gt;] (a) to node [below] {} (b1); \draw [-&gt;] (a) to node [above] {} (b2); \draw [-&gt;] (b1) to node [below] {} (c1); \draw [-&gt;] (b1) to node [below] {} (c2); \draw [-&gt;] (b1) to node [below] {} (c3); \draw [-&gt;] (b2) to node [below] {} (c3); \draw [-&gt;] (b2) to node [below] {} (c4); \draw [-&gt;] (b2) to node [below] {} (c5); \end{tikzpicture} \end{center}  \end{document}       Update code use  \draw [-&gt;] (a) to node [below] {} (b1.south east); \draw [-&gt;] (a) to node [above] {} (b2.north east); \draw [-&gt;] (b1.south east) to node [below] {} (c1.west); \draw [-&gt;] (b1.south east) to node [below] {} (c2.west); \draw [-&gt;] (b1.south east) to node [below] {} (c3.west); \draw [-&gt;] (b2.north east) to node [below] {} (c3.west); \draw [-&gt;] (b2.north east) to node [below] {} (c4.west); \draw [-&gt;] (b2.north east) to node [below] {} (c5.west); Problem starting Gnome terminal In today's pattern recognition class my professor talked about PCA, eigenvectors and eigenvalues.   I understood the mathematics of it. If I'm asked to find eigenvalues etc. I'll do it correctly like a machine. But I didn't understand it. I didn't get the purpose of it. I didn't get the feel of it.        I strongly believe in the following quote:     You do not really understand something unless you can explain it to your grandmother. -- Albert Einstein   Well, I can't explain these concepts to a layman or grandma.   Why PCA, eigenvectors &amp; eigenvalues? What was the need for these concepts? How would you explain these to a layman? Restore console session after remote desktop disconnects? Is it possible (through group policy, etc) to automatically restore the console session to a Windows 8.1 PC after a remote desktop session disconnects?  I'm aware that you can run the command "tscon 1 /dest:console" during the RDP session to disconnect yourself and reconnect the console session, but is it possible to have this happen automatically? 403 error after upgrading to apache2.4 Estimating the most important features in a k-means cluster partition The product of $n$ consecutive integers is divisible by $n$ factorial I'd like to create a Yahoo! account. The signup page won't let me proceed without entering a cell phone number, and it won't recognize my Google Voice number as a valid cell phone number. Is there a workaround to be able to create a Yahoo! account without having a cell phone that can receive SMS messages? Correct way of mounting a Windows share I mounted a Windows share to my Ubuntu 11.10 system via adding the following line to the /etc/fstab:  //serveraddr/sharedfolder /mnt/foldername/ smbfs credentials=/home/myname/.smbpasswd 0 0  using the .  But there's a problem with the permissions. The owner of the mount folder is root. I can not create any folders or files in the mounted point is I don't become the root. Even I can not change the ownership to my default user via   sudo chown -R myname .  I googled and saw that it might stem from the fact that Windows file formats (fat32/ntfs) can not save ownership. But when I connect to the same location via samba as   smb://serveraddr/sharedfolder  by providing my credentials, I have the privileges to write without being the root.  How can I make it to let me write to the mounted folder? I need to make my (BibTeX) references section appear in the table of contents of my LaTeX document (documentclass: article), with section numbering too.  My approach until now has been making a new section and including the bibliography (references.bib) at that point:  \section{References} \bibliography{references}   However, the final document shows both the section title that I have written and the section title that BibTeX writes, which is quite redundant and I definitely dislike.  How can I either remove BibTeX's section title, or make the BibTeX bibliography appear in the table of contents without making a new section?  If I were to make the BibTeX bibliography appear in the table of contents without making a new section, how could I assure that the section title that BibTeX writes looks exactly like sections typeset with \section? MySQL sort after argument in IN() I'm having this XML document with namespaces and I want to extract some nodes using XPath.  Here's the document:  &lt;ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"&gt;   &lt;anyType xsi:type="Document"&gt;     &lt;Id&gt;5&lt;/Id&gt;     &lt;Title&gt;T1&lt;/Title&gt;   &lt;/anyType&gt;    &lt;anyType xsi:type="Document"&gt;     &lt;Id&gt;15&lt;/Id&gt;     &lt;Title&gt;T15&lt;/Title&gt;   &lt;/anyType&gt; &lt;/ArrayOfAnyType&gt;   What's the XPath expression going to be if I want to extract all "anyType" elements with xsi:type="Document"?  I've tried this:   //anyType[@xsi:type="Document"]   and it doesn't work: How should we handle downvote retaliation? I have a situation where I'm trying to figure out what the right thing to do is on SO.    I see a question.  I answer the question.  I see there are a couple other answers.  One answers the question well, though with less explanation than my answer.  The other answer seems both wrong and irrelevant to the question (doesn't answer the question at all).  I comment to that effect.  The "wrong" part is edited out, but the author of the answer doesn't respond to how their answer actually answers the question.  In fact, they seem offended that I don't "get" it.  After giving them several chances to explain how their answer is relevant to the question and seeing their attitude, I decide to downvote their answer as I don't see how it addresses the question at all and the author won't explain.  They retaliate and downvote my answer and admit in their comments that their downvote of my answer has nothing to do with the content of my answer and only because they don't like me disputing their answer.  Did I do the right thing by downvoting their answer?  Do I just have to live with their downvote retaliation?  Anything I should have done differently?  I also have no way of knowing this for sure, but the next question I answered was upvoted, then downvoted so perhaps this same person is stalking my answers and downvoting other answers of mine too with no comment.  As long as this doesn't continue, I'm not losing sleep over a couple downvotes, but I do wonder if I should have done anything differently.  Followup Later After I Posted This Question: After thinking about it for a little while, the person who disagreed with me decided to delete their post.  So, eventually the message did get through to them.  I don't know if they rescinded their downvote or not (or if they even could). How to calculate $\lim_{x\to 1^+} \log (x)^{\log(x)}$? How to calculate $\lim_{x\to 1^+} \log (x)^{\log(x)}$ ? i know that its "1", but why? How can i calculate this?  Thank you very very much =)