My Linux system sometimes reaches 90% memory usage.    We are running some Java processes, and top shows overall usage as 45%.  If I stop the running processes, usage reduces to 5-10%. I want to list out which process is consuming so much memory, ideally as a table of process ids next to their memory usage.  How can I do that?
My processor is using a big part of my RAM memory as cache and I want to clean it up because of that; will it prejudice something?
Suppose we have (some categories and some functors such that) $F_1$ is left adjoint to $G_1$, $G_1$ left adjoint to $F_2$, $F_2$ left adjoint to $G_2$. Will $F_1$ then be equal to $F_2$ (and $G_1$ to $G_2$)?  Or can there exist arbitrarily long 'chains' of adjoint functors that do not trivialize? How can I get the source directory of a Bash script from within the script itself? How do I get the path of the directory in which a  script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where the Bash script is located, so I can operate on the files in that directory, like so: $ ./application Connection pooling in PHP Is it possible to cache database connections when using PHP like you would in a J2EE container?  If so, how? When it comes to getting a tenure-track position where one has both a lot of resources and academic freedom to do what one wants to do (so having a tenure-track position in a top university might be more useful because one may get more resources at a top university).   Or in short, when one wants to maximize one's chances of becoming a "top scientist".  There are obviously numerous factors, and "rank/prestige" should not be considered as a factor in itself. That said, the period after one gets a PhD is an extremely important time for building up connections, and those are easier to get at a top university. Cannot move std::unique_ptr with NULL deleter to std::shared_ptr? Why was the DeLorean in Back To The Future not always covered in ice after time travel, and why didn't it fly in 1885? Search functionality in lightning:datatable? Is there a way to search across all rows/columns in a lightning:datatable to narrow down the list, just like jQuery DataTables? If so, how do implement that?  Can I somehow do it all on the client-side to make it super fast (some sort of DOM manipulation)  I'm having some issues with the lightning:datatable not updating. I have attached my code below, maybe you can help me spot the issue:  Markup:  &lt;aura:component extends="c:Base" controller="AccountBrowserForm"&gt; &lt;aura:handler name="init" value="{! this }" action="{! c.doInit }"/&gt; &lt;aura:attribute name="selectedAccountId" type="Id" access="public" /&gt; &lt;aura:attribute name="accounts" type="Object"/&gt; &lt;aura:attribute name="mycolumns" type="List"/&gt; &lt;aura:attribute name="sortedBy" type="String" /&gt; &lt;aura:attribute name="sortedDirection" type="Boolean" default="true" /&gt;  &lt;aura:registerEvent name="AccountFilterChange" type="c:AccountFilterChange" /&gt;  &lt;aura:attribute name="backingdata" type="List" /&gt; &lt;aura:attribute name="filter" type="String" /&gt; &lt;lightning:input type="text" onchange="{!c.filter}" value="{!v.filter}" label="Filter" /&gt;  &lt;lightning:datatable aura:id="lightningTable"                      data="{! v.accounts }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowaction="{! c.handleRowAction }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="true" /&gt;     Controller:  doInit: function (component, event, helper) {     helper.callServer(component, "c.getAccounts", $A.getCallback(function (response) {         component.set("v.accounts", response);         component.set("v.backingdata", response);         console.log(component.get("v.backingdata") + " /// BACKING DATA INSIDE ")         console.log(component.get("v.accounts") + " // ACCOUTN DATA INSIDE")          component.set('v.mycolumns', [{                 type: "button",                 typeAttributes: {                     label: '',                     iconName: 'utility:add',                     name: 'selectRecord',                     title: 'selectRecord',                     disabled: false,                     value: 'edit',                     variant: {                         fieldName: 'variantValue'                     },                 }             },             {label: 'Name', fieldName: 'Name', type: 'text', sortable: true},             {label: 'Street', fieldName: 'BillingStreet', type: 'text', sortable: true},             {label: 'Postal Code', fieldName: 'BillingPostalCode', type: 'text', sortable: true},             {label: 'City', fieldName: 'BillingCity', type: 'text', sortable: true},             {label: 'Country', fieldName: 'BillingCountry', type: 'text', sortable: true},         ]);          console.log(component.get("v.backingdata") + " *** BACKING DATA OUTSIDE *** ")         console.log(component.get("v.accounts") + " *** ACCOUNT DATA OUTSIDE *** ")     })) },  filter: function (component, event, helper) {     var data = component.get("v.backingdata"),         term = component.get("v.filter"),         results = data,         regex;     try {         regex = new RegExp(term, "i");         // filter checks each row, constructs new array where function returns true         results = data.filter(row =&gt; regex.test(row.name) || regex.test(row.age.toString()));     } catch (e) {         // invalid regex, use full list     }     component.set("v.accounts", results); },   For some reason the filter function is completely unresponsive. Also, does it matter that I'm populating the component with a response from a callback function. @sfdcfox, I noticed in your example that you simple created an array with dummy data. My "myaccounts" attribute is of type object Show that the equation, $x^3+10x^2-100x+1729=0$ has at least one complex root $z$ such that $|z|>12.$ My question is from Apostol's Vol. 1 One-variable calculus with introduction to linear algebra textbook.  Page 57. Exercise 12. Show that the following are polynomials by converting them to the form $\sum_{k=0}^{m}a_kx^k$ for a suitable $m$. In each case $n$ is a positive integer. $a)$ $(1+x)^{2n}.$ $b)$ $\frac{1-x^{n+1}}{1-x}, x\not=1.$ $c)$ $\prod_{k=0}^{n}(1+x^{2^k}).$  The attempt at a solution: a) part of the problem is pretty easy I guess, it is example of binomial theorem, so the answer would be $(1+x)^{2n}=\sum_{k=0}^{2n}(^{2n}_{k})x^k.$ Answer to part b) would be the following: $$\frac{1-x^{n+1}}{1-x}=\frac{(1-x)(1+x+x^2+\cdots+x^n)}{1-x}=1+x+x^2+\cdots+x^n=‌​\sum_{k=0}^{n}x^k.$$thanks to @DiegoMath's hint. As for part c), we have $$\prod_{k=0}^{n}(1+x^{2^k})=(1+x)(1+x^2)(1+x^4)(1+x^8)\cdots(1+x^{2^n})$$ and I have trouble &quot;converting&quot; this to sum which would be of a form of polynomial. I have recently purchased a hybrid bike with suspension (not sure if that is relevant to this question). It came with two pieces of plastic. Any ideas what they may be for? "right" vs "correct" Except when we use right to denote direction, what is the difference between these two terms?  Also, which one is the preferred construction between these two     Am I right?   or     Am I correct? Why do some badges appear white in color and others are dark? Is it possible to highlight text inside of a textarea using javascript? Either changing the background of just a portion of the text area or making a portion of the text selected? How to change the background color only for the current page? Breaking single polygon into multiple polygons? I created voronoi polygons after which I dissolved them on the basis of one attribute. Now there are cases where in for one single attribute "abc" I have3 polygons at different places with same object id. I would like to break these into 3 polygons as they are at different locations.  Is there any tool in ArcGIS Desktop or QGIS which can help me in doing that? Make hyperref take pdfinfo from \title and \author I once read about an option for hyperref that automatically takes the info provided via the standard \author and \title, and puts it into the pdfinfo. Now I want to implement it in my template and can't find it anywhere in the hyperref manual nor anywhere else.  Did I dream about this or can someone help me out here?  (A similar, but more general question: ) How to install Ubuntu on a Mac and keep OSX? Could anyone provide a concise step by step instruction on how to install Ubuntu 12.04 on a Mac OS X Lion?  I have read that Ubuntu corrupts the EFI file so I would like to hear from those who have successfully done it. What is the correct pronunciation of the word “processes”? I have data with a column containing a number value, and I want to divide the value of each feature by the total sum of all the values in the column (to get a percentage).  So I would like to know if there is some simple syntax in the QGIS field calculator to get the sum of a column, preferably without resorting to for loops and what not.    I have a shapefile where feature A has the value X in column B. How can I summerize the values for all features in column B in order to divide value X to get a percentage for each feature? I want to put four figures in a single row. The code I am trying to use is taken from .  This puts three figures in a row. When I add a fourth one, I get three images in row and the last one appears in the second row. But I want all of them in one row. Here is my code.  \documentclass[12pt,twoside]{report}% Use this line for the print version of the thesis   \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document}  \begin{figure}         \centering         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{gull}                 \caption{A gull}                 \label{fig:gull}         \end{subfigure}%           \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{gull}                 \caption{A gull2}                 \label{fig:gull2}         \end{subfigure}%          ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{tiger}                 \caption{A tiger}                 \label{fig:tiger}         \end{subfigure}         ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{mouse}                 \caption{A mouse}                 \label{fig:mouse}         \end{subfigure}         \caption{Pictures of animals}\label{fig:animals} \end{figure} \end{document}   As I have mentioned above, it works for three figures.  But I can not use it for four figures. What should I change?   What does  width=\textwidth mean?   I changed    \begin{subfigure}[b]{0.3\textwidth}   to  \begin{subfigure}[b]{0.2\textwidth}   but it didn't help.  Then, I changed     \includegraphics[width=\textwidth]{mouse}   to  \includegraphics[width=0.5\textwidth]{mouse}   Still no solution.