I recently p2v'ed my old Computer into a virtual machine. Since it had a dual-boot and I only copied the Windows partition this broke GRUB. I can still boot Windows with Rescatux though. So my question is if I can restore the original Windows Bootloader so I don't have to select "find any operating system" in Rescatux when i boot the VM.
I have 2 hard disks, on first I have installed win xp. I boot into xp and run setup of win7 and installed it on second hard disk. Now the problem is that win7 bootloader is installed on first harddisk, so if I remove the first harddisk, I cannot boot into win7.   How I can move / install bootloader of win7 on second hard disk?
Good Number Theory books to start with? How to set a custom 4x4 projection matrix in Blender i want to write a device driver but not able to find the header file can someone please help me find them?Also if someone can point out some important site links that would be really appreciated Nikon d5100 producing extremely underexposed images Potentiometer for two 12V/1.1A fans in parallel Initializing K-means centers by the means of random subsamples of the dataset? If I have a certain dataset, how smart would it be to initialize cluster centers using means of random samples of that dataset?  For example, suppose I want 5 clusters. I take 5 random samples of say, size=20% of the original dataset. Could I then take the mean of each of these 5 random samples and use those means as my 5 initial cluster centers? I don't know where I read this but I wanted to know what you guys think about the idea.    UPDATE: Please see this thread  for the general discussion about the various initialization methods. Why is the following C# code not allowed:  public abstract class BaseClass {     public abstract int Bar { get;} }  public class ConcreteClass : BaseClass {     public override int Bar     {         get { return 0; }         set {}     } }      CS0546 'ConcreteClass.Bar.set': cannot override because 'BaseClass.Bar' does not have an overridable set accessor An entire function whose real part is bounded must be constant. Greets  This is exercise 15.d chapter 3 of Stein &amp; Shakarchi's "Complex Analysis", they hint: "Use the maximum modulus principle", but I didn't see how to do the exercise with this hint rightaway, instead I knew how to do it with the Casorati-Weiestrass Theorem, here is my answer:  Define $g(z)=f(1/z)$ for $z\neq{0}$,then by the hypothesis we must have that for any $\epsilon&gt;0$ $g(D_{\epsilon&gt;0}(0)-\{0\})$ is not dense in $\mathbb{C}$, then the singularity at $0$ of $g$ is not essential, this implies $f$ must be a polynomial, but if $f$ is a non-constant polynomial, it is easy to see that its real part must be unbounded, so $f$ must be constant.  I would like to know an answer with the the maximum modulus principle.  Thanks Fréchet differentiability from Gâteaux differentiability Let $X$ be a Banach space and $\Omega \subset X$ be open.  The functional $f$ has a Gâteaux derivative $g \in X'$ at $u \in \Omega$ if, $\forall h\in X,$ $$\lim_{t \rightarrow 0}[f(u+th)-f(u)- \langle g,th \rangle]=0$$   How can I prove the following:  If $f$ has a continuous Gâteaux derivative on $\Omega$, then $f \in C^1(\Omega,\mathbb R)$. I want to filter a java.util.Collection based on a predicate. Background process of subshell strange behaviour I wonder why some similar bash commands behave the way they do.  I have a bash script foo:  #!/usr/bin/env bash  while true do     echo "reading"     read data     echo $data     echo "stderr msg" &gt;&amp;2     sleep 1 done   It's an infinite loop which reads one line at a time from stdin and outputs that same line. I also have a bash script bar:  #!/usr/bin/env bash  ./foo &amp;   The following commands were run in bash (v. 4.4.19) in a terminal on Ubuntu 18.04 (let's assume the scripts reside in the working directory):   ./foo &amp;   Stops when it tries to read from stdin, in accordance with . Killed when controlling terminal is killed, as expected.  (./foo &amp;)   Appears to be automagically continuously fed with new input from stdin. Shouldn't it too stop when attempting to read from stdin? Whatever it's getting it doesn't show when echoed, thus I'm guessing it's EOF characters.  Continues running even after the controlling terminal is killed. Looking at the output of ps, the controlling terminal changes from pts/x to ?. How did this happen without the use of either disown or nohup? (However, after killing the originally controlling terminal, it yields a "write error: Input/output error" on every write, which I suppose is because its stdout was tied to the now closed terminal. Correct?)  bash -c "./foo &amp;"  Appears to behave exactly like 2). ./bar  Appears to behave exactly like 2) and 3). Adding bash -c "~/foo" (no &amp;) as a startup application  Behaves similarly to 2), 3) and 4), with the differences:   Its controlling terminal is the desktop ttyx. You can't (can you?) kill its controlling terminal.   None of those differences seem odd to me, just the fact that it's continuously fed with new input.   My guess is that 2) - 5) all use a subshell of sorts whose stdin is redirected to something like /dev/null, though I'm very unsure and seek a more exact answer. When do I pronounce a non-existent “r” between adjacent vowel sounds? If I say two words consecutively, with the first ending in a vowel sound and the second starting with one, when is it correct to include a non-existent r between those two words?  Examples from phrases I've heard:        I saw (r)a movie   They saw (r)us   Law (r)and order   That's the idea, (r)anyway.      I heard the last one in the movie Edge of Tomorrow yesterday.  Is this grammatically correct? If so, is the omission of the r grammatically incorrect? Are there any rules regarding this? What options do I have to replace a failed service panel? What are my options to replace an old service panel?   We had a terminal get burned up in our old 1960s GE (TRX2012S if it matters, it's a split-bus/rule-of-six panel).   The tech who looked at it said the part is no longer available, but that if I could find another old service panel just like it, he could swap in the part. Otherwise, it's going to be $2,000+ to replace it with a modern service panel, which also requires getting up to modern code, which involves a lot of other stuff.   EBay and Google isn't showing any direct replacements (or the flush-mount TRX2012F).    What other options would there be to replace the panel internals?  Are the screw mounting holes compatible with modern GE panel internals? Is the main breaker separable and could that be changed alone?    Enclosure dimensions are about 20.5" x 12". Front panel dimensions are about 22.25" x 14".  UPDATE:    I'm looking at information on replacing the breaker box myself. As the homeowner I wouldn't be required to update anything else to get up to code. Does this sound like a good idea? I've done minor electrical DYI work but nothing this involved.  PICTURES:            More pictures: How to protect website from bulk scraping /downloading? So, through typing several commands I've found that there's not only ls, but l and la too. There doesn't appear to be any man entries on Ubuntu 12.14. They all appear to do similar things with minor differences:  $ ls app        config     CONTRIBUTING.md  doc       Gemfile       Guardfile  LICENSE  MAINTENANCE.md  Procfile  Rakefile   script  tmp     VERSION CHANGELOG  config.ru  db               features  Gemfile.lock  lib        log      PROCESS.md      public    README.md  spec    vendor $ la app      CHANGELOG  config.ru        db   features  Gemfile       .git        Guardfile  LICENSE  MAINTENANCE.md  Procfile  Rakefile   .rspec  .secret     spec  .travis.yml  VERSION .bundle  config     CONTRIBUTING.md  doc  .foreman  Gemfile.lock  .gitignore  lib        log      PROCESS.md      public    README.md  script  .simplecov  tmp   vendor $ l app/       config/    CONTRIBUTING.md  doc/       Gemfile       Guardfile  LICENSE  MAINTENANCE.md  Procfile  Rakefile   script/  tmp/     VERSION CHANGELOG  config.ru  db/              features/  Gemfile.lock  lib/       log/     PROCESS.md      public/   README.md  spec/    vendor/   Just as a bit of trivia, are there more of these and what do they do? Is here any place to find this out? Unfortunately, google searching these commands gets ignored because they're so short. Controlling bandwith while using GPRS on Windows 7 I have an issue with my windows 7 machine using a lot of bandwith while connected to the internet. I'm trying to limit the bandwith by using Opera in Turbo mode, but some other program is sucking down content and emptying my GPRS mobile plan.   Is there some way I can control which applications are allowed to use bandwith while on GPRS? Preferable only Opera should be able to use the network.   Thanks. Search and download audio-only from youtube Is there a way to search and then download from YouTube, with the situation that I only need to download the audio only, not the video. If a Continuous function $f(x)$ satisfies $f(x) = f(2x)$, for all real $x$, then does $f(x)$ necessarily have to be constant function? If so, how do you prove it? If not any counter examples? iOS: Compare two dates How can I control a servo motor with the PWM output of a microcontroller? I wanted to control the direction of servo motor with a switch. I am using an Atmega32.  Outputs are PIND4 and PIND5 and the input is PINA3, but the two servo motors turn only in 1 direction.  #ifndef F_CPU  #define F_CPU 1000000UL   #endif  #include &lt;avr/io.h&gt; #include &lt;util/delay.h&gt; #include &lt;avr/interrupt.h&gt;   int main(void) { DDRD= 0xFF ; DDRA=0x00; PORTA =0x00; // FAST PWM TCCR1A |= 1&lt;&lt;COM1A0 | 1&lt;&lt;COM1A1 | 1&lt;&lt;WGM11 |1&lt;&lt;COM1B0|1&lt;&lt;COM1B1 ; TCCR1B= 1&lt;&lt;WGM12|1&lt;&lt;WGM13 ; ICR1 = 19999 ;  TCCR1B |=1&lt;&lt;CS10 ; while (1) {    if(PORTA==0x08) //if pina3 is 1    {     OCR1A = ICR1 -2000 ;   //turn servo 1     _delay_ms(1000);          OCR1B=ICR1-2000;    //turn servo 2     _delay_ms(1000);     }     if(PORTA==0x00)// if pina3 is 0     {       OCR1A = ICR1 -900 ; //turn servo 1 in the other direction       _delay_ms(1000);               OCR1B=ICR1-900;     //turn servo 2 in the other direction       _delay_ms(1000);      } }       return 0 ;  }