I need to dual boot my pc with windows as main OS and Ubuntu as secondary OS. During the installation the Ubuntu installation wizard prompted me to create partitions on HDD of 500 GB. I created a partition of 87 GB. After that it said that it would erase all data in the HDD. I'm afraid that it would erase windows. But I want both of them to boot. How can I achieve that without erasing windows?
I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no pictures).  I'd like to cover such situations:     If your disk contains other systems:
I've discovered a new pattern.  Is this pattern well known or what is the opinion about it?  Basically, I have a hard time scrubbing up and down source files to figure out what module imports are available and so forth, so now, instead of  import foo from bar.baz import quux  def myFunction():     foo.this.that(quux)   I move all my imports into the function where they're actually used., like this:  def myFunction():     import foo     from bar.baz import quux      foo.this.that(quux)   This does a few things.  First, I rarely accidentally pollute my modules with the contents of other modules.  I could set the __all__ variable for the module, but then I'd have to update it as the module evolves, and that doesn't help the namespace pollution for code that actually lives in the module.  Second, I rarely end up with a litany of imports at the top of my modules, half or more of which I no longer need because I've refactored it.  Finally, I find this pattern MUCH easier to read, since every referenced name is right there in the function body. My web application generates a lot of reports in formats like excel sheet, Csv(comma-separated values), fixed width columns, pdf format, html reports etc based on the parameters I select. There is a lot of data in the reports.  Are there any essential criteria for testing report generation that I may not have considered.  I know to test these things:   Data is correct Filters are used Output format is correct   What else is there? Is there a way to xcopy just changed or new files? I am trying to deploy a website from my desktop to my webserver and so right now I am doing this:   xcopy C:\source X:\destination /s   My desktop is a Windows XP machine, and I need to copy to a Windows Server 2008 machine, but this copies everything and the whole site is very large and it takes a really long time to finish copying.   Is there a way to specifically just copy new or updated files? I see you can pass in a changed-since date, but I wanted to see if there is a simpler way to compare against the destination file...  Also, I am open to using anything outside of xcopy that can do the job as well... Why is $H(k\mathbin\Vert x)$ not a secure MAC construction? MacTeX - TeX Live Utility broken after 2015 update Why is there no absolute maximum temperature? Restart my graphics card without rebooting? If $I$ and $J$ are ideals in a ring $R$ with $1$ such that $I+J = R$, show that $I^m$ and $J^n$ are co-maximal for all $m,n \in \mathbb{N}$ If $I$ and $J$ are ideals in a ring $R$ with 1 which are  co-maximal, i.e $I+J = R$, show that $I^m$ and $J^n$ are co-maximal for all $m,n$ in $\mathbb{N}$  Work done:     Should I proceed using    By taking $$K=I^m+J^m \neq R$$  Let $$S=\{I,J \in R \mid I^m+J^n \neq R \}$$ be the required partially order set ordered by inclusion then  $$I+J \subseteq I^n+J \subseteq I^n+J^m \subseteq \ldots $$  Then, I think this chain doesn't have an upper bound...as $I^m+J^n \neq R$ for all $ m,n \in \mathbb N$. Am I right??  Thanks for any help!! We are in the early stages of development of the official Stack Exchange Android app and we need your help with testing. To set a few expectations: there will be bugs, crashes, and missing features, all of which will be fixed in .    We are initially targeting Android devices running  (Android 4.1 or higher) starting with phones (up to ~5 inch) and eventually moving our way to tablets.    To register for alpha testing .  After you register we will send you an invite to a private Google community where you can find a link to download our app directly from the  store. The invitations will be sent out in waves, so if you don’t get an invite immediately, be patient.  Crash reports will be automatically reported back to us using . Bugs or feature requests should be reported here on meta and tagged . Please do not use the Google community to report bugs.  As always, we welcome your feedback and are committed to building the best mobile app possible for browsing the Stack Exchange sites. How to add a description to the user name input field in the registration form? I want a description under the user name input field in the Wordpress registration form like in the next example. How can I do this?  //create an extra field in login page for invitation code add_action( 'register_form', 'add_invitation_code_field' );  function add_invitation_code_field() {    ?&gt;       &lt;p&gt;          &lt;label for="invitation_code"&gt;             Invitation code             &lt;input id="invitation_code" class="input" type="text" size="20" value="" name="invitation_code"/&gt;             &lt;span class="description"&gt;&lt;?php _e("Description text"); ?&gt;&lt;/span&gt;          &lt;/label&gt;       &lt;/p&gt;    &lt;?php } Mapping key combination with xmodmap I'm trying to achieve the following mapping keycode 135 = &lt;Ctrl-C&gt;  Is it possible to achieve this in some way? How do I clone a generic list in C#? Geometric proof for irrationality of $\pi$ Is there a geometric proof for irrationality of $\pi$? That would be neat. I have a .csv file of coordinates that looks like this:        Is there a way for QGIS to plot coordinates formatted like this?  I've tried Adding a Delimited Text Layer... in QGIS, but do not see any options appropriate for this format:  Nxx.xx.xxx Wxxx.xx.xxx   I am able to use a  website to convert that data to Decimal Degrees, Degrees, Minutes &amp; Seconds, and UTM.  For example, inputting N39.56.854 W074.28.013 outputs a latitude of 39.947567, and longitude of -74.466883.  However, I would like to stay in QGIS and make the same conversion.  Things I've tried:   Created a new .csv that has formatting that matches the output of coordinate conversion site mentioned above, and with separated lat-long columns:     However, using the QGIS Add Delimited Text Layer... option yields no visualization of the points. How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression? How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression? For example here is the sum of $\cos$ series:  $$\sum_{k=0}^{n-1}\cos (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \cos \biggl( \frac{ 2 a + (n-1)\cdot d}{2}\biggr)$$  There is a slight difference in case of $\sin$, which is: $$\sum_{k=0}^{n-1}\sin (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \sin\biggl( \frac{2  a + (n-1)\cdot d}{2}\biggr)$$   How do we prove the above two identities? Available US State or National business (or employer) database lists? This question dovetails with this post on .  I am familiar with some of larger, paid-for business registry's like  and .  While the detailed information their business listings database include (like # of employees, annual sales, industry code, etc) is fantastic, if you are on a limited budget, sometimes the cost of purchasing the data outweighs the value you can get from it.  If you have geocoding capabilities in house, one could potentially create a reasonable surrogate by spatially-enabling (geocoding) a publicly available business listing on your own.    If you were looking to take on this type of project, where would you start your research? Do you know of US agencies at a State or National level that maintain this type of information, AND are publicly available for download or minimal purchase? Complex number operations: telling Mathematica variables are real 2D Integration With Quadratic Arg. of Delta Function What does 'super' do in Python? - difference between super().__init__() and explicit superclass __init__() What's the difference between:  class Child(SomeBaseClass):     def __init__(self):         super(Child, self).__init__()   and:  class Child(SomeBaseClass):     def __init__(self):         SomeBaseClass.__init__(self)   I've seen super being used quite a lot in classes with only single inheritance. I can see why you'd use it in multiple inheritance but am unclear as to what the advantages are of using it in this kind of situation. You can’t buy your kids clever. What’s more, if they’re merely above average, by sending them to some hideous Holland Park hothouse, you’re probably buying them miserable.  — Alex Proud,   ""   As far as I know, clever and miserable are both adjectives, not nouns. So why were they used with to buy? Is this an idiomatic way of saying You can't buy your kids intelligence and you're probably buying them (moral) misery? If so, what is the idiom used here? I'm not familiar with it.