Why doesn't height: 100% work to expand divs to the screen height?
How to make a div 100% height of the browser window
Password Protect QGIS project On a shared computer, I have a QGIS project which links up to a PostGIS database that contains my data. If a user wants to access layers from the db, they have to enter the db credentials, so that's OK.   However, I have previously logged on and imported layers from my db into QGIS, and manipulated them in QGIS (styling options based on meta-data, etc.)... Anybody who opens my QGIS project can view these layers in QGIS, and can therefore see the data I wish to be protected in my db.  Is there a way to password protect my QGIS project? Hide deleted answers with certain characteristics Today I exceeded 10K reputation on Stack Overflow, and I see deleted answers.  I am now faced with pages like  where half the answers are "deleted."    Among these are many non-answers deleted by diamond moderators, and a self-deleted answer deleted on Nov 25 '09.  I find this very distracting, especially in my chosen sort order of "oldest" where these deleted answers are NOT displayed at the bottom.  I wish to be able to hide deleted answers based on combinations of characteristics such as:   age since deletion deleted-by-owner deleted by diamond moderators zero undelete votes   This would be a setting every user could enable for himself.    Here are HTML excerpts that may be useful for userscript filtering.  This shows the code that appears for a moderator deletion, as well as the date stamp.  &lt;div class="deleted-answer-info"&gt;deleted by &lt;a href="/users/10936/dori"&gt;Dori&lt;/a&gt;&lt;span class="mod-flair" title="moderator"&gt;♦&lt;/span&gt; &lt;span title="2011-06-26 09:13:34Z" class="relativetime"&gt;Jun 26 at 9:13&lt;/span&gt;&lt;/div&gt;   Here is the same class for deleted by owner:  &lt;div class="deleted-answer-info"&gt;deleted by owner &lt;span title="2009-11-25 19:12:11Z" class="relativetime"&gt;Nov 25 '09 at 19:12&lt;/span&gt;&lt;/div&gt; What is the correct way to show tiered possession? When there are multiple places where possession is shown, how are the words structured?  A few examples:   Greg's son's laptop is on fire. Mary's friends' boat is sinking. Thomas's neighbor's cat ate a mouse. Apple's Stock App's stats are useful. Microsoft's Xbox 360's games are fun.   Are these the correct ways to express possession? I am doing some homework exercises and stumbled upon this question. I don't know where to start.      Prove that the union of countably many countable sets is countable.   Just reading it confuses me.   Any hints or help is greatly appreciated! Cheers! How can I echo a newline in a batch file? How can you you insert a newline from your batch file output?  I want to do something like:  echo hello\nworld   Which would output:  hello world How can I set my system to suspend when inactive to a longer amount of time I run Mythtv on some Ubuntu 11.10 based machines.  In the power settings, I can choose from a list of time periods from 5 minutes up to 1 hour for the the machine to suspend when inactive.  I would like to set the suspend to occur at a longer interval, like 2 hours or 4.  Previously with Gnome, I would think that I could go into the gconf editor and find the key there, I am not sure with Unity where to override a setting like this.  Any suggestions? In $Sets$, the initial object is $0 = \emptyset$. We have $C \times \emptyset = \emptyset$ for any set $C$. As there are no maps to the empty set, we don't get much of the universal property of the product.  I am now wondering what is special about arbitrary categories $\mathscr{C}$ with $C \times 0 \cong 0$ for all objects $C$ of $\mathscr{C}$, where $0$ is the initial object of $\mathscr{C}$.   From Sheaves in Geometry and Logic by MacLane (p.194), in any topos $\mathscr{C}$, any arrow $k:C \to 0$ is an isomorphism. The universal property of the product would then also not yield very much.   Are there any categories of higher interest? So I have these two wheels parented to the leg of a robot. I wanna make them spin a few times but they're spinning around the wrong axis. With other objects I could just press R, Y, Y to make them spin right when they're already at an angle, but for some reason it doesn't work with these. Would be amazing if someone helped me fixing this! Inline image alignment issue for app and mobile web How to tell what method was used to log in (Password vs. Keyfile) from the bashrc What is this "answer your own question" jazz? What are the main differences between VirtualBox networking types? I'm trying to use VirtualBox to host a couple of VMs.  Each VM should be able to connect to the Internet (this is needed primarily to install software) My Host browser should be able to connect to the Guest VMs.  Also I need to be able to ssh to the Guest VMs.     This is why I want each VM to have a static IP address.     This will also allow the VMs to connect to each other, say for database connectivity.  I have done this with VMware Fusion.  However, VMware has lately bitten me too often and destroyed so much work that I want to try VirtualBox.  But I'm not a network guru and don't know which type of networking I want.  So what I'm asking is simple:  What are the main differences between networking types. This could help me find out which type of networking I should use in my case.  And of course if anyone has a link to any documentation of how to do what I want, that would be greatly appreciated.  Thanks, ge Can Minecraft be played by two players locally on the same account? I just bought Minecraft. Now, my brother wants to play with me but my Mom doesn't want to buy another. We use the same Wifi network. Can we do this? Size of the universe This is really a follow up to the  question.  In the first answer to the question, Ted Bunn says:     However, the best available data seem   to indicate that the Universe is very   nearly spatially flat. This means   that, if we do live in a 3-sphere   Universe, the radius of the sphere is   very large, and the distance you'd   have to travel is much larger than the   size of the observable Universe.   My question is, can the available data be used to set a lower bound to the size of the Universe?   In other words, suppose the Universe was actually shaped like a 3 sphere. Then based on our best data, what would the "radius" of that sphere be? How much larger is that than the observable universe? Is system cleanup/optimization needed Does Ubuntu need regular cleanups like Windows. For example:   Cleaning the logs Temporary files Package cache Dependencies left over   I am not referring to web browsers only.  In case I never do a cleanup, will I have a system like new without my hard drive being full of temporary files, packages, etc.?  Will the performance degrade overtime if a cleanup is not done. Adding a CTAN package to a MacPorts-maintained TeX installation I have installed TeXlive through MacPorts and now discover that I am missing some package. For clarity let's use a trivial example and say I am missing lipsum.sty.  I now have two options:  Option 1  I go to a CTAN site, look for lipsum.sty, download it, and install it in ~/Library/texmf/tex.  This is not bad, but it leaves it possible that I will end up with a second lipsum at some point. That's why the second option is desirable.  Option 2  2.1-- I find out which MacPorts package includes lipsum.sty  and  2.2-- I sudo port install the necessary package.  How do I do 2.1? Norms Induced by Inner Products and the Parallelogram Law Do you use NULL or 0 (zero) for pointers in C++? What do wizard children do before attending Hogwarts? Most of the wand-carriers that come from a non-Muggle family seem fairly uneducated when it comes to interacting with Muggles.  This implies that they don't go to any type of Muggle school before entering into their education at Hogwarts (or whichever Wizarding school they go to), or else they would at least understand some Muggle culture.  What do children from magical families do before going to Hogwarts if they don't go to a traditional school?  Is there any evidence that they're homeschooled? What would you consider to be the best exception type to throw when an extension method is called on a null instance (where the extension method does not allow it)? Since extension methods are nothing but static methods you could argue that it should be ArgumentNullException, but on the other hand they're used like instance methods so it might be more natural to use the NullReferenceException. Let's take the following example:  public static string ToInvariantString(this IFormattable value, string format) {     return value.ToString(format, CultureInfo.InvariantCulture); }   This way a NullReferenceException will be thrown if the value parameter is null.   The other example would be:  public static string ToInvariantString(this IFormattable value, string format) {     if (value == null) throw new ArgumentNullException("value");     return value.ToString(format, CultureInfo.InvariantCulture); }   EDIT: In some of the answers you have pointed out that an extension methods can be called like a static method and in those cases a null reference exception would be wrong, which is a great point, and actually one of my concerns, not sure why I forgot to mention that in the question in the first place.   Someone also pointed out that it's wrong to throw a NullReferenceException, and yes, it is. That's why I don't throw it, I just let it happen (let the CLR throw it) by not guarding the method.  I think I favor the ArgumentNullException (that's what I've use so far) but I still think there is at least room to argue for an against the NullReferenceException since it seems more natural in most places where the method is going to be used.