I've created a table, within which I've used some absolute positioning to ensure that the cells are always square.  I'm running into an issue when I try to vertically center the text within these divs.  I can't find a good method to accomplish this, within the structure I'm working.  CODE    table.module-table {  width: 100%;  border-collapse: collapse;  border: none;  text-align: center; } table.module-table tr { vertical-align: middle; } td.module {  border: 1px solid rgba(255,255,255,0);  padding: 0;  width: 33.33%;  position: relative;  vertical-align: middle; } td.module:after {  content: '';  display: block;  margin-top: 100%; } td.module .module-number {  position: absolute;  top: 0;  bottom: 0;  left: 0;  right: 0;  background: #ccc;  transition: .5s all; } td.module a {  display: block;  color: #fff;  line-height: 1;  font-size: 55px;  font-weight: bold;  text-decoration: none;  white-space: nowrap; } td.module .module-number.one-one:hover { background: #e11b22; } td.module .module-number.one-two:hover { background: #c81b74; } td.module .module-number.one-three:hover { background: #800052; } td.module .module-number.one-four:hover { background: #46026b; } td.module .module-number.one-five:hover { background: #7f4e99; } td.module .module-number.one-six:hover { background: #2a2a86; } td.module .module-number.one-seven:hover { background: #105bac; } td.module .module-number.one-eight:hover { background: #00605d; } td.module .module-number.one-nine:hover { background: #809027; } &lt;div class="module-wrapper"&gt;  &lt;table class="module-table"&gt;   &lt;tr&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-one"&gt;&lt;a href="#"&gt;1.1&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-two"&gt;&lt;a href="#"&gt;1.2&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-three"&gt;&lt;a href="#"&gt;1.3&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-four"&gt;&lt;a href="#"&gt;1.4&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-five"&gt;&lt;a href="#"&gt;1.5&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-six"&gt;&lt;a href="#"&gt;1.6&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-seven"&gt;&lt;a href="#"&gt;1.7&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-eight"&gt;&lt;a href="#"&gt;1.8&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;    &lt;td class="module"&gt;&lt;div class="module-number one-nine"&gt;&lt;a href="#"&gt;1.9&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;  &lt;/table&gt; &lt;/div&gt;     Fiddle -
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;
Save an entire webpage, with all images and css, into just one folder and one file, with wget? Crookshanks is Hermione's familiar in PoA, GoF, and OOTP. I cannot recall mention of Crookshanks following OOTP, though. What happened to Crookshanks? Does canon refer to Crookshanks in either HBP or DH? How do I detect running processes using a library package? This command is doing the rounds for detecting currently running processes using glibc:  lsof | grep libc | awk '{print $2}' | sort | uniq   I find it intensely annoying, since /libc/ matches not only libc, but on my system:  /lib/x86_64-linux-gnu/libcap.so.2.24 /lib/x86_64-linux-gnu/libcgmanager.so.0.0.0 /lib/x86_64-linux-gnu/libcom_err.so.2.1 /lib/x86_64-linux-gnu/libcrypt-2.19.so /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcamel-1.2.so.45.0.0 /usr/lib/unity-settings-daemon-1.0/libcolor.so /usr/lib/unity-settings-daemon-1.0/libcursor.so /usr/lib/x86_64-linux-gnu/colord-plugins/libcd_plugin_camera.so /usr/lib/x86_64-linux-gnu/colord-plugins/libcd_plugin_scanner.so /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2.11301.0 /usr/lib/x86_64-linux-gnu/libcairo.so.2.11301.0 /usr/lib/x86_64-linux-gnu/libcanberra-0.30/libcanberra-pulse.so /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9 /usr/lib/x86_64-linux-gnu/libcanberra.so.0.2.5 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0 /usr/lib/x86_64-linux-gnu/libck-connector.so.0.0.0 /usr/lib/x86_64-linux-gnu/libcolordprivate.so.1.0.23 /usr/lib/x86_64-linux-gnu/libcolord.so.1.0.23 /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1 /usr/lib/x86_64-linux-gnu/libcupsmime.so.1 /usr/lib/x86_64-linux-gnu/libcups.so.2 /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli_cldap.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-common.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli-nbt.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli_smb_common.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli_spoolss.so.0 /usr/lib/x86_64-linux-gnu/samba/liblibcli_lsa3.so.0 /usr/lib/x86_64-linux-gnu/samba/liblibcli_netlogon3.so.0   I understand that libc is used by pretty much everything, but I'd like to refine this command. Consider its applications for other libraries. How can I do this?  The flaw in this approach, in my opinion, is that the package providing libc may include a whole host of other shared library files (all of which may or may not be covered under the umbrella term that is the library name, like glibc, or libboost-python). Using a word boundary or - to mark the end of libc doesn't really fix this. This may not be a flaw, perhaps, as Braiam points out, since many or all of these .so files may link to a core file in which the flaw resides, as is the case for libc6 on Debian.   If a specific OS/distro is needed, assume Debian Linux.  Also annoying is that this command could be condensed to lsof | awk '/libc/{print $2}' | sort -u. Let's make the hot network questions icons clickable I would like to see the icons in the 'Hot Network Questions' right panel clickable, leading to the homepage of the site where the question comes from.  It would make it more comfortable to switch to the site when you want rather to visit it than to see that specific "hot" question. I believe I have solved a famous open problem. How do I convince people in the field that I am not a crank? Theorem environment with hanging indentation I would like to define a theorem environment with custom layout. In particular, I want the body of the theorem to be indented, like this  Text body. Text body. Text body.  Theorem 1 (Pythagoras).     Let a,b,c the sides of a rectangular triangle.     Without loss of generality, we assume that  a&lt;b&lt;c .     Then, the following equality holds:            a^2 + b^2 = c^2  More text. And even more text.   This is similar to the quote environment, I believe.  How can I do this?  Preferably, I would like to use the existing \newtheorem command, but that's not mandatory. Showing a compact metric space has a countable dense subset I know that this is separable, but that has not been covered by the text at this point. I believe my proof (below) to be correct, but not very rigorous. Assuming that it actually is correct, could someone please help me make it more formal? (If it's not correct, please help with the proof). Thanks.  Proof: Let $X$ be a compact metric space. Let $B_n = \{B(x,\frac1{n}) : x\in X\}$. be the collection of open balls centered at $x$. Let $\{x\}^{(n)}$ be the set of centers for some particular $n$. Then by compactness of $X$, there are also a finite number of centers for a particular $n$ (corresponding to each open ball).   [This is where I have trouble properly saying what's on my mind:]  Consider $B(x,r_0)$, where $r_0 = \frac{1}{n_0}$. When we decrease the magnitude of $r_0$ to $r_1$, we must still be able to cover $X$. Meaning some open ball(s) must be "formed" where $B(x,r_0)$ was once "covering". So by adding open balls, we also add to our collection of centers. This means at $B(x,r_0)$, there was originally a point $y \in B(x,r_0)$ s.t. $B(y,r') \subset B(x,r_0)$ for some $r'$. That is, $B(x,r_0)$ contained another point of $X$. Thus, by definition, $X$ contains a countable dense subset. So I was reading this:  and while the answers for the first question are good, nobody gave much attention to the second one. In fact, people only said that it can be proved without giving any proof or any.  So, if I have a Lagrangian and ADD an arbitrary function of $\dot{q}$, $q$ and $t$ in such a way that the equations of motion are the same, does this extra function MUST be a total time derivative?   EDIT Ok, I changed my question a little bit:  Question: If I have a function that obeys the Euler-Lagrange equation off-shell, this implies that my function is a time derivative? (This was used in Qmechanic's answer of this other question: , equation 14.)  Also, why people only talk about things that change the Lagrangian only by a total derivative? If this is not always the case that keeps the equation of motion the same, so why is it so important? And why in the two questions I posted about the same statement on Landau&amp;Lifshitz's mechanics book only consider this kind of change in the Lagrangian? Theme Image Style for image located in module directory Probably coming at this from too much of a Drupal 6 view point but...  How do I theme an image in a given image style when that image lives in a module folder?  This is driving me batty and I know I'm just missing something simple.  Here is some example code showing what I'm trying to do:  $file_uri = 'public://sites/all/modules/my_module/logo.jpg'; $data['logo'] = theme('image_style', array('style_name' =&gt; 'medium', 'path' =&gt; $file_uri));   Even if I use file_build_uri(), I end up with a path to a file that doesn't exist. If I move the image to the files directory and change the $file_uri to 'public://logo.jpg', it works just fine.  Do I need to copy the image to the files directory as part of the module code?  If so, isn't this ridiculous?  What am I missing?  Is there documentation on how to do something like this?  I've spent over an hour mining the Drupal documentation and came up completely dry. To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One of the components is a JPanel that is meant to be replaced by another JPanel on user action.  So, what's the correct way of doing such a thing? I've tried  panel = new CustomJPanelWithComponentsOnIt(); parentFrameJPanelBelongsTo.pack();   but this won't work. What would you suggest? I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working. I would like to ask a question not about software architecture, but physical architecture, i.e., the design of buildings and other elements of the "built environment".  I was looking for a Stack Exchange site to ask what the meaning is of the huge stone symbols on the side of the new Scottish Parliament building. I've been looking around on the internet and I can't find anything in depth on how the cable/connection functions. I've only been able to find simple pin out descriptions.  If someone can link me or point me in the right direction, I would be very grateful. Advanced search in Google Contacts Is there any way to do perform advanced searches in Google Contacts?  For example, wild card operators, AND operator, OR operator etc?  I want to search anywhere in a name, not just the beginning of a name. (i.e if I write 'ac' it should display Jack as well) Finding largest file recursively I am trying to find the largest file in a directory recursively. If there is a subdirectory inside of that directory the function needs to go inside that directory and check to see if the largest file is there. Once the largest file is found the output is displayed with the relative path name and the name and size of the largest file.  EX:  dude@shell2 (~...assignment/solutions) % bash maxfile.sh ~/test class/asn dude.h.gch: 9481628   This is what I have:  #!/bin/sh clear  recursiveS() {     for d in *; do         if [ -d $d ]; then             (cd $d; echo $(pwd)/$line; du -a; recursiveS;)         fi     done } recursiveS   I have been stuck for a while now. I cannot implement this by pipelining a number of existing Unix tools. Any ideas would be nice! Why not introduce a donate button in Stack Exchange sites? I was wondering what the proper LaTeX code would be to display something like this:    You don't have to include the mathematical symbols, what is important is the structure. How to format hard drive This is an idea I have seen around, but I have not seen a feature request for it, so here it is.  Downvotes that have no comments are frustrating and difficult to manage.  This is a way to help improve that:   Have a downvote initially cost more to cast for the downvoter (5 points for example) When a comment (from the downvoter) on the downvoted question/answer gets an upvote, you get your points back.   All points (ie all 5) could be refunded or just up till the traditional -1 that is in place now (ie 4 points refunded).    This would encourage good comments and downvotes for real reasons.  (Because comments for questions/answers that are bias related will not get the upvotes as readily.)  This could/should be limited to non-subjective tags.  (ie tags where a downvote just because you "don't like it" is not appropriate.) I'm desperatly confused by notations and formulations so if someone could clarify the following things a little Í would be deeply grateful. The Lie algebra $\mathfrak{so}(1,3)_+^{\uparrow}$ of the proper orthochronous Lorentz group $SO(1,3)_+^{\uparrow}$ is given by \begin{equation} [J_i,J_j]=i \epsilon_{ijk} J_k \end{equation} \begin{equation} [J_i,K_j]=i \epsilon_{ijk} K_k \end{equation} \begin{equation} [K_i,K_j]=- i \epsilon_{ijk} J_k \end{equation} We can now define new generators with the old ones $N^{\pm}_i= \frac{1}{2}(J_i \pm i K_i)$ which satisfy \begin{equation} [N^{+}_i,N^{+}_j] = i \epsilon_{ijk} N^{+}_k ,\end{equation} \begin{equation} [N^{-}_i,N^{-}_j] = i \epsilon_{ijk} N^{-}_k ,\end{equation} \begin{equation} [N^{+}_i,N^{-}_j] = 0. \end{equation} where we can see that $N^{+}_i$ and $N^{-}_i$ make up a copy of the Lie algebra $\mathfrak{su}(2)$ each. My problem is to get what is going one here mathematically precise. Are the following statements correct and if not why:  When we build the new operators from the old generators we complexified $\mathfrak{so}(1,3)_+^{\uparrow}$ \begin{equation}(\mathfrak{so}(1,3)_+^{\uparrow})_\mathbb{C} = \mathfrak{so}(1,3)_+^{\uparrow}\otimes \mathbb{C} \end{equation} We saw that $\mathfrak{so}(1,3)_+^{\uparrow})_\mathbb{C}$ is isomorph to two copies of the complexified Lie algebra of $\mathfrak{su(2)}$: $(\mathfrak{so}(1,3)_+^{\uparrow})_\mathbb{C} \simeq \mathfrak{su(2)}_{\mathbb{C}} \oplus \mathfrak{su(2)}_{\mathbb{C}} $. Where exactly did we need that $\mathfrak{su(2)}$ is complexified here? The Lie algebras defined by $N^{\pm}_i$ are exactly those of $\mathfrak{su(2)}$ and we never use complex linear combination of $N^{\pm}_i$ or am I wrong here? $\mathfrak{su(2)}_{\mathbb{C}}$ is isomorph to $(\mathfrak{sl}(2,\mathbb{C}))_\mathbb{C}$: \begin{equation}\mathfrak{su(2)}_{\mathbb{C}} \simeq (\mathfrak{sl}(2,\mathbb{C}))_\mathbb{C} \end{equation} Here $(\mathfrak{sl}(2, \mathbb{C}))_\mathbb{C}$ denotes the complexified Lie algebra of $SL(2,\mathbb{C})$ Is $(\mathfrak{so}(1,3)_+^{\uparrow})_\mathbb{C} \simeq (\mathfrak{sl}(2, \mathbb{C}))_\mathbb{R}$ correct?  Here $(\mathfrak{sl}(2, \mathbb{C}))_\mathbb{R}$ denotes the real Lie algebra of $SL(2,\mathbb{C})$ Is $(\mathfrak{so}(1,3)_+^{\uparrow})_\mathbb{C} \simeq (\mathfrak{sl}(2, \mathbb{C}))_\mathbb{C} \oplus (\mathfrak{sl}(2, \mathbb{C}))_\mathbb{C}$ correct?  I looked this topic up in different books and each seemed to state something different. One book even used three differrent versions of $\mathfrak{sl}(2,\mathbb{C}) $ namely: $\mathfrak{sl}(2,\mathbb{C}) $, $(\mathfrak{sl}(2,\mathbb{C}))_\mathbb{C}$ and $(\mathfrak{sl}(2,\mathbb{C}))_\mathbb{R}$.  states simply that $\mathfrak{sl}(2,\mathbb{C}) $ is the complexification of $\mathfrak{su(2)}$ without making any reference to $SL(2,\mathbb{C})$ which does not help me either. Any help would be great.