I'd like to calculate the average difference between two numbers, each between $0$ and $10$. I calculated this for integers and came up with an average distance of $4$.   My method: there are $10$ ways to obtain a difference of $1$, $9$ ways to obtain a difference of $2$, $3$ of $8$, $4$ of $7$, $5$ of $6$, $6$ of $5$, etc. I took the weighted average of all the possibilities and I ended up with $\frac{220}{55} = 4$.  But I actually have float values between $0$ and $10$. If I did the integer average distance correctly, is the average distance between $0$ and $10$ continuous still $4$?
Suppose I have a line segment of length $L$.  I now select two points at random along the segment.  What is the expected value of the distance between the two points, and why?
When you hit up a site, such as cnn.com, does the TCP/IP packet contain the MAC address of your network card?  Could cnn.com theoretically record my MAC address? Do the non-zero eigenvalues of AB and BA have the same algebraic multiplicity (for AB and BA not square)? I know that if A and B are square nxn matrices, then AB and BA have the same characteristic polynomial and thus the same eigenvalues (and same algebraïc multiplicity).   I'm wondering though if this can be generalized: if A is a nxm matrix and B a mxn matrix, then AB is a nxn matrix and BA a mxm matrix.  So my question is: will the eigenvalues of AB and BA, that differ from zero, have the same algebraïc multiplicity? Complement of maximal multiplicative set is a prime ideal Let $R$ be a commutative ring with identity. I've been trying to prove the following:     If $S \subset R$ is a maximal multiplicative set, then $R \setminus S$ is a prime ideal of $R$.   I have spent some time in it, but nothing is coming to my mind. Any idea/solution will be appreciated. How do I insert a nice tilde that is centered in the middle in a lstlisting? I found another thread about  but I can't apply it because the method described there only works outside of lstlisting as lstlisting displays all the text literally. Any ideas?  Here is how the tilde looks in my document at the moment - it's at the very top of the font and I would like it to be in the middle (like ~ this).    Here is the LaTeX for this fragment:  \section{Remove duplicate, consecutive lines (emulate "uniq")}  \begin{lstlisting} awk 'a !~ $0; { a = $0 }' \end{lstlisting}  Variables in Awk don't need to be initialized or declared before they are being used. getting Checkpoint VPN SSL Network Extender working in the command line The official Checkpoint out command line tool from CheckPoint, for setting up a SSL Network Extender VPN is not longer working from the Linux command line. It is also no longer actively supported by CheckPoint.  However, there is a promising  project, that tries to replicate the Java applet for authentication, that talks with the snx command line utility, called snxconnect.   I was trying to put snxconnect text utility to work in Debian Buster, doing:  sudo pip install snxvpn   and  export PYTHONHTTPSVERIFY=0 snxconnect -H checkpoint.hostname -U USER    However, it was mostly dying either with an HTTP error of:   HTTP/1.1 301 Moved Permanently:   or:  Got HTTP response: HTTP/1.1 302 Found   or:  Unexpected response, try again.   What to do about it?  PS. The EndPoint Security VPN official client is working well both in a Mac High Sierra and Windows 10 Pro. Escape Key in the Chat Why does latex stretch small sections across the whole page vertically? I have to give low and high bounds for the following:  $$ \sum_{n=1}^\infty \frac{1}{2^n - 3^n } $$  How do I determine an upper bound? How can I show this sum exists?  edit: removed erroneous conclusion. RegEx for matching UK Postcodes Standard definition of graph says that it is an ordered pair G=(N,L) where N is set of nodes and L is set of lines which connect the nodes.   From what I've read, the set L can be empty, but can set N be empty too?  I'm mainly asking this because for my exam, I found numerous problems that go like this: Graph X is given. How many subgraphs with property Y exist? Often the number depends on the definition of graph. How do I redirect command output to a file? How can I prove that $\mathbb{Q}[x,y]/\langle x^2+y^2-1 \rangle$ is an integral domain?  Also, I need to prove that its field of fractions is isomorphic to the field of rational functions $\mathbb{Q}(t)$?    (The question is taken from ) Is $\frac{\textrm{d}y}{\textrm{d}x}$ not a ratio? In the book Thomas's Calculus (11th edition) it is mentioned (Section 3.8 pg 225) that the derivative $dy/dx$ is not a ratio. Couldn't it be interpreted as a ratio, because according to the formula $dy = f'(x)dx$ we are able to plug in values for $dx$ and calculate a $dy$ (differential). Then if we rearrange we get $dy/dx$ which could be seen as a ratio.   I wonder if the author says this because $dx$ is an independent variable, and $dy$ is a dependent variable, for $dy/dx$ to be a ratio both variables need to be independent.. maybe? How do I get the UI thread's Dispatcher? What are the rules for splitting words at the end of a line? What are the rules in English language to split words at the end of a line?   Where exactly must the hyphen split the word? How to change kernel at boot I installed the latest kernel (4.1) and want to boot into it instead of 3.9. How can i do this on ubuntu 15.04? move file by list in file (with leading whitespace) $SU(3)$ irreducible representations with tensor method I am dealing with the tensor product representation of $SU(3)$ and I have some problems in understanding some decomposition.  1) Let's find the irreducible representation of $3\otimes\bar{3}$  we have that this representation trasforms like   $${T^\prime}^i_j=U^i_k {U^{\dagger}}^l_j T^k_l $$  hence I observe that  $$Tr(T)=\delta^j_iT^i_j$$ is an invariant and so  $$T^i_j=\left(T^i_j-\frac{1}{3}\delta^j_iT^i_j\right)+\frac{1}{3}\delta^j_iT^i_j$$  allows me to write $$3\otimes\bar{3}=8\oplus1$$ Here comes my questions: I have heard that this $8$ representation is an "$8_{MA}$" where MA is for "mixed-antisymmetric". The meaning of "mixed-antisymmetric" shold be: "the tensor $\left(T^i_j-\frac{1}{3}\delta^j_iT^i_j\right)$ should be antisymmetric for an exchange of 2 particular indexes but not for a general exchange of 3 indexes". What does this mean? I see only 2 index in that tensor.  2) Consider this representation: $$3\otimes3\otimes3=3\otimes(6\oplus\bar{3})=3\otimes6_S\oplus3\otimes\bar{3}=3\otimes 6_S\oplus8_{MA}\oplus1$$  and now on my notes I have $$3\otimes6_S=10_S\oplus8_{MS}$$  Where "MS" is for "mixed symmetric": symmetric for an exchange of 2 particular indexes but not for a general exchange of 3 indexes.  I could not demonstrate this last decomposition using tensor method. I started noticeing that: $$3\otimes6_S=q^iS^{k,l}$$ where $S^{k,l}$ is a symmetric tensor But then I am not able to proceed in demonstrating the above decomposition (note: I would like to demonstrate this decomposition using only tensor properties, not Young tableaux). I tried to look on Georgi, Hamermesh, Zee and somewhere online but I have not found any good reference which explains well this representatin decomposition...  EDIT: the demonstration should not include the use of Young diagrams...my professor started the demonstration by writing $\epsilon_{\rho,i,k}q^i S^{k,l}=T'^l_\rho=8_{MS}$ and then stopped the demonstration. Does Earth's Rotation Affect Its Shape? The question I am working on is, &quot;Consider the following. (a) Find the angular speed of Earth's rotation about its axis. rad/s (b) How does this rotation affect the shape of Earth?&quot;  I am fully capable of solving part (a); however, I am not sure how to describe the effect earth's rotation on its shape. I tried to search my textbook for the answer, but could not find anything. Is there an actual effect on the shape? How do I detach a process from Terminal, entirely? I use Tilda (drop-down terminal) on Ubuntu as my "command central" - pretty much the way others might use GNOME Do, Quicksilver or Launchy.  However, I'm struggling with how to completely detach a process (e.g. Firefox) from the terminal it's been launched from - i.e. prevent that such a (non-)child process   is terminated when closing the originating terminal  "pollutes" the originating terminal via STDOUT/STDERR   For example, in order to start Vim in a "proper" terminal window, I have tried a simple script like the following:  exec gnome-terminal -e "vim $@" &amp;&gt; /dev/null &amp;   However, that still causes pollution (also, passing a file name doesn't seem to work).