If a wizard 4/warlock 2 were to cast Shield using a warlock spell slot. Would the character regain the ability to cast it again on a long rest or short?
If you multiclass a Warlock and a Sorcerer, then you have a character with both the Spellcasting and Pact Magic features.  PHB Page 101, Sorcerer, Spellcasting, Spell Slots:     You regain all expended spell slots when you finish a long rest.   PHB Page 107, Warlock, Pact Magic, Spell Slots:     You regain all expended spell slots when you finish a short or long rest.   PHB Page 165, Customization Options, Multiclassing, Class Features:     Pact Magic. If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   Do the spell slots keep their previous method of recovery (sorcerer slots long rest, warlock slots any rest), or do they all act consistently as I am led to believe from the language of the multiclass section? Do they all recover only from long rests as per the sorcerer feature, or can they all be recovered with a short rest because the warlock feature says so?
Why is menstruation in wild animals not a disadvantage to organismal survival? When I watch wilderness specials for more than a few minutes, I notice a familiar pattern: predators are depicted as being alerted by the scent of blood. Wounded animals seem to make the best prey and predators seem to have a heightened awareness for the smell of blood.   It would seem that it would then be a disadvantage to evolutionary survival for female organisms to menstruate. How do females of a species not attract predators to the signal of menstrual blood?   Do female organisms in the wild actually menstruate? If so, is there a difference in the composition of menses that does not alert predators? How would this not at the very least give predators an idea of the general vicinity of the female?  If wild animals excrete their menses, do they have ways in which they are able to mask the evidence of its release or are they somehow internalizing the tissue so that they are not released?  If female organisms in the wild do menstruate, then why is this not a survival disadvantage? I am working with a basic  which is a popular modal used on many sites. I noticed that the default template comes with both a close button on the bottom, as well as an x on the top, these two buttons essentially having the same purpose. Are the two redundant and the close button completely unnecessary and just taking up extra space? Or, is having multiple usage options more user friendly?   To make this even more fun, suppose I throw in a Save button:   Is it now clearer that if you don't press save and just press the x, your changes will be canceled, or is there now more of a need for a cancel button for users who are scared that a mistake will become permanent? Update: To clarify for those who feel this question is similar to  - That question is asking if a clickable background is sufficient to close a popup. I'm using buttons and it is just a matter of how many buttons to use. (I do also have a clickable overlay and ESC key enabled, but that is irrelevant to my question) After Doomsday was defeated, a spec-ops team sent to the Kryptionian ship in Metropolis found Luthor submerged in water, in front of a... thing, which "held" three metal cubes. The thing looked up, roars, and dissipates into thin air.    What the hell was that all about? I am really confused. What was that creature and what was Luthor doing with it? Let $V$ be an n-dimensional vector space over $\mathbb{R}$ and $T:V \rightarrow V$ be linear. Call a vector $v \in V$ cyclic if $V$ is spanned by $\{v, \ Tv, \ T^2v,..\}$.  Question:  Show that $v$ is cyclic for $T$ then there is some $k \geq 1$ such that   $$B=\{v, \ Tv,..T^{k-1}v \}$$ is linearly independent in $V$ and that $T^kv$ lies in  the span of $B$.  Thoughts:  If we suppose that no such $k$ exists, then every subset of the form $\{v, \ Tv,..T^{l-1}v \}$ is linearly dependent, or it is linearly dependent with $T^lv$ not lying in it span.  There are in effect then two cases to consider.  Suppose every subset of the form $\{v, \ Tv,..T^{l-1}v \}$ is linearly dependent. Then $T^{l-1}$ can be expressed as a linear combination of $v,...,T^{l-2}v$. Now, $\{v, \ Tv,..T^{l-2}v \}$ is also linearly dependent by assumption and so we can express $T^{l-2}$ as a linear combination of  $v,...,T^{l-3}v$ etc... Continuing in this way, we show that $T^{l-1}v= \lambda v$ for some $\lambda \in \mathbb{R}$. Thus $$B=\{ \mu v \ | \ \mu \ \text{is an eigenvalue of} \ T^mv \ \text{for some} \ m \}$$ This is 'at best' countably infinite, and therefore could not span $V$ even if it were 1-dimensional, wince our base field is $\mathbb{R}$, which is uncountable.  Suppose then that $B$ is linearly independent for some $k$ but that $T^kv$ does not lie in its span. I can't see how to progress this argument.  Note: This question is for second year Undergraduates, and I think there must be some more simple approach; even the first part surprises me if we need to argue using the uncountability of $\mathbb{R}$, so any alternative approaches are also appreciated. Suppose you have a physical . It is true that as amplitude increases, the period increases. Can we demonstrate this fact without explicitly finding the period (which is pretty involved and pretty messy) in:    an intuitive fashion,  rigorously? I just know that ls -t and ls -f give different sorting of files and subdirectories under a directory.   What are the differences between timestamp, modification time, and created time of a file? How to get and change these kinds of information by commands? In terms of what kind of information do people say a file is "newer" than the other? What kinds of information's change will not make the file different?   For example, I saw someone wrote:     By default, the rsync program only looks to see if the files are different in size and timestamp. It doesn't care which file is newer, if it is different, it gets overwritten. You can pass the '--update' flag to rsync which will cause it to skip files on the destination if they are newer than the file on the source, but only so long as they are the same type of file. What this means is that if, for example, the source file is a regular file and the destination is a symlink, the destination file will be overwritten, regardless of timestamp.   On a side note, does the file type here mean only regular file and simlink, not the type such as pdf, jpg, htm, txt etc? "In here", "from here", and "at here" I just read the discussed topic "look here vs. look at here":  It's got me wondering.  What is the reason for not using the preposition at before here?  Is it because here is an adverb and it is wrong to use a preposition before an adverb?  What if we use here with its nominal meaning, as in "get away from here", or "It's really hot in here", and then say "Look at here" meaning "Look at this place"?    If it is wrong and there is some other reason why at here is incorrect but in here and from here are correct, what is it? What are metaclasses in Python? In Python, what are metaclasses and what do we use them for? Find $f$ where $f'(x) = f(1+x)$ Let $f \colon \mathbb{R} \rightarrow  \mathbb{R}$ be a smooth function such that $$f'(x) = f(1+x)$$ How can we find the general form of $f$? I thought of some differential equations, but not sure how to use them here. Thanks. This is a weird phenomenon.  Consider the following code:  \documentclass{article} \begin{document}   $$Z^* \frac{Z^*}{Z^*}$$ \end{document}   It produces the following picture:    The asterisks appear in various places in comparison to the Z. This looks particularly bad in the denominator. Any idea what's behind this? How do I see that $$f_{n+1}f_{n-1} = f_n^2 + (-1)^n$$ for $n \ge 2$, where $f_1 = 1$, $f_2 = 1$, and $f_{n+2} = f_{n+1} + f_n$ for $n \in \mathbb{N}$? Problem from Herstein on group theory The problem is:  If $G$ is a finite group with order not divisible by 3, and $(ab)^3=a^3b^3$ for all $a,b\in G$, then show that $G$ is abelian.  I have been trying this for a long time but not been able to make any progress. The only thing that I can think of is: $$ab\cdot ab\cdot ab=aaa\cdot bbb\implies(ba)^2=a^2b^2=aabb=(\text{TPT})abba.$$ Now, how can I prove the last equality? If I write $aabb=abb^{-1}abb$, then in order for the hypothesis to be correct, $b^{-1}abb=ba\implies ab^2=b^2a$. Where am I going wrong? What should I do? How do we know the brain flips images projected on the retina back around? Why do we turn images upside down again rather than dealing with them directly, still vertically rotated after passing through our lens?   I don't see how that would cause any problems, and how we'd ever be able to figure out if we are presented with flipped images after getting used to interacting based on visual input, whether flipped or not.   What am I missing? I just picked up a copy of Windows 7 Pro OEM for install on my computer.  Guy at the store said the only real difference between OEM and standard retail box was tech support.  However, the outside of the box has this big warning that says "The software must be installed with an OPK"?  What is the OPK?  Is it really necessary?  The MS site about it seemed to say it was optional.  EDIT:  BTW - I'm just an individual tinkerer, and not a System Builder Company Employee.  I should have made that clear.  I've used sysprep in a professional setting in the past, so I'm somewhat familiar with its concepts. I (think) that I've configured a static IP address in /etc/network/interfaces:  # The primary network interface  auto eth0  iface eth0 inet static     address 10.1.1.2     netmask 255.255.255.0     network 10.1.1.0     broadcast 10.1.1.255     gateway 10.1.1.1   And I change the file /etc/resolv.conf to include the desired nameservers.   Then I restart networking sudo /etc/init.d/networking restart  But after some hours resolv.conf always reverts back to the DHCP nameserver.   I should also say that this is Ubuntu Server with only l0 and eth0 interfaces. From 2012 onward the SQL Server docs show they support  which I'm trying to use instead of a LIMIT.  The following works fine in PostgreSQL to sample a result set,  SELECT * FROM ( VALUES (1),(2),(3) ) AS t(x) OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY;   However, with SQL Server, I get  Msg 153, Level 15, State 2, Line 4 Invalid usage of the option FIRST in the FETCH statement.   What's going on here? Does SQL Server support the standardized OFFSET .. FETCH? How to redirect output to a file and stdout You "show" someone a picture. You "---" someone a song? In , we have a verb meaning &quot;to show&quot; corresponding to &quot;to see/to look&quot;, and we have a different verb corresponding to &quot;to hear/to listen&quot;:  inti tara stampa (you look at a picture.) ---- jiena nurilek stampa (I show you a picture) inti tisma' diska (you listen to a song.) ----- jiena nsemmagħlek diska (I 'show' you a song)  In English, do you &quot;show someone a song&quot; (sounds weird to me) or is there a verb that corresponds more directly to the Maltese insemmgħek? How did Harry become a Horcrux? How to see time stamps in bash history? Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also?  Bottom-Line: Execution time in the Bash history