I've removed Ubuntu on my laptop as i need the HDD space, and I'm instead putting Ubuntu on my desktop, I removed GRUB not realising it would take me to grub rescue. I've managed to get onto windows 7 using SuperGrub 2, but now I can't fix the windows boot, and it just keeps booting into Grub Rescue, How can i fix my MBR for windows 7 so i don't have to keep going through SuperGrub 2? I'm pretty new, so don't get all technical.. Thanks for any help in advance
I have been playing with Ubuntu for a few weeks now, and I'd like to revert my computer back to it's original - factory - defaults.   On the computer I have a recovery partition (it's a netbook). I went through the process of recovery and everything seemed fine. However, when I restart the computer I'm presented with   grub rescue &gt;   Now, my understanding is that when I installed Ubuntu "side by side" it replaced the MBR or something like it, with GRUB.   I've read on a slew of forums, that I need to use a Windows Recovery Disk.   Here are my issues:   a) I don't have a recovery disk, I have a recovery partition - it's a netbook. b) I don't have an external cd drive.   What I do have is a USB key that has about 1gb of space on it.   Thanks in advance.
Let $f$ be differentiable at $x=a$.   Prove that if $x_n \to a^+$ and $y_n \to a^-$ then:  $$\lim_{n\to \infty} \frac{f(x_n)-f(y_n)}{x_n-y_n}=f'(a).$$  Every option that I think about seems to my very trivial, so I believe that I am doing something wrong.  Both numerator and denominator approach zero as $n\to\infty$ as the case of the formal definition of derivative, but it isn't guaranteed that the limits are equal (“$\frac{0}{0}$”).   Any direction? I want to calculate the posterior distribution given a gamma-prior and a poisson likelihood. The task is from a textbook and I just have the solutions (without a walkthrough). Please find all given information in the following:  Given information:  $m$ countries each with a population of $n_i$; $y_i$ is the number of people having a disease; $y_i$ is a poisson random variable with mean $\frac{n_i*\lambda}{100}$  The prior distribution for $\lambda$: $\lambda \sim Gamma(a_0,b_0)$  Task:  Show that the posterior distribution is also a gamma distribution with $a_m = a_0 + \sum_{i = 1}^{m}y_i$ and $b_m = b_0 + \sum_{i = 1}^{m} \frac{n_i}{100}$  My solution:  $Posterior \propto Likelihood \times Prior$  $p(\theta|y) \propto \prod_{i=1}^{m}(\theta^{y_i}e^{-\theta})\times \theta^{a_0-1}e^{-b_0\theta}$  $p(\theta|y) \propto \theta^{\sum_{i = 1}^{m}y_i}e^{-m\theta}\times \theta^{a_0-1}e^{-b_0\theta}$  $p(\theta|y) \propto \theta^{\sum_{i = 1}^{m}y_i+a_0-1}e^{-\theta(m+b_0)}$  $a_m = a_0 + \sum_{i = 1}^{m}y_i$  $b_m = b_0 + m \neq b_0 + \sum_{i = 1}^{m} \frac{n_i}{100}$  I think I am doing a mistake, because I don't know how to incorporate the information that the mean of $y_i$ is given as $\frac{n_i*\lambda}{100}$. Or do I just have to transform $b_m$ somehow? Can someone may give me a hint?   Thank you already in advance!  Edit 1: Considering first advices  $Likelihood: p(y | \theta) \propto \prod_{i=1}^{m}(\frac{n_i\lambda}{100})^{y_i}e^{-\frac{n_i\lambda}{100}}$  $\propto \prod_{i = 1}^{m} ((\frac{n_i}{100})^{y_i})\lambda^{\sum_{i=1}^{m}y_i}e^{-\lambda\sum_{i=1}^{m}\frac{n_i}{100}}$  $\propto \lambda^{\sum_{i=1}^{m}y_i}e^{-\lambda\sum_{i=1}^{m}\frac{n_i}{100}}$  Is the transformation of $\prod_{i=1}^{m}$ I did from the first to the second step correct? Duplicate questions that use different words to describe the same problem are important for people to find the content via search engines. But the user experience when an anonymous user arrives at a duplicate is less than ideal.  They have to notice the duplicate link and understand that the answer they are looking for is likely behind that link. I don't think this is all that obvious to someone without experience with an SE site.  I propose to just redirect users to the duplicate automatically if the closed duplicate has zero answers. In that case they need to follow the link to the duplicate in any case, so we might as well redirect them to it in the first place.  I could imagine this being problematic with search engines, as we would be displaying different content than what the search engines see. If that is too problematic I would suggest to show a very obvious link to the duplicate in the answers section for anonymous users. What is the best way to "carve" a terrain created from a heightmap? How do I give text or an image a transparent background using CSS? Prevent execution of parent event handler Where can I find delay/cancelation statistics for a given airline route? My flight got canceled yesterday and I am currently waiting for the delayed next flight.   Is there any website that keeps records of airlines being delayed/canceled? I would like to know my chances. I did find some sites through google (flightaware, flightstats), but they focus on us flights only and I am currently in the azores. Ambiguity of the word 'any'? How to delete empty folder with thumbs.db without disabling thumbnails I often have problem to delete a folder that contains a thumbs.db file. Also tools like  fail. It seems to be loccked by os for some unknown reason. The only solution i found in the net was to disabling thumbnails in windows but this is a bad workaround isn't it?  Is there a "normal"(or official, supported by MS) way to delete an empty folder that only contains a thumbs.db? less --quit-if-one-screen without --no-init I'm on a terminal that supports the alternate screen which is used by less, vim, etc. to restore the previous display after exiting. That's a nice feature, but it really breaks the --quit-if-one-screen switch of less since in that case less switches to the alternate screen, displays its data, figures out there is only one screen, and exits, taking the contents of the alternate screen with it.  The commonly suggested workaround is using the --no-init switch to avoid using the alternate screen altogether. However, this is somewhat ugly because I do want to use it in case less actually acts as a pager. Therefore I'm looking for a solution to use the alternate screen only if less doesn't terminate automatically.  I'll mostly use this as Git's pager, so a wrapper shell script that only runs less in case there is enough output would be fine, too. At least if there's no way to do it without one. Recovering user files with a Live CD Generate random numbers uniformly over an entire range Proof that $\mathrm{ker}(f^*) = \mathrm{im}(f)^{\perp} $ Where $ f: V \rightarrow V  $ is a linear operator on an inner product space $V$, I'm trying to show that $$ \mathrm{ker}(f^*) = \mathrm{im}(f)^{\perp} $$  i.e. the Kernel of the adjoint is equal to the orthogonal complement of the image of f.  I taking the inner product of $f(v)$, where $v \in V$  and an arbitary element of the kernel, $k \in \mathrm{ker}(f^*) $  $$\langle f(v), k\rangle = \langle v, f^*(k)\rangle = \langle v, 0\rangle = 0$$  And then taking the inner product of $f(v)$ with $w$, where $w \in  \mathrm{im}(f)^{\perp}$  By definition  of the orthogonal complement to the image of f,   $$ \langle f(v), w\rangle = 0 $$  My question is, now that we have   $$ \langle f(v), k\rangle = \langle f(v), w\rangle = 0 $$  What can we conclude? I would like to conclude that because $w$ and $k$ are arbitary elements of their respective subspaces, that these must be equal, i.e. $ \mathrm{ker}(f^*) = \mathrm{im}(f)^{\perp} $  However, I am not sure this is mathematically sound, is that conclusion valid or are there any technical barriers or additional statements that would have to be made to make that watertight? Reflection of sound waves from the open end of an organ pipe & relationship b/w nodes & pressure We know that standing waves are created when any wave traveling along the medium will reflect back when they reach the end. But in an open organ pipe, there is nothing to oppose the wave and reflect it back. So then how are standing waves created in such a case? In standing waves where is the pressure greater, at nodes or anti-nodes? script custom previews in a menu I want to know how to create a menu with previews for an add-on. Until now I know that this is related with the bpy.utils.preview. I'm making an add-on that appends objects from a .blend file, I know how to append objects but what I want to do is to create a menu with previews of the objects /(similar to the matcaps menu - see below), select them and then press an &quot;import button&quot; to append the object. Here's some documentation about the module:    Also, as this is an add-on I don't know if I should have a def register() and a def unregister() inside this .py file as well as in the __init__.py file. If I am talking to somebody about a certain group of people in the third person, and then want to refer to the person I am talking with as one of those people, which do I say?     One of them were you      One of them was you. Consider this example (typical in OOP books):    I have an Animal class, where each Animal can have many friends. And subclasses like Dog, Duck, Mouse etc which add specific behavior like bark(), quack() etc.  Here's the Animal class:  public class Animal {     private Map&lt;String,Animal&gt; friends = new HashMap&lt;&gt;();      public void addFriend(String name, Animal animal){         friends.put(name,animal);     }      public Animal callFriend(String name){         return friends.get(name);     } }   And here's some code snippet with lots of typecasting:  Mouse jerry = new Mouse(); jerry.addFriend("spike", new Dog()); jerry.addFriend("quacker", new Duck());  ((Dog) jerry.callFriend("spike")).bark(); ((Duck) jerry.callFriend("quacker")).quack();   Is there any way I can use generics for the return type to get rid of the typecasting, so that I can say      jerry.callFriend("spike").bark(); jerry.callFriend("quacker").quack();   Here's some initial code with return type conveyed to the method as a parameter that's never used.   public&lt;T extends Animal&gt; T callFriend(String name, T unusedTypeObj){     return (T)friends.get(name);         }   Is there a way to figure out the return type at runtime without the extra parameter using instanceof? Or at least by passing a class of the type instead of a dummy instance. I understand generics are for compile time type-checking, but is there a workaround for this? $\int_{0}^{\infty} \frac{\cos x - e^{-x}}{x} \mathrm dx$ Evaluate Integral Evaluate $$\int_{0}^{\infty} \frac{\cos x - e^{-x}}{x} \ dx$$ When do I use "can" or "could"? When should I use can? When should I use could? What is right under what context? I have recently been reading about Quantum Electrodynamics which I found very interesting, but even more confusing.  I understand photons mediate the electromagnetic force and interactions between charges can be described by virtual photon exchange. And that in Quantum Mechanics particles paths can be evaluated by sum over all paths...  An electron travelling from one point to another will take all paths, emitting and reabsorbing virtual photons. Does the electrons take all paths including those that involve faster than light velocities?  Is this question null, Does it mean anything to ask about properties of virtual particles?  Do I have the wrong idea about what virtual particles are?