Match everything inside a "method call" string with possibly nested parentheses
Regular expression to match balanced parentheses
How can I highlight text before a character with listing? Can a mangaka continue another mangaka's manga? There are plenty of manga that never had an ending for many reasons. For example, High School of the Dead's mangaka, Daisuke Satou, . Some mangaka also cannot continue their work because of health problems, as well as other reasons. Say the original mangaka either prepared or did not prepare an ending himself/herself, can another mangaka continue their work? Has this ever happened before? The reCAPTCHA has become too difficult for humans to solve The reCAPTCHAs have suddenly become almost illegible. I regularly have to change it four or five times before I find one I can read. I am tempted to just enter the known word (an easy guess), and leave the other. Can something be done? sum numbers in different lines in shell i have 8000 lines similar to this   &lt;Flow flowId="1" timeFirstTxPacket="+0.0ns" timeFirstRxPacket="+924100.0ns" timeLastTxPacket="+199984927558.0ns" timeLastRxPacket="+199675473275.0ns" delaySum="+2287566662167.0ns" jitterSum="+65280162191.0ns" lastDelay="+3511349483.0ns" txBytes="161956" rxBytes="116536" txPackets="3125" rxPackets="2251" lostPackets="640" timesForwarded="0"&gt;   and what i need to do is summing rxPackets in each line together and txPackets too   i mean total sum of them in 8000 lines  thanks in advance  &lt;Flow flowId="1" timeFirstTxPacket="+0.0ns" timeFirstRxPacket="+924100.0ns" timeLastTxPacket="+199984927558.0ns" timeLastRxPacket="+199675473275.0ns" delaySum="+2287566662167.0ns" jitterSum="+65280162191.0ns" lastDelay="+3511349483.0ns" txBytes="161956" rxBytes="116536" txPackets="3125" rxPackets="2251" lostPackets="640" timesForwarded="0"&gt;  &lt;Flow flowId="2" timeFirstTxPacket="+3000000.0ns" timeFirstRxPacket="+3254190.0ns" timeLastTxPacket="+199988489445.0ns" timeLastRxPacket="+199631899307.0ns" delaySum="+12081144328484.0ns" jitterSum="+105606015634.0ns" lastDelay="+9407845452.0ns" txBytes="251896" rxBytes="124840" txPackets="4867" rxPackets="2413" lostPackets="1757" timesForwarded="0"&gt;  &lt;Flow flowId="3" timeFirstTxPacket="+4000000.0ns" timeFirstRxPacket="+4254098.0ns" timeLastTxPacket="+199971756470.0ns" timeLastRxPacket="+198959480315.0ns" delaySum="+5150205600987.0ns" jitterSum="+74009967633.0ns" lastDelay="+9862217799.0ns" txBytes="163044" rxBytes="90532" txPackets="3150" rxPackets="1751" lostPackets="1013" timesForwarded="0"&gt; Strange distance measurements in distance matrix I'm trying to create a distance matrix between two point shapefiles in QGIS 2.6. Both are in WGS84 UTM Zone 30N co-ordinates (and so is the project file), but the distance matrix returns values such as 5673346.938, instead of expected numbers of between 1 and 5km.  I saw a similar thread mentioning disabling 'on the fly projection changes' - I've done this, and no change. Threads already checked:     Here are samples of the two shapefiles I'm using, stripped down to just ID and location. Let $(B_t)_{t\geq 0}$ be a standard Brownian motion in $\mathbb{R}^d$. It is intuitive that, for fixed $s&lt;t&lt;u$  $$\mathbb{E}[B_t\mid \sigma(B_s,B_u)]=B_s+\frac{t-s}{u-s}(B_u-B_s).$$  However, I cannot think of a way to show this rigorously.   If first attempted to take $A\in\sigma(B_s,B_u)$ and show that $\mathbb{E}[1_A B_t]=\mathbb{E}[1_A(B_s+\frac{t-s}{u-s}(B_u-B_s))]$. But I cannot manage to show this equality.   I'd be very thankful for any ideas and suggestions on how to tackle this problem. I recall Asimov had a character who was The autoc of , clearly based on the word “autokrat” but I don’t recall the exact spelling.  This stumped Google, which would rather correct the spelling to some other word than find a unique word.  In the story, he had gone undercover and the reader did not know either that some other character was in fact the Autoc, until it had been revealed to the main character. Probability of a 2 pair in poker Is there a constraint that restricts my generic method to numeric types? Can anyone tell me if there is a way with generics to limit a generic type argument T to only:   Int16 Int32 Int64 UInt16 UInt32 UInt64   I'm aware of the where keyword, but can't find an interface for only these types,  Something like:  static bool IntegerFunction&lt;T&gt;(T value) where T : INumeric In a document I'm writing, I'm using the familiar  option for my floating tables, and I  them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add something in my preamble that makes sure that these two options are used every time I begin a new table environment?  \documentclass{article} \begin{document} \begin{table}[hbt] \centering \begin{tabular}{*3{l}} 1 &amp; 2 &amp; 3\\ a &amp; b &amp; c\\ \end{tabular} \end{table} \end{document} In the answer , the parser breaks my URL link.  The URL was with __word__:      http://www.open-mpi.de/projects/hwloc/doc/v1.2/group__hwlocality__membinding.php#gade5e2c28ea8475a479bf2b1df36c6ccd   After parsing, it becomes (&lt;a href is broken; no clickable link):  hwlocality_membinding.php#gade5e2c28ea8475a479bf2b1df36c6ccd"&gt;http://www.open-mpi.de/projects/hwloc/doc/v1.2/group_hwlocality_membinding.php#gade5e2c28ea8475a479bf2b1df36c6ccd   Short test:  http://example.com/_test_ -> test"&gt;http://example.com/test  Or if I put in a naked URL with _test_ just here: Limit $\lim_{n\to\infty}\left(1-\frac{1}{3}\right)^2\left(1-\frac{1}{6}\right)^2\cdots\left(1-\frac{1}{\frac{n(n+1)}{2}}\right)^2$ How can I find the following limit :$$\lim_{n\to\infty}\left(1-\frac{1}{3}\right)^2\left(1-\frac{1}{6}\right)^2\left(1-\frac{1}{10}\right)^2\cdots\left(1-\frac{1}{\frac{n(n+1)}{2}}\right)^2$$There are four options $(a)\frac1{3}(b)\frac1{9}(c)\frac1{81}(d)0$ Thanks! How to get the size of a JavaScript object? What are the differences between the original Kaito Kid specials vs. the new Kaito Kid 1412 series? I am currently watching . Should I watch the other  anime films?  What's the difference between this version and the 1412 version?  And another question, what's the meaning of 1412? I am sketching out my 2012 programming project, and Im planning to make a classic fantasy RPG game.  The world design, plots, characters and all that I can make, but being a avid tabletop role-player, I would love to use a stable and tested rpg system like Pathfinder, since its balanced and interesting.  Would there be a problem if I make a game (indie dev, but still planning on selling it) using the pathfinder license ? Do I have to purchase a license? And would I able to say that it's based on the Pathfinder ruleset, or should i keep that under wraps.  All big official D&amp;D games boast with that they are official, so doesn't this mean that unofficial games can exist too ?  It's not because I wan't to jump the lowest fence, and all storylines and the game setting will be by my own hand. But I love the Pathfinder system and actually think it could use some publicity as well.  If not, I guess I could make a Pathfinder-like system, with a few measely differences... But I would rather not, since it would feel a bit of a rip... 3D arrows with TikZ Asymptote does give 3D arrows when drawing three dimensional figures (they even have shade!). Could we fake it with TikZ? Here's an example, manually written, with just one arrow worked:  \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[-&gt;,scale=2]   \draw[&gt;={Triangle[width=3pt,length=5pt]}] (0,0,0) -- (1,0,0);   \draw[&gt;={Triangle[width=3pt,length=5pt]}] (0,0,0) -- (0,1,0);   \draw[&gt;={Circle[sep=-.9pt,width=3.08pt,length=2pt]Triangle[width=3pt,length=5pt]}] (0,0,0) -- (0,0,1); \end{tikzpicture} \end{document}     But that's (wrongly) manually calculated by trial and error (apart from the fact that it's not perfect, seeing how the other two axis —x and y— are oriented, it should have certain slant). It would be nice to have an interface like the other arrows  &gt;={3D[length=⟨real length⟩,width=⟨real width of the base⟩]}   Which would then calculate from those values (and, of course, also taking into account x=⟨x vect⟩,y=⟨y vect⟩,z=⟨z vect⟩)  Circle[sep=⟨value⟩,width=⟨value⟩,length=⟨value⟩,slant=⟨value⟩] Triangle[width=⟨value⟩,length=⟨value⟩] % And I'm not sure if `slant=⟨value⟩`                                        % is necessary in this Triangle case   Example  Using the code from the answer (thanks to Symbol1), for instance, this code (taking the idea from another question, link in the comments)  \begin{tikzpicture}[x={(0cm,1cm)},                     y={({cos(30)*1cm},{sin(30)*-1cm})},                     z={({cos(20)*1cm},{sin(20)*1cm})},                     thick,                     scale=3]   \pgfmathsetmacro{\ax}{.4}   \pgfmathsetmacro{\ay}{.6}   \pgfmathsetmacro{\az}{-.6}   \pgfmathsetmacro{\bx}{.4}   \pgfmathsetmacro{\by}{-.7}   \pgfmathsetmacro{\bz}{-.8}   \draw[densely dotted,thin] (\ax,\ay,\az) -- (\ax,0,\az);   \draw[densely dotted,thin] (\ax,\ay,\az) -- (0,\ay,\az);   \draw[densely dotted,thin] (\ax,0,0) -- (\ax,0,\az) -- (0,0,\az);   \draw[densely dotted,thin] (0,0,\az) -- (0,\ay,\az) -- (0,\ay,0);   \draw[densely dotted,thin] (\bx,\by,\bz) -- (\bx,0,\bz);   \draw[densely dotted,thin] (\bx,\by,\bz) -- (0,\by,\bz);   \draw[densely dotted,thin] (\bx,0,0) -- (\bx,0,\bz) -- (0,0,\bz);   \draw[densely dotted,thin] (0,0,\bz) -- (0,\by,\bz) -- (0,\by,0);   \draw[-{Cone3}] (0,0,0) -- (1,0,0) node[right] {$x$};   \draw[-{Cone3}] (0,0,0) -- (0,1,0) node[above right] {$y$};   \draw[-{Cone3}] (0,0,0) -- (0,0,1) node[below right] {$z$};   \draw[-{Cone3}] (0,0,0) -- (0,0,-1) node[above left] {$-z$};   \draw[thin] (0,0,0) -- (0,-.9,0);   \draw[-{Cone3}] (0,0,0) -- (\ax,\ay,\az) node[below left] {source};   \draw[-{Cone3}] (0,0,0) -- (\bx,\by,\bz) node[above right] {sim}; \end{tikzpicture}   gives this figure What are the prerequisites to encounter the legendaries in ORAS? There are a lot of legendaries available in ORAS, however a lot of them will only show up/be available if certain prerequisites are met.  I know Groudon/Kyogre are available through the Story, and      Rayquaza &amp; Deoxys   through the postgame Delta episode, but what about the other available legendaries? What do I need to do to catch them? Meaning of Conditional sentences with 'should' and 'happen to' What does functools.wraps do? In a comment on this , someone said that they weren't sure what functools.wraps was doing. So, I'm asking this question so that there will be a record of it on StackOverflow for future reference: what does functools.wraps do, exactly? Optimal estimation of a single parameter given data at different scales Let $A,B,C,D$ be independent normal random variables distributed according to $\mathcal{N}(0,\sigma^2)$ and $E = A+B+C+D$.  The goal is to provide an optimal estimate of $\sigma^2$ given samples of $A,B,E$ but not $C,D$.  In this case optimal refers to minimising the root-mean square deviation of the estimate $\hat{\sigma}^2$:  $$RMSD(\hat{\sigma}^2) = \sqrt{\mathbb{E}\left[\left(\hat{\sigma}^2-\sigma^2\right)^2\right]}$$  I can think of a simple approach to estimate $\sigma^2$ given samples of $A,B$ which is to simply compute the sample variance. Also I know that the variance of $E$ is $4\sigma^2$ so I could compute the sample variance of $E$ and divide it by 4 to get an estimate of $\sigma^2$. However it should be possible to combine the information from both $E$ and $A,B$ to improve estimation $\sigma^2$. Could you outline the approach to use both sets of information?