How to obtain a list of branches which are only direct ancestors of the current branch?
How can I know if a branch has been already merged into master?
Derivative of an even function is odd and vice versa There is a sentence:     No sooner had he sat down than he fell asleep.   I just do not understand, is this an inversion? And if so, I still do not understand the sentence. I am using the function below to match URLs inside a given text and replace them for HTML links. The regular expression is working great, but currently I am only replacing the first match.  How I can replace all the URL? I guess I should be using the exec command, but I did not really figure how to do it.  function replaceURLWithHTMLLinks(text) {     var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/i;     return text.replace(exp,"&lt;a href='$1'&gt;$1&lt;/a&gt;");  } Trying to remember a book about a human male travelling to alien planet I listened to this on audiobook and it was great.  The premise was a human ends up travelling to an alien planet. The aliens have a perimeter to their 'base' that is under constant attack from the planet's animals. It is revealed towards the end that there is some sort of signal being transmitted that is making all the animals and plant life attack a certain point on the planet (where the aliens are).   Other major plot points I remember: The human traveller falls in love with an alien. The aliens have a sort of virtual training environment that simulates life outside the perimeter, where plants attack you etc. There is a secondary alien group that the human ends up with, and although they are rivals to other group, they have a trade set up.   Any help much appreciated! Thanks. Take the following function:  DataTable go() {     return someTableAdapter.getSomeData(); }   When I set a breakpoint in this function, is there a possibility to inspect the returned value? go() is directly coupled to a datagrid in an .aspx page.  The only way to inspect the returned datatable is to use a temporary variable. However, that's a bit inconvenient. Isn't there another way? Dual-system Windows and Ubuntu I did dual boot with Windows 7 &amp; Ubuntu 14.04. I get both in boot menu but can't boot into Windows 7. The primary drive where Windows 7 was configured now shows to be logical drive with all files in it. How to resolve it ?  This is what it shows:  irshad@irshad-desktop:~$ lsblk NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0 465.8G  0 disk      ├─sda1   8:1    0  58.6G  0 part /media/irshad/B2E08E69E08E339F     ├─sda2   8:2    0     1K  0 part      ├─sda5   8:5    0 195.3G  0 part /media/irshad/8E90A6A690A6946D     ├─sda6   8:6    0 182.8G  0 part /media/irshad/7650B08250B04B1F    ├─sda7   8:7    0    25G  0 part /    └─sda8   8:8    0     4G  0 part      sr0     11:0    1  1024M  0 rom     I tried to run update-grub but I get the following result.  $ sudo update-grub  Generating grub configuration file ...  /etc/grub.d/06_custom: 31: /etc/grub.d/06_custom: function: not found  /etc/grub.d/06_custom: 34: /etc/grub.d/06_custom: save_env: not found  /etc/grub.d/06_custom: 36: /etc/grub.d/06_custom: Syntax error: "}" unexpected How to prove this limit exists: $a_{n+2}=\sqrt{a_{n+1}}+\sqrt{a_{n}}$ Question: Consider a sequence $\{a_{n}\}$ such that $a_{1},a_{2}&gt;0$, and for all $n \in \mathbb{N}$ we have:  $$a_{n+2}=\sqrt{a_{n+1}}+\sqrt{a_{n}}$$  Prove that :  $\displaystyle\lim_{n\to\infty}a_{n}$ exists and find this limit.  My work: If this limit exists, let $\displaystyle\lim_{n\to\infty}a_{n}=x&gt;0$; then we have $$x=\sqrt{x}+\sqrt{x}\Longrightarrow x=4$$ But I can't see how to prove the limit of $\{a_{n}\}$ exists. Thank you for you help! How does evolving relate to CP? Set spawn point for a specific player I made a server and me and one of my friends want to do a prank on another friend, because he stole all my enchanted diamond armor.  The Prank  I want to set a player's spawn point in a pit of lava, how would I do this without affecting anyone else's spawn point? How can I read a large text file line by line using Java? Is everything in the physical world composite? In philosophy there is a principle that anything composite cannot have existed eternally, since it is preceded by its parts and whatever forces assembled it.  Is everything in the physical world composite in one sense or another or is there something not composite? How can Star Trek: Countdown ever be considered canon? Spoilers for A Storm of Swords / Season 4 episode 2 "The Lion and the Rose".  At the Purple Wedding,      Littlefinger and Lady Olenna Tyrell   perform their plan of      poisoning King Joffrey.   A short summary of their plan:  Littlefinger orders Ser Dontos Hollard to give Sansa Stark a beautiful silver hairnet adorned with amethysts. At least some of the amethysts are actually strangler crystals in disguise. Ser Dontos also, still under orders of Littlefinger, urges Sansa to wear the hairnet at the wedding, which she then does. At the wedding, when Lady Olenna greets Sansa, she fusses her hairnet a bit, while secretly taking one of the strangler crystals. Later, during the wedding, Lady Olenna puts the crystal in Joffrey's royal cup, poisoning him.  But why was their plan so complicated? Why couldn't Lady Olenna just bring a strangler crystal with her to the wedding (as suggested in )?  Then they wouldn't depend on Ser Dontos and Sansa who could unknowingly have done something to prevent the success of the plan.  The only reason that I could think of, is Littlefinger and Lady Olenna plan for Sansa (and Tyrion as her husband with her) to take the blame for Joffrey's death.  They put the crystals on her person, so that upon examination it would clearly show that Sansa had the murder weapon on her. But Littlefinger had a plan he did not tell Lady Olenna, namely rescuing Sansa during the chaos ensuing the murder (and thereby leaving Tyrion behind as the only accused).  Is there anything confirming or debunking this theory? If my theory doesn't hold up, is there another explanation for why the plan was so needlessly complicated? So I currently have this issue where my Epson WF-3620DWF can't find the blue and yellow cartridges. (They are official epson ones) and I have a full black cartridge in there. How do I force my printer to ONLY print in black and ignore the cartridge(s) not recognised error? Dropping the '-ing' in noun adjuncts I always remember many verbs ending in -ing.  Swimming club/cap and shaving foam for example. I now see increased use of swim club and shave foam.  Why has this happened, is it correct use of English ? I'm looking to simultaneously send the same email to multiple recipients.  Let's say I want to email John and Bill the same email, I want them to be in the "To:" field, but I don't want them to see each other in the address list.  I don't want to bcc them both because then they see they are bcc'd.  I want them to each get their own copy of the identical email and to have 2 emails in my sent folder - one for each of them.  Essentially I want the same result as if I separately sent them each the identical email, but I'd like to do it in fewer steps.  Can I accomplish this either natively or with a plug-in, or some pre-existing code?  NOTE: I am looking to do this interactively (in real time), not in batch. Is the density operator a mathematical convenience or a 'fundamental' aspect of quantum mechanics? In quantum mechanics, one makes the distinction between mixed states and pure states.  A classic example of a mixed state is a beam of photons in which 50% have spin in the positive $z$-direction and 50% have spin in the positive $x$-direction.  Note that this is not the same as a beam of photons, 100% of which are in the state $$ \frac{1}{\sqrt{2}}[\lvert z,+\rangle + \lvert x,+\rangle]. $$ It seems, however, that at least in principle, we could describe this beam of particles as a single pure state in a 'very large' Hilbert space, namely the Hilbert space that is the tensor product of all the $\sim 10^{23}$ particles (I think that's the proper order of magnitude at least).  So then, is the density operator a mathematical convenience, or are there other aspects of quantum mechanics that truly require the density operator to be a 'fundamental' object of the theory?  (If what I mean by this is at all unclear, please let me know in the comments, and I will do my best to clarify.) What is a substitute for red or white wine in a recipe? Why is it possible to answer a question twice? Proving $1-\exp(-4x^2/ \pi) \ge \text{erf}(x)^2$