I tried to install a newer version of the python and associate with the /usr/bin folder. Hence, in the configure file of that newer version I modified initialization location from /usr/local to /usr.  When I tried to install python in that manner, the compilation failed during the "sudo make install command" . Now the python executable /usr/bin/python has some issues. When I use python executable it says "ImportError: No module named time". Is there a way to recover the python library?
Yes, I'm a moron, and I tried to manually install a higher point release of python 2.7.16 to /usr/bin/  (i did ./configure --prefix=/usr) on my Ubuntu 16.04 machine. It seems to work fine EXCEPT for packages that depended on python, like apt-listchanges, which fails with messages like ImportError: No module named apt_pkg  there's no make uninstall available, I've tried manually removing files, and still when I try apt --reinstall install python, Nothing gets overwritten and the python executable still gives the new 2.7.16 version...   Any idea how to get the official repository version back??
Grub not showing on startup for Windows 8.1 Ubuntu 13.10 Dual boot Ok, so I'm such a newbie to Ubuntu and I bought a Windows 8 pre-installed laptop last month.  I updated to Windows 8.1 and then I thought about installing Ubuntu as a dual boot so I could mess around and learn more about it.   So I followed a Youtube tutorial (  ) and I got my stuff working fine.   The first few times I booted I got the GRUB menu instead of my default HP Boot OS Manager, and I was able to select my OS.   So I went to sleep and the next day I turned on my computer and the GRUB menu did not show up. I tried several times and it didn't automatically show up.  In order for me to see the GRUB menu I had to turn on my PC and on start had to press ESC to pause startup and press F9 to get boot options. Then from there I had to pick from OS Boot, Ubuntu, Ubuntu (Yes there were two Ubuntus available) and a default EFI file thingy.   When I click the first Ubuntu I get the GRUB Menu (I was too scared to try the second in case I screwed my laptop up) and I can safely load Ubuntu from there and use it (although I do have to increase my brightness every time I load Ubuntu because it somehow reduces my brightness to complete darkness on boot)  So my problem here is why isn't my GRUB showing on boot, after it worked on the first day?   My laptop is a HP TouchSmart j-078CA.  EDIT 1: FYI I just switched to Ubuntu LiveCD to check my Installation and found out that one of my partition is flagged as msftres. Here is a screenshot of my GParted on a LiveCD: What's /System/Volumes/Data? New mac user here (Linux background). I'm running macOS Catalina (Beta5). I've noticed there are 5 volumes in my main disk container. One is mounted at /, that I understand, it's the system, another is /System/Volumes/Data, which I tough it would be the Linux /home, but it's not, so what it it?  Also what are the other two unmounted volumes? One might be the recovery one, but the other? Thanks! Index entries duplicated for captions In document class book, and package caption, creating index with makeidx. Index entries for the main text and for footnotes collate properly; but those for captions create their own entries.  Example: for the tag \index{New York!Custom House!\textit{Cartouche}}, text and footnotes collate properly; but used in a caption, a new entry is created at the third level, and is also out-of-alphabetic-sequence. Note: the top level, and first sub are correct; only the second sub is duplicated.  How to get the caption index entries under the same entry? Why does Ubuntu 14.04 LTS use a non-LTS kernel version? Relativistic speed/energy relation. Is this correct? Proving that $\lim\limits_{x \to 0}\frac{e^x-1}{x} = 1$ I was messing around with the definition of the derivative, trying to work out the formulas for the common functions using limits. I hit a roadblock, however, while trying to find the derivative of $e^x$. The process went something like this:  $$\begin{align} (e^x)' &amp;= \lim_{h \to 0} \frac{e^{x+h}-e^x}{h} \\ &amp;= \lim_{h \to 0} \frac{e^xe^h-e^x}{h} \\ &amp;= \lim_{h \to 0} e^x\frac{e^{h}-1}{h} \\ &amp;= e^x \lim_{h \to 0}\frac{e^h-1}{h} \end{align} $$  I can show that $\lim_{h\to 0} \frac{e^h-1}{h} = 1$ using L'Hôpital's, but it kind of defeats the purpose of working out the derivative, so I want to prove it in some other way. I've been trying, but I can't work anything out. Could someone give a hint? Apex REST API - Unable to set StatusCode to 429 I am trying to set the status code to 429 for Too many request using the code below:  if(Limits.getQueries() &lt; Limits.getLimitQueries()){               upsert UpdateData;               }               else if((Limits.getQueries() &gt;= Limits.getLimitQueries()))               {                   RestContext.response.statusCode = 429;                   UpdateError[] err = new UpdateError[]{                    new UpdateReturnError(UpdateData.Id, 'Too many Requests', 'Error updating MessageID ' + msg.MessageId)                 };                 RestContext.response.responseBody = Blob.valueOf(JSON.serialize(err));                 RestContext.response.addHeader('Content-Type', 'application/json');                 break;               }             }   I am getting the following error in the raw response:    Can someone help me out with this? I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e.  MyClass *m = (MyClass *)ptr;   all over the place, but there seem to be two other types of casts, and I don't know the difference. What's the difference between the following lines of code?  MyClass *m = (MyClass *)ptr; MyClass *m = static_cast&lt;MyClass *&gt;(ptr); MyClass *m = dynamic_cast&lt;MyClass *&gt;(ptr); Word for a person with a negative attitude Let's fix some terminology first. A category $\mathcal{C}$ is preabelian if:  1) $Hom_{\mathcal{C}}(A,B)$ is an abelian group for every $A,B$ such that composition is biadditive,  2) $\mathcal{C}$ has a zero object,  3) $\mathcal{C}$ has binary products,  4) $\mathcal{C}$ has kernels and cokernels.  A category $\mathcal{C}$ is abelian if it is preabelian and satisfies:  5) every monomorphism is a kernel and every epimorphism is a cokernel.  Define the coimage of a map to be the cokernel of its kernel, and the image to be the kernel of its cokernel. We have the following commutative diagram:    where $\overline{f}$ is the only existing map (because of universality of kernel and cokernel).  I'm having trouble proving the following:     A preabelian category $\mathcal{C}$ is abelian iff $\overline{f}$ is an isomorphism.   The converse is easily shown, I'm having trouble proving $\Rightarrow$... Make a momentary switch control a toggle What are the simplest, cheapest, smallest ways to make a momentary switch produce a 2-state toggling output (latching momentary switch)?  In other words, the output is continuously low, and when you momentarily press the button/tact switch, the output changes to continuously high, and then when you press it again, it switches back to low. In &quot;Introduction to Mathematical logic&quot; by Elliot Mendelson , page $59$ . I couldn't understand the basic preliminary notations for the rigorous definition of Satisfiability. For example , at a line they said, &quot;Moreover, instead of talking about the $n$-tuples of objects that satisfy a wf that has $n$ free variables, it is much more convenient from a technical standpoint to deal uniformly with denumerable sequences. What we have in mind is that a denumerable sequence $s = (s_1, s_2 , s_3 , ... )$ is to be thought of as satisfying a wf $\beta$ that has ${x_j}_1 , {x_j}_2 ,  ... , {x_j}_n$ as free variables (where $j_1 &lt; j_2 &lt; ... &lt; j_n$ ) if the $n$-tuple $\langle {s_j}_1 , {s_j}_2 ,  ... , {s_j}_n \rangle$ satisfies $\mathscr B$ in the usual sense.&quot; I didn't quite understand why they used ${s_j}_1$ and ${x_j}_1$ instead of $s_1$ and $x_1$ . Maybe there is a critical detail I am missing out? Also , Another passage for the rigorous definition: &quot;Let $M$ be an interpretation of a language $\mathscr L$ and let $D$ be the domain of $M$. Let $\sum$ be the set of all denumerable sequences of elements of $D$. For a wf $\mathscr B$ of $\mathscr L$ , we shall define what it means for a sequences $s= (s_1, s_2, ... )$ in $\mathscr L$ to satisfy $\mathscr B$ in $M$. As a preliminary step, for a given s in $\sum$ we shall define a functions $s^*$ that assigns to each term $t$ of $\mathscr L$ an element $s^{*}(t)$ in $D$.&quot; They did say that for each $s = (s_1, s_2, ... )$ , there is a defined function $s^*$ , but even after further reading the text afterwards , I still did not understand how exactly $s^*$ is defined from $s$ . Can someone tell me where the gap in my understanding here is? $(\mathbb{R}^n,\|\cdot\|_{p})$ is isometrically isomorphic to $(\mathbb{R}^n,\|\cdot\|_{q})$ iff $p=q,$ How are large amounts of money expected to be made during the early parts of the Waterdeep: Dragon Heist adventure? I've read that it is possible to add a method to an existing object (i.e., not in the class definition) in Python.   I understand that it's not always good to do so. But how might one do this? Looking for a 1000 most frequent english words Is there a free list of 1000 most frequent words used in everyday English? If there is a list with usage examples (as each of those words has multiple meanings for sure, not to cound phrasal verbs), it would be even greater.  Is there something alike, but with phrases? (E.g. 1000 most frequent phrases) Good GameBoy Advance Emulator? Is there any good GameBoy Advance Emulator for ubuntu which supports loading gameshark or action replay saves? How long will it take for Google's disavow tool to work? I had updated the disavow list on March 18th  with spammy domains which were linked to my site. Those links still show up in Google Search Console.  I Wanna know how long does it need to take effect? Travelling by bus What's the best option to display Unicode text (hebrew, etc.) in VB6 I have some customers who want to use our speech therapy software in Hebrew.  The programs are in VB6. The best option I'm aware of are:   use the Forms 2.0 controls from MS Office, but you can't distribute them.    $899   $499   Any other options?