In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used.  I always thought of swap as an overflow when memory has been depleted.  Why would it swap with about 7GB (50%) free memory?  Swappiness is 60 (default).  Meminfo output:  MemTotal:     16436132 kB MemFree:       7507008 kB Buffers:        534804 kB Cached:        2642652 kB SwapCached:      39084 kB Active:        6001828 kB Inactive:      2532028 kB HighTotal:           0 kB HighFree:            0 kB LowTotal:     16436132 kB LowFree:       7507008 kB SwapTotal:     2097144 kB SwapFree:      1990096 kB Dirty:             236 kB Writeback:           0 kB AnonPages:     5353644 kB Mapped:          45764 kB Slab:           330660 kB PageTables:      34020 kB NFS_Unstable:        0 kB Bounce:              0 kB CommitLimit:  10315208 kB Committed_AS: 14836360 kB VmallocTotal: 34359738367 kB VmallocUsed:    264660 kB VmallocChunk: 34359472735 kB HugePages_Total:     0 HugePages_Free:      0 HugePages_Rsvd:      0 Hugepagesize:     2048 kB
Using swap space instead of RAM can drastically slow down a PC.  So why, when I have more than enough RAM available, does my Linux system (Arch) use the swap?  Checkout my conky output below:    Also, could this be the cause of speed and system-responsiveness issues I'm having?  Output of free -m :  $ free -m              total       used       free     shared    buffers     cached Mem:          1257       1004        252          0         51        778 -/+ buffers/cache:        174       1082 Swap:          502        144        357
how to get the original entity on hook_entity_presave? i actually need it for the content_moderation_state entity   function hook_entity_presave(Drupal\Core\Entity\EntityInterface $entity) { if ($entity-&gt;getEntityTypeId() !== 'content_moderation_state' ) {     return; }     $moderation_state = $entity-&gt;get('moderation_state')-&gt;getString();   //code to get the original entity moderation state How can I change the language of the QGIS Interface? I want the QGIS interface in English, in order to share information with the GIS community. Using another language, when chatting with the GIS community, makes things more difficult. When I installed QGIS, it automatically set the language to French. It's very frustrating not having the opportunity to select my preferred language.   I am using Windows XP in French, but I want QGIS in English. How to Avoid Precision Errors While Creating Numpy Arrays? Wireframe iOS design apps for iPad? Is there an app for iPad to assist in wireframe design for iPad and iPhone apps?  I don't mean actual development, just placing standard widgets and the things you usually do with photoshop and associated kits. Finding the missing digits of $23!$ It is given $23!=2585201xy38884976640000$. Now it is required to find the value of $x$ and $y$. I know I could find it by using divisibility rules and solving simultaneous equations. Is there any other way to solve it (without computing it by a calculator)? This question is just out of curiosity. Is rejecting the hypothesis using p-value equivalent to hypothesis not belonging to the confidence interval? While formally deriving the confidence interval of an estimate, I ended up with a formula that resembles very closely the way $p$-value is computed.  Thus the question: are they formally equivalent? I.e. is rejecting an hypotheses $H_0 = 0$ with a critical value $\alpha$ equivalent to $0$ not belonging to the confidence interval with critical value $\alpha$? In one of the concluding scenes of the movie Thor, it's shown that Loki deliberately let go of the Scepter, and falls deep into the vast intergalactic sea sort of thing. How does he survive and return in The Avengers? I'm looking for the name of a sci-fi series, intended for children. Robots have control over the humans. There is a squad of humans who attack them. Every member in this squad has a badge on their suit, and when they touch this badge the suit becomes armed. This series was not cartoon series, it was performed by real people. The main robot character is very similar in style to Darth Vader in Star Wars. The series aired in the 1990s. I am sorry but I can't recall many details. Events triggered by dynamically generated element are not captured by event handler When you click on the Opportunities tab, (assuming you haven't modified standard salesforce layout), you see a "Recent Opportunities" list. At the top of the list, there is a "New" button.     Is there a way to hide the "New" button displayed on this page? I have tried disabling the button on the "Opportunity List View" Search Layout[Setup -> App Setup -> Opportunities -> Search Layouts], but it does not remove the button from this particular view. 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; How do I figure out if someone is a first cousin, second cousin, cousin once-removed, etc? For a given class I would like to have tracing functionality i.e. I would like to log every method call (method signature and actual parameter values) and every method exit (just the method signature).      How do I accomplish this assuming that:     I don't want to use any 3rd party AOP libraries for C#, I don't want to add duplicate code to all the methods that I want to trace,   I don't want to change the public API of the class - users of the class should be able to call all the methods in exactly the same way.     To make the question more concrete let's assume there are 3 classes:     public class Caller   {      public static void Call()       {          Traced traced = new Traced();          traced.Method1();          traced.Method2();       }  }   public class Traced   {      public void Method1(String name, Int32 value) { }       public void Method2(Object object) { }  }   public class Logger  {      public static void LogStart(MethodInfo method, Object[] parameterValues);       public static void LogEnd(MethodInfo method);  }   How do I invoke Logger.LogStart and Logger.LogEnd for every call to Method1 and Method2 without modifying the Caller.Call method and without adding the calls explicitly to Traced.Method1 and Traced.Method2?  Edit:  What would be the solution if I'm allowed to slightly change the Call method? I am traveling from Chennai to Atlanta. M first flight is to Frankfurt reaches at 8 30 AM. My second flight is scheduled at 10 45 AM.   Will the two hours transit time enough for boarding my second flight.  What should be my do's and dont's?  Update  Its more than enough. I was able to make it without any tension. How do I know if I have a selected keyframe using python? I was reading through some of the questions and answers here on the Rings of Power and I just wondered why the ring effects, affected different races in a slightly different way.  I know other questions ask and answer some of these things, but I just wondered why the Rings of Power caused greed in Dwarves for ever more amounts of treasure.  It's true that Dwarves loved mining and loved wealth and were built of sturdier stuff than men, but why did the Rings of Power not control Dwarves in the way the other Rings of Power controlled men and why did it produce greed and not invisibility? Is there an comparison of the various mapping libraries for Android? I am currently looking at the various libraries that I can use to show a map in my custom Android App. I have found several like Mapsforge, OSMDroid, ArcGIS runtime for Android, Google Maps for Android and so on. I'm sure that I am missing a few.   Is there a comparison chart somewhere about the differences in functionalities and pros and cons of each one?   If there isn't one, we could make this question community wiki, to serve alongside  &amp; . iPhone has a default "Notes" app which allows us to store notes. Stored notes can be deleted by hitting the "Delete Note" button:    How do we recover a note that is accidentally deleted?  Is there anyway to undo the delete? Difference between "I have got" and "I have gotten" I see these two expressions are used almost identically in different contexts. Is there a difference between I have got and I have gotten? Please use UK pre-uni methods only (at least at first). Thank you.