How do I make subnumcases work with cleveref?
subequations and array in braces
When a player joins the server, this command block (containing gamemode 2 @a) puts them into gamemode 2/adventure mode. How can I change this so that only non-admin/not "opped" players' gamemode gets changed? How to remove "onclick" with JQuery? Why do we even need the "delete[]" operator? This is a question that's been nagging me for some time. I always thought that C++ should have been designed so that the delete operator (without brackets) works even with the new[] operator.  In my opinion, writing this:  int* p = new int;   should be equivalent to allocating an array of 1 element:  int* p = new int[1];   If this was true, the delete operator could always be deleting arrays, and we wouldn't need the delete[] operator.  Is there any reason why the delete[] operator was introduced in C++?  The only reason I can think of is that allocating arrays has a small memory footprint (you have to store the array size somewhere), so that distinguishing delete vs delete[] was a small memory optimization. Many C++ books contain example code like this...  std::cout &lt;&lt; "Test line" &lt;&lt; std::endl;   ...so I've always done that too. But I've seen a lot of code from working developers like this instead:  std::cout &lt;&lt; "Test line\n";   Is there a technical reason to prefer one over the other, or is it just a matter of coding style? (This is not homework; a friend shared with me this puzzler and neither of us can figure it out.) Suppose you are in a plane traveling at velocity $v_1$ relative to the ground. The flight attendent pushes a cart of mass, say, $m$, accelerating it from rest to $v_2$, relative to the plane (so relative to the ground, its velocity goes from $v_1$ to $v_1+v_2$). From your perspective, the work done is then $$W = \Delta E = \dfrac{1}{2}mv_2^2$$ but from the perspective of the ground, the work done is $$W = \Delta E = \dfrac{1}{2}m(v_1+v_2)^2 - \dfrac{1}{2}mv_1^2 = \dfrac{1}{2}mv_2^2 + mv_1v_2.$$ Why are these quantities unequal?  I've seen some similar problems, like a body colliding with a wall in different reference frames, but I don't have the physics experience to tell if that question is analogous to this one. So, my apologies if this is a duplicate. :) Show that if $\lim_{x\to a}f'(x) = A$ then $f'(a)$ exists and equals A I ran across this problem in my Analysis class and can't seem to come up with a good solution. Here's the question: Show that if $\lim_{x\to a}f'(x) = A$ then $f'(a)$ exists and equals $A$. $f$ is continuous on $[a,b]$ and differentiable on $(a,b)$.  I tried applying the Mean Value theorem like this: There exists a $c \in (a, x)$ st $f(x)-f(a)=f'(c)(x-a) \implies \frac{f(x)-f(a)}{x-a}=f'(c) \implies f'(a)=\lim_{x\to a}\frac{f(x)-f(a)}{x-a}=\lim_{c\to a}f'(c)=A$  However, I think this is wrong. I am pretty sure the Mean Value theorem is needed, but my application of it seems to be incorrect. Would somebody be able to point me in the right direction? Undecidable language problems. Create bootable CD from ISO I've seen lately that new question editing is stored somewhere for later use if we wander off the new question without posting it and then return back to the page. Which is a good functionality addition in it's own right.  What I'd like to also have is the Discard this draft functionality that would clear form data and forget it. Somehow we find an answer in the meantime and the question isn't valid any more.  So having a Discard saved draft or something similar would be a nice contra-functionality to auto-save to remove stored data. The way it's implemented now seems too hidden hidden and unpredictable to users.  Additional edit  When adding hidden auto functionality usually means creating the opposite as well by either giving the possibility to preference of not having automatism at all or giving the possibility to clear what's been auto saved.  Let's see how GMail doesn't work (and I think we all agree that from UX perspective it does the job as expected:   User clicks Compose message User starts writing a new email message User decides to not send the message and checks their inbox User clicks Compose message again A clean form is presented to user (old one being part of drafts)   I'm not suggesting we should have something like Saved drafts but we surely should have the possibility to clear previous question draft.  Since this new functionality was introduced I should point out that I would use the discard functionality more frequently than the saved one. I do welcome saving messages, but discarding of saved drafts is anything but a rare situation one might want to do. It wouldn't be a problem if this was a 1% against 99%. To me it's more like 50/50.  Best possible solution  When providing saved drafts there should (from the UX perspective) be the opposite functionality as well. Namely discarding of it. But first thing we should be asking ourselves is:    do users more frequently need pre-filled saved question draft or do users more frequently need empty form with the possibility to populate it with a saved draft   User testing should provide the usage frequency between the two and the one that's more likely to happen (my guess is that there would be a big difference between the two) should be implemented. So one of these:   Pre-populate question fields with saved draft on question form load, while also providing a button to clear the draft and start writing anew without the need to manually clear all the fields (which would be the optimal solution in case of a single field form) Question form should always load empty while also having a button that would pre-populate it with a saved draft.   I think this would be the best consensus related to saved question drafts and their usage. But as we've seen this issue has been swept under the rug for an indefinite time. Consider the symmetric group $S_5$. I would like to find how many elements of $S_5$ are of order 5, and how many are of order 6. I would also like to determine what the maximum order of an element in this group would be.  Here is what I have so far: elements of order 5 are the 5-cycles. Elements of order 6 (since a 6-cycle is impossible for 5 elements) must have at least an even cycle and a cycle of length divisible by 3, and 2 + 3 = 5, so elements of order 5 are a combination of 2-cycles and 3-cycles.  How can I find the total count of such elements of order 5 and order 6, and the maximum order? I'm not entirely sure where to go from here. format date in c# How can I format a date as dd/mm/yyyy or mm/dd/yy ?   Like in VB format("dd/mm/yy",now)  How can I do this in C#? Is a 1st-level spell cast using a 4th-level slot a 1st-level spell, or a 4th-level spell? How to run an encrypted virtual machine? How to customize Latexian to use other TeX engines or biber? The Mac editor Latexian has built in methods for compiling using latex+dvips, pdflatex and xelatex.  Furthermore, it assumes bibtex and makeindex to deal with bibliographies and indexes, respectively.  How do I customize Latexian to use, e.g. LuaTeX for compiling or Biber for bibliographies? Which types of particles are affected by the wave-particle duality? How can I make iconv replace the input file with the converted output? Suppose $53$ percent of the population prefer red socks to green. If $100$ random people are asked, what is the probability that most (at least $50$) will say prefer GREEN:  So I set \begin{align*} N &amp; = 49.5\\   n &amp; = 100\\   p &amp; = 0.47 \end{align*}  Then.. \begin{align*}    P(N \geq 49.5) &amp; = P\left(\frac{N - np}{\sqrt{npq}}\right)\\                &amp; \geq \frac{49.5 - 47}{\sqrt{100*.47*.53}}\\                   &amp; = \varphi(0.50)\\                   &amp; = 0.3085   \end{align*} Except, that's not the right answer. What did I do wrong in my calculations? Can a pixie fly higher than their altitude of one? In the pixie description on the compendium:     Altitude Limit: You fall at the end of your turn if you are using your racial fly speed and are more than 1 square above the ground (see the rules for flying and falling in the Rules Compendium).   So can a pixie choose to go two or more squares above the ground?   Here are the relevant rules from the compendium:  Fly speed:     A creature that has a fly speed can fly a number of squares up to that speed as a move action. If it is stunned or knocked prone while flying, it falls. See also “Flying” and "Hover".   Flying:     Flight      Some creatures have the innate ability to fly, whereas others gain the ability through powers, magic items, and the like. The rules for flight in the DUNGEONS &amp; DRAGONS game stress abstraction and simplicity over simulation. In real life, a flying creature’s ability to turn, the speed it must maintain to stay aloft, and other factors put a strict limit on flight. In the game, flying creatures face far fewer limitations.      FLIGHT      Flight follows the basic movement rules, with the following clarifications.         Fly Speed: To fly, a creature takes the walk, run, or charge action but uses its fly speed in place of its walking speed. A creature that has a fly speed can also shift and take other move actions, as appropriate, while flying.   Moving Up and Down: While flying, a creature can move straight up, straight down, or diagonally up or down. There is no additional cost for moving up or down.   Falling Prone: If a creature falls prone while it is flying, it falls. This means a flying creature falls when it becomes unconscious or suffers any other effect that knocks it prone. The creature isn’t actually prone until it lands and takes falling damage.   Remaining in the Air: A flying creature does not need to take any particular action to remain aloft; the creature is assumed to be flying as it fights, moves, and takes other actions. However, a flying creature falls the instant it is stunned, unless it can hover.   Landing: If a creature flies to a surface it can hold onto or rest on, the creature can land safely.   Terrain: Terrain on the ground does not affect a flying creature if the terrain isn’t tall enough to reach it. Because of this rule, flying creatures can easily bypass typical difficult terrain, such as a patch of ice on the ground. Aerial terrain can affect flying creatures.      Crashing        Falling while Flying: If a creature falls while it is flying, it descends the full distance of the fall but is likely to take less damage than a creature that can’t fly. Subtract the creature’s fly speed (in feet) from the distance of the fall, then figure out falling damage. If the difference is 0 or less, the creature lands without taking damage from the fall. For example, if a red dragon falls when it is 40 feet in the air, subtract its fly speed of 8 (8 squares = 40 feet) from its altitude. The difference is 0, so the dragon lands safely and is not prone.         If a creature is flying when it starts a high-altitude fall, it has one chance to halt the fall by making a DC 30 Athletics check as an immediate reaction, with a bonus to the check equal to the creature’s fly speed. On a success, the creature falls 100 feet and then stops falling. On a failure, the creature falls as normal.         High-Altitude Falls: Some encounters take place very high above the ground. In such an encounter, it is possible for a creature to spend more than one round falling to the ground. As a rule of thumb, a creature falls up to 500 feet during its first turn of falling. If it is still falling at the start of its turn, it can take actions on that turn as normal, then falls up to 500 feet at the end of the turn. If none of those actions expressly halts a fall, the creature falls up to 500 feet at the end of the turn. This sequence continues until the creature lands. Asked again to review a paper, when the authors don't wish to modify it I have received a manuscript to review for a journal. The interesting thing is, I had already reviewed this article (exact same title, abstract and author list, almost exact same content) for another journal a few weeks ago where I recommended that it be published, but only after major revisions of both form and content. When I first reviewed it, I wrote a two-page review, listing some questions and several “actionable” comments, ranging from some concerns about exactness of the text (some conclusions didn't seem fully backed by the results) all the way down to trivial stuff (grammar, a few typos, graphic issues with the figures, etc.).  Now, the manuscript has come to me for review again, but it is almost unchanged from the first version. None of the serious stuff has been addressed, and even most of the trivial stuff was not fixed (there's at least one remaining typo, and the figures still aren't fully legible). However, I think this behavior from the authors is clearly a bad signal, which should be somehow conveyed to the editor: they're not willing to amend their work, and would rather do some journal-shopping.  What would you suggest me to do? Should I just re-send my earlier review? Add a note to the editor about my knowledge of the “history” of the paper? Or maybe even include it in my review, so the authors are aware that people know of their behavior, and maybe feel bad enough to change their ways?    PS: I wrote it in the present tense, but it's actually a story from my past. I'm not sure I did the right thing at the time, and I think it's better to actually formulate it as an open question… Evaluating $\int_0^{\infty}\frac{\ln(x^2+1)}{x^2+1}dx$ How would I go about evaluating this integral? $$\int_0^{\infty}\frac{\ln(x^2+1)}{x^2+1}dx.$$ What I've tried so far: I tried a semicircular integral in the positive imaginary part of the complex plane, excluding the negative real axis, but had trouble calculating the residue at $z=i$ (perhaps there is a way of doing this that I don't know of). After that didn't work, I tried a rectangular box integral from $\epsilon$ to $R$, from $R$ to $R+i/2$, from $R+i/2$ to $-S+i/2$, from $-S+i/2$ to $-S+i\epsilon$, from $-S+i\epsilon$ to $-\epsilon+i\epsilon$ and finally a semicircle around the origin, radius $\epsilon$.   Any help would be appreciated.