probability of X+Y which are two independent random variable & uniform distribution[0,1]
Sum of two uniform random variables
About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 &amp; Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk. How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001). Here comes Bob.  Bob is coming here.  Would anyone please explain what is  the difference between these? Why doesn't the command "ls | file" work? I've been studying about the command line and learned that | (pipeline) is meant to redirect the output from a command to the input of another one. So why does the command ls | file doesn't work?  file input is one of more filenames, like file filename1 filename2  ls output is a list of directories and files on a folder, so I thought ls | file was supposed to show the file type of every file on a folder.  When I use it however, the output is:      Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]         [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...     file -C [-m magicfiles]     file [--help]   As there was some error with the usage of the file command I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth?  \begin{equation} y = \underbrace{ \left [ x^2 + r^2 (a^2+\frac{a^{0.3}}{b}) \right]}_\text{growth rate} \times  \underbrace{ C_0}_\text{initial} \end{equation} Academic papers using Stack Exchange data Why is it true that $\mathrm{adj}(A)A = \det(A) \cdot I$? How to duplicate a div in JavaScript Is there a word for capitalizing in the middle of a word, as in "eBay"? Usually this sort of word is a trademarked name, such as eBay or BlackBerry.  Is there a word that describes capitalization mid-word? How to ask questions in a way that avoids answers that question/patronize the approach rather than address the question? Sometimes I or others ask a question which causes the reader to think why would he want to do that?. There are reasons and the question is usually legitimate. I and others often seem to get a lot of comments (which I don’t mind), and comments posted as answers (which I do mind), which do not even attempt to address the question and instead question the approach and provide zero insight on the actual question.  I am talking about the kind of question where the question is usually a few sentences, but a solid explanation of why the approach that leads to the question is chosen takes almost a full page of writing, and is irrelevant to the question itself. The issue seems to be well understood and there are various related questions on Meta, such as:        My question is not why this happens. My question is how can I formulate a question in such a way that this happens less.  To be clear, I am asking What can a question do to avoid getting answers that do not address the question?, in the context of well-meaning answerers who try to see an underlying cause.  Two questions with different approaches which should show what I mean:    (note that the question is off-topic but it still serves to illustrate the type of questions and answers I mean) In the following snippet:  public class a {     public void otherMethod(){}     public void doStuff(String str, InnerClass b){}     public void method(a){         doStuff("asd",             new InnerClass(){                 public void innerMethod(){                     otherMethod();                 }             }         );     } }   Is there a keyword to refer to the outer class from the inner class?  Basically what I want to do is outer.otherMethod(), or something of the like, but can't seem to find anything. Help with footer always to bottom I am looking for a list of all English words that are their own antonyms. Off the top of my head, I can only think of "either", "fast", "to dust" and "to lease", but there must be dozens more. Can you provide a link to a comprehensive list, if such exists?  Also, what are such words most commonly called? I like the term "Janus word" I once heard, but is that widely understood?  Edited by popular demand to make it absolutely clear that this is not a community wiki poll. Alert on edit after a downvote How to stop Time Warner cable search on Firefox for Android? I went into about:config and have the following:  browser.search.defaultenginename Google  browser.search.official true  browser.search.order.1 Google  keyword.URL https://www.google.com/search?p=   And still, when I type in the search bar, it pulls up Time Warner Cable Road Runner search instead of Google. It looks like only if I have more than 1 word does it decide to use google -- maybe using only 1 word means I type a malformed URL? How can I fix this to use Google as a proper search engine? Create line graph with ggplot2, using time periods as x-variable In the  library, they are overloading the () operator.  Is this a convention in C++? For callbacks, etc.?  I have seen this in code of a co-worker (who happens to be a big Boost fan). Of all the Boost goodness out there, this has only led to confusion for me.  Any insight as to the reason for this overload? What's the difference between $(stuff) and `stuff`? I am trying get an unused server up and running, it booted fine but i was greeted with the login window and none of the known passwords seem to work. The server I am trying to get to work is not a Domain Controller and has not been used in a long time.  OS: Windows 2003 Server R2 Enterprise Edition  I tried Ophcrack XP (there is no WinServer version of Ophcrack) - it couldn't locate the partitions with hashes. I tried mounting the partitions myself (#mount /dev/hda*x* /mnt/ntfs), but it gave me an error saying /dev/hda*x* didn't exist.  Next I tried booting into a Ubuntu 10.04.3 LiveCD so that I could install and use chntpw - no go, Ubuntu Live wouldn't boot.  Based on what I've read up the following tools may be of help:   Windows Password recovery Petter Nordahl-Hagen's Offline NT Password &amp; Registry Editor Openwall's John the Ripper EBCD – Emergency Boot CD - Bootable CD (R)ecovery (I)s (P)ossible Linux rescue system   I am hoping that someone here has prior experience with Win2k3 Administrator password resets so that I don't end up having to try all of the above to find out which one works. I have a front end module that generates an (ECG) signal that varies from +/-2.5 V. I want to shift this signal to 0 - 5V. What is the best way to do this? Would a summing amplifier like the below circuit good enough? With R1 = R2 and V1 = 2.5V, V2 = my signal, V3 = V4 = GND