While thinking intuitively, it seems quite obvious that the object displaces itself in the downward direction. But, will there be a case where the buoyant force dominates over it's own weight which may cause the ball to rise?  (No information about the densities/masses of any object is given)
I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out.
I have installed an Ubuntu server on a VMWare workstation with a space of 20GB storage as seen below;    After the installation I've attached another 40GB worth storage to the existing Ubuntu server installation (seen below);    Now I want to add this 40GB to my / (root) directory or to /var/ directory but my df -h result shows;  root@Userver:~# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda1        18G  900M   16G   6% / udev            990M  4.0K  990M   1% /dev tmpfs           400M  308K  399M   1% /run none            5.0M     0  5.0M   0% /run/lock none            999M     0  999M   0% /run/shm none            100M     0  100M   0% /run/user root@Userver:~#   What should I do now? Further, I have only ssh access to the server. Cast Double to Integer in Java Big Greeks and commutation Using PyQGIS to transform layer of polygons into layer of holes inside bbox? I'm using python in QGIS. I have a layer of polygons (its a result of some earlier dissolving and has no overlapping polygons but some holes and islands in holes etc). I want to build a new layer which contains one polygon representing a bbox of the first layer with each polygon cut from it.  Essentially I want to "invert" the layer I have so that where the was polygon, now there is not, and where there was not polygon now there is. All inside a bounding box of the original layer.  I can build a bbox easily and I tried to "subtract" the polygon layer from my new bbox polygon layer but the process slows to a stop and then crashes my PC. Here's the algorythm  processing.runalg("qgis.difference","path/to/polygon.shp","path/to/bbox.shp","path/to/result.shp")   I dont care about attributes (obviously). I just need to cut one set of polygons from one larger polygon.  It seems so simple, I wish I could find a simple command or script to acheive this. As stated at the top I'm looking for a solution in python in QGIS. Hiding sublayer with toggle button using LayerActions? I have a toggle map (like ) with sublayers. I want all the sublayers to be visible when you open the map, but I would like to hide some sublayers when the toggle buttons are clicked. I've tried adding a hide sublayer code into the LayerActions section of my code, but it's not hiding the sublayers (the button does the same function no matter whether the 'layer.getSubLayer(1).hide()' is there or not). This is the code I'm using:  var LayerActions = {  all: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet");   return true;  },  2011: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true;  },  2012: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2012', '2012/2013') AND year IS NOT NULL");   return true;  } }   $('.button').click(function() {  $('.button').removeClass('selected');  $(this).addClass('selected');  LayerActions[$(this).attr('id')](); });   Could someone point me to where I'm messing up with my code? Or is it not possible to hide a sublayer using the LayerActions?    I'm now loading my layers differently, and this is my new code:   cartodb.createLayer(map, url1)     .addTo(map, 0)     .done(function (layer) {         console.log('added url1 ',url1);         cartodb.createLayer(map, url2)         .addTo(map, 1)         .done(function (layer) {             console.log('added url2 ',url2);         })         .error(function (){             console.log('problem adding 2nd layer');         });     })     .error(function () {         console.log('There is something wrong with requested data!');     });   So if I wanted to hide the first layer that's loaded (url1) and select only certain points from the second layer (url2), how would I code that in my LayerActions section? I've tried the following, but nothing changes when I click the buttons:  var LayerActions = { all: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet");   return true; }, 2011: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true; }, ... 9 pirates have to divide 1000 coins... A band of 9 pirates have just finished their latest conquest - looting, killing and sinking a ship. The loot amounts to 1000 gold coins.  Arriving on a deserted island, they now have to split up the loot. You, as the captain of the band, have to propose a distribution plan (who gets what). What's your proposal?  Consider that this bunch is a democratic lot. If your proposal is accepted by half of the group, then everybody adheres to it. However, if folks feel you are getting greedy, and less than half of the band agrees to your proposal, then they kill you, and then your First Mate gets to make a proposal. And so it goes in decreasing order of hierarchy/seniority. A pessimist is someone who always considers negative outcomes of a situation, whereas an optimist always considers the positive outcomes. Is there a word for someone who, in any given situation, doesn't care about the outcome at all? Loading external GeoJSON file into Leaflet map? I would like to load a geoJSON (polygon) file into my leaflet map. I have seen examples where geoJSON is embedded into the javascript code but I can't find any examples showing how it is done with an external file.   &lt;head&gt;     &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"&gt;     &lt;link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" /&gt;     &lt;script src="usStates.geojson" type="text/javascript"&gt;&lt;/script&gt;     &lt;style&gt;         html, body, #map {             height: 100%;         }         body {             padding: 0;             margin: 0;         }     &lt;/style&gt; &lt;/head&gt;  &lt;body&gt;     &lt;div id="map" style="height: 100%"&lt;/div&gt;     &lt;script src="http://d3js.org/d3.v2.min.js?2.9.3"&gt;&lt;/script&gt;     &lt;script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"&gt;&lt;/script&gt;      &lt;script type="text/javascript"&gt;       var map = L.map('map').setView([38.57, -94.71], 4);      L.tileLayer('http://{s}.tile.cloudmade.com/9067860284bc491e92d2342cc51d47d9/998/256/{z}/{x}/{y}.png', {attribution: 'Map data &amp;copy; &lt;a href="http://openstreetmap.org"&gt;OpenStreetMap&lt;/a&gt; Imagery © &lt;a href="http://cloudmade.com"&gt;CloudMade&lt;/a&gt;'}).addTo(map);      var featureStyle = {         "color": "#ff7800",         "weight": 5,          "opacity": 0.2     };      L.geoJson(usStates).addTo(map);      &lt;/script&gt;  &lt;/body&gt; Cookie path and its accessibility to subfolder pages Lifting idempotents modulo a nilpotent ideal For a presentation with Beamer, I would like to have a slide where a long list of formulas (maybe mixed with text) scrolls automatically within a certain part of the slide. This should look like e.g. closing credits in movies.   I have tried the idea from  based on animateinline from the , but whenever I use environments like \begin{equation} ... \end{equation} or commands like \textcolor{red}{...} I get an error:  TeX capacity exceeded, sorry [main memory size=3000000]. \end{frame}   Ideally, the formulas/the text should be given within the document itself, but if a solution with an external PDF works fine, I'll take it!  Any ideas how that might work? How can I look at my character? Is there a way I can inspect my character's face at any point in the game after creating it during the bathroom scene?  I am playing on PlayStation 4 and rotating with the right stick in 3rd-person view obviously does not show the face. I haven't found any mirrors or shiny objects to use the reflection either.  The reason for this is that I forgot what she looks like and also I want to share my monstrous creation with others but I have already left the vault! I am trying to calculate the sum of this infinite series after having read the series chapter of my textbook: $$\sum_{n=1}^{\infty}\frac{1}{4n^2-1}$$  my steps:   $$\sum_{n=1}^{\infty}\frac{1}{4n^2-1}=\sum_{n=1}^{\infty}\frac{2}{4n^2-1}-\sum_{n=1}^{\infty}\frac{1}{4n^2-1}=..help..=sum$$  I am lacking some important properties, I feel I am coming to the right step and cannot spit that out.. How to get status start_date and end_date from status_track table? I have two tables:   things:  +------+----------------+------------+ | id   | current_status | created_at | +------+----------------+------------+ | 7770 | active         | 2016-08-09 | +------+----------------+------------+  thing_status_tract:  +----------+-------------+-----------+---------------------+ | thing_id | status_from | status_to | changed_at          | +----------+-------------+-----------+---------------------+ |     7770 | incomplete  | inactive  | 2016-08-09 16:26:22 | |     7770 | inactive    | active    | 2016-08-10 12:31:04 | +----------+-------------+-----------+---------------------+    I need data in the following form. This table has a status and its corresponding start and end timestamp for a particular thing_id:  +----------+-------------+---------------------+---------------------+ | thing_id | status      | status_start_date   | status_end_date     | +----------+-------------+---------------------+---------------------+ |     7770 | incomplete  | 2016-08-09 00:00:00 | 2016-08-09 16:26:22 | |     7770 | inactive    | 2016-08-09 16:26:22 | 2016-08-10 12:31:04 | |     7770 | active      | 2016-08-10 12:31:04 | now()               | +----------+-------------+---------------------+---------------------+   How to do that with a SQL query? Removal of statistically significant intercept term increases $R^2$ in linear model Notify users of a question they closed being edited or nominated for reopening How do I get the local machine name? If particles are points, then aren't atoms empty space? Zero dimensional points do not take up space, so then wouldn't everything in the universe be literally empty? Or is there something that I'm missing? How to check that a cubic polynomial is irreducible? Prove $\csc(x)=\sum_{k=-\infty}^{\infty}\frac{(-1)^k}{x+k\pi}$