Does Android support individual sound control per app when two apps with active sound are running?
Is there a way to set app-specific volume?
Writing function definition in header files in C++ I have a class which has many small functions. By small functions, I mean functions that doesn't do any processing but just return a literal value. Something like:  string Foo::method() const{     return "A"; }   I have created a header file "Foo.h" and source file "Foo.cpp". But since the function is very small, I am thinking about putting it in the header file itself. I have the following questions:   Is there any performance or other issues if I put these function definition in header file? I will have many functions like this. My understanding is when the compilation is done, compiler will expand the header file and place it where it is included. Is that correct? What should the standard spelling be - British or US? How does vendor restocking work in Fallout 4? I've been looking for 2mm EC ammo and according to the  it is supposed to restock every 48 hours at Arturo. However he has not gotten any new 2mm EC ammo for at least 10 restocks.   Do vendors restock on a random selection of items with some being more likely than others? Is there a max limit to how many different items a vendor will sell so that no new items will be added to stock after this limit is reached? Is there a level limit on what items can be restocked? I bought 2mm EC ammunition once from Arturo so I assume I'm high enough level if that's the case? A common good practice in Machine Learning is to do feature normalization or data standardization of the predictor variables, that's it, center the data substracting the mean and normalize it dividing by the variance (or standard deviation too). For self containment and to my understanding we do this to achieve two main things:   Avoid extra small model weights for the purpose of numerical stability. Ensure quick convergence of optimization algorithms like e.g. Conjugate Gradient so that the large magnitude of one predictor dimension w.r.t. the others doesn't lead to slow convergence.   We usually split the data into training, validation and testing sets. In the literature we usually see that to do feature normalization they take the mean and variance (or standard deviation) over the whole set of predictor variables. The big flaw I see here is that if you do that, you are in fact introducing future information into the training predictor variables namely the future information contained in the mean and variance.  Therefore, I do feature normalization over the training data and save the mean and variance. Then I apply feature normalization to the predictor variables of the validation and test data sets using the training mean and variances. Are there any fundamental flaws with this? can anyone recommend a better alternative? Is there an easy way to calculate the total cost of tolls for a trip within the United States? Add a list of questions selected for HNQ to the 10k tools Now that questions selected for Hot Network Questions have a record attached to them, those can be queried for in the Data Explorer. However, the Data Explorer is only updated once a week. It would be nice to also have a full list of questions that are selected for Hot Network Questions and the times they were selected added to the 10k tools. In my opinion, it adds to the &quot;bird's eye view&quot; of the site that is afforded to them, and is in line with other similar lists (e.g. migrated questions, protected questions, etc.). Also, a list of questions that were removed from Hot Network Questions by a moderator would be very nice as well. In bash, how do I escape an exclamation mark? I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I escape the exclamation mark, while still ignoring the backslash? How can I disable the 2nd hard drive in my 27" iMac? Difference between pts and tty Possible Duplicate:          I always see pts and tty when I use the who command but I never understand how they are different? Can somebody please explain me this? Let $f$ be a complex function with the property that $f^{(n)} = 0$.  Does this imply that $f$ is a polynomial?  If so, why?  Upon thinking about this problem myself, I can easily observe that every $n$ degree polynomial satisfies $f^{(n+1)} = 0$.  Still, this doesn't show that some non-polynomial function couldn't also have this property. Just read this which basically says you can freeze and thaw food in the fridge any number of times.    I'm still unclear on one point. If I had food which would be good in the fridge for 4 days and i put it in the freezer after 3 days, when I put it back in the fridge is my food good after its thawed for another 4 days or 1 more day? let $a,b,c,d,e$ are positive real numbers,show that $$\dfrac{a-b}{b+c}+\dfrac{b-c}{c+d}+\dfrac{c-d}{d+e}+\dfrac{d-e}{e+a}+\dfrac{e-a}{a+b}\ge 0$$  My try:  I have solved follow Four-variable inequality:  let $a,b,c,d$ are positive real numbers,show that $$\dfrac{a-b}{b+c}+\dfrac{b-c}{c+d}+\dfrac{c-d}{d+a}+\dfrac{d-a}{a+b}\ge 0$$ poof:since \begin{align*} &amp;\dfrac{a-b}{b+c}+\dfrac{b-c}{c+d}+\dfrac{c-d}{d+a}+\dfrac{d-a}{a+b}=\dfrac{a+c}{b+c}+\dfrac{b+d}{c+d}+\dfrac{c+a}{d+a}+\dfrac{d+b}{a+b}-4\\ &amp;=(a+c)\left(\dfrac{1}{b+c}+\dfrac{1}{d+a}\right)+(b+d)\left(\dfrac{1}{c+d}+\dfrac{1}{a+b}\right)-4 \end{align*} By Cauchy-Schwarz inequality we have $$\dfrac{1}{b+c}+\dfrac{1}{d+a}\ge\dfrac{4}{(b+c)+(d+a)},\dfrac{1}{c+d}+\dfrac{1}{a+b}\ge\dfrac{4}{(c+d)+(a+b)}$$ so we get $$\dfrac{a-b}{b+c}+\dfrac{b-c}{c+d}+\dfrac{c-d}{d+a}+\dfrac{d-a}{a+b}\ge\dfrac{4(a+c)}{(b+c)+(d+a)}+\dfrac{4(b+d)}{(c+d)+(a+b)}-4=0$$ Equality holds for $a=c$ and $b=d$  By done!  But for  Five-variable inequality,I can't prove it.Thank you Proof a graph is bipartite if and only if it contains no odd cycles How can we prove that a graph is bipartite if and only if all of its cycles have even order? Also, does this theorem have a common name? I found it in a maths Olympiad toolbox. How to add a new kernel to grub2 How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit? How to prove $\operatorname{Tr}(AB) = \operatorname{Tr}(BA)$? there is a similar thread here , but I'm only looking for a simple linear algebra proof. Persist sort/filter selections Ubuntu 14.04, Intel Chromebook, no sound What does *~ mean? At the end of a makefile I saw   rm -f *~ *.class   I understand the *.class, but what's *~? What's the term when you ask a question which implies a lie? This seems to be a chicken-egg problem. The most common task using sudo is installing and removing software.  sudo apt-get purge &lt;appname&gt;   But sudo itself can be removed.  sudo apt-get purge sudo # Do not run this command on production computers!   This is where the fun comes  ubuntu@ubuntu:~$ sudo bash: /usr/bin/sudo: No such file or directory   Although it's obvious that no person in his right mind will purge sudo (other than me), someone can be fooled to run this command (not directly, in its hex mode, or whatever it's called) or a person could SSH in disguised as tech guru and do the mess.  So is there a way of reinstalling sudo?