I've been trying yesterday to center vertically a "LinkedIn Connexion" div, with no success...  I've tried the "display: table" technique that I learned a few minutes ago but it still doesn't work... Can you help me find the issue ? I've learned Bootstrap last week and I've been having issues with all the "vertically centered" questions.    .div[title="Connexion LinkedIn"] {     display: table;     width: 100%;     table-layout: fixed; }  #linkedin-block {     display: table-cell;     vertical-align: middle;     Background-color: #eceded;     padding: 30px;     border-radius: 10px;     text-align: center; }   &lt;div class="col-lg-4 col-lg-offset-2" title="Connexion LinkedIn"&gt;    &lt;div id="linkedin-block"&gt;     &lt;h4&gt;Connectez-vous via LinkedIn&lt;/h4&gt;     &lt;a href="&lt;%= url_for connexion_linkedin_path %&gt;"&gt; &lt;%= image_tag "linkedin.png", :style =&gt; "width:50px; margin:20px" %&gt;&lt;/a&gt;    &lt;/div&gt;   &lt;/div&gt;     ----------- After SpaceBeers &amp; Garrett comments ---------------------  I've tried all the suggestions, but it seams like none of them is working...  @SpaceBeers, as you can see in the photo bellow, there's an issue with your suggestions. It seams that, due to bootstrap, the line "top: 50%;" is not taken into account.   @Garrett, your help did something different, but I couldn't solve the issue yet. :S  I now think it's an issue due to Bootstrap, as it is what I'm using with :
I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support. &lt;body&gt;     &lt;div&gt;Div to be aligned vertically&lt;/div&gt; &lt;/body&gt;  How can I center a div vertically in all major browsers, including Internet Explorer 6?
My laptop was working perfectly yesterday, and now today I can't log in.  At first, I was only getting a black screen. However, after following instructions in some questions here on AskUbuntu, I first reinstalled lightdm, and then I had to change the ownership of the file ~/.Xauthority to be my user name. Now, I get the log in GUI screen.  However, once I enter my username, it flickers and then comes back to the login GUI. It does not matter if I use Gnome, Unity, or Gnome-Flashback.  I don't know why lightdm needed to be reconfigured, or how ~/.Xauthority got changed, but in any case, what is still standing in my way, preventing me from logging in?  Update: I have tried deleting the .Xauthority file, and the .profile files in my home directory. It has not changed anything.  Logging in as guest also fails to work.  The following commands did not work:  mv ~/.config ~/.config.BAK mv ~/.cache ~/.cache.BAK   Inside .xsession-errors in my home directory, it says:  Gdk-CRITICAL: gdk_x11_display_get_xdisplay: assertion 'GDK_IS_DISPLAY (display)' failed I have a many-to many relationship between three objects. LGFProducts, PartsinProducts, and Parts. PartsinProducts is the junction object. I want to be able to get data like the names of the parts that are related to the selected LGFProduct.   I understand that parent-child relationship can only traverse one level down while grandchild-grandpa can travel 5 levels at most. What is the parent-child or child-parent in a many-to-many relationship?  I assumed that I should be traversing upwards from Parts to the junction object partsinproduct and then LGFProducts? But my friend who is not a Salesforce expert but has knowledge in CS said that I should do a parent-child query (of LGFProducts to partsinproduct) to child-parent relationship query (PartsinProduct to Parts). Or perhaps both of these options are wrong and another is appropriate.   Also, I am having a little trouble traversing for custom objects. I understand that I need to append the letter r instead of c but get confused. For example, this is my attempt at a three level upward traversal that fails.   SELECT Id, Name, Parts__r.PartsinProducts__r,LGFProducts__r.Name FROM Parts__c   Also if three levels of upward traversal are needed, could one provide an example with custom relationships? As seen above, I am having difficulty successfully querying a three level upward traversal statement for custom objects.  This is my attempt at the parent-child relationship query of LGFProduct to PartsinProducts:  SELECT Name,   (     SELECT Name     FROM PartsinProduct__r   ) FROM LGFProduct__c    I am then given this error: How do I determine whether a drive is an HDD or SSD in Windows 8? Easy to bypass "Are You paying Attention" test by viewing question in detail I think many of us already aware, still I wanted to let you know that First Post and Late Answers review posts are generated on specific time interval. When time comes for post generation I follow some tricks   Click and till a Post appears for review Then right-click and select Open in new tab 5-8 time. Then in every page follow the below steps   Open the Question of post appeared in review in New tab If Page/Question not exists then simply downvote since post was deleted because of -ve response. Else if page exists then   Check the review post's Net Reputation If reputation is -ve then simply downvote the post came in review Else one may select No Action needed.    This way if in any case a post comes for "Are you paying attention" can be handled easily.  I think if a post comes in review should not allow to view post. Modular arithmetic: division, fractions, solving linear congruences To power my microcontroller (ATmega8), I am using a ~5.4V voltage source. I want to ensure that I don't accidentally connect the voltage source in reverse, and figured a diode would be a nice way to accomplish this as from what I have learned so far, a diode allows current to flow in one direction, and blocks it in the other.  But what I also learned is that diodes create drops in voltage. I have a few of the typical diodes (1N4001, 1N4148, etc.), and would like to use them to achieve the aforementioned result without dropping the voltage as it would be too low to power the IC.  My question is, is there any way to do this with a diode? Or do I need some other component (if so, what would you recommend)? Permalinks: custom post type -> custom taxonomy -> post I am having trouble working with WordPress rewrite rules, and could use some help.  I have a custom post type called _shows_.  All shows have a single custom taxonomy category _show-category_. A _show_ will never have more than one _show-category_.  I would like my urls to route in this manner:  www.mysite.com/shows/  =&gt;  archive-shows.php  www.mysite.com/shows/%category%/ =&gt; taxonomy-show-category.php  www.mysite.com/shows/%category%/%postname%/ =&gt; single-shows.php   So as a real world example, lets say we have a _show-category_ "Foo" and a _show_ post titled "Bar" that has "Foo" as it's _show-category_. I would expect my WordPress app to look like this:  www.mysite.com/shows/foo/ =&gt; shows all posts under the foo category www.mysite.com/shows/foo/bar =&gt; shows the indivual post   I try to avoid plugins when possible, but am open to any solution. What are the benefits of playing an alignment other than True Neutral? Visa for transit in Seoul Is it possible to restore a MySql database only using files from Data directory? I have a mysql installed inside a windows virtual machine. The hard drive was crashed and the system is not able to restore all again. But I can have access to entire c: ROOT. So I went to  c:/ProgramData/Mysql/Mysql Server 5.5/data/myDatabaseName    There I can see different files like: .frm, .opt, .trg and .trn. In a regular way, I could run a mysqldump to backup and restore all database from command line, but the system is not able to be restored. So I had to copy all these files and past inside inside the same  directory inside same database in another physical instance.   The issue is some tables are not been recognized by this new instance. So I think copy and past is not enough to restore the database.   What am I missing?    Note: Database has innoDb and Myisam tables. Find all natural numbers $n$ such that ${(n+1)}^{1/2}-{(n-1)}^{1/2}$ is rational Although Ubuntu 16.04 release notes mention that:  The default VIM package has been built against python3 instead of python2.  Yet after I installed vim with the following command:  sudo apt-get install vim   And checked:  vim --version   It showed:  -python -python3   Is it a bug? How do I get vim with Python support? Shortest code to calculate list min/max in .NET I'd like something like  int minIndex = list.FindMin(delegate (MyClass a, MyClass b) {returns a.CompareTo(b);});   Is there a builtin way to do this in .NET? Is "Is it a girl or a boy?" really calling the infant an "it"? So, my boss comes in, railing that "English is a stupid language!" Since this is pretty much a thrice-weekly occurrence 'round these parts, I barely raised an eyebrow, and waited for him to continue.   "Mary just wrote to tell us that she's back from maternity leave, and I want to congratulate her and ask whether she had a girl or a boy, but I can't do it without calling the child an 'it'!" I blinked, then confirmed that yes, he believes the it in "Is it a boy or a girl" is the impersonal pronoun, the same word you'd apply to an apple or a house.  Is it the 'thing' pronoun, really? Or is it just a placeholder of some sort? I used to believe the latter: I gave the boss a mini-lecture about  and the . He wasn't convinced, however, and now he's got me doubting too. (Harumph. I really should know better than to listen to the boss.)  I'm not asking about politeness, here; the former title was to be taken somewhat facetiously. I'm wondering about the grammar: what role is that "it" playing in that sentence? Is it a personal pronoun (and thus the infant has grounds for feeling offended) or a dummy pronoun (and thus those who perceive a politeness issue are just misunderstanding the grammar)? Proving that all entire & injective functions take the form $f = ax + b$? I'm a little confused at both the overall logic in this proof. Are we simply using $g(z)$ to make conclusions about $f(z)$, because $g(z)$ is the reciprocal of $f$? Is the proof assuming that $f$ is injective and entire (all the while knowing that it has some sort of singularity at $z = 0$), and then trying to reach contradictions in the essential singularity and removable singularity cases? Then, once it concludes that $z = 0$ is a pole singularity, it reaches the conclusion that $f$ must be of the form $f(z) = az + b$?  Also, more specific questions about the different cases:   Removable singularity case: Why is $f$ bounded on the closed circle if $f$ is continuous? Am I missing something simple? Essential singularity case: Why exactly is $f(\{|z| &gt; r \} \cap f(\{|z|&lt;r\}) \neq \emptyset$? $f(\{|z| &gt; r \})$ is dense, but how does $f(\{|z|&lt;r\}$ being open guarantee that their union is non-empty? Showing $\int_x^{x+1}f(t)\,dt \xrightarrow{x\to\infty}0$ for $f\in L^2 (\mathbb{R})$ Show that if $f\in L^2 (\mathbb{R})$ then    $$\lim_{x \rightarrow \infty} g(x)=0,$$   where    $$g(x)=\int_x^{x+1}f(t)\,dt$$   Since $f \in  L^2 (\mathbb{R})$ then $f \in L^2[x,x+1]$ for every $x$. Then  $$|g(x)| \leq \left(\int_x^{x+1} f(t)^2 dt\right)^{\frac{1}{2}} \int_x^{x+1} 1 dt$$ $$|g(x)|\leq \left(\int_x^{x+1} f(t)^2 dt\right)^{\frac{1}{2}}$$ Prove that $\frac{a_1^2}{a_1+a_2}+\frac{a_2^2}{a_2+a_3}+ \cdots \frac{a_n^2}{a_n+a_1} \geq \frac12$ Let $a_1, a_2, a_3, \dots , a_n$ be positive real numbers whose sum is $1$. Prove that $$\frac{a_1^2}{a_1+a_2}+\frac{a_2^2}{a_2+a_3}+ \ldots +\frac{a_n^2}{a_n+a_1} \geq \frac12\,.$$  I thought maybe the Cauchy and QM inequalities would be helpful. But I can't see how to apply it. Another thought (might be unhelpful) is that the sum of the denominators on the left hand side is $2$ (the denominator on the right hand side). I would really appreciate any hints. Is there a way of finding a formula for $\sum\limits_{k=1}^n k^k$? Maybe I'm missing something really obvious, but I've looked around a bit on the Internet and I haven't been able to find anything.  So, what I'm looking for is a formula in closed form to generate the sequence $1,5,32,288,3413,\dots$ Sometimes we may ask questions on stack exchange or online forums wherein the response is helpful or even essential to a piece of work that gets published in an academic journal. If this occurs, how should credit be given to those involved in the exchange? Should they all be included as authors? Should a link to the forum be included as a reference in the paper?  Once something is in a stack exchange or forum, it's "published". Perhaps in the future, the current peer review model will transform into people writing blogs and posting in forums and databases. But for now, how might this issue be dealt with while forums, blogs, etc coexist with journals? Good books for a high schooler self-studying Abstract Algebra? Does anyone have any suggestions for abstract algebra books particularly suited to self-study?     Here is some background and motivation, if it's helpful.  I'm currently a junior in high school, but I have some familiarity with groups, rings, polynomials and fields, as I went through Fraleigh's book. I liked its writing style, but many of the problems were not helpful. I would like to get better at algebra with some other book, particularly one that's aimed at someone who already has a little familiarity with the objects, but is by no means completely comfortable.  One of my longer-term goals is to learn a bit of algebraic number theory, as I've only been studying elementary number theory. That's why I feel it  good to learn more algebra first. (I'd also be interested in suggestions of other good subjects to learn prior to tackling algebraic number theory.)  I was considering using one of Lang's books, since they seem pretty universal, but I've heard rumors that they are very terse and not good for self-learning.