I am working on website index page and my code is working fine on my pc. But on 25% inner div moving down . Here is snapshot:    and on 25% screen:    want it on the center and even i use position: fixed but nothing works. However i change structure but nothing work.    .txg{      position: absolute;         top: 40%;         left: 50%;         -moz-transform: translateX(-50%) translateY(-50%);         -webkit-transform: translateX(-50%) translateY(-50%);         transform: translateX(-50%) translateY(-50%);     }     .homelogo {      text-align: center;      line-height: 1em;      font-family: helvetica, arial, sans-serif;      font-weight: bold;      background: linear-gradient(to right, #7db9e8 50%,#1e5799 50%);      -webkit-background-clip: text;      -webkit-text-fill-color: transparent;      font-size: 50px;     }     .teg{      position: absolute;         top: 50%;         left: 48%;         -moz-transform: translateX(-50%) translateY(-48%);         -webkit-transform: translateX(-50%) translateY(-48%);         transform: translateX(-50%) translateY(-48%);     }     .teg ul{      list-style: none;     }     .teg li{      display: inline-block;      background-color: #07ABD8;      padding:15px;      border-radius: 8px;      font-size: 15px;      text-transform: uppercase;      font-family: helvetica, arial, sans-serif;     }     .teg li a{      text-decoration: none;      color: white;     } &lt;div class="txg"&gt;         &lt;a class="homelogo logo" href="#"&gt;WebSiteName&lt;/a&gt;        &lt;/div&gt;        &lt;div class="teg"&gt;         &lt;ul&gt;          &lt;li&gt;&lt;a href="#"&gt;New&lt;/a&gt;&lt;/li&gt;          &lt;li&gt;&lt;a href="#"&gt;Top&lt;/a&gt;&lt;/li&gt;          &lt;li&gt;&lt;a href="#"&gt;Hd&lt;/a&gt;&lt;/li&gt;          &lt;li&gt;&lt;a href="#"&gt;Upcoming&lt;/a&gt;&lt;/li&gt;         &lt;/ul&gt;        &lt;/div&gt;
How can I horizontally center a &lt;div&gt; within another &lt;div&gt; using CSS? &lt;div id=&quot;outer&quot;&gt;   &lt;div id=&quot;inner&quot;&gt;Foo foo&lt;/div&gt; &lt;/div&gt;
Switch off Windows Update for a particular program or feature I'm getting really tired of unchecking the same Windows Update candidates so save hundreds of MB's of dowbloads, especially for programs I never use, that are in fact not even installed, and those I don't wish to update.  Is there any way to permanently, or until another explicit change, to turn off certain updates?  There is an option called 'Hide update', but that unsettles me a bit. I tried to use xrandr to set 1680x1050 as a new mode to VGA output, but it says:  sudo xrandr --addmode VGA-0 1680 X Error of failed request:  BadMatch (invalid parameter attributes) Major opcode of failed request:  140 (RANDR) Minor opcode of failed request:  18 (RRAddOutputMode) Serial number of failed request:  35 Current serial number in output stream:  36 Why does adding a curve modifier move my object to the center of the curve? I'm using a curve modifier and an array modifier. My object is at one end of the curve but as soon as I choose the curve for the curve modifier it moves to the center. How can I fix the problem so that I can have the array going from one end of the curve to the other? Does "until [date]" mean "before that date"? Simulating group_concat MySQL function in Microsoft SQL Server 2005? Let $X$ be a topological space. The diagonal of $X \times X$ is the subset $$D = \{(x,x)\in X\times X\mid x \in X\}.$$   Show that $X$ is Hausdorff if and only if $D$ is closed in $X \times X$.   First, I tried to show that $X \times X \setminus D$ is open using the fact that $X \times X$ is Hausdorff (because $X$ is Hausdorff), but I couldn't find an open set that contains a point outside $D$ and is disjoint to it... I am using k-means clustering algorithm to cluster a given dataset into two. I took two different initial points and run k-means clustering algorithm for each initial points. With the first initial points I got “within cluster sum of squared distances” (error) =23874.341. With the second initial points I got “within cluster sum of squared distances” (error) = 42913.684. 23874.341 is less than 42913.684. So, can we say the first one is the better clustering quality? If yes, is it always hold true? Or can we say less within cluster sum of squared distances is always the better clustering quality? Cooking away alcohol When you cook with wine or spirits, when does the alcohol cook away? Obviously high temperatures will do it, but how low of temperatures will work? Also, does it vary by the type of alcohol? Why is the comma splice an error? It's always drilled into us that we shouldn't use comma splices. They're bad, to be avoided and poor form.  But why? What makes the comma a faulty choice in something like this:     I never liked school, it was boring and repetitive most of the time.   It could be replaced with a semicolon, dash, period or colon and be "correct." Yet to a fair amount of people, the comma seems fine. If it weren't, it wouldn't be found so often in online forums, text messages, emails and so on.  What makes the comma between two sentences an error? Does using an extender actually change the aperture of the lens? I just bought a Canon 2X extender and I always believed that it would only result in 2 stops' loss of light and not change the aperture.    However, when I tested this extender on a Canon 135mm f/2 lens, the maximum aperture I could set went down to F/4.  So it kind of confused me, because if I step down the aperture to f/5.6, is it actually setting the aperture to f/5.6 or f/2.8 (i.e., 1 stop below f/2)? Is an expanding map on a compact metric space continuous? I got inspired by this question  to think about the following problem: Suppose you have a compact metric space $(X,d)$ and an expanding map $T:X\rightarrow X$, i.e. $d(Tx,Ty)\geq d(x,y)$ for every $x,y\in X$. Is the map $T$ then continuous? Without assuming continuity we already know that $T^n(X)$ must be dense in $X$ for any $n\geq 1$, since given $z\in X$ the orbit of $z$ must accumulate upon $z$. But showing continuity has escaped me so far. If there are counter-examples using the Axiom of Choice that also interests me. About the term $-\nabla_{[u,v]}w$ in the definition of Riemann curvature tensor Is there a limit to a total number of months a holder of UK multiple entry visitor visa can spend in UK per calendar year? I created the following matrix with , and I would like to add at the bottom (respectively right) something like an underbrace (resp. "rightbrace") under each of the two blocks, together with a number specifying the number of columns (resp. rows) of the block. This amounts to two braces on the bottom and two on the right, and each brace should have a number below (resp. at the right) of it.  I did not find anything about that on the easybmat manual. I think I see how to do the braces with the  package, but then I am not able to create the block structure of the matrix in the first place.  \documentclass{article} \usepackage{easybmat} \begin{document} \[  M(z)= \left[ \begin{BMAT}[5pt]{c|c}{c} \begin{BMAT}[5pt]{c:c:c}{ccccccc} &amp; &amp; \\ &amp; &amp; \\ &amp; &amp; \\ v_1 &amp; \dots &amp; v_m \\ &amp; &amp; \\ &amp; &amp; \\ &amp; &amp; \end{BMAT} &amp; \begin{BMAT}{c}{c|c} \begin{BMAT}[5pt]{c:c:c}{ccc} &amp; &amp; \\ w_1(a) &amp; \dots &amp; w_n(a) \\ &amp; &amp; \end{BMAT} \\ \begin{BMAT}[10pt]{c}{c} B(z) \end{BMAT} \end{BMAT} \end{BMAT}  \right] \] \end{document}     This is more or less what i wish: I remember my professor in college challenging me with this question, which I failed to answer satisfactorily: I know there exists a bijection between the rational numbers and the natural numbers, but can anyone produce an explicit formula for such a bijection? I have been reading Geoff Cumming's 2008 paper  [~200 citations in Google Scholar] -- and  am confused by one of its central claims. This is one in the series of papers where Cumming argues against $p$-values and in favour of confidence intervals; my question, however, is not about this debate and only concerns one specific claim about $p$-values.   Let me quote from the abstract:     This article shows that, if an initial   experiment results in two-tailed $p= .05$, there is an $80\%$   chance the one-tailed $p$-value from a replication will fall in   the interval $(.00008, .44)$, a $10\%$ chance that $p &lt; .00008$,   and fully a $10\%$ chance that $p &gt; .44$. Remarkably, the   interval—termed a $p$ interval—is this wide however large   the sample size.   Cumming claims that this "$p$ interval", and in fact the whole distribution of $p$-values that one would obtain when replicating the original experiment (with the same fixed sample size), depend only on the original $p$-value $p_\mathrm{obt}$ and do not depend on the true effect size, power, sample size, or anything else:     [...] the probability distribution of $p$ can be derived without   knowing or assuming a value for $\delta$ (or power). [...] We do not assume any prior knowledge   about $\delta$, and we use only the information $M_\mathrm{diff}$ [observed between-group difference] gives about $\delta$ as   the basis for the calculation for a given $p_\mathrm{obt}$ of the distribution of   $p$ and of $p$ intervals.      $\quad\quad\quad$    I am confused by this because to me it seems that the distribution of $p$-values strongly depends on power, whereas the original $p_\mathrm{obt}$ on its own does not give any information about it. It might be that the true effect size is $\delta=0$ and then the distribution is uniform; or maybe the true effect size is huge and then we should expect mostly very small $p$-values. Of course one can start with assuming some prior over possible effect sizes and integrate over it, but Cumming seems to claim that this is not what he is doing.  Question: What exactly is going on here?    Note that this topic is related to this question:  with an excellent answer by @whuber. Cumming has a paper on this topic to:  -- but that one is clear and unproblematic.  I also note that Cumming's claim is repeated several times in the 2015 Nature Methods paper  that some of you might have come across (it already has ~100 citations in Google Scholar):     [...] there will be substantial variation in the $P$ value of repeated experiments. In reality, experiments are rarely repeated; we do not know how different the next $P$ might be. But it is likely that it could be very different. For example, regardless of the statistical power of an experiment, if a single replicate returns a $P$ value of $0.05$, there is an $80\%$ chance that a repeat experiment would return a $P$ value between $0$ and $0.44$ (and a $20\%$ change [sic] that $P$ would be even larger).   (Note, by the way, how, irrespective of whether Cumming's statement is correct or not, Nature Methods paper quotes it inaccurately: according to Cumming, it's only $10\%$ probability above $0.44$. And yes, the paper does say "20% change". Pfff.) Changing content of footline in beamer How is it possible to set a specific text in the footline of the slides in beamer? In my case, author names and the title are shown. Instead I'd like to show the conference name and country.  \documentclass{beamer} \usetheme{CambridgeUS}  \author{Elena Piper, Amina Shahid, April Fiorese} \title{Evaluating the Change of Performance Metrics for Key ABS}  \begin{document} \maketitle  \end{document} Should methods in a Java interface be declared with or without a public access modifier? Should methods in a Java interface be declared with or without the public access modifier?  Technically it doesn't matter, of course. A class method that implements an interface is always public. But what is a better convention?  Java itself is not consistent in this. See for instance Collection vs. Comparable, or Future vs. ScriptEngine. I am trying to use netcat to send a simple message over TCP, e.g. I want to send the digit 1.  So I understood that I write the following in the terminal, after installing netcat  netcat [ip-address] [port]  But how do I specify the message to be sent? i.e. where to I write "1" ? My Ubuntu 14.04 is stuck when trying to login my desktop. The screen goes black and soon after that the login screen comes back.   I followed all steps in  but the issue was not solved.