Spring MVC Integration with JSF+spring core+hibernate to achieve file download
How to provide a file download from a JSF backing bean?
Question list on Stack Overflow is not showing new question How do you prove the second law of thermodynamics from statistical mechanics? Why can other users see the files in my home folder? When ever I save a gedit file in a directory, two copies of it get saved with identical content. Ex: If the gedit file is named as file_name and saved in Home directory then when u ls the Home directory you get file_name and file_name~ in the list. When the file command is run against them I get ASCII text, with very long lines for both of them when I view their contents using the less command they seem to largely contain identical content. The ~ file is a copy of the file when it was saved for the penultimate time. Can someone please help me in understanding as to why such a file (the file with a trailing ~ mark in its name ) is created? What is the difference between class and instance attributes? Is there any meaningful distinction between:  class A(object):     foo = 5   # some default value   vs.  class B(object):     def __init__(self, foo=5):         self.foo = foo   If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different? $A$ is normal and nilpotent, show $A=0$ Given a matrix $A \in R^{n \times n}$ which is normal ($AA^H=A^HA$ where $A^H$ is hermitian of $A$) and nilpotent ($A^k=0$ for some $k$). Now we need to show that $A=0$. (This is essentially exercise 5(b) in sec. 80 on p.162 of Paul R. Halmos' Finite-Dimensional Vector Spaces.) I tried to show in the following way, we know that, $AA^H=A^HA$ pre-multiply by $A^{k-1}\implies A^kA^H=A^{k-1}A^HA$ Now, we have $0 = A^{k-1}A^HA$, since $A$ nilpotent. I am not sure how to proceed from here to show $A=0$. Can someone help me in this problem? Why bar magnet can produce magnetic field? I just heard about the . I'd like to update my firmware, but I don't use Windows/OSX. How can I find out what version of Intel ME I have and how do I update it? What's the difference between a microcontroller and a microprocessor? If a Matrix Has Only Zero as an Eigen-Value Then It Is Nilpotent What can I do to give the players the same feel their characters would have about wilderness travel? drush/drush dev-master requires codegyre/robo ~1.0.0-beta1 I'm transitioning a Drupal 6 site to Drupal 8.1 so following the official instructions, I set up a new install in its own directory. Since this is only one site, I followed the instructions to put my database credentials in sites/default/default.settings.php after the declaration of the $databases array.  Running drush --status returns the following.  Drush version          :  8.1-dev                                           Drush temp directory   :  /tmp                                              Drush configuration    :                                                    Drush alias files      :                                                    Drupal root            :  /media/psf/Home/apps/newp                         Drupal Settings File   :  MISSING   Since this Drupal is 8.1-dev that must mean I need to upgrade it. Since this is a global install using Composer, I run composer global update.     Your requirements could not be resolved to an installable set of   packages drush/drush dev-master requires codegyre/robo ~1.0.0-beta1   Checking the drush-ops page on github doesn't show any anomalies like this nor my Google search.   What am I overlooking? Proving that, $|f'(x)-f'(y)|\le k|x-y| \implies (f'(x))^2< 2 kf(x) $ Let $f:\Bbb R\to (0,\infty)$ be a differentiable function such that for some constant $k$ we have, $$|f'(x)-f'(y)|\le k|x-y|$$   for all $x,y \in\Bbb R.$ Then prove that, $$(f'(x))^2&lt;2 kf(x).$$   Due to lack of arguments I could not proof this inequality. But rather I proved that is true for the particular function,   $$f(x) =\cos^2(x)+1\implies f'(x) = -\sin(2x).$$ And we readily have,$$|\sin(2x)-\sin(2y)| = \left|\int_{2x}^{2y}\cos t dt\right|\le 2|x-y|$$ as well   $$(f'(x))^2 = 4 \sin^2 x\cos^2x &lt; 4(\cos^2x +1) = 4f(x).$$  It is also true for the function $x\mapsto \sin^2x +1.$   From these example I don't see how to prove the general case. Any hint will be welcome. What is the word for when someone is overly nice and actually isn't nice at all because of the unnecessary added information/comments? For example, they will say things like "Your hair looks so good that wayyyy omg you should do it that way ALL the time! Looks way better than how you usually do it." And the word I'm looking for is not passive aggressive and it is not sarcasm. There is a word for these types of people. What is it? These people think they're being kind but actually blunt and rude. Another example would be for someone to say "hey you're beautiful, but maybe if you didn't wear harsh makeup you would look better" and they intend to sound like they're being nice when you know they don't like you and are saying in out of spite. Interpreting coefficient in a linear regression model with categorical variables I will give my examples with R calls. First a simple example of a linear regression with a dependent variable 'lifespan', and two continuous explanatory variables.  data.frame(height=runif(4000,160,200))-&gt;human.life human.life$weight=runif(4000,50,120) human.life$lifespan=sample(45:90,4000,replace=TRUE) summary(lm(lifespan~1+height+weight,data=human.life))  Call: lm(formula = lifespan ~ 1 + height + weight, data = human.life)  Residuals: Min       1Q   Median       3Q      Max  -23.0257 -11.9124  -0.0565  11.3755  23.8591   Coefficients:              Estimate Std. Error t value Pr(&gt;|t|)     (Intercept) 63.635709   3.486426  18.252   &lt;2e-16 *** height       0.007485   0.018665   0.401   0.6884     weight       0.024544   0.010428   2.354   0.0186 *   --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 13.41 on 3997 degrees of freedom Multiple R-squared: 0.001425,   Adjusted R-squared: 0.0009257  F-statistic: 2.853 on 2 and 3997 DF,  p-value: 0.05781   In order to find the estimate of 'lifespan' when the value of 'weight' is 1, I add (Intercept)+height=63.64319  Now what if I have a similar data frame, but one where one of the explanatory variables is categorical?  data.frame(animal=rep(c("dog","fox","pig","wolf"),1000))-&gt;animal.life animal.life$weight=runif(4000,8,50) animal.life$lifespan=sample(1:10,replace=TRUE) summary(lm(lifespan~1+animal+weight,data=animal.life))  Call: lm(formula = lifespan ~ 1 + animal + weight, data = animal.life)  Residuals: Min      1Q  Median      3Q     Max  -4.7677 -2.7796 -0.1025  3.1972  4.3691   Coefficients:             Estimate Std. Error t value Pr(&gt;|t|)     (Intercept) 5.565556   0.145851  38.159  &lt; 2e-16 *** animalfox   0.806634   0.131198   6.148  8.6e-10 *** animalpig   0.010635   0.131259   0.081   0.9354     animalwolf  0.806650   0.131198   6.148  8.6e-10 *** weight      0.007946   0.003815   2.083   0.0373 *   --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 2.933 on 3995 degrees of freedom Multiple R-squared: 0.01933,    Adjusted R-squared: 0.01835  F-statistic: 19.69 on 4 and 3995 DF,  p-value: 4.625e-16   In this case, to find the estimate of 'lifespan' when the value of 'weight' is 1, should I add each of the coefficients for 'animal' to the intercept: (Intercept)+animalfox+animalpig+animalwolf? Or what is the proper way to do this?  Thanks Sverre At what voltage is a NiMH battery empty? I have a battery pack of NiMH batteries. It is ten cells with 1.2V, 4000mAh each, put together in series. So rated voltage is 12V. After charging, i.e. when the charging device says that it is finished, I measure 14.3V.   When I now discharge, at what voltage should I consider my battery as "empty"? Is this the lowest voltage that I can discharge it to without damaging it? Which voltage is that? Looking for Space Exploration Book which is collection of different sub-stories The Book is about an earthship exploring the frontiers that I read as a kid (80's). All the stories are told by the same character but different encounters and events.    The first story is about the crew exploring the planet in a number of separate ships when one of them is taken over by a telepathic alien. As the ship returns however the surprise is sprung on the alien that the Mother ship is Computer controlled. Another is the ship shrinking and then finding after its shrunk beyond the atom that it comes back in as gigantic compared to the Universe in a closed loop.   Hopefully that's enough to trigger a memory. New tab in chromium is empty How do you effectively study physics? How does one read a physics book instead or just staring at it for hours?   (Apologies in advance if the question is ill-posed or too subjective in its current form to meet the requirements of the FAQ; I'd certainly appreciate any suggestions for its modification if need be.) Can I mix different RAM modules in PC? I have 4 RAM slots on the motherboard P5K. At the moment I have two 1GB RAM modules and two 2GB RAM modules. Everything is working fine.   Can I buy one 4GB module and put it instead of the 1GB module?  Another question, can I mix MHz values, like that I have two 667MHz modules and two 1066MHz modules? Is this dangerous for the comp?