When I'm trying to update ubuntu 19.10 to 20.04 I get an error
How to install software or upgrade from an old unsupported release?
I just came across this idiom in some open-source Python, and I choked on my drink.  Rather than:  if isUp:     return "Up" else:     return "Down"   or even:  return "Up" if isUp else "Down"   the code read:  return isUp and "Up" or "Down"   I can see this is the same result, but is this a typical idiom in Python? If so, is it some performance hack that runs fast? Or is it just a once-off that needs a code review? If $f:\mathbb{R}\rightarrow \mathbb{R}$ is differentiable and $\lim_{x\to \infty } f^\prime(x)=0$ show that $\lim _{x\to \infty } (f(x+1)-f(x))=0$. Having some trouble proving this:     If $f:\mathbb{R}\rightarrow \mathbb{R}$ is differentiable and $\lim_{x\to \infty } f^\prime(x)=0$ show: $\lim _{x\to \infty } (f(x+1)-f(x))=0$   Attempt: from $\int \lim _{x\rightarrow \infty } f^\prime(x) \mathrm{d}x=0$ we can say that $f^\prime(x)=const$ would we then have to show that  $\lim _{x\to \infty } (f(x+1))$ is also a constant? From there if we show that both are equal then the difference is zero. I am on the right track?  Thank you for the help. Why cannot a set be its own element? If I calculate the median of a sufficiently large number of observations drawn from the same distribution, does the central limit theorem state that the distribution of medians will approximate a normal distribution? My understanding is that this is true with the means of a large number of samples, but is it also true with medians?  If not, what is the underlying distribution of sample medians? Partial Sums of Geometric Series This may be a simple question, but I was slightly confused.  I was looking at the second line $S_n(x)=1-x^{n+1}/(1-x)$.  I was confused how they derived this.  I know the infinite sum of a geometric series is $1/(1-x)$.  I just can't figure out how the partial sums, $S_n(x)$, have $1-x^{n+1}$ on the numerator.  How was this derived?  Thank you.     Example 5.20.   The geometric series   $$     \sum_{n=0}^\infty x^n   = 1 + x + x^2 + x^3 + \dotsb $$   has partial sums   $$     S_n(x)   = \sum_{k=0}^n x^k   = \frac{1 - x^{n+1}}{1 - x} \cdotp $$   Thus, $S_n(x) \to 1/(1-x)$ as $n \to \infty$ if $|x| &lt; 1$ and diverges if $|x| \geq 1$, meaning that   $$     \sum_{n=0}^\infty x^n   = \frac{1}{1-x}   \qquad   \text{pointwise on $(-1,1)$}. $$   (Original image .) Is binary logistic regression a special case of multinomial logistic regression when the outcome has 2 levels? Updating global js variable within function and sending updated to HTML document Moderator flag notifications should reach mobile I spend a great deal of time surfing SE sites from my phone during commutes and other down times. The global inbox is quite effective at reaching me even for chat pings. Quite frankly the mobile site is very well done!  However as a community moderator, there is a whole class of information not getting through. There are no notifications for moderator flags! I can switch to the full site and see these but that is inconvenient for browsing, so I only end up checking for flags periodically.  Ideally the moderator tools should all be available in mobile templates, but as a stand-by it's reasonable to switch to the full view to handle flags, but flags would get addressed in a much more timely manner if I knew about them. As it stands I often come and go from the site without even knowing there are outstanding flags.  A simple flag counter added to the header next to the notification counter and linked to the tools page (which automatically opens the full version anyway right now) would fix this. How does Linux handle multiple consecutive path separators (/home////username///file)? Can I "fill" an empty object? I am trying to execute a web service call to our backend system when the opportunity is closed/won. I am attempting to do a  POST to our endpoint. All the api call is really carrying the account name and a few structural detail back (All listed below). My problem is that when the trigger executes I get the following error in the debug logs "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out".  The Process Builder Passing in the company name:   APEX Class  public class Play2 { @TestVisible static HttpResponse res;  @InvocableMethod public static void sendNotification(List&lt;String&gt; name) {        HttpRequest req = new HttpRequest();     Http http = new Http();     String payload = JSON.serialize(         new Map&lt;String, String&gt; {             'companyName' =&gt; name.get(0),             'salesforceAccountType' =&gt; 'Company',             'salesforceSynchStatus' =&gt; 'Enabled'         }     );      req.setEndpoint('https://TheEndPoint');     req.setMethod('POST');     req.setHeader('Authorization', 'The Mighty API KEY');     req.setHeader('Content-Type', 'application/json');      req.setBody( payload );     req.setCompressed(true);       try {         System.debug('Point 1');         res = http.send(req);         System.debug('Point 2');     } catch(System.CalloutException e) {         System.debug('Callout error: '+ e);         System.debug(res.toString());     } } } Enabling Nvidia driver messes up splash screen When you boot from live CD, or doing the first boot after installing Ubuntu, splash screen looks awesome. But as soon as you enable nvidia-current driver, installed with apt-get, splash screen goes all crazy.  With crazy I mean that resolution is very low, font(I assume) is very weird and it all looks like it's been broken.  This happened with 10.04 and now again with 10.10.  How do I fix splash screen after enabling nvidia drivers? What is a lambda (function)? For a person without a comp-sci background, what is a lambda in the world of Computer Science? How do we remove an ex-girlfriend from a car loan? When deriving the quadratic equation as shown in the  () the main proof contains the step: $$ \left(x+{\frac {b}{2a}}\right)^{2}={\frac {b^{2}-4ac}{4a^{2}}} $$ the square root is taken from both sides, so why is  $$\sqrt{4a^2} = 2a$$  in the denominator and not $$ \sqrt{4a^2} = 2\left |a  \right | $$ Could somebody explain this to me? Thank you very much Do objects rotate around the torque vector or its center? If a sphere has a torque vector coming out of it at point A, would the sphere rotate about its center or the axis of the torque vector? "Your Sites" in Android left sidebar shown in unpredictable order In the Android app, left sidebar, there is an editable list of "Your Sites". In the editing pane, the sites are re-orderable (although awkwardly), and the order one places the sites in there is preserved, even after quitting the app and returning to this pane. One expects that order to be reflected in the "Your Sites" portion of the left sidebar when the editing pane is closed, but it is not.  I'm not sure what is determining the order of the sites in the left sidebar, it doesn't seem to be by date they were "pinned" into the list one wants to show, either. Let $a,b,c\in\mathbb{R}$ such that $\sqrt{a^2+b^2}=1&lt;c$.  Find $I:=\int_{0}^{2\pi} \frac{1}{a\cos(t)+b\sin(t)+c}dt$.  So, I set $z=e^{it}$ and then $dz=ie^{it}dt$ and so $\frac{dz}{iz}=dt$. Therefore,  $\begin{align*} I &amp; =\frac{1}{i}\int_{|z|=1} \frac{dz/z}{a\cdot\frac{z+z^{-1}}{2}+b\cdot\frac{z-z^{-1}}{2i}+c} \newline &amp;=\frac{2}{i}\int_{|z|=1} \frac{dz}{a\cdot(z^2+1)-ib\cdot(z^2-1)+2cz} \newline &amp;=\frac{2}{i}\int_{|z|=1} \frac{dz}{(a-ib)z^2+2cz+a+ib}\newline &amp;= \frac{2}{i}\int_{|z|=1} \frac{dz}{(z-z_+)(z-z_-)}\end{align*}$  Where $z_{\pm}=\frac{-2c\ \pm\ \sqrt{4c^2-4(a+ib)(a-ib)}}{2(a-ib)}=\frac{-c\ \pm\ \sqrt{c^2-(a^2+b^2)}}{(a-ib)}=\frac{-c\ \pm\ \sqrt{c^2-1}}{(a-ib)}$.  Therefore, if we define $f(z)=\frac{1}{z-z_-}$, we get that $f$ is analytic in $\{z:|z|\leq 1\}$ since  $$|z_-|=\Bigg|\frac{-c-\sqrt{c^2-1}}{a-ib}\Bigg|=\bigg|c+\sqrt{c^2-1}\bigg|&gt;|c|&gt;1$$  Finally from Cauchy's Integral Formula:  $$I=\frac{2}{i}\cdot 2\pi i\cdot f(z_+)=4\pi \frac{1}{z_+-z_-}=\frac{2\pi(a-ib)}{\sqrt{c^2-1}}$$ Which is not always real... So my question is what is the problem.  Moreover, sometimes it is correct, e.g. $a=1,b=0,c=2$ gives the correct answer $\frac{2\pi}{\sqrt{3}}$. pure code formatting, to enhance a question, is impossible (without 2k rep) Strange nonexistent link in a specific user's Top Network Posts I discovered a strange, blank link in 's Top Network Posts:        The above link and screenshot are of the user's Unix &amp; Linux site profile, but this issue can be reproduced on any of the user's site profiles other than Meta Stack Exchange (as the blank post appears to be on this site, and posts from the same site are excluded).  The link seems to go to , which features a really negative question ID (close to the lowest value that can be represented by a 32-bit signed integer, specifically -(2^31) + 1005), and lacks the title in the URL that is present in all of the other links. It leads to a 404 error.  Going to the  seems to go to an actual answer on a question migrated to this site, which happens to have a score of 13 (as of the time this was asked).  Why is the question ID incorrect here? Based on the duplicates, it seems that this affects posts (both questions and answers) that were migrated from other sites: somehow, the question ID seems to be getting messed up.  Update: It looks like the above linked user has deleted their account on this site, so the issue cannot be reproduced on the profile I originally reported. It can, however, be reproduced on . The errant link in that profile is , and the errant question ID seems to also be close to the lowest possible 32-bit signed integer, -(2^31) + 3412.