Background  About a year ago I bought a desktop computer with Windows 7 pre-installed. Shortly after I burned the Ubuntu16.04 OS on a flash drive, and partitioned my hard drive to give Ubuntu almost the entire size, but still dual boot with Windows. I'm now wanting to re-partition my hard drive so my Windows 7 partition and Ubuntu partition are equal in size.  Hard Drive  I have included a picture of my hard drive partitions here.    1) System Re Partition 1   size:  105MB  device: /dev/sda1  Partition Type: HPFS/NTFS (Bootable)  Contents: NTFS-Not Mounted  2) Filesystem Partition 2   size:  49GB  device: /dev/sda2  Partition Type: HPFS/NTFS   Contents: NTFS-Not Mounted  3) Extended Partition 3  size:  431GB  device: /dev/sda3  Partition Type: Extended  Contents: Extended Partition  4) Filesystem Partition 5   size:  414GB - 366 GB free (11.7% full)  device: /dev/sda5  Partition Type: Linux  Contents: Ext4(version1.0) - Moounted at Filesystem Root  5) Swap Partition 6   size:  17 GB  device: /dev/sda6  Partition Type: Linux Swap  Contents: Swap (version 1) - Active  Question  1) Assuming my windows OS is on Partition 2, should I take memory from Partition 5?  2) What is the Extended Partition used for? It appears to just be the sum of Partition 5 (Ubuntu) and 6 (Swap)   UPDATE On boot, I've noticed that my windows OS is on /dev/sda1 (System Repartition 1) NOT /dev/sda2 (Filesystem Partition 2). So what is the purpose of /dev/sda2?  Thanks again for your help.
I have backups up everything, but I'm still uneasy about the process and would like confirmation. I'd rather do this one time correctly. I want to shrink /dev/sda6/ by 200GB and reallocate it to /dev/sda2. I boot a LiveCD and turn off LinuxSwap (locked otherwise). I've been reading that it is very hard to move &quot;left&quot; when partitioning and other AskUbuntu threads are confusing me. Do I need to resize /dev/sda6 by 200GB &quot;preceding&quot; (rather than &quot;following&quot;), and then resize /dev/sda4 by 200GB? A little guidance would ease my nerves of messing everything up. Thank you ahead of time.
Real World Example of the Strategy Pattern What is the best way to filter a Java Collection? I want to filter a java.util.Collection based on a predicate. Image with axis I'm working under 12.04 and suppose I have a Firefox windows active (or in foreground) with English as input language and I need to type a document in other language using some text editor.   With the text editor in foreground (or active) and the input language set to a non-English one, when I bring Firefox in foreground (or making it active) the input language remains set to the non-English and the language flag does not switch to English (as it would be expected, since I do not alter the language during the whole Firefox session).  Because of this, I have to make extra moves and change the input language manually every time I switch from the text editor to Firefox and back to text editor. This was not happening with 10.04, and each application windows had the corresponding input language set to its default or previous session every time I was bringing it to the foreground!   How will I make 12.04 to behave the same way? In German, we often use "Elfhundert" (literally, "eleven hundred") for 1100 or "neunzehnhundert" ("nineteen hundred") for 1900; but is this correct in English? Is there a difference between "==" and "is"? My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object? "This computer currently has no detected operating systems" when installing In C, how do I restrict the scope of a global variable to the file in which it's declared? find spectrum matrix A Let $A = \left[ \begin{array}{*{20}{c}} 0&amp;b&amp;0&amp;0&amp;0&amp;0\\ c&amp;0&amp;b&amp;0&amp;0&amp;0\\ 0&amp;c&amp;0&amp;b&amp;0&amp;0\\ 0&amp;0&amp;c&amp;0&amp;b&amp;0\\ 0&amp;0&amp;0&amp;c&amp;0&amp;b\\ 0&amp;0&amp;0&amp;0&amp;c&amp;0 \end{array} \right]_{n \times n}$.  Why does matrix $A$ have spectrum $\sigma (A) = \left\{ 2\sqrt {bc} \cos \left(\frac{\pi k}{n + 1}\right):k = 1,2,\ldots,n \right\}$? I know that the finite sum of Bernoulli i.i.d. random variables is a binomial distribution, but what is the distribution of $$\lim_{n \to \infty}\sum_{k=1}^{n} \frac{x_k}{2^k}$$ where $x_k$ is a Bernoulli random variable with parameter $\frac12$? Visa for transit in Seoul I have a question about the visa needed to transit in Korea.  I'm an Indonesian passport holder and am traveling to the US. On the way back I have a transit of 24 hours at Incheon. If I want to go out and stay in Seoul, do I have to apply for a visa? Or can I get a transit visa on arrival? I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C? How do I show that the sum $(a+\frac12)^n+(b+\frac12)^n$ is an integer for only finitely many $n$? Show that if $a$ and $b$ are positive integers, then $$\left(a +\frac12\right)^n + \left(b+\frac{1}{2}\right)^n$$is an integer for only finitely many positive integers $n$.   I tried hard but nothing seems to work. :( How do I find the package that provides a file? Java - How to reduce the size of third-party jars to reduce the size of your application First, this question is motivated by the imprecise question: Is there a sensible notion of parity (evenness and oddness) for real numbers?   Here are some properties a notion of parity for $\mathbb{R}$ should have:    It should be an equivalence relation on $\mathbb{R}$ with exactly two equivalence classes.  Each equivalence class should be dense in $\mathbb{R}$. There should be some kind of symmetry between the two equivalence classes. (This is intentionally imprecise.)   If we divide $\mathbb{R}$ into rationals and irrationals, this lacks symmetry, since the rationals have measure zero and are countable, while the rationals have infinite measure and are uncountable.   So we could require that each equivalence class be uncountable and/or have positive (or infinite) measure. Then take one equivalence class to be the rationals, union with countably many fat cantor sets with positive measure, and the other class its complement. Then both classes are now dense, uncountable, and have infinite measure. But again, symmetry is lacking. One of these classes is "uncountable everywhere" and has "positive measure everywhere" while the other does not.   I propose some definitions: A subset $A \subset \mathbb{R}$ is uncountable everywhere if for any open interval $(a,b)$, the intersection $A \cap (a,b)$ is uncountable. A subset $A \subset \mathbb{R}$ has positive measure everywhere if for every open interval $(a,b)$, the intersection $A \cap (a,b)$ has positive measure. We can see immediately that having positive measure everywhere implies being uncountable everywhere, since a positive measure set must be uncountable.   Finally, my questions:    Is there a partition of $\mathbb{R}$ into two sets that are both uncountable everywhere?  Is there a partition of $\mathbb{R}$ into two sets that both have positive measure everywhere?  Is there a partition of $\mathbb{R}$ into two sets that split each interval $(a,b)$ into two parts of equal measure?   Potential generalizations for extra credit: What about partitions of $\mathbb{R}$ with $n$ equivalence classes, where $n \in \mathbb{N}$, or even with countably many, or even uncountably many equivalence classes?  Note: If you've seen these definitions of uncountable everywhere or positive measure everywhere somewhere under a different name, please let me know. I've never found anything where other people were thinking about these notions.  EDIT: By "measure," I mean Lebesgue outer measure, so we don't have to worry about anything being measurable. What is the difference between [0-9]+ and [0-9]++? For quite some time now I have been asking myself how the world of Game of Thrones is shaped and if the people living in that world know the shape.   In questions here on SciFi.Stackexchange concerning the unnatural seasons or the definition of a year in Westeros, it is often  that the Westerosi can measure the duration of a revolution of their planet around the sun. But that only works if they know that they actually live on a planet.   In  answer it was said that people have been travelling in ships around the world. However, I cannot remember any passage in the books supporting this. Actually I only remember evidence for the opposite:    During the  on the Iron Islands, there is a man called  who promises the Ironborn treasures from lands far to the west, if they elect him as king. However, the POV character of that chapter (I think it was Victarion Greyjoy) does not believe him and sees the madness in Gylbert's eyes - as if speaking of travelling west is crazy.  Later when he leads the attack against the Shield Islands, the Iron Fleet travels out of sight of the coast line. This manoeuvre is considered very dangerous and risky. If this is already dangerous, traveling even further west appears close to suicide.   In addition, there was a  who sailed to the far west and never returned.   establishes that the world is not a hollow world, but is not conclusive as to whether it is a planet.  Is there any evidence in the books that the World of Ice and Fire is a planet? Was it established that the Westerosi know the nature of their world? How do I get a module path? I'm creating a module in Drupal 8 and I need to define a relative path to mymodule to pass it on a JavaScript file like this.  $scope.getPlatformIcon = function (_platform) {      var modulePath = "/modules/mymodule"      switch (_platform) {          case "youtube":          case "twitter":          case "instagram":          case "facebook":              return modulePath+"/img/"+_platform+".png";      }      return false; };   In Drupal 7 I could use the following.  var modulePath = Drupal.settings.mymodule.basePath;   For the Drupal 8 root directory, I could use the following.  drupalSettings.path.baseUrl   I didn't find how to get the module path.  How can I do it with Drupal 8? Canon claims that EOS 6D has special capability to focus in low light, but it has only one cross-type sensor and overall only 11 focus points. Does only one cross-type focus point in the Canon EOS 6D affect its ability to focus in low light? Is it correct to assume that more cross-type focus points produce more accurate and sharper focus?