How to use tabularx and siunitx together with siunitx 2.6h / texlive 2015 This is a follow up question of this question:   Updating to texlive 2015 (with siunitx 2.6h) seems to have broken the accepted answer. So the question is  How to make siunitx and X column type work together for the very last modification introduced (possibly) in texlive 2015?  Broken MWE  \documentclass{article}  \usepackage{array} \usepackage{tabularx} \usepackage{siunitx}   \begingroup % Allow `_` and `:` in macro names (LaTeX3 style) \catcode`\_=11 \catcode`\:=11 % Internal code of `S` \gdef\tabularxcolumn#1{%     &gt;{\siunitx_table_collect_begin:Nn S{} }%     p{#1}%  &lt;- this is different (is `c` in normal `S`)     &lt;{\siunitx_table_print:}% } \endgroup  \begin{document}  \begin{tabularx}{\textwidth}{p{1.5cm} XXX}      bla &amp; 1.23 &amp; 4.5  &amp; 67.89 \\      bla &amp; 1.2  &amp; 4.50 &amp;  7.89 \\      bla &amp;  .2  &amp;  .50 &amp; 67.8 \\ \end{tabularx} \end{document}   Output error:  ! Undefined control sequence. &lt;template&gt; ...\TX@col@width }\siunitx_table_collect_begin:Nn                                                    S{} \ignorespaces    If you consider that this is a duplicate, I will promptly delete this question as soon as someone will add an up-to-date answer to the other question.
How to use siunitx and tabularx together? I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg.  \begin{tabular}{ p{1.5cm} S S S } bla &amp; 1.23 &amp; 4.5 &amp; 67.89 \tabularnewline \end{tabular}   and that works perfectly fine.  Now I would like to have this table span a specific width, or rather to have several tables to have the same width. For this I would normally use tabularx  \begin{tabularx}{\textwidth}{ p{1.5cm} X X X } bla &amp; 1.23 &amp; 4.5 &amp; 67.89 \tabularnewline \end{tabular}   Now, is there a way to combine the two? To have the number formatting and alignment features of siunitx inside an automatically resizing table?
I have to move a MongoDB Collection (Size: 1TB+) from Sharded MongoDB Cluster to another[5 shards on both clusters]. During this operation, it is assumed that the accompanying program will be offline, so no need to worry about inconsistent data, but I need to minimize the downtime.  I've tried testing it with mongodump and mongorestore, but looks like that is taking ages to finish.  Please share your experiences for such kind of scenarios.  Note: Cluster has only one collection, so I am open at cluster level sync as well. I am currently trying to develop my modeling skills, and following a tutorial found on YouTube. The tutorial teaches how to create an anvil. At 19:10 or so into the video, a subdivision surface modifier is used to create a smooth, soft look.  However, when I do the same, mine looks very sharp and generally bad.  Any ideas why? I will include the blend file below, I appreciate your time and suggestions.    This is his when he subdivides, which is very different from mine when I do the same at the same settings. (I cannot post more pictures because I am new, but if you check the blend file I attached, you should be able to see the difference.   This is what it looks like when I subsurf without the base face. How do I batch convert many Word documents and have them saved as [originalfilename].pdf? Caption makes Table move in statsoc class What tools and technologies are used to build the Stack Exchange Network?  See also: Should one downvote answers to off-topic questions? It annoys me when people post answers to obviously off-topic questions like , especially after those questions have already received several close votes. Migrations seem to happen rather infrequently these days, so there's probably no reputation to gain for questions that are likely to be closed. And although sure, the answer may help the OP, it also encourages bad behavior (posting off-topic questions.)  Is it appropriate to downvote these answers?   Personally, I think I could make a case for both sides. In the  question one of the answers had the following code snippet:  IEnumerable&lt;object&gt; FilteredList() {     foreach(object item in FullList)     {         if(IsItemInPartialList(item))             yield return item;     } }   What does the yield keyword do there?  I've seen it referenced in a couple places, and one other question, but I haven't quite figured out what it actually does.  I'm used to thinking of yield in the sense of one thread yielding to another, but that doesn't seem relevant here. Answering your own question? Accept it. I'm hoping someone could check my work. I'm trying to simplify the equation for $x$. $$(\frac{x}{a})^{3.2} + (\frac{y}{b})^{3.2} = 1$$ $$\frac{a}{b} = \frac{174.1}{86}$$ Thus I began by substituting $a$ with: $$a = \frac{174.1}{86}b$$ $$((\frac{86}{174.1})(\frac{x}{b}))^{3.2} + (\frac{y}{b})^{3.2} = 1$$ $$((\frac{86}{174.1})(\frac{x}{b}))^{3.2} = 1 - (\frac{y}{b})^{3.2}$$ $$(\frac{x}{b})^{3.2} = \frac{(1 - (\frac{y}{b})^{3.2})(174.1)^{3.2}}{(86)^{3.2}}$$ $$x^{3.2} = \frac{(1 - (\frac{y}{b})^{3.2})(174.1)^{3.2}(b)^{3.2}}{(86)^{3.2}}$$ $$x^{3.2} = \frac{(1 - (\frac{y}{b})^{3.2})((174.1)(b))^{3.2}}{(86)^{3.2}}$$ $$x^{\frac{16}{5}} = \frac{(1 - (\frac{y}{b})^{3.2})((174.1)(b))^{3.2}}{(86)^{3.2}}$$ $$x = [\frac{(1 - (\frac{y}{b})^{3.2})((174.1)(b))^{3.2}}{(86)^{3.2}}]^{\frac{5}{16}}$$ Is my work correct, or am I completely off the board? Why does demand for stock rise when a company appears to have high future value? So a company decides to raise money by selling shares of its stock. The stock is offered at an initial price of their determination. The stock is then traded in a market where forces of supply and demand, as well as speculation, affect its price.  When a company performs well (or makes decisions that will likely increase the company's earnings in the future), more people want to buy that stock than do people wanting to sell it. This creates demand for that stock which causes its sell/bid prices rise. When a company performs poorly, the opposite occurs; more people want to sell the stock than want to buy. This creates a surplus that causes sell/bid prices to fall.  Understanding this, people speculate over company performance to determine the future behavior of a stock, and attempt to "buy low, sell high" or "borrow high, return low" in order to make a profit.  But my question is regarding the first part of that process. What is it about company performance that causes the perceived value of its stock to rise? This is especially perplexing since I would guess that most people don't exercise their voting rights, and many stocks don't pay dividends.  It's not like a shareholder has any direct financial gains from increased company earnings (speculative stock pricing notwithstanding).  What is the intrinsic value of the stock?  It seems to me that all participants in a stock market tacitly agree that stock price will have a direct correlation with company performance. So another way of asking the question is, would an opposite agreement hold? What financially (this isn't a question about logistics, communication, or feasibility) stops all participants in a market from agreeing to value a particular company's stock inversely with respect to the company's performance?  Since I feel like I can't quite nail down my question, another form of it would be, why is stock market behavior driven by company performance? SO Blog icon has partial white background when tab is inactive When you open a tab on the , and switch to another tab, the icon has a partial white background: Firefox (Most obvious) - note the difference between that and the normal Stack Overflow logo  IE  Edge  Tested on Windows 10 with Firefox 41.0.2, Internet Explorer 11 and Microsoft Edge v20.10240.16384.0. (If someone could test this on chrome that would be great) At what point does a caster define the target of a spell? The new School of Invention tradition for Wizards () while still in playtesting (and indeed a bit silly in my opinion, more of a "chaos wizard"), got me thinking about its reckless casting ability. This allows the caster to cast magic they do not have prepared and get a random result. The random spells have different targeting criteria (Wall of Stone, Fireball, Feign Death , Mass Cure Wounds) and so it is not possible to decide the target of the spell until it has been cast, as you don't know what you are going to get until it is cast.  This suggests that the designer of the subclass has made the assumption that you don't actually target until you have cast the spell and release it, which makes sense from one point of view, strongly supported by the way a prepared action casting works, PHB p.193 where you cast the spell and hold the energy until the condition is met for the readied action at which point you target the spell.  While the Unearthed Arcana is not RAW or finalized and released, my question is not about this subclass, but about the official rules as a whole.  Is there was any direct RAW, or other supporting or opposing RAW, that states at what point a caster defines the target of a spell?  As a sub-question: are there any circumstances where it actually matters, other than the already defined Readied Action spell casting, in the official rules? How to solve ~(P → Q) : P & ~Q by natural deduction? I'm trying to solve the following by natural deduction:  ~(P → Q) : P &amp; ~Q  It's a trivial problem if identities are used, as can be seen by the following:   {1}      1.   ~(P → Q)                    Prem. {1}      2.   ~(~P ∨ Q)                   1 Mat. Impl. {1}      3.   ~~P & ~Q                    2 De Morgan's {1}      4.   P & ~Q                      3 DNE   Starting from step 2 of the previous proof, it's also fairly straightforward to reach a conclusion using natural deduction; i.e. starting from ~(~P ∨ Q), which is an identity of ~(P → Q):  ~(~P ∨ Q) :  P &amp; ~Q   {1}      1.   ~(~P ∨ Q)                   Prem. {2}      2.   ~P                          Assum. {2}      3.   ~P ∨ Q                      2 ∨I {1,2}    4.   ~(~P ∨ Q) & (~P ∨ Q)        1,3 &I {1}      5.   P                           2,4 RAA {6}      6.   Q                           Assum. {6}      7.   ~P ∨ Q                      6 ∨I {1,6}    8.   ~(~P ∨ Q) & (~P ∨ Q)        1,7 &I {1}      9.   ~Q                          6,8 RAA {1}      10.  P & ~Q                      5,9 &I   I also found that it's fairly easy to conclude ~Q:   {1}      1.   ~(P → Q)                    Prem. {2}      2.   Q                           Assum. {3}      3.   P                           Assum. {2,3}    4.   P & Q                       2,3 &I {2,3}    5.   Q                           4 &E {2}      6.   P → Q                       3,5 CP {1,2}    7.   ~(P → Q) & (P → Q)          1,6 &I {1}      8.   ~Q                          2,7 RAA ... {1,2}    12.  P & ~Q   In spite of how easy it looks, I can't figure out how to do it. I believe it can be done in 12 steps. Thanks! Radius of Convergence when using Series[] Can I award user with special bounty after accepting his anwer? I have a , and I haven't start a bounty for this question. After I got my answer I'd like to give a user a special bounty, because I consider his answer very helpful and it saved me a lot of time. I've already accepted the answer. Is there a way how can I give him some bounty?  Thank you Splitting string into pair of characters in Ruby I am looking for various ways of explaining to my students (in an elementary statistics course) what is a two tailed test, and how its P value is calculated.  How do you explain to your students the two- vs one- tailed test? Batch script to resize height of all layers to same height but keeping their original aspect ratio I have hundreds of product image layers and I am trying to resize them all to the same height (ignoring the width) and retaining their individual aspect ratio's.  Is there a script available that does this? Or a feature I am unaware of?  Thanks! How to change/rewrite the lost password url? I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now generate a 404  Manually going to /signin?action=lostpassword works.  I came across the following code below which is suppose to make the change to however after some testing it doesn't seem to work  //******************************************************* //Function to change to lost password url //******************************************************** add_filter('site_url',  'wplogin_filter', 10, 3); function wplogin_filter( $url, $path, $orig_scheme ){     $old  = array( "/(wp-login\.php)/");     $new  = array( "signin/"); //this can be change to login or whatever or may remain there     return preg_replace( $old, $new, $url, 1); }   add to .htaccess  RewriteRule ^signin$ wp-login.php   How can i modify the above code in order to change the url for the lost password? If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.