What's the most elegant/concise way of printing all strings in a list into a single string?
What's the best way to build a string of delimited items in Java?
Installing particular versions when repo has newer versions? Let's have a metapackage which depends on the following packages  Depends: A (=2),  B (=2),  C (=2)   Note the '=' - I want to install these particular versions, not the most recent ones.  Additionally:  B depends on A(>=1)  C depends on B(>=1) and A(>=1)  If the most recent versions of A,B,C in the repository are 2 then this works.  Since I have put version 3 of A and version 3 of B in the repo sudo apt-get install my-meta-package refuses to finish with the following info:  The following packages have unmet dependencies:   my-meta-package: Depends: B (= 2) but 3 is to be installed                    Depends: A (= 2) but 3 is to be installed   If I manually install versions 2 of A and B then the metapackage installs correctly, which strongly suggests that there is no hidden dependency on A3 or B3. This is not a solution for the problem as the metapackage is installed automatically on many machines.  QUESTION: What to do to make sudo apt-get install my-meta-package install versions 2,2,2?  Additionally, is there a way I could get an extended info what actually creates the need for version 3 of A and version 3 of B? I am currently working on a model which takes two parameters and produces a measurement statistic. Think of it as Z = f(X,Y).   Z is a matrix of my statistics and I am creating a surface plot of it in matlab. Basically, I am looking for a mathematical/analytical way of determining if the surface is smooth, or if it is jagged. Do large values tend to be clustered together or are they dispersed throughout the matrix? - that is my question. Basically, how mixed up are the values of my matrix?  I need to run the model over different parameter sets and I want to be able to analytically determine which one of my surfaces is the smoothest, has the greatest clustering of large values, and ideally, has no negative values.   Any help will be greatly appreciated and please let me know if you need any further information.   Cheers May I get off in an intermediate city of my route during transfer? I want to go from Panamá to Turkey. There're direct flights of Turkish Airlines that are expensive. And there're flights Panamá -&gt; Istambul -&gt; Baku there're cheaper 2 times of the same airline. The transfer in Istambul takes 6 hours.    Will it be a violation if I buy a ticket Panamá -&gt; Istambul -&gt; Baku and leave in Istambul? The given differential equation $$\lvert{dy\over{dx}}\rvert\,+\mid{y}\mid+1=0 $$  I don't know how to deal with modulus sign in order to prove the statement  Reference-Different Equations by Shipley L Ross Ch1 Exercise 7(a) How does substituting Butter for Margarine/Shortening affect the Recipe I know that Margarine / Shortening are usually softer than butter, but what other differences are there? Can I just melt the butter and call it good or will this effect my final Product? I have seen Margarine / Shortening a lot in cookies, but I am looking for a general answer. Automatically set description list `labelwidth` based on widest label? How do I create a description list where the item text is automatically indented to the width of the widest label?  This is the same question as  but I would like the width of the widest label to be automatically calculated.  For example, I'd like the following output:    to be produced by the following input:  \documentclass{article} \usepackage{calc} \usepackage{enumitem} \usepackage{lipsum} \usepackage[margin=1em,papersize={4in,2.2in}]{geometry}  \newenvironment{mydescription}{%   \begin{description}[     leftmargin=!,     labelwidth=\magicgoeshere,     ]% }{%   \end{description}% }  \newcommand{\text}{long long long long long long long long long long   long long long long long long long long long long long long long   long long long long long long long text}  \begin{document} \begin{mydescription} \item[The longest label] text \item[Short] \text \end{mydescription} \hrule \begin{mydescription} \item[Medium label] text \item[Short] \text \end{mydescription} \end{document} Is the word tenfold a misnomer? What package should I use to typeset units? I know there are a few packages related to typesetting units:   unitsdef units, which can be seen as a "base package" used by unitsdef SIunits siunitx, which is the successor to SIunits maybe others? like cjwunits and hepunits   What is the difference between them? Do they also work inside Math mode? And, more importantly, which one should I use?  Suggestion for people trying to answer this question: show some examples of how to typeset both simple and complex units. For instance, try typesetting these items:   100 Celsius 3 x 10^5 km/s gravitational constant is measured in N m^2/kg^2 10 kHz = 1 s^{-4} sin(x) meters   I think these examples cover most needs when writing scientific texts: simple measurements (value + simple unit), values written in scientific notation, simple fractional units, complex fractional and squared units, units without any value accompanying them, units with arbitrary exponents, and arbitrary math code instead of a simple value. An investigator wishes to produce a combined analysis of several datasets.  In some datasets there are paired observations for treatment A and B.  In others there are unpaired A and/or B data.  I am looking for a reference for an adaptation of the t-test, or for a likelihood ratio test, for such partially paired data.  I am willing to (for now) to assume normality with equal variance and that the population means for A are the same for each study (and likewise for B). Hyperlinks are not visible in the generated PDF CV How can I straighten ALL the vertical UV lines at once? Is there a hot keyshort cut? Or if I have to do them one by one .. is there at shortcut for that? Thank you! 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? I went to the doctor's How to implement dual-classing in a non-levelled RPG game? I'm working on an alternate ruleset for a tabletop pen-and-paper RPG (like D&amp;D). Recently I've been toying the idea of abolishing a level system. However, I don't want to remove the ability for a player to multi-class. Are there any games which don't have a levelling system, yet allow multi-classing? How do they do it successfully? Getting a standard form quadratic from a set of points ($3$ points) I came home from school today, pulled out my homework, now I'm stumped.  I don't want the answer, I just want to know how to do it.  Here is the question that I'm reading:  Determine a quadratic function in standard form for the set of points $(x_1,y_2)(x_2,y_2)(x_3,y_3)$  Where the $x$'s and $y$'s represent the points.  Here are the points I am working with (remember, I don't want the answer, I just want to know how to do it, there are lots of questions on this so I want to be able to know how to do it).     $(-1, 2), (0, 1), (1, -4)$   Thanks! We just had a scenario where the enemy set up a 'death trap' with arrow slits covering a corridor, allowing them to pop in, shoot, then pop out -- all without actually entering the corridor.  Which was fine in and of itself, until my cleric ran through the corridor at top speed, with Spirit Guardians up.  The DM and I discussed it, and as far as we can tell the spell doesn't require a line of sight and isn't blocked by walls -- just being 'in range' gets you the damage.  So I wiped out an entire encounter with one well placed third level spell.  In and of itself, that doesn't seem too OP -- at level 5/6 a third level spell is a pretty big investment!  But it still seems a bit odd that I can do it without even LOS.  Are there any rules I'm missing? Why didn't the Hobbits get frostbite? Does the rotation of the earth dramatically affect airplane flight time? Say I'm flying from Sydney, to Los Angeles (S2LA), back to Sydney (LA2S).  During S2LA, travelling with the rotation of the earth, would the flight time be longer than LA2S on account of Los Angeles turning/moving away from our position?  Or, in the opposite direction, would the flight to Sydney be faster since the Earth turns underneath us and moves Sydney closer?  ===   Please ignore jet stream effects and all other variables; this is a control case in an ideal environment. By "dramatically" I suppose I mean a delay of 1 hour or more. Any difference between "Good morning, Brian" and "Good morning to you, Brian" I often hear it on TV when they are talking to a guest.  Normally, if we want to greet Brian in morning, we would say "Good Morning Brian". But many times TV presenters say "Good morning to you Brian".  Why is that? Why do they add "to you". There seems to be no need to do it.  Regards, Why isn't Google Chrome available in the Software Centre?