Software update not working Ubuntu 20.04
How do I remove a malformed line from my sources.list?
Assuming a simple grep such as:  $ psa aux | grep someApp 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   This provides much information, but as the first line of the ps command is missing there is no context for the info. I would prefer that the first line of ps be shown as well:  $ psa aux | someMagic someApp USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   Of course, I could add a regex to grep specifically for ps:  $ ps aux | grep -E "COMMAND|someApp"   However, I would prefer a more general solution as there are other cases in which I would like to have the first line as well.  Seems like this would be a good use case for . Why do reputation drops not highlight the Achievements icon? The "Recent achievements" icon (looks like a bar graph in the top bar for signed in users) doesn't highlight when one only has recent reputation losses.  I'd like it to highlight whenever my reputation changes, positive or negative - in fact I'd suggest it's far more important for me to review posts that get a downvote than those that got an upvote.  Is there a reason negative reputation events don't cause it to highlight? I'm confused with using single or double brackets. Look at this code:  dir="/home/mazimi/VirtualBox VMs"  if [[ -d ${dir} ]]; then     echo "yep" fi   It works perfectly although the string contains a space. But when I change it to single bracket:  dir="/home/mazimi/VirtualBox VMs"  if [ -d ${dir} ]; then     echo "yep" fi   It says:  ./script.sh: line 5: [: /home/mazimi/VirtualBox: binary operator expected   When I change it to:  dir="/home/mazimi/VirtualBox VMs"  if [ -d "${dir}" ]; then     echo "yep" fi   It works fine. Can someone explain what is happening? When should I assign double quotes around variables like "${var}" to prevent problems caused by spaces? Fluid filled harmonic oscillator A vessel (preferably circular) filled with water is accelerating unidirectionally such that the level of water is higher on one end than the other. What I want to know is that if the vessel is immediately stopped, the water level will force itself back to the equilibrium point, but in doing so push the other end up. If water is an ideal fluid, what type of oscillation will occur in this situation.   I can tell that maybe the mathematical expression for this oscillation will be complex, but please do let me know if I am thinking this correctly.   I am considering, finding the oscillation equation for infinitesimally small u-tubes(considering a 2-d plane) and integrating it to get the final expression.  Thanks in advance How can we read and write values in a multidimensional array in verilog, i had read in  regarding different operations that can be done on multidimensional array. like if there is a part of code like this  input [15:0] me;  reg [15:0] p_array [7:0]; reg abc_pqr [2:0];  abc_pqr[0] &lt;= me[0]; abc_pqr[1] &lt;= me[1]; abc_pqr[2] &lt;= me[1]; p_array[abc_pqr[0]] &lt;= me[0]; p_array[abc_pqr[1]] &lt;= me[1]; p_array[abc_pqr[2]] &lt;= me[2];   so is this code will work and will not produce any error?  What is the difference between these two while assigning value  "&lt;=" and "=", i had seen "&lt;=" in most of the places during passing values. Show that $PF.PG=b^2$ in a hyperbola If the normal at P to the hyperbola $\frac {x^2}{a^2}-\frac {y^2}{b^2}=1$ meets the transverse axis in G and the conjugate axis in G' and CF be the perpendicular to the normal from the center C then show that $$PF.PG=b^2\space and \space PF.PG'=a^2.$$ We know that the equation of the normal at parametric point $P\equiv(a\sec\theta,b\tan\theta)$ is given by  $$a\,x\cos\theta+b\,y\cot\theta=a^2+b^2$$   Equation of the transverse axis is $y=0$ and that of the conjugate axis is $x=0$.   Hence   $$G\equiv(\frac {a^2+b^2}{a}\sec\theta,0), \, G'\equiv(0,\frac {a^2+b^2}{b}\tan\theta)$$  C is the origin and CF is perpendicular to the normal. Hence   $$ CF\equiv b\,x\sec\theta-a\,y\tan\theta=0\implies y=\frac {b\,x\sec\theta}{a \tan\theta}$$   Substituting this in the equation of the normal we get   $$a\,x\cos\theta+b \,\cot\theta\,\frac {b\,x\sec\theta}{a\,\tan\theta}=a^2+b^2\ $$   implies  $$ (a^2 \cos\theta \sin^2\theta+ b^2\cos\theta)x=(a^2+b^2)\sin^2\theta$$  After finding the coordinates of F, the calculation becomes very complicated. So is there an easier way to approach the problem? I would love to see a pure geometric solution to this problem. How do I minimize total cost of separate flights to the same destination plus optionally accommodation? My girlfriend and I are currently living in different countries, and meet occasionally for a few days every month or so. We don't really care all that much where we are going, as long as we don't need a visa (we're both in EU), just so we are at the same place and time for a couple of days.   In short:     I'm flying from airport AAA, she's flying from airport BBB, we need to find an airport XXX (not a euphemism!) which is cheapest to fly to overall.   Bonus task: Flights are first and foremost, and we could live with a somewhat more expensive accommodation as long as we can get in and out easily. Since the accommodation cost is comparable to flight cost for such a short stay, we'd like to have some sort of rough idea what we're going to pay for a certain type of accommodation, for example three-star hotel. If $\lambda_{max} = n$, then $n\times n$ positive, reciprocal matrix A is consistent At the end of . the author states that  Suppose we have $n \times n$ matrix $A$ having only positive elements and satisfying the property $a_{ij}=1/a_{ji}$ (a matrix satisfying this property is called a reciprocal matrix).  If its largest eigenvalue $\lambda_{max}$ is equal to $n$, then the matrix $A$ satisfies the property (consistency property) $a_{ij} a_{jk} = a_{ik}$ where $i,j,k=1,2,...,n$.  I'm not convinced this theorem is true. Could anyone help? Variation on Vandermonde's identity How can you show that $$ \binom{2n}{n}^2 = \sum_{m=0}^{n} \binom{2n}{2m} \binom{2m}m \binom{2n-2m}{n-m} $$?  I was fooling around with random walks, and apparently both expressions are supposed to be the number of unweighted random walks on a 2D square lattice of $2n$ steps that ends at the origin.  Whole thing reminds me of Vandermonde's identity but I can't it. Any hints? Where can I get a clean ISO of a specific build of Windows 10? OpenSSL remains vulnerable after update to 14.04 Is the change in the Lagrangian always a total derivative for symmetry transformations of the action? Let $\Omega\subset\mathbb R^n$ and consider an arbitrary functional $$ S\colon C^k(\Omega)\to\mathbb R $$ that is local, $$ \phi\overset S\mapsto \int_\Omega L(\phi,D\phi,\dots,D^k\phi) $$ for $L$ some $n$-form taking values in the $k$-jet space $J^k\phi$. We may call $S$ the action functional, and $L$ its associated Lagrangian (although we do not assume that $\delta S[\phi]=0$, i.e., we work off-shell).  There are two notions of a symmetry that are typically discussed:   Lagrangian symmetries, that is, transformations of the form $\phi\to\phi'$ that satisfy $$ L-L'=\mathrm d\Theta $$ for some $(n-1)$-form $\Theta$, and where $L'(J^k\phi)=L(J^k\phi')$. Action symmetries, that is, transformations of the form $\phi\to\phi'$ that satisfy $$ S-S'=0 $$ where $S'[\phi]=S[\phi']$.   If we assume that the boundary conditions are such that $\Theta|_{\partial\Omega}=0$, then it is clear that Lagrangian symmetries are also action symmetries.  If we assume that $\Omega$ is "nice-enough" (e.g. star-shaped) then I believe that any action symmetry is also a Lagrangian symmetry, although I would like to have a more precise statement about this fact. In other words, my question is     Are these two notions of symmetry equivalent? Under what conditions?   Moreover, how much can we weaken the assumptions? For example, can we take $\Omega$ to be simply-connected instead of star-shaped? Can we take $\phi$ to only have weak derivatives instead of strong derivatives? How can I check if the editor that is currently being used is Gutenberg in a WordPress plugin?  I need this because Gutenberg lacks post_submitbox_misc_actions, so I need a fallback which will only be used if the current editor is Gutenberg. Mobile phone battery charger I would like to know about the workings of mobile phone battery chargers. I know the basic principle, you take a transformer to bring it down to 9/6/3.7 volts then a bridge rectifier circuit and a capacitor input filter to rectify it into DC. Then you apply it to the battery. But I know this should not be enough, I need at least two things,   Protection against back current flow Switch off power when the battery is fully charged.   Can someone point me to something simple (apart from this ) derivative bounded by a constant multiple of the function $f$ is differentiable on $[a,b]$, $f&#39;(x) \leq A|f(x)|$ where $A$ is a non-negative constant.  If $f(a)=0$ show $f(x)=0, \forall x\in [a,b]$  I imagine the proof uses the Mean Value Theorem but I have not been able to get it to work.  I know $|f(x)|=|f&#39;(c)|(x-a)$ where $c \in [a,x]$, so $|f(x)| \leq A\  |f(c)|(x-a)$ where $c\leq x$ And I guess I could sort of iterate this to keep getting a smaller $c$ but I don't see why it must go all the way to zero. How to make \left, \right pairs of delimiter work over multiple lines? Why is ROC AUC equivalent to the probability that two randomly-selected samples are correctly ranked? I found there are two ways to understand what AUC stands for but I couldn't get why these two interpretations are equivalent mathematically.   In the first interpretation, AUC is the area under the ROC curve. Picking points from 0 to 1 as threshold and calculate sensitivity and specificity accordingly. When we plot them against each other, we get ROC curve.  The second one is that the AUC of a classifier is equal to the probability that the classifier will rank a randomly chosen positive example higher than a randomly chosen negative example, i.e. P(score(x+)>score(x−)).  (from ) How do I delete a Git branch locally and remotely? What is the person called who always thinks negative? E.g.        Mr. X always thinks negative.   Mr. X has negative attitude.      What we can use either? Is there any particular word for this? Why is it “a defeated Napoleon, not “the defeated Napoleon” who rode off the battlefield and into exile? I noticed an infinite article; ‘a’ was used before ‘defeated Napoleon’ in the following sentence of Jeffery Archer’s novel, "Fales Impression" :  “General Sir Harry Wentworth sat at the right hand of the Iron Duke that night, and was commanding his left flank when a defeated Napoleon rode off the battlefield and into exile."  I’m curious to know why it should be “a defeated Napoleon,” not “the defeated Napoleon” or simply “defeated Napoleon.” Isn’t it only one Napoleon who was defeated the battle and exiled (to St. Helena). It looks like as though there were many (defeated) Napoleons who were exiled.  It’s always headache for me to handle articles as we Japanese (I think Chinese too) don’t have article as the basic part of speeches in our language system. I’ve studied it on English grammar text books at school, but have never reached full understanding of the usage of articles, because we don’t have that practice. Is there any special knack to master how to use articles?