Sometimes it happens that I make some changes in my working directory, and I realize that these changes should be committed in a branch different to the current one. This usually happens when I want to try out new things or do some testing and I forget to create a new branch beforehand, but I don't want to commit dirty code to the master branch.  So, how can I make that uncommitted changes (or changes stored in the index) be committed to a different branch than the current one?
How can I do the following in Git?  My current branch is branch1 and I have made some local changes. However, I now realize that I actually meant to be applying these changes to branch2. Is there a way to apply/merge these changes so that they become local changes on branch2 without committing them on branch1?
Let $A$ be a ring that is not a field and $M$, $N$ modules over $A$. What conditions on $M,N$ (and maybe also on $A$) guarantee that $\operatorname{Hom}_A(M,N)$ is finitely generated? Is it enough to assume $M,N$ finitely generated? "(CRON) info (No MTA installed, discarding output)" error in the syslog Prove that $\left| f'(x)\right| \leq \sqrt{2AC}$ using integration Suppose that $f(x)$ is a $C^2$ function on $\mathbb{R}$ such that $\left| f(x) \right| \leq A$ and $\left| f''(x) \right| \leq C $ for $x \in \mathbb{R}$. Prove that $\left| f'(x)\right| \leq \sqrt{2AC}$. Activate physics by keyframe I'd like to have a group of debris fall from a ceiling onto the floor, but not have them drop all at the same time. Is there a way to set a keyframe that dictates when the object enters the simulation? For example, object 1 starts falling on frame 0, object 2 on frame 5, object 3 on frame 24, etc. Agreement With Compound Subjects Joined by And I was surfing the internet the other day when I found this phrase: Instead your precious time and attention is wasted. To my ears, it sounds wrong. But I'm not a native English speaker, so I consulted with a number of them, and some of them said that it was "is" because the adjective modifies only the noun "time" and not "attention". Others said it "is" because that's just how it is. But I still believe it should be "are". Any help is appreciated. How can I convert from a SID to an account name in C# I have a C# application that scans a directory and gathers some information.  I would like to display the account name for each file.  I can do this on the local system by getting the SID for the FileInfo object, and then doing:  string GetNameFromSID( SecurityIdentifier sid ) {     NTAccount ntAccount = (NTAccount)sid.Translate( typeof( NTAccount ) );     return ntAccount.ToString(); }   However, this does not work for files on a network, presumably because the Translate() function only works with local user accounts.  I thought maybe I could do an LDAP lookup on the SID, so I tried the following:  string GetNameFromSID( SecurityIdentifier sid ) {     string str = "LDAP://&lt;SID=" + sid.Value + "&gt;";     DirectoryEntry dirEntry = new DirectoryEntry( str );     return dirEntry.Name; }   This seems like it will work, in that the access to "dirEntry.Name" hangs for a few seconds, as if it is going off and querying the network, but then it throws a System.Runtime.InteropServices.COMException  Does anyone know how I can get the account name of an arbitrary file or SID?  I don't know much about networking or LDAP or anything.  There's a class called DirectorySearcher that maybe I'm supposed to use, but it wants a domain name, and I don't know how to get that either - all I have is the path to the directory I'm scanning.  Thanks in advance. I was trying to solve a question of an entrance exam. I am completely stuck in the problem. I am not able to find idea how to proceed. Please help me.     Let $A$ be the set of twice continuously differentiable functions on the interval $[0, 1]$ and let $B = \{f \in A : f(0) = f(1) = 0, f'(0) = 2\}$. Find the value of $$\text{min}_{f\in B} \displaystyle \int_0^1 (f''(x))^2dx.$$    I am really sorry for not showing some effort from my side but I can not find ant way to proceed.  Please help me. Thnx in advance. Complex number isomorphic to certain $2\times 2$ matrices? I have been trying to prove this, but I am having trouble understanding how to prove the following mapping I found is injective and surjective. Just as a side note, I am trying to show the complex ring is isomorphic to special $2\times2$ matrices in regard to matrix multiplication and addition. Showing these hold is simple enough.  $$\phi:a+bi \rightarrow \begin{pmatrix} a &amp; -b \\ b &amp; a \end{pmatrix}$$  This is what I have so far:  Injective: I am also confused over the fact that there are two operations, and in turn two neutral elements (1 and 0). Showing that the kernel is trivial is usually the way I go about proving whether a mapping is injective, but I just can't grasp this.  $$ \phi(z_1) = \phi(z_2) \implies \phi(z_1)\phi(z_2)^{-1} = I = \phi(z_1)\phi(z_2^{-1}) = \phi(z_2)\phi(z_2^{-1}).$$  So if we can just show that the kernel of $\phi$ is trivial, then it also shows that $z_1 = z_2$. The only complex number that maps to the identity matrix is one where $a = 1$ and $b = 0$, $a + bi = 1 + 0i = 1$.  Using a similar argument for addition we can just say that the only complex number $z$ such that $\phi(z) = 0\text{-matrix}$, is one where $a=0$ and $b=0$, $a+bi=0+0i=0$.   Surjective:  I forgot to add this before I posted, but I honestly don't really understand how to prove this because it just seems so obvious. All possible $2\times2$ matrices of that form have a complex representation because the complex number can always be identified by its real parts and since the elements of the $2\times2$ matrix are real then the mapping is obviously onto.  I have always had trouble understanding when I can say that I have "rigorously" proved something, so any help would be appreciated! Compatible version of "Adobe Shockwave Player?" Is there a Ubuntu compatible version of the "Adobe Shockwave Player?" I'm running Firefox and when I try to bring up one of my School's websites it says missing plugin. When I click on "Install missing plug-in" it says none found, so when I click on manually install plug-in it takes me to Adobe Shockwave Player installation, but there is no ubuntu version to install??? On the Firefox plug-in finder service it says "Unknown Plugin (application/x-director) Correct usage of will and would Restore open applications, documents, and window state When working on a project, I generally have a couple of Explorer windows open to relevant folders and a couple of applications (e.g. Eclipse and a form development tool) open to specific project-related documents.  There's a lot of value in that context, and I'd like to find a way to save a set of open apps under a project name, then restore that state at a later date.    Thus far all of the utilities I've found are virtual desktop products that don't save/restore state.  I'm specifically looking for something that will run the applications I had running, open the documents I had open, and position the windows as they were.  I'm amazed that such a seemingly simple concept as "Save my workspace state" doesn't seem to be available.  I'm on Windows 7.  Any suggestions? Probability of sampling with and without replacement In sampling without replacement the probability of any fixed element in the population to be included in a random sample of size $r$ is $\frac{r}{n}$. In sampling with replacement the corresponding probability is $\left[1- \left(\frac{1}{1-n}\right)^r\right]$.  Please help me show how this is proved. Been trying to find graphic novel for decades - at least I think it's a graphic novel How do you check if a JavaScript Object is a DOM Object? I'm trying to get:  document.createElement('div')  //=&gt; true {tagName: 'foobar something'}  //=&gt; false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute? Local BLAST Copy Number per Hit I generated a series of local BLAST databases using makeblastdb of metagenomic data and am searching for the presence of a particular gene. While I can do the normal BLAST analysis looking at e-values, % identity, etc. I haven't been able to figure out how to determine how many times a given sequence exists in the database.  So: given a BLAST database of metagenomic data where a particular gene may exist multiple times, how do I determine the copy number of a given BLAST hit?  Thanks in advance. to set start Thunderbird in minimized mode at startup, but it wasn't helpful.   After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .  So is there any working way to start Thunderbird minimized on start-up? Splitting vector layer in R How to prove or disprove following statement :     There are infinitely many primes of the form : $\lfloor \sqrt {3} \cdot n \rfloor $    Note: This is a problem I made myself.  There is a theorem that states :  $\lfloor nx \rfloor = \begin{cases}  n\lfloor x \rfloor, &amp; \text{if } 0 \leq \{x\} &lt; \frac{1}{n} \\  n\lfloor x \rfloor +1, &amp; \text{if } \frac{1}{n} \leq \{x\} &lt; \frac{2}{n} \\  n\lfloor x \rfloor +2, &amp; \text{if } \frac{2}{n} \leq \{x\} &lt; \frac{3}{n} \\  \vdots \\  n\lfloor x \rfloor +n-1, &amp; \text{if } \frac{n-1}{n} \leq \{x\} &lt; 1 \\ \end{cases}$  where $\{x\}$ is a non-integer part of $x$ .  Hence :  $\lfloor \sqrt{3}\cdot n \rfloor = \begin{cases}  n, &amp; \text{if } 0 \leq \sqrt{3}-1 &lt; \frac{1}{n} \\  n +1, &amp; \text{if } \frac{1}{n} \leq \sqrt{3}-1 &lt; \frac{2}{n} \\  n +2, &amp; \text{if } \frac{2}{n} \leq \sqrt{3}-1 &lt; \frac{3}{n} \\  \vdots \\  2n-1, &amp; \text{if } \frac{n-1}{n} \leq \sqrt{3}-1 &lt; 1 \\ \end{cases}$  How can I proceed from here ? Should Luke's lightsaber have given away his plan? During Luke's confrontation of Kylo Ren toward the end of The Last Jedi we see that       the lightsaber Luke uses a blue lightsaber (which I thought was his original one but that really doesn't matter), not the green one of his own construction.   Given that Kylo Ren  and Rey has just     fought over and broken the blue lightsaber   Why did Kylo Ren not notice this "inconsistency" and realize that      Luke's physical body was not there? $E[e_te_s\Delta B_t\Delta B_s]$ for $\Delta B_t$ Brownian motion increments and $e_t(\omega)$ a measurable function.