How to make a footer that sticks to the bottom when content is shorter than screen height and float to bottom of the content when content is longer than screen height ?Now I am doing like this.  html  &lt;body&gt; &lt;div class='container'&gt;  &lt;/div&gt; &lt;footer&gt;  &lt;/footer&gt; &lt;/body&gt;   CSS  .container{   position:relative;   min-height:500px; }  footer{  height:200px;  background-color:black;  position:absolute;  bottom:0px; }   This code is fine when the content is shorter than the screen size or very short. But my issue is when the content is very much longer(eg.twice of the screen size), footer sticks to the bottom when it first loads the page. But when I scroll down, the footer is stacked to the top of the new scrolled content.
I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.
For example, in a novel, if someone is so powerful that no one can stop him, something like this would be said:     He [insert word] in the continent [or some other location].   "Moved unhinderedly" somewhat fits it, but it doesn't really seem like the right term.  The word I'm looking for describes a few things:   Should have an implication that the person himself is powerful That person can go wherever he wishes to, and cannot be stopped because of his strength That person can do whatever he wishes to, and like above, cannot be stopped because of his strength   The other word I have is "swept", i.e.:     He swept through the continent.   I used "swept" because when you sweep the floor, nothing stops you and everything is swept away, similar to the example. However, the dictionary definitions don't match up, so that isn't the word either.  Any suggestions? Nautilus doesn't launch on Ubuntu When in a group chat, if many messages are exchanged between other people in the group, when I check my Whatsapp, the messages are grouped according to sender and not chronologically. I know that my phone isn't the problem as I have recently changed my phone, however, I'm still experiencing the same problem.  I have tried uninstalling and re-installing WhatsApp on my phone, and the same problem still occurs. How to replace a string with a string containing slash with sed? Which is the simplest way to update a Label from another Thread?   I have a Form running on thread1, and from that I'm starting another thread (thread2).  While thread2 is processing some files I would like to update a Label on the Form with the current status of thread2's work.   How could I do that? DNS subdomain (child) NS records If we have example.com we would setup things something like this: $ORIGIN example.com. @  1D  IN  SOA ns1.example.com. hostmaster.example.com. (                   2002022401 ; serial                   3H ; refresh                   15 ; retry                   1w ; expire                   3h ; nxdomain ttl                  )           IN  NS     ns1.example.com.           IN  NS     ns2.example.com.  since in the parent zone .com. there is already NS record for the example.com. child zone and A glue record for the ns1.example.com. for what purpose do we state NS records again in the child zone? and also, do we need to state A record for the name servers in the child zone itself? URL of cited web site in bibliography I am using natbib with the chicago style as bibliography style. I am trying to cite a web site, but in the bibliography the URL (given in the BibTeX entry) is not printed.   Is there a simple solution to this matter? What am I doing wrong?  ok, as a little example (the entries are generated via Mendeley)  @misc{Carlson2011,    author = {Carlson, Nicholas},   booktitle = {Businessinsider.com},   title = {{How Many Users Does Twitter REALLY  Have?}},   url = {www.businessinsider.com/chart-of-the-day-how-many-users-does-twitter-really-have-2011-31/3},   year = {2011} }   and the output in chicago-style looks like this:     Carlson, N. (2011). How Many Users Does Twitter REALLY Have? Plotting the function $f(x)=x^{1/3}$ defined for any real number $x$ gives us:   Since $f$ is a function, for any given $x$ value it maps to a single y value (and not more than one $y$ value, because that would mean it's not a function as it fails the vertical line test). This function also has a vertical tangent at $x=0$.   My question is: how can we have a function that also has a vertical tangent? To get a vertical tangent we need 2 vertical points, which means that we are not working with a "proper" function as it has multiple y values mapping to a single $x$. How is it possible for a "proper" function to have a vertical tangent?  As I understand, in the graph I pasted we cannot take the derivative of x=0 because the slope is vertical, hence we cannot see the instantaneous rate of change of x to y as the y value is not a value (or many values, which ever way you want to look at it). How is it possible to have a perfectly vertical slope on a function? In this case I can imagine a very steep curve at 0.... but vertical?!? I can't wrap my mind around it. How can we get a vertical slope on a non vertical function? How do you make the camera in blender cycles render everything so it looks like pixels? I want everything in my scene to look pixelly like this image I found: So I understand what a static method or field is, I am just wondering when to use them. That is, when writing code what design lends itself to using static methods and fields.   One common pattern is to use static methods as a static factory, but this could just as easily be done by overloading a constructor. Correct? For example:  var bmp = System.Drawing.Bitmap.LoadFromFile("Image01.jpg");   As for static fields, is creating singelton-objects their best use? Everything was working fine for a long time. But suddenly the device is getting slower than usual (e.g. apps react slowly when starting an action -- like the RSS reader takes "ages" to open an article). Also, several apps start crashing: force-closes as well as unexpected restarts. Sometimes this even involves some automatic reboot of the device.  Is there anything I can do, besides doing a factory-reset? Preferably it should work on un-rooted devices.  Remark: not all described problems may occur together, so on one device e.g. there might be no automatic reboot involved. Question remains the same, nonetheless. What is the name of a squircle with three, five, six or more corners? I know that the second shape is a squircle, but what are the other shapes called? Is there an actual name for them?    The shapes do not simply have rounded corners, but the sides have a "circularity". Here is a triangle with rounded corners next to the shape that I do not know the name of:    "Trircle", "Triarcle", and "Pentircle" do not seem to be used for them, at least Google's image search does not provide any results. What is this lock screen with ads and how do I remove it? I think my device got a malware. A lock screen with ads sometimes appear, and I must swipe an area at the bottom of the screen to open the phone. I am in Eastern Europe, some ads are in Slavic languages, and they are seemingly related to travel.    Image resized. Click to view the full image  I have seen ads for Lot Air (Polish carrier). I recently went to their site.  Considering my recent surfing activity and the nature of the ads, I guess the malware is connected to airlines active in Eastern Europe.  The lock screen also promotes the app "DU Quick Charger" by claiming it has recharged the phone extra fast during screen off. (!?) It also shows battery level. I have never installed DU Quick Charger. I doubt DU Quick Charger is installed on the phone.  The problem started after installing Ryanair app. The problem is maybe, but not surely, related to this. Uninstalling Ryanair and restarting the phone doesn't remove the occasional appearance of this lock screen. After a while the situation has changed for the worse, now this lock screen appears after EVERY screen off.  I have always used Avast. I am not rooted and only install via Google Play.  What is this? And how do I remove it? SyntaxError: Non-ASCII character '\xa3' in file when function returns '£' How to draw line through group plots in pgfplots? This issue has been driving me crazy for the past 10-20h. I have a group plot (pgfplots) where I have 2 plots one under another. I'd like to draw a vertical line (e.g. a helpline at x=150e-6) that would go through all of them.  When drawing inside the axis or rather nextgroupplot environment I can use something like this: \draw[thin] (axis cs:150e-6,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:150e-6,\pgfkeysvalueof{/pgfplots/ymax}); but this allows me to draw only on one of the subplots. If I go outside the axis environment I am able to draw on the entire {tikzpicture}, but I can't use the axis reference.  \begin{figure*}[h] \centering \begin{tikzpicture}  \begin{groupplot}[       group style = {group size=1 by 2, x descriptions at=edge bottom, vertical sep=0.2cm},       ytick={0, 1.8},       ymin=0,       ymax=3,       xmin=0,       xmax=550e-6,       change x base=true,       x SI prefix=micro]  \nextgroupplot \addplot table [x index = {0}, y index = {1}, col sep=comma] {plots/plot1reduced.csv};  \nextgroupplot[x unit=s] \addplot table [x index = {0}, y index = {3}, col sep=comma] {plots/plot1reduced.csv};  \draw[thin] (axis cs:150e-6,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:150e-6,\pgfkeysvalueof{/pgfplots/ymax});  \end{groupplot} \end{tikzpicture} \caption{Case 1} \label{fig:case1plot} \end{figure*} What is the 'Badlock Bug'? A user on the Ask Ubuntu General Room posted a link to . After some googling around, all I can find is that it is a mysterious security bug, that uses the same website template as Heartbleed.  I manage Linux Servers, a mysterious security bug does not sit well with me. What exactly is it, and how can I protect my servers from it? What is the difference between these two ways to calculate average velocity? Average velocity:  $$v_{\rm avg,1}=\frac{v_{\rm final}+v_{\rm initial}}{2}$$   and average velocity:   $$v_{\rm avg,2} =\frac{\rm total\;displacement}{\rm time \;taken}=\frac{\Delta x}{\Delta t} $$  What is the difference between them and when do we use them? How does SQL Server handle logins when the user is a part of multiple groups with various privileges? I'm trying to wrap my head around how SQL Server decides to grant certain rights based on a users login privileges.  If a user is part of a group "READ ONLY" which has access to DB1, but they are also a part of a group "SysAdmin" which has full db owner rights to the same DB1, which rights are they given when they log in?  On a similar note. What if they are part of a group but also have a standalone account with other middle of the road privileges? I am working on the following problem from group theory:     If $G$ is a group of order $2n$, show that the number of elements of $G$ of order $2$ is odd.   That is, for some integer $k$, there are $2k+1$ elements $a$ such that $a \in G,\;\; a*a = e$, where $e$ is the identity element of $G$. What determines whether colors you can't see are visible or not? So, when someone is red-green colorblind, the colors appear the same to them, like this:   And if you're totally colorblind, then things presumably just appear like they would in a black-and-white movie.  However, this isn't how ultraviolet patterns seem to work. Compare how we see this flower to the version where ultraviolet is visible:   The UV pattern is completely invisible here. However, unlike with the red and green, this isn't because yellow and UV are colors that appear identical when you can't see UV. Look at these flowers:     This time the flowers are purple, but the UV pattern is still invisible. Why is that? Shouldn't the UV pattern still be apparent on at least one of the flowers, just in a different color? And on some other flowers, the UV does appear as a different color. So:    Why is the UV invisible only sometimes?  Does it have to do with the flower using iridescent structures to produce color, instead of a pigment? Can this happen with red and green, as well?