The affected SSD is removed from a laptop with 4 partitions to be used in an external enclosure, one primary partition (C:) cannot be found in Windows, but could be read in Ubuntu. After I was trying to fix it with TestDisk in Windows, now it cannot be found or read in Ubuntu as well. I don't know what I did with TestDisk but the MFT was corrupted per Chkdsk and could not be repaired.  I used active@ partition recovery demo edition and made a raw image of that partition on another HDD. The superscan on the original disk found that C: partition in a bad status with missing $MFT, $MFTMirror and other attributes but the superscan on the raw image found that C: partition in an excellent status with all the files that I can preview in binary form.   The C: drive is about 100G, Im tempted to purchase the full version of active@ partition recovery (btw, if you know a better alternative please let me know) to recover the partition from the raw image , but should I do it in place or on another HDD? And there are several things not that clear to me:   Does what has happened suggest there are physical damages on my original SSD? Should I stop working on it now to prevent further loss? the other three partition, two seem pretty normal, one is called "system reserved". I don't know if MBR should be on this partition  or the corrupted C:? I did managed to write booting information on both this partition and the C: with TestDisk that completely corrupted it. I'm still confused where should the MBR be. If it's on C: can the active@ partition recovery recover it? The active@partition recovery found loads of volumes (can post a screenshot later), except for the good C: that I can recognize and plan to recover, I don't know what to do with the rests. Some are with FAT boot sector which I wonder why, and named "EFIxxxx" , and loads are simply with bad sectors.
I had a Windows 7 installation on my 1TB SSD laptop with 4 primary partitions. I wanted to install Lubuntu Linux but the process failed with an error which kind of said:     cannot write MBR   It gave me an option to put an MBR somewhere else or to boot without MBR. None of these options worked and it became a useless install. After this failed dual boot attempt, Windows would give a BSOD wit Code 007 ending - translated to inaccessible boot device. That is a huge NTFS partition and I don't think I have any other media to back it up before formatting it.  My only option is somehow rebuilding the old MBR. Hence I started creating a whole bunch of live USB boot environments  including Super GRUB Disk and MiniTool Partition Editor Live CD, but none of this could ever help me recover my lost MBR.  Win PE 4.0 reported the partition as bad disc and the latest version did not even have an option for MBR. I managed to create a live USB with Testdisk Running on Ubuntu. Whatever partition was seen as HPFS on quick  search was written in the MBR and after this the disc is totally unreadable. Earlier I could see my data through Linux and now I can see nothing.  Here are my questions:   When some data could be read (but Windows would not boot) the MBR was shown as dynamic MBR. As far as I know dynamic MBR is a Windows concept and my Linux attempt would not have converted it. While installing Linux I tried to delete 2 primary partitions which I found to be not really useful (I backed up their data first). So I am not sure what created the dynamic MBR.  Did my dual install convert those basic MBR to dynamic MBR? How did that happen? Here is a screenshot of my deep search attempt with TestDisk which is still in progress. I can see 4 NTFS partitions and one of these two system partitions should be the original MBR. When I tried to write both these system partitions (after stopping the deep search momentarily) I got an error like "partition not found". The file system utility showed me that there is no backup sector and that may be the reason why it cannot be read.  What other Resorts do I have, other than doing a plain format and then using some recovery tool to recover all my lost data? I am not even sure I will recover the folder names.  What other options should I be trying to restore my old MBR so Windows can boot?      Update  as of last I managed to create a live USB w/ W7  I used AOMEI Partition assistant 6.0 and on deeper  search I can see the 909 gb partition - it wont let me select it for recovery. I am sorry if my earlier Q was not clear. I referred to restoring an MBR from a partition . What happened earlier  - superficial search revealed all old partitions but NOT this one   and the later partitions showed up on Deep search &amp; I can select Other partitions for recovery but for this one. It wont let me select the partition I want  Here are some more screen shots    So in summary all that happened is   4 primary windows 7 partition -->  wanted to install Linux so I deleted 2 non bootable partitions after backing them up  ended up with BSOD ( inaccessible boot device ) and noticed that some windows partitions showed up as Dynamic MBR  (using Live USB Linux,gparted )  Use standard testdisk procedure to write MBR from the superficial NTFS-HDFS partition.  this is where I screwed up . Hindsight I should have really done a deep search and caught the 901gb partition to write MBR. I am not sure if I can undo this action  after this - life gets worse. I am  on a ventilator ! Now C is unreadable by windows and linux both and testdisk cannot list file ( see screenshots ) and I have been using a series of live USB's with some recovery s/w but no luck. ALL I want is to recreate that 901gb partition and the boot partition and put the MBR on the latter so I can get my windows 7 back again
I'm looking for the title of a short story by Ursula Le Guin about a scientist (?) who is given a drug that slows the timescale of his perception enormously, so that he can perceive that an alien (?) forest is actually behaving as a sentient being, reacting to current events, but at an enormously slow (from a normal human point of view) timescale. It might be in , but I don't remember the title (and it doesn't jump out at me from the list of titles) and don't have access to that collection right now. It is not &quot;The Word for World is Forest&quot;, nor &quot;Direction of the Road&quot; (from ), nor &quot;Vaster than Empires and More Slow&quot;, the latter two of which look at similar plant perception/time-scale issues. Update: it turns out that the description was right, but I had most of the details wrong: not Le Guin, not alien, not a scientist ... My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code:  NSString* stringer = [NSString stringWithFormat: @"Test"]; NSLog(@"%@", [stringer class]);   The log says that the class is NSCFString, not NSString. What's going on here? I have read in a book that the limit of the ratio of consequent Fibonacci numbers is the golden ratio. However, it was just mentioned thus not justified. So, my question is how would you derive the following limit: $$\lim_{x\to\infty}{\frac{F_n}{F_{n+1}}}=?$$ Where $F_n$ is the nth Fibonacci number? Speed of light when accelerating I'm studying special relativity and saw the 2 postulates of Einstein. The most remarkable one for me is the universal speed of light. Einstein postulated that the speed of light in vacuum is the same for all inertial observers, regardless of the motion of the source. But what if we are accelerating and we are changing from one inertial frame to another, how will we observe the speed of light? Is it still the same? I suggest it's not? Because I alread saw a small introduction to general relativity where the light will bend in a gravitational field and therefore also when you accelerate. So does the speed of light change because it bends? I know that there is a very similar question, but I'm not interested in highlighting. What I'm looking for is some tool in Linux to edit pdf files. I've tried pdfedit which did the work for me, but if freezes after a few edits. I've tried this tool under Ubuntu 9.10 and under KDE Fedora 14 and the same thing happens. I've tried Okular but the notations are too big to fill out exercises from pdf workbooks.    Is there any tool that suits this job? I don't care whether it is open source or I have to pay a reasonable price for it. How to send mail from the command line? How to send mail from the command line? How do you convert a cake recipe to make brownies? It is known that a superconductor is a material with electrical resistance zero. My question is, it is exactly zero, a theoretical zero, or for practical realistic reasons it is effectively zero? CBC-MAC Padding weaknesses Why does Ubuntu 12.10 not detect my Win7 partition? I'm trying to install Ubuntu 12.10 alongside Windows 7 on my ASUS laptop and I'm new to all of this.   I'm using  the Ubuntu 12.10 64-bit ISO burned onto a CD.  The first time I tried to install it, Ubuntu said it did not detect any other OS, which meant I only had 4 options:   Erase disk and install Ubuntu (I don't want to do this) Encrypt new Ubuntu. Use LVM. Something else.   If I choose the Something else option, it brings me to the partition menu and says that I have 1 disk with free space of 750516Mb (750Gb), but that's not true because I have Windows 7.  I've already read through several questions and people have mentioned that you could only have 4 primary partitions. So I got hold of partition magic and removed my D: and E:, leaving me with primary C: partition and System reserved partition and a lot of unallocated space.  I restarted the laptop several times and booted the CD again and I got exactly the same as I did previously.  How do fix this problem and install Ubuntu alongside Windows 7?  EDIT 1  Here are my results for   sudo fdisk -l; echo; sudo parted -l; echo; mount; echo; df -h   WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x90050371     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   146368214    73080683+   7  HPFS/NTFS/exFAT  Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table? Yes/No?     After selecting YES  Yes/No? yes                                                                Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used. OK/Cancel? url completion in cartoDB info windows I'm using Microsoft Word 2010 and I worked in a word-2003 compatible document (.doc). After hours of working, I selected a half of text and did Ctrl+X to copy it into another document. Surprising, after closing the current document and opening a new one and pressing Ctrl+V, nothing happened. After closing original document, ms word asked me if I want to save the clipboard buffer and I pressed No, as I didn't knew that MS Word has it's own clipboard.  Is there a way to recover that text that was "cutten" from original document and never "pasted" to the new one? The PC was not rebooted so i guess all my temp files are here. I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. What am I missing?  Below is my code   public override void ItemAdding(SPItemEventProperties properties)     base.ItemAdding(properties);     SPSecurity.RunWithElevatedPrivileges(delegate()        {SPWeb web = properties.OpenWeb();         base.ItemAdding(properties);         string name= web.Lists[properties.ListId].Fields["first name"].InternalName;          var list = web.Lists["location names"];    });} We let a>0 and b>0 and  we have $\sum_{n=0}^{\infty}b^n-a^n$. We have to find all values a,b>0 where $\sum_{n=0}^{\infty}b^n-a^n$ is convergent. I think I can use that $$\sum_{n=0}^{\infty} b_n &lt; \infty , \sum_{n=0}^{\infty} a_n &lt; \infty \implies \sum_{n=0}^{\infty} (b_n-a_n) &lt; \infty. $$. And I think $\sum_{n=0}^{\infty}b^n$ and $\sum_{n=0}^{\infty}a^n$ is convergent if a&lt;1 and b&lt;1? It will make sense. But how can I show it? Iterating over Java collections in Scala I'm writing some Scala code which uses the  API. I would like to iterate over the rows contained in the java.util.Iterator that I get from the Sheet class. I would like to use the iterator in a for each style loop, so I have been trying to convert it to a native Scala collection but will no luck.  I have looked at the Scala wrapper classes/traits, but I can not see how to use them correctly. How do I iterate over a Java collection in Scala without using the verbose while(hasNext()) getNext() style of loop?  Here's the code I wrote based on the correct answer:  class IteratorWrapper[A](iter:java.util.Iterator[A]) {     def foreach(f: A =&gt; Unit): Unit = {         while(iter.hasNext){           f(iter.next)         }     } }  object SpreadsheetParser extends Application {     implicit def iteratorToWrapper[T](iter:java.util.Iterator[T]):IteratorWrapper[T] = new IteratorWrapper[T](iter)      override def main(args:Array[String]):Unit =     {         val ios = new FileInputStream("assets/data.xls")         val workbook = new HSSFWorkbook(ios)         var sheet = workbook.getSheetAt(0)         var rows = sheet.rowIterator()          for (val row &lt;- rows){             println(row)         }     } } What is the best algorithm for overriding GetHashCode? In .NET, the  is used in a lot of places throughout the .NET base class libraries. Implementing it properly is especially important to find items quickly in a collection or when determining equality.  Is there a standard algorithm or best practice on how to implement GetHashCode for my custom classes so I don't degrade performance? The determinant of block triangular matrix as product of determinants of diagonal blocks I am given the following partitioned, upper-triangular matrix:  $$ \begin{bmatrix}   A_1 &amp;*  &amp;*  &amp;*  &amp;*  &amp;*  \\    0&amp; A_2 &amp;*  &amp;*  &amp;*  &amp;*  \\    .&amp;  0&amp; A_3 &amp;*  &amp;*  &amp;*  \\    .&amp;  0&amp;  0 &amp;...  &amp;*  &amp;. \\    .&amp;  0&amp;  0&amp;  0&amp; ... &amp;.  \\    0&amp;  .&amp;  ...&amp;  0&amp;0 &amp; A_m \end{bmatrix} $$  where each of the $A_i$ are block-matrices.  I have to prove that the determinant of this general matrix is: $$ \prod_{n=1}^m \det A_i. $$  We already proved in class that it is true for $ m=2 $ and we can use it in our proof.  Thanks for your answers! I know that the harmonic series $$\sum_{k=1}^{\infty}\frac{1}{k}  = \frac{1}{1} + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \frac{1}{5} + \frac{1}{6} + \cdots + \frac{1}{n} + \cdots \tag{I}$$ diverges, but what about the alternating harmonic series   $$\sum_{k=1}^{\infty}\frac{(-1)^{k+1}}{k}  = \frac{1}{1} - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \frac{1}{5} - \frac{1}{6} + \cdots + \frac{(-1)^{n+1}}{n} + \cdots \text{?} \tag{II}$$  Does it converge?   If so, what is its sum? How to change Gnome-Terminal title? How to use the symbol \angle at the section title