I can't seem to get an image centered when floated to the right of text within a table th.  It looks right in the example here, so it probably has something to do with my site's css, but I can't figure out how to vertically align the text and the image.  Here's a screenshot of how it looks for me:     #sortedTable table {   border-spacing: 0;   width: 100%; }  #sortedTable th {   cursor: pointer;   color: #fff;   background-color: #1b1b1b;   border: 0; }  #sortedTable th, #sortedTable td {   text-align: left;   padding: 16px; }  #sortedTable img{     float: right;     vertical-align: middle; } &lt;table id="sortedTable" class="table-full-width"&gt;   &lt;tr&gt;      &lt;th onclick="sortTable(0)"&gt;Item 1 &lt;img src="https://cigardojo.com/wp-content/uploads/2020/02/up-down-arrows.png" alt="Up Down Sorting Arrows" width="9" height="13" class="alignnone wp-image-52355" /&gt;&lt;/th&gt;     &lt;th onclick="sortTable(1)"&gt;Item 2&lt;/th&gt;     &lt;th onclick="sortTable(2)"&gt;Item 3&lt;/th&gt;   &lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;bla bla bla bla&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;
I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers? &lt;div id=&quot;header&quot;&gt;   &lt;img src=&quot;..&quot; &gt;&lt;/img&gt;   &lt;h1&gt;testing...&lt;/h1&gt;   &lt;img src=&quot;...&quot;&gt;&lt;/img&gt; &lt;/div&gt;
What exactly is the cause of RAM incompatibility? I'm looking at rather short QVL lists from manufacturers, and I'm wondering what is the underlying cause of RAM incompatibility aside from the obvious: Obvious Reasons for Incompatibility  RAM Generation (DDR, DDR2, DDR3, DDR4) Form Factor / pin count RAM Type (ECC vs Non-ECC, Registered vs not, Buffered vs not) Minimum speeds on a board that cannot adjust the memory frequency Non-standard voltage range on a board that cannot adjust the memory voltage Channel count (single vs dual vs quad) Bad or inoperable module Mismatched set  Not Obvious Reasons  Brand SKU Max Capacity Speed too high  As in, why can't motherboard manufacturers just list the specifications of the RAM they will accommodate, and support every memory chip of that category instead of listing specific SKUs from specific brands? What happens electrically/physically that causes boards to fail to POST / operate with RAM that is otherwise 'compatible' with all of the specifications of RAM that is on the QVL? terminal won't launch after install python 3.5 After I installed Python 3.5 and ran the commands below, my terminal and many other programs won't launch any more.  cd /usr/bin sudo rm python3 sudo ln -s python3.5 python3    How can I restore the default Python version again to fix these problems? I would like to render an animation as a series of .png images with transparent backgrounds for use in a video. Is this possible? Geodesics equations via variational principle I would like to recover the (timelike) geodesics equations via the variational principle of the following action:  $$ \mathcal{S}[x] = -m \int d\tau = -m \int \sqrt{-g_{\mu\nu}\,dx^{\mu}\,dx^{\nu}} $$  Using an arbitrary auxiliary parameter $\lambda$, then one is able to rewrite the action and obtains: $$ d\tau = \sqrt{-g_{\mu\nu}\, \tfrac{dx^{\mu}}{d\lambda}\tfrac{dx^{\mu}}{d\lambda}} d\lambda $$ $$ -m \int d\tau = -m \int (d\tau / d\lambda) d\lambda =  -m\int\sqrt{-g_{\mu\nu}\, \tfrac{dx^{\mu}}{d\lambda}\tfrac{dx^{\mu}}{d\lambda}} d\lambda $$  Now we can vary the paths $x^{\mu}(\tau) \rightarrow x^{\mu}(\tau) + \delta x^{\mu}(\tau)$.  I need the following equation to be true, so i get the geodesics equations, but I don't know how one can say the following: $$ \int d\tau \,\delta g_{\mu\nu}\frac{dx^{\mu}}{d\tau} \frac{dx^{\nu}}{d\tau} = \int d\tau\, g_{\mu\nu, \rho} \frac{dx^{\mu}}{d\tau} \frac{dx^{\nu}}{d\tau} \delta x^{\rho} $$ I know there is a simpler action, which leads to the same equation of motion, but there one has to do the same manipulation, which I sadly don't understand.  Thanks for helping me! Uploading both data and files in one form using Ajax? Show an exponential function has a valid density. Given:  Let $X$ be exponential with parameter $\lambda$, that is   $$ f_X(x) = \begin{cases} \lambda e^{-\lambda x} &amp; \text{if }x&gt; 0, \\ 0 &amp;\text{for }x\leq 0. \end{cases} $$  where $\lambda&gt;0$ is called the rate of the distribution.  Question:  Show that this is a valid probability density function (pdf).  Attempt:  Need to show that  $$ f(x) = \int^{\infty}_{-\infty} \lambda e^{-\lambda x}\,  dx=1\\\\ $$ Thus, \begin{eqnarray*} f(x)&amp;=&amp;\int^0_{-\infty} \lambda e^{-\lambda x} \, dx+\int^\infty_0 \lambda e^{-\lambda x} \,  dx\\[8pt] &amp;=&amp;0+\int^\infty_0 \lambda e^{-\lambda x} \, dx \\[8pt] &amp;=&amp;\lambda\int^\infty_0 e^{-\lambda x} \, dx \\[8pt] &amp;=&amp;1 \end{eqnarray*}  The problem is that my professor just told me that I skip a step right before I derive $1$. Any insight?  EDIT:  Given the great feedback, here is the answer:  \begin{eqnarray*} f(x)&amp;=&amp;\int^{\infty}_{-\infty} \lambda e^{-\lambda x} dx=1\\\\ f(x)&amp;=&amp;\int^{\infty}_{-\infty} f_X(x)dx\\ &amp;=&amp;\int^{0}_{-\infty} 0\,\,\, dx+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;0+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;\int^{\infty}_{0} e^{-\lambda x} \Big(\lambda \,\,\,dx\Big)\\ &amp;=&amp;\int^\infty_0e^{-u} du\\ &amp;=&amp;-e^{-u}\Big|^{\infty}_0\\ &amp;=&amp;1-\lim _{x \to \infty} e^{-u}\\ &amp;=&amp;1\\ \end{eqnarray*} Given a Lie group, how are you meant to find its Lie algebra?  The Lie algebra of a Lie group is the set of all the left invariant vector fields, but how would you determine them?  My group is the set of all affine maps $x \rightarrow A.x+v$ from $R^n$ to $R^n$ under function composition. Let $V$ be an n-dimensional vector space over $\mathbb{R}$ and $T:V \rightarrow V$ be linear. Call a vector $v \in V$ cyclic if $V$ is spanned by $\{v, \ Tv, \ T^2v,..\}$.  Question:  Show that $v$ is cyclic for $T$ then there is some $k \geq 1$ such that   $$B=\{v, \ Tv,..T^{k-1}v \}$$ is linearly independent in $V$ and that $T^kv$ lies in  the span of $B$.  Thoughts:  If we suppose that no such $k$ exists, then every subset of the form $\{v, \ Tv,..T^{l-1}v \}$ is linearly dependent, or it is linearly dependent with $T^lv$ not lying in it span.  There are in effect then two cases to consider.  Suppose every subset of the form $\{v, \ Tv,..T^{l-1}v \}$ is linearly dependent. Then $T^{l-1}$ can be expressed as a linear combination of $v,...,T^{l-2}v$. Now, $\{v, \ Tv,..T^{l-2}v \}$ is also linearly dependent by assumption and so we can express $T^{l-2}$ as a linear combination of  $v,...,T^{l-3}v$ etc... Continuing in this way, we show that $T^{l-1}v= \lambda v$ for some $\lambda \in \mathbb{R}$. Thus $$B=\{ \mu v \ | \ \mu \ \text{is an eigenvalue of} \ T^mv \ \text{for some} \ m \}$$ This is 'at best' countably infinite, and therefore could not span $V$ even if it were 1-dimensional, wince our base field is $\mathbb{R}$, which is uncountable.  Suppose then that $B$ is linearly independent for some $k$ but that $T^kv$ does not lie in its span. I can't see how to progress this argument.  Note: This question is for second year Undergraduates, and I think there must be some more simple approach; even the first part surprises me if we need to argue using the uncountability of $\mathbb{R}$, so any alternative approaches are also appreciated. Conjugate to $\cos z$ is not equal to $\cos z$ conjugate $\overline{\cos(z)}\neq\cos(\overline{z})$ I have a dilemma. I have a task where I'm supposed to show that $|\cos z|^2+|\sin z|^2=1$ if and only if $z\in \mathbb{R} $. In my argument I have that $$\cos z\cdot\overline{\cos z} + \sin z\cdot\overline{\sin z}=\cos z\cdot \cos\overline{z} + \sin z\cdot \sin\overline{z}$$ but my teacher said that $\overline {\cos z} \neq \cos \overline{z}$.  Is this true?  But $$\overline{\cos(z)} = \overline{\frac{e^{iz}+e^{-iz}}{2}}=\frac{e^{-i\overline{z}}+e^{i\overline{z}}}{2}=\cos(\overline{z})$$ Changing the color of the path in Terminal.app I would like the CasebashMac:bfgenv chris$ part of the following line to appear in a different color in my terminal.  CasebashMac:bfgenv chris$ python Is is possible to restore the MFT of a NTFS partition after a format? Normal subgroup of prime index Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal. Conky Widgets are Opening in their Own Windows I just upgraded to 16.04 and I'm getting all my customization set up again, but it seems that most Conky widgets are opening in their own window, instead of just appearing on the Desktop; although some are working correctly.  For example:  LSD (working properly):    Seamod (not working, opening in own window):    Since it's not affecting every single widget, I assume it could be an issue with the conkyrc with the widgets that aren't working, but this also never happened in 14.04 so I wasn't sure if maybe there was some compatibility issue in 16.04. My Google-fu has failed me in finding a solution.  If anyone can point me in the right direction, it would be much appreciated! :) How to setup a restricted SFTP server on Ubuntu? I would like to know how to set up root, sudo, sftp-only user accounts which won't be required public key authentication at log in. I would also like to know how to set up sftp-only users' home directories where they can't access upper level other directories. This might be a stupid question, but nonetheless, it has been bothering me.  If you take a photon, make it go through some atoms in a solid, liquid or whatever, then you have the chance of this photon being absorbed by an electron, and thereby exciting the electron. This requires the photon to have enough energy to actually excite the electron to another energy level.  My question is then: How does the photon know if it has enough energy or not? Do they interact very quickly to determine if it's okay or not, or is it just something it "knows?" Why does a cork ball float to the side of a glass as illustrated in the following GIF? What is the physical phenomenon behind this observation and why does it happen? I've noticed that if I downvote an answer, the record of the downvote is visible to me in my profile.  But when I view my profile from another browser that's not logged into Stack Overflow, I've noticed that I don't see the record of the downvote.  So I was wondering if the downvote record is visible only to me?  If so, is this done to protect downvoters from retaliation? With a firmware password set on a Retina MacBook Pro, what are recovery options? I am considering setting a firmware password on my Retina MacBook Pro for security reasons. If I do this and later lose the password (or other such extenuating circumstances), how can the data be recovered? Is it even possible? How can I use pathauto to generate URLs for deeply nested vocabularies? I am generating breadcrumbs from URL arguments as described .  I have a vocabulary that looks like this:  Arts-> Performing-> Dancing-> Ballet  I want my url to look like this: arts/performing/dancing/ballet  Using the pathauto module, I can do this for taxonomy terms:  [term:parent]/[term:name]   Which, on the Ballet page, gives me the following; not what I want:  dancing/ballet    If I use parents instead of parent,  ([term:parents]/[term:name]); this is close but not quite:  arts-performing-dancing/ballet   How can I get from arts-performing-dancing to arts/performing/dancing? Installing to SDCard by default I would like to know whether there is a way to tell Android to install applications on the micro SD card by default instead of having to download applications to internal memory first and then having to move them to the SD card manually.  Thanks