My Android phone comes installed w/ an app that graphs out power usage of various components over time, so it's clear that the screen is the biggest user, followed by the phone, followed by Facebook etc.   Is there a similar app for the MacBook?  I'm following best practices yet only getting a couple of hours of time out of a new (reconditioned) 2013 Macbook Pro (Mt Lion) with a battery showing only 10 cycles and near max health on it.    Thanks
The Android OS monitors the power consumption of running apps and hardware (display). As you may guess, this is a useful feature as it allows to track down energy greedy apps.  Is there an application that would do such monitoring on Mac OS?  It should calculate the percentages of the charge that an application/process/hardware has used.  I use plenty of little software that runs in the background permanently. It would be nice to know if such little helpers drain the battery significantly.
How to create a random math problem in LaTeX? I want to create a math problem-solution sheet. The coefficients a, b, c must be assigned on the fly at random so the generated pdf will show a numeric quadratic equation rather than a symbolic quadratic equation. Note a must not be zero.  \documentclass{article} \begin{document} \section{Problem} Let \(x_1\) and \(x_2\) be the roots of \(a x^2 +bx +c=0\). Find  \(x_1x_2\).  \section{Solution} \[ x_1x_2=\frac{c}{a} \] \end{document}   Please kindly make the solution get automatically simplified. For example: \frac{c}{a}=3 when a=2 and c=6.    Actually the real case is more complex than this one. Not only the equations must be generated at random, but also the associated graphic plots that I write in PSTricks.     I chose Paulo's answer because using Maxima as the computation engine is very very great idea. Other answers are also good and creative, especially Altermundus'. How can I take a site offline using Drush? Are there integer solutions to $9^x - 8^y = 1$? This came up in proving non-regularity of a certain language (powers of 2 over the ternary alphabet). Any clue to the above equation could help me move forward.  Edit: Of course, $x = 1, y = 1$ is a solution. I am looking for non-trivial solutions. For $a,b,c>0$, prove that $\frac{a^2}{b}+\frac{b^2}{c}+\frac{c^2}{a}\ge a+b+c+\frac{4(a-b)^2}{a+b+c}$ I've seen several examples of code like this:  if not someobj:     #do something   But I'm wondering why not doing:  if someobj == None:     #do something   Is there any difference? Does one have an advantage over the other? How to show every field is a Euclidean Domain. I'm having trouble proving this. This is what I have so far:  Let $F$ be a field. Let $v(x) \rightarrow 1$ for all $x$ not equal to $0$.  So if we let $x$ be in $F$ where $x$ not zero then we can write $x$ as: $x=qy+r$ for some $y$ in $F$. If $r$ not zero then $V(r)=1$.  Not sure what to do from here. I know eventually I'm supposed to get no remainder $(r=0)$ but I'm stuck at applying the definition and valuation map. Mechanics of Horizontal Stretching and Shrinking I know $y=2f(x)$ doubles the $y$ value in vertical shifting, and I know that $y=(1/2)f(x)$ halves the $y$ value. But, why does $y=f(2x)$ halve the $x$ value, and why does $y=f((1/2)x)$ double the $x$ value in horizontal shifting? I looked at the graphs, and I see the difference, but I want to know the math behind why it halves instead of doubling the $x$ value for $y=f(2x)$. Maybe this is a stupid question, but could someone help me out?  Thank you. Trying to identify pre-1970s short story involving multiple humans absorbed into an alien blob I think this story dates from the 1950s, plus or minus a decade - I read it about 30-35 years ago in a (then) fairly old story collection. It involves explorers on a planet falling into a gelatinous object that dissolves most of their bodies except for their brains and nervous systems. About four of them fall in to the same creature, and they discover that by thinking about it they can grow limbs and other body parts. At first they try to fight each other, by growing arms so they can hit each other's brains - and one of them realises that growing a skull would be a good idea - but later they agree to grow legs and move the creature around co-operatively. I would love to identify this story. Extract single file from tar to other folder I've searched for multiple forums for this questions and have seen different answers but so far, nothing have worked yet even from the ones I've seen here.  I want to extract a single file from a tar to a different directory.  I've tried this:  tar xvf file.tar -C /home/dir/ filename   or this:  tar -x filename -f file.tar -C /home/dir   But got these errors respectively:  x filename, 14826 bytes, 29 media blocks. File -C not present in the archive. File /home/dir not present in the archive.   and:  tar: /dev/rmt0: A file or directory in the path name does not exist.   The first extracted the file but in the same directory, not to the folder I wanted. When you edit a message and repost the contents of  its first revision, the repost is eaten up by chat.  Steps to reproduce:   Join any chat room Post something. Let's say you post abcd Edit that to something else. For example, --- Try to post abcd again. The green (pending) message will show up, but when the response is received, it disappears (the server spits out {"id":null,"time":null} as the response)   This happens more often than you think. Many a time I post something, only to realize that I want to use the magic separator (---) to separate it from a previous block. So I up-arrow, Ctrl-X, and type ---, and then I repost the cut text. Which gets eaten up by the server -- making a small change to the repost fixes things. Why is the gap between the translation and the last line of the gloss so wide in my interlinear gloss? evaluate $\int_{0}^{\infty}\cos(t) t^{z-1}dt=\Gamma(z)\cos(\frac{\pi z}{2})$ I'm curious why PCBs have one square pad in row for 0.1" headers. What is purpose of putting one square pad? What it indicates? Can you push more amps through square pad than round? Why are There No "Triernions" (3-dimensional analogue of complex numbers / quaternions)? Since there are  complex numbers (2 dimensions) and quaternions (4 dimensions), it follows intuitively that there ought to be something in between for 3 dimensions ("triernions").   Yet no one uses these. Why is this? FTP and Apache permission issues Is it possible to double your proficiency bonus twice? Let's say I'm a multiclass rogue/ranger and I have taken Expertise in survival checks. Now, if a ranger is in their favored terrain it says they double their proficiency bonus in intelligence and wisdom checks relating to you environment. If I am in my favored terrain and use my already doubled survival check, will it double again? A graph $G$ is bipartite if and only if $G$ can be coloured with 2 colours Shapefile layer no longer editable (toggle edit option greyed out) in QGIS I am using QGIS 2.16 / Windows 10.  I have a point shapefile which I have been using for a little while that has always been editable.  Today I was editing the layer, saved my edits and left my computer for a few hours. When I came back I was not able to toggle the editing button on the toolbar and when I right click on the layer it longer has toggle editing as an option.  I have googled the problem every way I can think of and have not been able to find an answer to why the layer is suddenly un-editable or how to fix this. Word for lights on police cars, etc Problems with FOUC