I've posted a comment on Stack Overflow, .  The relevant text is the first sentence:     Note that this RegEx doesn't capture URLs that have subdomains of one letter only, like "".   (In the quote here, it renders fine).  After posting, the end-quote was parsed as part of the URL, but worse (and weirder) than that - a wild semicolon appeared just before the comma. You may see in the following screenshot:    The original text of the comment is this, no semicolon there:    I've tried to edit the comment's source text, by adding a space before the comma, but that didn't change anything.
I added a comment to  but something strange is happening. The end code reads "); but SO decided to change that to ";);.    I did not add a ; in front of the ).  To further explain what's happening here, the following:  "http://example.com/." http://example.com/. "http://example.com." http://example.com. "http://example.com" http://example.com   renders as:
I need to find a bottleneck and need to accurately as possible measure time.  Is the following code snippet the best way to measure the performance?  DateTime startTime = DateTime.Now;  // Some execution process  DateTime endTime = DateTime.Now; TimeSpan totalTimeTaken = endTime.Subtract(startTime); What's wrong with this equal probability solution for Monty Hall Problem? I'm confused about why we should change door in the Monty Hall Problem, when thinking from a different perspective  gives me equal probability.   Think about this first: if we have two doors, and one car behind one of them, then we have a 50/50 chance of choosing the right door.   Back to Monty Hall: after we pick a door, one door is opened and shows a goat, and the other door remains closed. Let's call the door we picked A and the  other closed door B. Now since 1 door has already been opened, our knowledge has changed such that the car can only be behind A or B. Therefore, the problem is equivalent to: given two closed doors (A and B) and one car, which door should be chosen (we know it's a 50/50 thing)? Then, not switching door = choosing A, and switching door = choosing B. Therefore, it seems that switching should be equally likely, instead of more likely.   Another way to think: no matter which door we choose from the three, we know BEFOREHAND that we can definitely open a door with a goat in the remaining two. Therefore, showing an open door with a goat reveals nothing new about which door has the car.   What's wrong with this thinking process? (Note that I know the argument why switching gives advantage, and I know experiments have been done to prove that. My question is why the above thinking, which seems legit, is actually wrong.) Thanks. What is the time span of The Last Jedi? With the new  and the upcoming release of  film, JK Rowling has been awesome and given us new writing on the .  In the introduction it is stated that there are eleven established/registered schools. There are writings for six of them. I don't think we need a new writing for Hogwarts... so that means seven have been located and defined.   Hogwarts School of Witchcraft and Wizardry - Great Britain  - France  - Northern Europe (possibly Estonia, Latvia, or Belarus)  - Japan  - Africa (possibly Congo/DRC)  - Brazil  - United States   Do we know anything of possible location or names of the other four schools? I know Koldovstoretz was mentioned as school in Russia, but is that still canon?   Koldovstoretz - Russia (maybe depending on current canon)   The final three are my guesses based on the population and geography on the world.   Name Unknown - China (based on population) Name Unknown - India (based on population) Name Unknown - Australia (based on geography)   Related: How to create subfloat figures (two in first row and one below)? I want to place three figures like this on the page:  (a) (b)   (c)   How do I achieve this using subfloat or any other method in LaTeX? The three figures need to have a common caption and label.  I have tried this:  \begin{figure}[h] \centering \begin{tabular}{c c} \subfloat[] { \includegraphics[scale=0.4]{1.pdf} } &amp; \subfloat[] { \includegraphics[scale=0.4]{2.pdf} } \\ \multicolumn{2}{c} \subfloat[] { \includegraphics[scale=0.6]{3.pdf} } \end{tabular} \caption{Some caption} \label{some-label} \end{figure}   But, this is displaying [] for the third figure instead of (c). Also it displays [] to one side of the page instead of center. How do I prove this function is bijective? $$ v(s,p)=2^{p-1}(2s-1). $$ The domain is natural numbers and the codomain is also the natural numbers.  And this one: $$ f(s)=2s-1. $$ The domain is the natural numbers, and the codomain is the odd numbers in the natural numbers.  With this one I would do this to show it's injective: $$ \begin{align} v(s)&amp;=v(s_1)\\ \implies 2s-1&amp;=2s_1-1\\ \implies (2s_1)/2&amp;=(2s_2)/2\\ \implies s=s_1 \end{align} $$ So it's injective since if $v(s)=v(s_1)$ then $s=s_1$.  And to show it's surjective $f(s)=y$: $$ \begin{align} y&amp;=2s-1\\ \implies s&amp;=(y+1)/2 \end{align} $$ Then the function must be surjective since every $y$ is the same as the codomain for $f$.  Am I correct? today I installed Ubuntu 64-bit on a netbook. When the netbook boots this, error report appeared. I think there is a problem with the partitions.  Gave up waiting for root device. Common problems:   — Boot args (cat /proc/cmdline)     — Check rootdelay= (did the system wait long enough?)     — Check root= (did the system wait for the right device?)   — Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/ubuntu--vg-root does not exist. Dropping to a shell!   BusyBox v.1.21.1 (Ubuntu 1:1.21.1-1ubuntu1) built-in shell (ash)    Enter 'help' for list of built-in commands.    (initramfs)   Output of lsblk as requested:  $ lsblk NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0 232.9G  0 disk  ├─sda1   8:1    0   231G  0 part  ├─sda2   8:2    0     1K  0 part  └─sda5   8:5    0     2G  0 part [SWAP] sr0     11:0    1   1.2G  0 rom  /cdrom loop0    7:0    0   1.1G  1 loop /rofs Notifications in browser tab A very nice feature for Stack Overflow (and other Stack Exchange sites) would be to indicate the number of notifications (if any) in the browser tab like seen on Facebook:    Of course that would require automatic update if content has changed. Some kind of 'push-notification' which would be a nice feature as well. Footnote citations in biblatex ignore spacing before the citation command; how can I have the same behavior for all footnotes in a document?  Here's a MWE demonstrating the issue:  \documentclass{article} \usepackage[style=verbose-trad2]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} Spacing is fine before citations     \autocite{kant:kpv}  but not before footnotes    \footnote{A footnote \autocite{kant:ku}}. \end{document} Is a GUID unique 100% of the time? Is a GUID unique 100% of the time?  Will it stay unique over multiple threads? Are there any countable Hausdorff connected spaces? Do countable Hausdorff connected topological spaces exist? Can I move the Unity launcher? I can’t get used to the new Unity system. I’d like to move the left Unity panel to the bottom of screen (like Windows 7 – more similar is better).  But I can't find a way. Is it possible? Proving ${n \choose p} \equiv \Bigl[\frac{n}{p}\Bigr] \ (\text{mod} \ p)$ BM01 2011/12 Question 6 Geometry Problem Let $ABC$ be an acute-angled triangle. The feet of the altitudes from $A,B$ and $C$ are $D, E$ and $F$ respectively. Prove that $DE +DF \le BC$ and determine the triangles for which equality holds. The altitude from A is the line through A which is perpendicular to BC. The foot of this altitude is the point D where it meets BC. The other altitudes are similarly defined.   Thanks in advance for any contributions. How to keep rice in a biryani from burning and sticking together? The bottom part of my  Biryani always  gets burnt, rice always gets sticky but I want each grain separated. How can I prevent burning &amp; stickiness of rice? Given a Java InputStream, how can I determine the current offset in the stream? I'd like something like a generic, re-usable getPosition() method that will tell me the number of bytes read from the starting point of the stream.  Ideally, I would prefer this to work with all InputStreams, so that I don't have to wrap each and every one of them as I get them from disparate sources.  Does such a beast exist?  If not, can anyone recommend an existing implementation of a counting InputStream? In  is a proof of Stirling's formula.  I really like most of it, but at a crucial step he uses the integral identity  $$n! = \int_{0}^{\infty} t^n e^{-t}  dt$$  , coming from the Gamma function.  I have a mathematical confession to make: I have never "grokked" this identity.  Why should I expect the integral on the right to give me the number of elements in the symmetric group on $n$ letters?    (It's not that I don't know how to prove it.  It's quite fun to prove; my favorite proof observes that it is equivalent to the integral identity $\int_{0}^{\infty} e^{(x-1)t}  dt = \frac{1}{1 - x}$.  But if someone were to ask me, "Yes, but why, really?" I would have no idea what to say.)  So what are more intuitive ways of thinking about this identity?  Is there a probabilistic interpretation?  What kind of random variable has probability density function $\frac{t^n}{n!} e^{-t}$?  (What does this all have to do with Tate's thesis?)  As a rough measure of what I'm looking for, your answer should make it obvious that $t^n e^{-t}$ attains its maximum at $t = n$.  Edit:  The kind of explanation I'm looking for, as I described in the comments, is similar to  of the beta integral. Why isn't my String comparison working in iOS 6? Integral $\int\frac{dy}{(y^2 + ay + b)^{3/2}}$ Need the indefinite integral with $a,b$ constants. This is not a homework question. Need it for a physics problem. How can the contact point of rolling body have zero velocity? They say that for a rolling body, the velocity of the contact point is zero. I'm not getting this. How can it be zero when it's in continuous motion?