Dynamic If for a button to choose the package
Programming with Dynamic
How can I create Light Streaks in Cycles? MVC Spring Implementation - error: java.lang.NullPointerException Here is a minimal example that showcases my problem:  \documentclass{article}  \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref}  \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma}  \begin{document}  \begin{lem} Lemma \end{lem}  \end{document}   The warning I get is the following:  [1pdfTeX warning (ext4): destination with the same identifier (name{thm.1}) has been already used, duplicate ignored  \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                    \fi \fi  l.16 \end{document}                    {&lt;install dir&gt;/MiKTeX/2.9/pdftex/config/pdftex.map}]   I know that it is just a warning and that, my document will still work perfectly fine with regards to cross-referencing and hyperlinking, but I would still like to know why I am getting this warning and if anything can be done to fix it without removing functionality of the included packages.   Bonus question: Whats going on behind the scenes when this warning (or any generic 'destination with the same identifier (name{XXX.YYY}) has been already used, duplicate ignored') is produced, as this is not limited to theorem environments.  From log file:  Package: amsthm 2004/08/06 v2.20 Package: hyperref 2011/04/17 v6.82g Hypertext links for LaTeX Package: cleveref.sty 2011/03/22 v0.17.9 Intelligent cross-referencing Package cleveref Info: `hyperref' support loaded on input line 2157. Package cleveref Info: `amsthm' support loaded on input line 2300. How to derive this version of variance formula A probably very easy computational question, but I don't really understand how it's done:  I try to compute the point estimates of a normal distribution as $N \sim (\beta, \sigma)$. Using the method of moments, we get:  $$\frac{1}{n} \sum_{i=1}^{n} X_{i} = \hat{\beta}$$  $$\frac{1}{n} \sum_{i=1}^{n} X_{i}^{2} = \hat{\sigma}^2 + \hat{\beta}^2$$  Solving the two equations for the two parameters, we get:  $$\hat{\beta} = \overline{X} $$   and   $$\hat{\sigma}^2 = \frac{1}{n} \sum_{i=1}^{n} (X_{i} - \overline{X}_n)^2 $$  My question is: How do we get to the term of $\hat{\sigma}^2$? If I try to compute it, I get:  $$\hat{\sigma}^2 = \frac{1}{n} \sum_{i=1}^{n} X_{i}^2 - (\frac{1}{n} \sum_{i=1}^{n} X_{i} )^2 $$  Can someone show me how to simplify the last term to what is stated above and what "rule" or law" is used there? Since it is used so often, I really wanna understand this. Moderncv package - cventry date width In the various Zelda video games, there seems to be a common mythology, and at least some potential to be in the same place. Do the various Zelda games take place in the same world, or is there no intent to do so? What is the difference between AOSP and AOKP? How can I get numbered classes on rows? I worked briefly with Drupal 7 and I thought it was possible there but in Drupal 8 is it possible to have a view output an increasing numbered CSS classes for Views rows?  This is what I want.  &lt;div class="view"&gt;   &lt;div class="view-row-1"&gt;&lt;/div&gt;   &lt;div class="view-row-2"&gt;&lt;/div&gt;   &lt;div class="view-row-3"&gt;&lt;/div&gt;   &lt;div class="view-row-4"&gt;&lt;/div&gt; &lt;/div&gt;   I know I can add a CSS class to every row and give every row the same class. How can I generate PDF metadata from LaTeX? I am writing a document using LaTeX and generating PDF.  Can anybody tell me how I can generate the PDF metadata, e.g. author or title, from LaTeX?  On Windows XP, I am using MikTex's texify to generate the PDF.  On linux, I am using pdflatex to generate the PDF.  Any answers for either platform would be much appreciated! How to run an encrypted virtual machine? Why is this sentence correct? “She suggested that he go to the cinema.” What did the general public know about Darth Vader? When Darth Vader first becomes Palpatine's apprentice, very few know of his existence and connection to the Emperor: the members of the Trade Federation (whom he dispatches) and Yoda, Kenobi, Organa, and their associates are all that seem to know at the end of Episode III.  Ultimately, the Resistance would know about him as they would be fighting him, and Organa could have been able to inform them about his identity and the fact that he is a Force user. The military of the Empire would know of his existence, but even high-ranking members likely wouldn't know his past or identity. However, they would know about the fact that he is a Force user due to his tendency to use his "sorcerer's ways" to choke people.  So, how much would the general public have known about Vader? Would they have known him as just another military leader, or would they have known he was Palpatine's right-hand man? Would they have known about his ability to use the Force, and therefore the possibility that he was a Sith? How do I convert Word smart quotes and em dashes in a string? Show that if $a \equiv b \pmod n$, $\gcd(a,n)=\gcd(b,n)$ My problem is how to somehow relate the the gcd and congruence. I know that $(a,b) = ax + by$. I also know that $a \equiv b \pmod n$ means $n\mid a-b$. Any hints?  Thanks! Clear named (and lored) item from players inventory 1.13 In 1.12, the command:  clear @p paper 0 1 {display:{Name:"[Winning Ticket] Musical Minecarts",Lore:[" Take this ticket to the reward "," collections at the entrance of the ", " Games area to claim your prize! "]}}   would remove a piece of paper with that specific name and lore from the player's inventory. I assumed the 1.13 conversion would be:   execute at @p as @p run clear @s paper{display:{Name:"[Winning Ticket] Musical Minecarts",Lore:[" Take this ticket to the reward "," collections at the entrance of the ", " Games area to claim your prize! "]}} 1   but this doesn't work. As well as this, the command:  give @p minecraft:paper{display:{Name:"[Winning Ticket] Musical Minecarts",Lore:[" Take this ticket to the reward "," collections at the entrance of the ", " Games area to claim your prize! "]}} 1   only gives the item, without the custom display name, despite the lore being correct. What is the correct syntax for these two commands? What is the volatile keyword useful for? I'm reading . Then I'm not able to figure out the difference between hard voting and soft voting in context to ensemble based methods.  I quote descriptions of them from the book. The first two images from the top are description for hard voting, and last one is for soft voting.        In my view hard voting is majority decision, but I don't understand soft voting and the reason why soft voting is better than hard voting. Would anyone teach me these? Use Outgoing SSH to receive incoming SSH My ISP does not allow me to have a static IP address. As such I am unable to remotely SSH in my home machine. Is there a way I could SSH from my home machine to a server and SSH into the server from my remote laptop and bridge the two connections?  Cheers! I duplicated a few objects with Alt+D and now I want to apply some modifiers to them, however I can't, because they are multi-user objects.  I tried U > Objects but I still can't apply the modifier.  How to make multi user objects single user? I know that $$\gcd(a^b-1,a^c-1)=a^{\gcd(b,c)}-1$$ which can be seen by expanding both terms into geometric series. Is there any such simplification for $$\gcd(a^b+1,a^c+1)=?$$  EDIT: When working with polynomials instead of whole numbers, it is $$gcd(x^n+1,x^m+1)=\begin{cases}a^{\gcd(n,m)}+1 &amp; \nu_2(n) =\nu_2(m)\\1 &amp;\text{else}\end{cases}$$ But this gives only a lower bound for the whole-number case.