If I cast Charm Person on a human and then he or she is Polymorphed into an animal, does the spell end?
There are several spells that require the target to be "humanoid" such as , , etc.  However, if the target is Polymorphed after that spell has been successful, then what happens?  Does the change in form to Beast end the spell effects? Does it suppress the spell until the correct form returns? Does it do something else?
Matrix with labels nested in braces Is there a simple way to explain how Kepler's third law follows from the inverse square law that of gravity  (and laws of motion)  For example for Kepler's second law we can say it's because Gravity is a central force  What is it about the law of gravity which ultimately gives rise to Kepler's third law? How to create a database directory structure for MySQL? This is by far the weirdest problem I've come across,  My mac can perfectly access internet through safari web browser, but when I tried to do   ping www.google.com   through the terminal, it's requests is being timed out.  None of the other apps are able to reach internet either. Dropbox, Skype, Spotify all showing offline, except the browser itself  I'm guessing something bad with the DNS, but spend 2 hours trying to fix this with no luck Why can't enum's constructor access static fields? Why can't enum's constructor access static fields and methods? This is perfectly valid with a class, but is not allowed with an enum.  What I'm trying to do is store my enum instances in a static Map. Consider this example code which allows lookup by abbreivation:  public enum Day {     Sunday("Sun"), Monday("Mon"), Tuesday("Tue"), Wednesday("Wed"), Thursday("Thu"), Friday("Fri"), Saturday("Sat");      private final String abbreviation;      private static final Map&lt;String, Day&gt; ABBREV_MAP = new HashMap&lt;String, Day&gt;();      private Day(String abbreviation) {         this.abbreviation = abbreviation;         ABBREV_MAP.put(abbreviation, this);  // Not valid     }      public String getAbbreviation() {         return abbreviation;     }      public static Day getByAbbreviation(String abbreviation) {         return ABBREV_MAP.get(abbreviation);     } }   This will not work as enum doesn't allow static references in its constructor. It however works just find if implemented as a class:  public static final Day SUNDAY = new Day("Sunday", "Sun"); private Day(String name, String abbreviation) {     this.name = name;     this.abbreviation = abbreviation;     ABBREV_MAP.put(abbreviation, this);  // Valid } After the top bar changes in the , when a non logged-in user click the Sign Up button, instead of navigating to the corresponding page it displays the openid related code in the screen.  Screenshots for reference: Removing the Bracket from the First Line of bmatrix How can I write a matrix with a header line that is not bracketed? I have used the following code to produce the results below. In addition of being ugly, it is impractical when I need to align the first row, n1, ..., n6 with the matrix columns.  \documentclass{book}  \usepackage{amsmath}    \begin{document}    \[ \ \ \ \ \ \ \ n_1\ \ \ \ \ \ \ \ n_2\ \ \ \ n_3\ \ \ \ \ \ \ \ \ n_4\ \ \ \ n_5\ \ \ \ n_6\]     \[ \begin{bmatrix}         1 &amp; -1 &amp; 0 &amp; 0 &amp; 0 &amp; 1\\         0.960 &amp; -0.977 &amp; 0 &amp; 0 &amp; 0 &amp; 0.983\\         0 &amp; 1 &amp; -1 &amp; -1 &amp; 0 &amp; 0\\         0 &amp; 0.977 &amp; 0 &amp; -0.983 &amp; 0 &amp; 0\\         0 &amp; 0 &amp; 0 &amp; 1 &amp; -1 &amp; -1\\         0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 1\\        \end{bmatrix}        \begin{bmatrix}n_1\\n_2\\n_3\\n_4\\n_5\\n_6\end{bmatrix} =        \begin{bmatrix}0 \\ 0 \\ 0 \\ 0 \\ 0 \\ 100\end{bmatrix} \]  \end{document} freezing header in a table in html is a one-by-one-matrix just a number (scalar)? I was wondering. Clearly, we cannot multiply a (1x1)-matrix with a (4x3)-matrix; However, we can multiply a scalar with a matrix. This suggests a difference.  On the other hand, I was, for example, in an econometrics lecture today, where we had for a (Tx1)-vector $\underline{û}=\left( \begin{array}{c} û_1\\ \vdots\\ û_T\end{array}\right)$:     $S_{ûû}:= \sum_{i=1}^T û_i^2$ shall be minimized. We see see that   $S_{ûû}=\underline{û}^T\underline{û}$.   Well, formally, shouldn't it be $(S_{ûû})=\underline{û}^T\underline{û}$ or $S_{ûû}=\det(\underline{û}^T\underline{û})$, to ensure that we stay in the space of matrices and not suddenly go to the space of scalars? So here, the professor (physicist) not only treats $\underline{û}^T\underline{û}$ like a scalar, but also calls it a scalar. Is this formally legit or a wrong simplification (though it does not seem to have any impact, and surely makes life easier)? Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags? How to share worlds between platforms with Minecraft Better Together I have read that with the new "Better Together Update" (BTU) it is now possible to .  However, I am having trouble finding details of how this is supposed to work to determine if it would do what I am hoping it would and therefore whether it is worth my time/money.  I have some saved worlds on Minecraft for XBox One, all done in creative mode.  I am able to import them into what is now just called "Minecraft" which as of the BTU is what is being used to mean the cross-platform version.   Can I now play this same world on my Windows 10 PC?   If I go to the Minecraft web site it offers to sell me the "Java Edition" with the addendum "includes edition for Windows 10".   But from what I have read, anything that has the word "edition" in it isn't the cross platform version.   It's very unclear to me what I would actually be buying here.  If it is possible to open the same world on different platforms, exactly how would I go about doing this?  On the XBox I have to sign in with an outlook.com e-mail address to access my worlds, or my kids' sign-ins to access their worlds, is it the same from the PC? And where would my world be saved?   I have read that XBox saves will be in the cloud, but PC saves will be local, so how can I get a cloud save onto my PC?  And then how can I get it back to the cloud when I am done so I can play it on the console again?  Will there be two copies floating around, making it possible for me to make a backup on my PC?  How will this interact with world editors?  At some point will I be able to start a game on XBox, transfer it to the PC, open it in a world editor, make some changes, and then transfer it back to the XBox? Is it possible to reset all folder permissions? I was wondering if it was possible to reset all the folders' rights. I was having trouble when trying to install LAMP on my Ubuntu 11.04 installation, and I modified many permissions like /var /etc and I want to cancel everything I did and have permissions set to how they would be after a new install. Maximum area of isosceles triangle with perimeter 6 cm Problem. What is the side lengths of an isosceles triangle with $6cm$ perimeter which has the largest area? I solved this problem as below and I would like to learn  that if there is anything wrong: Let us say that the side lengths are $a$ and the bottom length is $6-2a$. By using pythagorean theorem we can conclude that the height $h$ is equal to $\sqrt{6a-9}$. Then, the area of the triangle can be given as $f(a)=(3-a)(\sqrt{6a-9})$. So $f'(a)=-\sqrt{6a-9}+\cfrac{3}{\sqrt{6a-9}}$. Finally, $f'(a)=\cfrac{12-6a}{\sqrt{6a-9}}$ and $f'(a)=0 \iff a =2$. Check for missing fonts/characters in XeLaTeX? Because I began to use many Unicode characters (Japanese, some unusual diacritics, etc.) I switched from LaTeX to XeLaTeX to render my documents. Unfortunately, if a font is missing, the letters are simply left out (for example, when I had forgotten to specify the font for Japanese) without any error (and I can't seem to spot a warning either). I will read the result, but I prefer to get some early warning if some character isn't available. Is there any way to get a warning about characters that have not been rendered? An error would be even better. How can I calculate the age of a person in year, month, days? Conditional Number Formatting In Java Does a fighter's Action Surge trigger Extra Attack? Context  A player in my game will play a fighter with a greatsword. At 5th level he has Extra Attack and the option to use Action Surge. PHB p.72 states:     Action Surge. Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one   additional action on top of your regular action and a possible bonus   action.      Once you use this feature, you must finish a short or long rest before   you can use it again. Starting at 17th level, you can use it twice   before a rest, but only once on the same turn.        Extra Attack. Beginning at 5th level, you can attack twice, instead of once,   whenever you take the Attack action on your turn.       The number of attacks increases to three when you reach 11th level in   this class and to four when you reach 20th level in this class.   Confusion  The questions and answers that I find on here deal with multi-classing or Two Weapon fighting specifically, which don't really give a clear yes or no on my question.  The way I read these two features is that when a fighter takes an Attack action, he gets the Extra Attack. After using Action Surge he gets the opportunity to take another Attack action, and with that another Extra Attack. This results in four attacks with the greatsword in one turn, which sounds amazing but also rather powerful. Is this correct, or am I missing something? How to use the Extended Euclidean Algorithm manually? I've only found a recursive algorithm of the extended Euclidean algorithm. I'd like to know how to use it by hand. Any idea? What was L's real name? I watched through Death Note once, and I never remember hearing L's name, even after he died.  What was L's real name, or did he never have one (it was never said)? Why is the multiplicative group of a finite field cyclic?