I try to install menulibre, but i get this error Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  menulibre : Depends: python3-psutil but it is not installable E: Unable to correct problems, you have held broken packages.  When i try to install psutill, i got: flitzcore@flitzcore-Lenovo-G470:~$ sudo apt-get update Hit:1 http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu focal InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease                      Hit:3 http://ppa.launchpad.net/uget-team/ppa/ubuntu focal InRelease       Reading package lists... Done flitzcore@flitzcore-Lenovo-G470:~$ sudo apt install python3-psutil Reading package lists... Done Building dependency tree        Reading state information... Done Package python3-psutil is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'python3-psutil' has no installation candidate  Anyone know how to solve this problem?
There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States.
How to round a number to n decimal places in Java What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -&gt; 0.91239 0.912300 -&gt; 0.9123   What is the best way to achieve this in Java? I have noticed that the confidence interval for predicted values in an linear regression tends to be narrow around the mean of the predictor and fat around the minimum and maximum values of the predictor. This can be seen in plots of these 4 linear regressions:    I initially thought this was because most values of the predictors were concentrated around the mean of the predictor. However, I then noticed that the narrow middle of the confidence interval would occur even if many values of were concentrated around the extremes of the predictor, as in the bottom left linear regression, which lots of values of the predictor are concentrated around the minimum of the predictor.  is anyone able to explain why confidence intervals for the predicted values in an linear regression tend to be narrow in the middle and fat at the extremes? We are planning a trip with a bike rack attached to our trailer hitch. What is the best way to lock the bikes while the vehicle is unattended? I see some racks have locks on the knobs but they don't seem very strong.   What do you suggest? How to: Unlimited Bash/shell history? Is there a way to define an unlimited history in Bash ? Can we get a better wording for protected questions? For context, see .  In essence:     "This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation (not including the ) on this site."   Suggested addition to existing message is in bold. GNOME 3.26 - Clicking one window brings another in the foreground (Ubuntu 17.10) I'm on Ubuntu 17.10 with GNOME 3.26.  Often I have windows tiled on the left and right side of the screen. A typical setup is to have a browser and text editor on the left, a PDF reader and terminal on the right.  Something I've seen happen very often: I'm reading the PDF on the right, having the window in focus. The text editor on the left. When I click on the text editor to write something, it brings forward another window on the right (say the file browser), covering the PDF reader.  This seems to have something to do with the Alt-Tab view history.  My question is: Is it possible to remove the automatic bring-to-front of windows? I don't understand why unrelated windows are brought to the front when I click on another application. How to monitor battery condition and pop-up notification? Essentially, I would like  into a working answer.   I know how to extract the battery percentage from :   upower -i $(upower -e | grep BAT) | grep --color=never -E percentage|xargs|cut -d' ' -f2|sed s/%//   And how to pop-up a basic notification:   notify-send "battery low"   But how can I set up a (bash?) script to permanently monitor the output and send notification as per this pseudo-code:   if battery_status &lt; 10% then notify-send "battery low" and put my system to suspended state sudo pm-suspend Sci-fi series: humans are immune to telepathy, become soldiers for an alien group fighting against invertebrate telepaths Forcing smoothness of regression coefficients I am using XeTeX and have the following short document:  \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amsthm} \usepackage[MnSymbol]{mathspec} \usepackage[no-sscript]{xltxtra} \defaultfontfeatures{Mapping=tex-text} \setallmainfonts{Minion Pro}  \begin{document}  $\phi, \varphi, \delta \ldots A \vee B$  \end{document}    Now no matter what font I am using the punctuation marks in math mode (commas, dots, \ldots etc.) come out in Computer Modern. Is there a way to change this? Does the series $\sum\limits_{n=1}^\infty \frac{1}{n\sqrt[n]{n}}$ converge? Does the following series converge? $$\sum_{n=1}^\infty \frac{1}{n\sqrt[n]{n}}$$   As $$\frac{1}{n\sqrt[n]{n}}=\frac{1}{n^{1+\frac{1}{n}}},$$ I was thinking that you may consider this as a p-series with $p&gt;1$. But I'm not sure if this is correct, as with p-series, p is a fixed number, right ? On the other hand, $1+\frac{1}{n}&gt;1$ for all $n$. Any hints ? Global inbox message not updated after comment edit At the moment, I have the latest notification in the global inbox, content of which does not correspond either to the comment itself or the copy of it on "recent responses" page. This seems like the comment was edited and the updated version was not copied to the global inbox.    ETA: OK, now this looks more coherent. How can I remove myself from India's visa blacklist? Flagging history doesn't show anything when the only flags being cast are spam flags Today I've helped flag a lot of spam for this: .  When I've visited my profile on WebApps to see my flag history of flag, the information about my flagging history was missing.  Note that these spam flags were my only flags on this site.    Normally, I should have more information like when I'm looking at my Stack Overflow account.    Is this a bug? Windows License stored in UEFI/BIOS Since Windows 10 (or earlier?). It has become standard to store the license product key in the UEFI/BIOS.  I am in the market for buying a new (custom build, individual parts) PC with a new Windows 10 License.  However I was wondering (and can't find clear information on this subject). What the differences between the licenses are when it comes to OEM and Retail.  If in the far future I were to sell this PC:   Would the license (whether OEM or Retail), be stored in the UEFI/BIOS, where it could be used by the new owner? If so, can I remove the license key from the UEFI/BIOS?   I want to know this because I don't want to buy Windows 10 every single time I buy a new PC (since no new versions of Windows will be created, only updates). Skip certain tables with mysqldump Let $C[0,1]$ denote the ring of continuous functions on $[0,1]$. Consider the maximal ideal $M_a =\{ f\in C[0,1] | f(a)=0 \}$ for $a$ $\in$ $[0,1]$. Is $M_a$ finitely generated?   Note: It may seem that $M_a = \langle x-a\rangle$ which is certainly not true because $ \vert x-a \vert $ is in $M_a$ but not in $\langle x-a\rangle$. Any ideas for solving this question? Disk space not freed up after deleting files and emptying Trash Quantum entanglement: does it necessarily imply superluminal information transfer? As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package).  Ideally, I would like to be able to write something like  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x)=\begin{cases}   1&amp;x\geq0\label{positive}\\   0&amp;x&lt;0\label{negative} \end{cases} \end{equation} \end{document}   and later refer to both cases at different places. What would be the best way to achieve this result?