I switched over to Ubuntu about a month ago after Windows 7 was corrupted and wouldn't boot anymore. I recently decided to restore Windows 7 so I could play a game on it. Unfortunately I had no restore points so I had to completely reformat the whole thing. Now when I turn on my computer I no longer get the option to boot into Ubuntu or Windows 7, it just boots straight to Windows. When I check the C drive I still have the 20 gigs I set aside for Ubuntu partitioned off. I'm thinking that Windows 7 reformatted the entire hard drive rather than just it's own partition, but I'm asking here to confirm my fears and make sure it isn't a fixable problem. I'd really like to avoid having to reinstall Ubuntu if at all possible.
I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?
How to change default user in WSL Ubuntu bash on Windows 10 I installed the WSL Bash on Windows 10 and set my user to e.g. 'abc' but now I want to change it to something else.  How can I change the user name of the user I'm logged in as?  When I open bash it automatically logs me in with my current user. How to prove that the radial basis function is a kernel? How to prove that the radial basis function $k(x, y) = \exp(-\frac{||x-y||^2)}{2\sigma^2})$ is a kernel? As far as I understand, in order to prove this we have to prove either of the following:   For any set of vectors $x_1, x_2, ..., x_n$ matrix $K(x_1, x_2, ..., x_n)$ = $(k(x_i, x_j))_{n \times n}$ is positive semidefinite. A mapping $\Phi$ can be presented such as $k(x, y)$ = $\langle\Phi(x), \Phi(y)\rangle$.   Any help? Using the uncertainty principle to estimate the ground state energy of hydrogen I have been reading through this  of the ground state energy of hydrogen  and others like it. In this one it says it is using the uncertainty principal but then proceeded to use the following: $$pr=\hbar$$ But why is it not using: $$pr=\frac{\hbar}{2}$$ which is more in line with the uncertainty principle and what comes earlier in the derivation. 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());     } } } This works perfectly:  $ inotifywait --event create ~/foo Setting up watches. Watches established. /home/ron/foo/ CREATE bar   However, this just sits there when directory tun0 is created under /sys/devices/virtual/net.  $ inotifywait --event create /sys/devices/virtual/net Setting up watches. Watches established.   Since those folders are world readable, I'd expect inotifywait to work.  So, what am I doing wrong?  Thanks Inheritance of static members in PHP In PHP, if a static attribute is defined in the parent class, it cannot be overridden in a child class. But I'm wondering if there's any way around this.   I'm trying to write a wrapper for someone else's (somewhat clunky) function. The function in question can be applied to lots of different data types but requires different flags and options for each. But 99% of the time, a default for each type would suffice.  It would be nice if this could be done with inheritance, without having to write new functions each time. For example:  class Foo {     public static $default = 'DEFAULT';      public static function doSomething ($param = FALSE ) {         $param = ($param === FALSE) ? self::$default : $param;         return $param;     } }  class Bar extends Foo {     public static $default = 'NEW DEFAULT FOR CHILD CLASS'; }  echo Foo::doSomething() . "\n";  // echoes 'DEFAULT'  echo Bar::doSomething() . "\n";  // echoes 'DEFAULT' not 'NEW DEFAULT FOR CHILD CLASS'  // because it references $default in the parent class :( Get URL of ASP.Net Page in code-behind Basic question, how do I resume interrupted / failed downloads in Firefox? Sending an HTTP request using QNetworkAccessManager Help Understanding How Long It Will Take To Heat My Wire What does "All things X" mean? \bar vs. \overline - when to use what, semantically? Following the question "" which is simply about the lengths of both, I'd like to know when to use \bar and when to use \overline from a semantically viewpoint.  I always used \bar, because up until now I only had single letter mean values to type. But now I came to a problem where I needed a wider "bar".  Then I just tried  \documentclass{article}  \begin{document}   \[ \bar{a} \overline{a} \]   \[ \bar{abc} \overline{abc} \] \end{document}   where one can see that they also differ in position (\overline is lower), and also in thickness (\overline is thicker).  So, the question here is:  What does \bar represent semantically? And when to choose it over \overline and vice versa? The infinite product of the sines of all positive integers is zero I tried to prove that $\prod\limits_{k = 1}^\infty  {\sin k = 0}$  Define $$P(m)=\prod\limits_{k = 1}^m  {\left|\sin k\right|}$$  then I take the logarithm of both sides $$\log P(m)=\log \prod\limits_{k = 1}^m  {\left|\sin k\right|}$$  which can be written as $$a_m=\log P(m)=\sum\limits_{k = 1}^m  {\log\,\left|\sin k\right|}$$ for any $k\in\mathbb{N}$ we have $0&lt;\left|\sin k\right|&lt;1$, so all terms of the sum above is strictly negative.  I say that the sequence diverges: $\left\{a_m\right\}_{m\in\mathbb{N}}\to\,-\infty$  This is a delicate point on which I have some doubts.  I know that  $$\int\limits_0^\pi  {\log \left|\sin x\right|{\text{ d}}x}  =  - \pi \log 2$$ and that the function $\log \left|\sin x\right|$ is periodic with period $\pi$,  so the integral from 1 to $\infty$ diverges to $- \infty$. Then the series diverges as well for the integral test for convergence.  As $\log P(m)\to\, -\infty$ we can say that $P(m)\to\,0$ as $m\to\,\infty$  Therefore $$\mathop {\lim }\limits_{m \to \infty } \prod\limits_{k = 1}^m {\left| {\sin k} \right| = \mathop {\lim }\limits_{m \to \infty } \prod\limits_{k = 1}^m {\sin k = \prod\limits_{k = 1}^\infty  {\sin k = } 0} }.\quad \blacksquare$$ Do stone quarries respawn in Hearthfire? If development on the Stack Exchange iOS/Android apps has ceased indefinitely, what should we do to their bug reports and feature requests? It's been a while since the Stack&nbsp;Exchange team last had an iOS or Android developer, and the development job on the apps have not had any insights for years.  That, however, doesn't deny the fact that there are still many users to them. As a consequence, people are continuing to submit bug reports and sometimes feature requests about them.  If development on iOS/Android apps has ceased indefinitely, what should we do to their bug reports and feature requests?  Are we going to keep them with the hope that development on apps will resurrect one day, or just ignore them and telling users that development has frozen? I need help with this exercise.  I need to prove $$\int_{0}^{1}x^{-x}\ dx=\sum_{n=1}^{\infty}n^{-n}$$  I think I should use some convergence theorem, but I'm stuck.  Thanks a lot! Relationship between (algebraic) vector bundle and (topological) vector bundle on $\mathbb{RP}^{1}$($\mathbb{P}^{1}$) Does Blender have different languages (language as in speech language as english, not computer language as python)? Sometimes it's more convenient for me to use Blender in another language. Does Blender have different languages (language as in speech language as english, not computer language as python)? How can I get an underbrace and an overbrace to partially overlap in an equation? Sometimes I want to describe portions of an equation using \underbrace and \overbrace in such a way that the portions are not completely distinct, for example:          /-------\ x = A + B + C + D + E     \-------/   \---/      What is the best way to do this? Was Luke aware the Emperor was a Sith Lord? Similar to , I'm asking the more specific question, was Luke aware that the Emperor was a Sith Lord? I don't recall it being mentioned in any of the films.  If yes, at what point does he learn this? If not why did Yoda or Obi-Wan not warn him?  Perhaps he could have avoided being defenseless and struck by Force Lightning if he'd been made aware?