JAVA Error: Utilizing Switch Statements
Varying behavior for possible loss of precision
Testing for linear dependence among the columns of a matrix I have a correlation matrix of security returns whose determinant is zero. (This is a bit surprising since the sample correlation matrix and the corresponding covariance matrix should theoretically be positive definite.)  My hypothesis is that at least one security is linearly dependent on other securities. Is there a function in R that sequentially tests each column a matrix for linear dependence?  For example, one approach would be to build up a correlation matrix one security at a time and calculate the determinant at each step. When the determinant = 0 then stop as you have identified the security who is a linear combination of other securities.  Any other techniques to identify linear dependence in such a matrix are appreciated. We have a SBS 2011 server with 16GB memory that runs Exchange, WSUS and File Sharing for approx 20 users. The server also gives 2GB memory to a virtual machine running in Hyper-V so 14GB left for the rest.  When the server first boots Store.exe consumes about 500MB memory, WSUS and IIS consume some as well, but we generally are only at 60% capacity. During the course of the working day Store.exe consumes 8GB memory and the server sits at approx 97% capacity.  This makes using the server very slow, logging on via RDP is slow, general server admin is slowed down.  Is this normal? I have read that Exchange will consume lots of memory that it does not neccessarily need and then releases it back to other applications that need it. I have also checked that all mailboxes are opened in cached mode. We do have some external uses who connect via Outlook Anywhere or OWA.  If it's deemed to be "normal" is there some way I can restrict it using ALL available memory and leave a little bit for SBS to use for server admin? I have seen some articles regarding setting a high and low memory flag but rumours that this does not work with update rollup 5 which we have installed.  Am I expecting a single server to do to much with only 14GB memory?  Thanks Implications and Ordinary language I have a spreadsheet in Google Docs with two data rows and lots of columns like so:    Is it possible to easily convert these rows into two columns and lots of rows (obviously retaining all information and formulas)? In other words, to something like this:   19.9.2009   967,15 €  28.9.2009   950,78 € 12.11.2009   942,03 € ..           ..   There's probably a neat mathematical term for such a conversion, but I don't remember which (matrix something?). Feel free to suggest a better name for the question.  Edit: To clarify, ultimately I want to get rid of the original (two row) version and continue working on the converted one. TRANSPOSE(), , got me very close but not quite there. I want the raw data in the transposed version, not cells that mirror the original ones. Kinematic Viscosity How would you define ? What does it physically represent? Around the Internet I've found it defined as just a ratio, and that's it.  I saw in an answer that I can think of it as "diffusivity of momentum". What does this mean? Getting the class name of an instance? JSonNet boolean serialization Is it possible to change the default width of an image included via \includegraphics (from the graphicx package) to a custom value, for example \linewidth.  So I want something like this:  \documentclass{article}  \usepackage[draft,width=\linewidth]{graphicx}  %or something like \setglobalimagewidth=\linewidth  \begin{document}  \includegraphics{test1} %width=\linewidth \includegraphics[width=4cm]{test1} %width=4cm   \end{document} Variational Derivation of Schrodinger Equation Selecting through one-to-many relationship I'm trying to make a species distribution project where I can select a species from a non-spatial list of species and the selection would highlight (select) all the counties to which the species has been attributed.  Simplified example data: species, a non-spatial table of species (CSV with header): "species" "Mus borealis" "Mus australis"  species_distributions, a non-spatial relation table (csv with header): "species","county" "Mus borealis","North" "Mus borealis","Central" "Mus australis","South" "Mus australis","Central"  counties, a spatial feature class representing county boundaries (first row = field name): "county" "North" "South" "Central" "West"  So if I select "Mus borealis" from the species table, the "North" and "Central" counties would be highlighted in the map. Seems like a simple scenario, but I have been unable to uncover a solution on my own. The closest I've found is a plugin "Select by relationship" but it doesn't appear to be available for QGIS 3 (I'm using QGIS 3.4.3). I have a PostGIS server available. Do Ryzen 3 2200u laptops with Vega 3 work out of the box with major Linux distros? I want to change the default location of "Save a screenshot to Pictures" to save it to Desktop.   If that is not possible, is there any other way to do it? I am using Ubuntu GNOME 17.04.  NOTE: I don't want to change the location with dconf-editor as it changes the location of screenshot applet and not of the shortcut I require. Avoiding NullPointerException in Java Computing the integral of $\log(\sin x)$ How to compute the following integral?  $$\int\log(\sin x)\,dx$$    Motivation: Since $\log(\sin x)'=\cot x$, the antiderivative $\int\log(\sin x)\,dx$ has the nice property $F''(x)=\cot x$. Can we find $F$ explicitly? Failing that, can we find the definite integral over one of intervals where $\log (\sin x)$ is defined? How do I make animations a steady speed? Dual booting Windows and Ubuntu My laptop has 500gb hard disk in which for 250gb I installed Windows xp on C drive(primary partition). I want to install Ubuntu 12.04 in the remaing hard drive with dual boot option. When I am going to install Ubuntu it is showing something like  /boot /boot/   Can anybody help me in this regard that where and how to install Ubuntu? Consistency of an order statistic in exponential distribution I have two questions.   1) If $X_1,X_2,X_3,...,X_n$ constitute a random sample of size $n$ from an exponential distribution, show that $\bar X$ is a consistent estimator of the parameter $\lambda$.    This is my attempt: Mean of exponential distribution is $\lambda^{-1}$. Thus by central Limit theorem $E(\bar X)=\lambda^{-1}$. Using mean square consistency, if  $\lim_{n\to \infty} E[(\bar X -\lambda )^2]=0$ then $\bar X $ is consistent for $\lambda$. Since $$ E[(\bar X -\lambda )^2]= E[(\bar X)^2]+E(\lambda)^2-2\lambda E(\bar X) , $$  I get $$ \lim_{n\to \infty} E[(\bar X -\lambda )^2] =    \lim_{n\to \infty} {2 \over \lambda ^2 }+\lambda^2-2 . $$ Clearly this is not equal to $0$. How can I show this is consistent? I tried using Chebechev inequality as well. But even using that I couldn't.    2) Is $X_{(n)}$ a consistent estimator for $\lambda$? If $P[|X_{(n)}-\lambda|&lt;\epsilon]$ approaches $1$ as $n$ goes to infinity for all $\epsilon &gt; 0$ then $X_n$ is a consistent estimator for $\lambda$.    The probability density function of $X_{(n)}$ is $f_n(x) = n \lambda e^{-\lambda x}(1-e^{-\lambda x})^{n-1}$,  for $X&gt;0$.  Thus \begin{align*} P[|X_{(n)}-\lambda|&lt;\epsilon]  &amp;= P[\lambda -\epsilon&lt;X_{n}&lt;\lambda+\epsilon] \\  &amp;=P[0&lt;X_{n}&lt;\lambda+\epsilon] \\  &amp;=\int_0^{\lambda+\epsilon} n \lambda e^{-\lambda x}(1-e^{-\lambda x})^{n-1}\\  &amp;= (1-e^{- \lambda X_{(n)} }), \end{align*} where $X{(n)}$ takes values in $[0 , \lambda+ \epsilon]$.  Thus, can I say $\lim_{n\to \infty}[1-e^{-\lambda(\lambda+\epsilon)}]^n=1$? Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen? My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room Getting a domain name off of the blacklist I have a friend who purchased a domain name recently that he found out (after buying it) is apparently blocked by many corporate firewalls or proxies b/c it's been tagged as porn by the blacklist db they're using.    Are there any common agencies he can appeal to in order to get the domain name off the black lists?  It's not just one corporation, either, he's looking at marketing a subscription-based service to a certain industry, so any contacting a particular firewall/proxy admin and have them manually update the blacklist won't scale well.  Thanks in advance. Paul