I know how to create a simple header:  &lt;div id="footer"&gt; &lt;h3&gt;My Website&lt;/h3&gt; &lt;/div&gt;   then in the css:  #footer { bottom: 0px; }   This code makes a footer be at the bottom of the page. What I want to do is make a footer that no matter how far up the page you are, it is displayed. For example, if I scroll right to the top of the page, my footer is shown at the bottom of the screen. No matter where I scroll to, the footer will be pinned to the bottom section of my screen. Thanks for the help.
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.
How do I install software using the Ubuntu Software Center? The title says it all. I'd like to know how I can install software - an example is the Chromium web browser. I use object != null a lot to avoid . What is an alternative to: if (someobject != null) {     someobject.doCalc(); } Detecting TCP Client Disconnect Why do we need virtual functions in C++? I have a table to store StudentID, SubjectID, ObtainedMarks. Now I have to create a pivot table to show studentID and obtainedMarks in different subject. Number of subject may differ. I could generate pivot table for fixed subjectID like    SELECT * FROM (SELECT StudentID, SubjectID, ObtainedMarks from [Exam].[ObtainedMarkEntry]) as InvoiceResult PIVOT (     sum(ObtainedMarks) for [SubjectID] in  ([1],[2],[3],[4]) )as finalResult   This works but problem is 1,2,3 is not static it should come from same table   So I did something like   declare @minvalue int, @maxvalue int declare @myArray varchar(max) set @MyArray=''  select RowID=IDENTITY(int, 1,1), SubjectID into #tempSubject from [Exam].[ObtainedMarkEntry] select * from #tempSubject set @minvalue = (select min(RowID) from #tempSubject) set @maxvalue = (select max(RowID) from #tempSubject) while (@minvalue&lt;=@maxvalue) begin     declare @sid nvarchar(10)     set @sid=(select SubjectID from #tempSubject where RowID=@minvalue)     set @myArray= @myArray + '[' + @sid + '], '      set @minvalue= @minvalue+1 end set @myArray= SUBSTRING(@myArray,0,len(@myArray)) drop table #tempSubject  declare @q as nvarchar(max) SELECT * FROM (SELECT StudentID, SubjectID, ObtainedMarks  from [Exam].[ObtainedMarkEntry]) as InvoiceResult PIVOT (     sum(ObtainedMarks) for [SubjectID] in  (@myArray) )as finalResult   Now I am getting error at in(@myArray) can't I assign variable in this section. Can you use two "and"s in a sentence? For example,      I like chocolate, vanilla, and lemon and orange ice cream.    Indicating "lemon and orange" is a combined flavor, as an item in the list needing an initial and. Need a way to do a "loop cut" on a triangle fan Need a way to do a loopcut- ish thingy on the blue line As a student, I make mistakes all the time, and stealing my idea will not face heavy retaliation. I don't mind if someone comes up with concurrent works, but I do mind if my key idea is leaked. Many graduate students in my field therefore only use pre-print services if their papers are either publicly presented or conditionally accepted. I am looking for a website that can do most of what ArXiv does, with an additional private option or limited visibility, for example an option to make the paper unindexed by search engines. This way, my paper cannot be seen for at least a few months. By doing so, I can at least claim that I am one of the first few researchers who got the idea right. And most importantly, I can privately correct my mistakes, if any. Publishing mistakes is embarrassing and sometimes harms one's career. Many mistakes will be revealed during the peer-review processes and I have a chance to correct them before publicizing. Please kindly think twice before giving ethically and &quot;politically correct&quot; comments like no one will scoop me, everyone will cite me, and the scoopers will be punished. At least in my field, scooping and idea-stealing is commonly observable, and big-names don't care about publicizing pre-prints because they have resources to punish the scoopers. I do understand that keeping my work private might harm the community as the information becomes less transparent. However, it could also be possible that my un-reviewed flawed works misguide the community, and a paper reviewed will benefit the society more. I personally wasted six months because of someone else's mistake in a published work.  I heard that in molecular biology there is a widely-used service to upload your research data, like protein structure and sequencing, to get a timestamp. The uploaded materials can be set to be private for a period, and fully disclosed later. A lot of people do use this function. This is not exactly what I am looking for but shares some similar ideas. If I remember correctly, there is an interesting paper studying the scooping patterns with the aid of this database.  Solutions found!  and some other university-run pre-print services do have an embargo function. Moreover,  is a widely used repository, that, unlike arxiv, only displays the newest version to the general public, although still keeps a tag on the first submitted date! Does $ \int_0^{\infty}\frac{\sin x}{x}dx $ have an improper Riemann integral or a Lebesgue integral? In  wikipedia article for improper integrals,  $$ \int_0^{\infty}\frac{\sin x}{x}dx $$ is given as an example for the integrals that have an improper Riemann integral but do not have a (proper) Lebesgue integral. Here are my questions:   Why does this one have an improper Riemann integral? (I don't see why $\int_0^a\frac{\sin x}{x}dx$ and $\int_a^{\infty}\frac{\sin x}{x}dx$ converge.) Why doesn't this integral have a Lebesgue integral? Is it because that $\frac{\sin x}{x}$ is unbounded on $(0,\infty)$ and Lebesgue integral doesn't deal with unbounded functions? SMTP 25 closed even though I allow everything in firewall (Debian server running sendmail) I am running sendmail + dovecot in my Debian server. I have enabled the firewall rules to allow everything:   iptables -P INPUT ACCEPT   iptables -P OUTPUT ACCEPT   iptables -P FORWARD ACCEPT   iptables -F   iptables -X  However after a quick check at yougetsignal.com, my port 25 is still being blocked. But 143, 80 are okay. How can I create a /dev/null-like "blackhole" directory? I would like to create a "/dev/null" directory (or a "blackhole" directory) such that any files written to it are not really written, but just disappear.   I have an application that writes out large temporary files to a directory. I have no control over the name of the files and I don't really care about the content of these files. I could write a script that periodically clobbers these files, but the files are written out very quickly and fill my disk. I'm looking for something cleverer. I want the application to "think" that it is writing out these files, when in fact, the writes are just being discarded at the other end.  Also see  old related thread. I am using Ubuntu 16.04, with Gnome 3.18. Using extensions I have gotten rid of the dash panel and only use the Applications Menu in the upper left-hand corner of the screen. (I don't have Unity.) What I can't figure out is how do you add a new program, move software around to different categories, and create new categories?  Also, any keyboard shortcut to access the Applications Menu? I want to delete all *.o files in a directory and its sub-directories. However, I get an error: sashoalm@aspire:~/.Workspace.OLD$ rm -r *.o rm: cannot remove `*.o': No such file or directory  On the other hand, rm *.o works, but it's not recursive. I tried out several image editors mentioned on  but some of them (like  and ) were very disappointing. These apps were too simple and low level.  What do you suggest for a (preferably free) image editor on OS X?  P.S: I was using  on Linux and also know that it was released for OS X too, but I want to find new good applications. Is there any way to view Chrome browser notifications history? I get Chrome notifications from several websites and they work when I don't even have any tabs open for those sites.  But sometimes I get these Chrome notifications when I am not at my desk or looking at my laptop.  As some of these notifications are useful to me, I would like to be able to access any that I have missed.  Is there a way to view the notification history? A closed subset of an algebraic group which contains $e$ and is closed under taking products is a subgroup of $G$ A closed subset of an algebraic group which contains $e$ and is closed under taking products is a subgroup of $G$.   Denote this set as $X$. If the condition of $X$ being closed is dropped, this statement does not hold. The set of nonzero integers in $\mathbb{G}_m$ over $\mathbb{C}$ is a counterexample.  It suffice to prove that for any $x \in X$, $x^{-1}X = X$. As $X$ is closed under taking products, it is clear that $X \subseteq x^{-1}X$. In order to prove the inverse inclusion, the closedness of $X$ (under Zariski topology) must be used.   Let $\phi: G \rightarrow G, y \mapsto x^{-1}y$ is a homoemorphism of $G$ as an algebraic variety. So $x^{-1}X = \phi(X)$ is a closed subset of $G$ containing $X$. But Why are they equal?  Thanks very much. I wish to travel to the US and think I am eligible to do so under the Visa Waiver Program. I found a lot of information out there but am still having some trouble understanding how this works.  What is the US Visa Waiver Program? What is an ESTA? I just posted on a closed question   How?  Side point:  I do not see any indication that the post is closed on the app I am working on Ubuntu 12.04 64bit.  I want to add "Open terminal here" to Nautilus context or right-click menu but it tries to download 32bit version from Internet. Plotting Complex Quantity Functions