I want to stick footer at the bottom of the page even when there is no content. When there is enough content, the footer should move to the end of the page.   I'm learning flexbox and tried doing so using flexbox. But it isn't working.     html {   height: 100%; }  body, #root {   display: flex;   flex-direction: column; }  .app {   text-align: center; }  .header, .footer {   background: #282c34;   flex-shrink: 0;   color: white; }  .main {   flex: 1 0 auto; }  a {   text-decoration: none;   color: #42A5F5;   padding: 20px 0; } &lt;div class="root"&gt;   &lt;div class="app"&gt;     &lt;div class="header"&gt;       &lt;a href="#"&gt;Logo&lt;/a&gt;       &lt;h1&gt;Application Name&lt;/h1&gt;       &lt;nav&gt;         &lt;a href="#" class="navItem"&gt;Link1&lt;/a&gt;         &lt;a href="#" class="navItem"&gt;Link2&lt;/a&gt;         &lt;a href="#" class="navItem"&gt;Link3&lt;/a&gt;       &lt;/nav&gt;     &lt;/div&gt;      &lt;div class="main"&gt;       &lt;p class="description"&gt;Small Description&lt;/p&gt;       &lt;div class="search"&gt;         &lt;input type="text" /&gt;         &lt;p&gt;Please Insert Search Query&lt;/p&gt;       &lt;/div&gt;       &lt;div class="searchResult"&gt;&lt;/div&gt;     &lt;/div&gt;      &lt;div class="footer"&gt;       &lt;div class="about"&gt;Some Random Company&lt;/div&gt;       &lt;div class="footerLink"&gt;Contact&lt;/div&gt;       &lt;div class="social"&gt;Twitter&lt;/div&gt;     &lt;/div&gt;   &lt;/div&gt; &lt;/div&gt;     I want to know why it's not working and the mistake that I'm doing here. I know this question has been asked before. I just want to know, what's wrong with my code so that I can write better CSS after understanding it.  Also, here is the updated
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.
QGIS 2.99 "qgis._core import error: DLL load failed" I am trying to run a standalone application. However, it does not run the program because of mentioned error in title. Here is my code:  from qgis.core import * from qgis.gui import * from qgis.utils import * from PyQt5.QtCore import * from PyQt5.QtGui import *  app = QgsApplication([], True) path = "C:/OSGeo4W64/apps/qgis-dev" app.setPrefixPath(path, True) app.initQgis()  canvas = QgsMapCanvas() title = "PyQGIS Standalone Application Example" canvas.setWindowTitle(title) canvas.setCanvasColor(Qt.white)  layer_info = 'LineString?crs=epsg:4326' layer = QgsVectorLayer(layer_info, 'MyLine', "memory") pr = layer.dataProvider() linstr = QgsFeature() wkt = "LINESTRING (1 1, 10 15, 40 35)" geom = QgsGeometry.fromWkt(wkt) linstr.setGeometry(geom) pr.addFeatures([linstr]) layer.updateExtents() QgsProject.instance().addMapLayer(layer)  canvas.setExtent(layer.extent()) canvas.setLayers([layer]) canvas.zoomToFullExtent() exitcode = app.exec_() QgsApplication.exitQgis() sys.exit(exitcode)   When I run it, I get this error:  Traceback (most recent call last):   File "C:/Users/DELL/Desktop/MyMap/myMap.py", line 1, in &lt;module&gt;     from qgis.core import *   File "C:\OSGeo4W64\apps\qgis-dev\python\qgis\__init__.py", line 72, in &lt;module&gt;     from qgis.core import QgsFeature, QgsGeometry   File "C:\OSGeo4W64\apps\qgis-dev\python\qgis\core\__init__.py", line 34, in &lt;module&gt;     from qgis._core import *   ImportError: DLL load failed: The specified module could not be found.  Python version is: 3.6 PyQt   version is: PyQt5.9 Windows 10 - 64bit  I also add many path:  %SystemRoot%\system32 %SystemRoot% %SystemRoot%\System32\Wbem %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ C:\OSGeo4W64 C:\OSGeo4W64\apps C:\OSGeo4W64\apps\gdal-dev C:\OSGeo4W64\apps\gdal-dev\bin C:\OSGeo4W64\apps\gdal-dev\pymod3\Lib\site-packages C:\OSGeo4W64\apps\grass\grass-7.2.2\bin C:\OSGeo4W64\apps\Python36 C:\OSGeo4W64\apps\Python36\Scripts C:\OSGeo4W64\apps\Python36\DLLs C:\OSGeo4W64\apps\Python36\lib\site-packages C:\OSGeo4W64\apps\qgis-dev C:\OSGeo4W64\apps\qgis-dev\bin C:\OSGeo4W64\apps\qgis-dev\lib C:\OSGeo4W64\apps\qgis-dev\python C:\OSGeo4W64\apps\qgis-dev\python\qgis C:\OSGeo4W64\apps\Qt5 C:\OSGeo4W64\apps\Qt5\lib C:\OSGeo4W64\bin C:\OSGeo4W64\apps\qgis-dev\python C:\OSGeo4W64\apps\Python36\lib C:\OSGeo4W64\include C:\Users\Mustafa Uçar\AppData\Roaming\QGIS\QGIS3\profiles\default C:\Users\Mustafa Uçar\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS   How can I fix this error? Does leaning (banking) help cause turning on a bicycle? "Where" exactly are complex numbers used "in the real world"? I've always enjoyed solving problems in the complex numbers during my undergrad. However, I've always wondered where are they used and for what? In my domain (computer science) I've rarely seen it be used/applied and hence am curious.  So what practical applications of complex numbers exist and what are the ways in which complex  transformation helps address the problem that wasn't immediately addressable?  Way back in undergrad when I asked my professor this he mentioned that "the folks in mechanical and aerospace engineering use it a lot" but for what? (Don't other domains use it too?). I'm well aware of its use in Fourier analysis but that's the farthest I got to a 'real world application'. I'm sure that's not it.  PS: I'm not looking for the ability to make one problem easier to solve, but a bigger picture where the result of the complex analysis is used for something meaningful in the real world. A naive analogy is deciding the height of tower based on trigonometry. That's going from paper to the real world. Similarly, what is it that is analyzed in the complex world and the result is used in the real world without imaginaries clouding the problem?  The question:  is nice but covers a more mathematical perspective on interim results that make solving a problem easier. It covers different ground IMHO. Work done in adiabatic process It is well known that $\sqrt{2}$ is irrational, and by modifying the proof (replacing 'even' with 'divisible by $3$'), one can prove that $\sqrt{3}$ is irrational, as well.  On the other hand, clearly $\sqrt{n^2} = n$ for any positive integer $n$.  It seems that any positive integer has a square root that is either an integer or irrational number.        How do we prove that if $a \in  \mathbb N$, then $\sqrt a$ is an integer or an irrational number?      I also notice that I can modify the proof that $\sqrt{2}$ is irrational to prove that $\sqrt[3]{2}, \sqrt[4]{2}, \cdots$ are all irrational.  This suggests we can extend the previous result to other radicals.        Can we extend 1? That is, can we show that for any $a, b \in \mathbb{N}$, $a^{1/b}$ is either an integer or irrational? I am hearing my screen How do snaps work exactly and why are they mounted? Recently I started learning more about snap packages and what intrigued me was that snap packages are mounted together with their own file system and dependencies (correct me if I'm wrong). Now, with all the great things that snaps bring to the table, what I'd like to know is:  Are snap packages always going to be mounted? This seems kind of awkward, since they appear in places like lsblk and give the impression of not being well integrated into my system.   Also, could they ever replace .deb and .rpm packages completely, or are they a different type of animal and are only complementary to .deb and.rpm packages?  As a side-note, I noticed that some applications are so self-contained that they don't respect any of my desktop settings like the mouse cursor theme or icon and menu themes. How to change shortcut key for switching between virtual desktops in windows 10? In linux I use a shortcut to switch between 4 workspaces: win+1/2/3/4.   I would like to have something like this in Windows 10.  UPDATE SOLUTION 2017, WINDOWS 10x64   Update your windows version to most recent through this  . You may also need  Download and unzip this  (0.9.1) works for me. Change content of file settings.ini to    [KeyboardShortcuts] Switch=LWin Move=LAlt, Shift, Ctrl MoveAndSwitch=LAlt, Shift Previous=Left Next=Right PlusTen=     Run virtual-desktop-enhancer.exe as administrator. Single Variable Calculus Reference Recommendations This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus. I created a new profile for gnome-terminal and I can switch between &quot;Implicit&quot; profile and the new created profile as you can see in the below image:  Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.  Note: Solutions like: gnome-terminal --tab-with-profile=Implicit &amp;&amp; exit   are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile. integral of $\int_{0}^{1}\frac{\ln(x^{2}+1)}{x+1}dx$ using contour integration? I have an interest in contour integration. I am not that good at it, but I enjoy learning what I can about it.  Here is a version of a rational log integral rarely encountered.  $\displaystyle \int_{0}^{1}\frac{\ln(x^{2}+1)}{x+1}dx=\frac{3}{4}\ln^{2}(2)-\frac{{\pi}^{2}}{48}$  I can do this using real methods (via double integral and substitution). I can post my workings if anyone would be interested.  My question is, can this be evaluated using contour integration due to the limits being $[0,1]$ instead of $[0,\infty)$?.  Contours may not be the most efficient way to go about it, but what is the course of action when the limits are 0 to 1 instead of 0 to infinity?. Batch-Resizing images in OS X to a certain height JDK 1.4.2 - where can I download the source? I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However - where can I download this? I believe 1.4 is still from the Sun era, but I can't find it on the  site, and the sun site is gone.  has no 1.4 download afaik.   Where can I download Java 1.4.2 source code?   As the goal is to get the installation working, other options are welcome. I tried to install the bin file, but got an error: cannot execute binary file. I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't seem to find it.  How do I typeset an arbitrary fraction the same way as ½? How did we 'discover' dark matter? I'm an astrophysics student and I've been researching this topic and there is one point that keeps eluding me.  How did the scientific community realize that there had to be  in the Universe? Chat is down. Where can I find when it'll be back up? Chat is down network-wide. Where can I find when it'll be back up? Can I access the App Store from within the iOS Simulator? Equals(=) vs. LIKE When using SQL, are there any benefits of using = in a WHERE clause instead of LIKE?  Without any special operators, LIKE and = are the same, right? WiFi repeatedly asks for password (Ubuntu 12.10 fresh) I'm sure the passphrase is correct 100% but Wifi keeps asking for authentication and never connects. What can I do? I've tried removing the networks, resetting the router, changing the password, rebooting Ubuntu, disabling IPv6.  Also, it worked until earlier today and then stopped. All my other devices log in fine. Which view is the "Current view"? I have got a SharePoint 2010 website with a WebPart-page and a few WebParts on it.  One of the WebParts displays a list/a view of a list.  The views of that list have been updated due to business needs - but the view in the WebPart on the WebPart-page is not updated.    If I edit "Modify Shared Web Part" (the one with the list / list view),  the "Selected view" is set to "&lt;Current view&gt;".  My question is now: Which view of the list is the "&lt;Current view&gt;"? Is it any view of the list at all - or has the WebPart some kind of its own view to that list?