So some stuff happened and my hard drive was completely wiped out, I previously had a dual boot system between windows 10 and Ubuntu, I would like to do the same now. What I would like to know is which would be easier? Installing Ubuntu first and then Windows or vice versa? Also is it better to make partitions and install or install both of them together?
I'd like to install both Ubuntu 12.04 and Windows XP on a Dell laptop, and I was thinking about using a dual boot structure, and using the bulk of my hard drive as empty hard drive space to share files between the two operating systems (so choice of file system type is very important in this set-up).     The kind of partitioning structure I would like to use is  Partition 1 - Ubuntu 12.04 (root) (20GB)  Partition 2 - Ubuntu /home        (20GB)  Partition 3 : Free Space          (560GB)  Partition 4 : Windows XP          (35GB)  Partition 5 : SWAP                (3GB)  (Total Hardrive Capacity is ~640GB)    My question is; what is the best way to go about setting up this kind this system?   Should I install Windows XP first and setup the partitions, and then install Ubuntu which I believe will install the GRUB bootloader for OS booting choice   or   Do I install Ubuntu first, setting up the available partitions and then perform a WIndows install?  Please let me know if there is anything in this setup that I have left out and should know about, including things related to setting particular partitions as logical or primary, and whether the boot partition and the filesystem partition should actually be two separate partitions.
$$\int^2_{-2}\frac{x^2}{1+5^x}$$  How do I start to integrate this?  I know the basics and tried substituting $5^x$ by $u$ where by changing the base of logarithm I get $\frac{\ln(u)}{\ln 5}=x$, but I got stuck.  Any hints would suffice preferably in the original question and not after my substitution.  (And also using the basic definite integrals property.)  Now I know only basic integration, that is restricted to high school, so would prefer answer in terms of that level. Current  enables one to upgrade to macOS Mojave from a stable release, but I want to try out a fresh installation instead of upgrading with previous data, so that I can assess it better.  I've downloaded an application named "macOS Mojave Beta" from the App Store, and running it would presumably result in an upgrade. Now I wonder what to do next. Would  and booting from it be a good idea, when I'm working with a Beta version? User group (company) page that shows summary of all user accounts belonging to the same company/user group What's the difference between Normalization and Standardization? At work we were discussing this as my boss has never heard of normalization. In Linear Algebra, Normalization seems to refer to the dividing of a vector by its length. And in statistics, Standardization seems to refer to the subtraction of a mean then dividing by its SD. But they seem interchangeable with other possibilities as well.   When creating some kind of universal score, that makes up $2$ different metrics, which have different means and different SD's, would you Normalize, Standardize, or something else? One person told me it's just a matter of taking each metric and dividing them by their SD, individually. Then summing the two. And that will result in a universal score that can be used to judge both metrics.  For instance, say you had the number of people who take the subway to work (in NYC) and the number of people who drove to work (in NYC).   $$\text{Train} \longrightarrow x$$ $$\text{Car} \longrightarrow y$$  If you wanted to create a universal score to quickly report traffic fluctuations, you can't just add $\text{mean}(x)$ and $\text{mean}(y)$ because there will be a LOT more people who ride the train. There's 8 million people living in NYC, plus tourists. That's millions of people taking the train everyday verse hundreds of thousands of people in cars. So they need to be transformed to a similar scale in order to be compared.  If $\text{mean}(x) = 8,000,000$  and $\text{mean}(y) = 800,000$  Would you normalize $x$ &amp; $y$ then sum? Would you standardize $x$ &amp; $y$ then sum? Or would you divide each by their respective SD then sum?  In order to get to a number that when fluctuates, represents total traffic fluctuations.  Any article or chapters of books for reference would be much appreciated. THANKS!  Also here's another example of what I'm trying to do.   Imagine you're a college dean, and you're discussing admission requirements. You may want students with at least a certain GPA and a certain test score. It'd be nice if they were both on the same scale because then you could just add the two together and say, "anyone with at least a 7.0 can get admitted." That way, if a prospective student has a 4.0 GPA, they could get as low as a 3.0 test score and still get admitted.  Inversely, if someone had a 3.0 GPA, they could still get admitted with a 4.0 test score.  But it's not like that. The ACT is on a 36 point scale and most GPA's are on 4.0 (some are 4.3, yes annoying). Since I can't just add an ACT and GPA to get some kind of universal score, how can I transform them so they can be added, thus creating a universal admission score.  And then as a Dean, I could just automatically accept anyone with a score above a certain threshold.  Or even automatically accept everyone whose score is within the top 95%.... those sorts of things.  Would that be normalization? standardization? or just dividing each by their SD then summing? Proving $\prod \limits_{k=0}^{n}(1-a_k) \geq1- \sum\limits_{k=0}^{n}a_k$ Javascript close alert box I want to be able to close an alert box automatically using Javascript after a certain amount of time or on a specific event (i.e. onkeypress).  From my research, it doesn't look like that's possible with the built-in alert() function.  Is there a way to override it and have control over the dialog box that it opens?  Also, I don't want an override that shows a hidden div as the alert.  I need an actual dialog box. Laptop battery charge management I work on a HP laptop plugged in most of the time, and after a few months the battery went off-duty.  Of course, I could remove the battery each time the laptop is plugged and replace it each time I must move to where no sockets are around. But I think that:   It would be really BORING! The computer would not avail itself of the useful backup power supply a battery can provide in case of black out.   It should simply switch off the battery charging when a safe power level is reached (i.e. 95%) and start recharging it, not every five minutes, but only under a certain safe threshold (i.e. 40% - 50%).  In its energy-saving profiles, Windows 7 only allows for setting up screen brightness, screen fadeout, screen deactivation and the suspension, not managing any charging issue.  Is there a way to accomplish this? I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file.  Deleting /etc/lightdm/unity-greeter.conf and then running sudo apt-get install --reinstall unity-greeter doesn't create a new config file as you might expect.   How can I restore a missing config file? Hoping someone can give me some thoughts on what might be going on here so I can be a bit more informed when I call a plumber.  Situation is, we got our water heater replaced a few years back and ever since this has been an issue. It's more noticeable when it's cold outside it seems, but still seems to be a year round problem. Whenever we  use hot water, we basically run out of it within minutes. In order to get an acceptable amount of hot water (enough to take a 10 minute shower), we literally have to prime the water first. By that I mean I have to turn on the hot water, let it run for a couple of minutes, then turn it off and wait 20 minutes. Then when we go to use the hot water again we'll get hot water for a respectable amount of time. Now I am fairly ignorant to all this, but it seems a 71 gallon hot water heater should be capable of holding enough water to not need to be primed like this. I should be able to take a 30 minute shower, let alone 10 without running out. My shower this morning was decently warm for maybe 2 minutes before it was just warm-ish.   So if anyone can give me some ideas on what might be going on I would appreciate it. We've just put up with this for some years assuming perhaps it was some eco friendly thing. Like the system doesn't maintain much hot water in the tank so it's not always running and only heats water up when you start to use it? I hope that isn't the case though and even so, I should be able to get more hot water out of it. Any help?  UPDATE Sorry everyone, I meant to tell you all that the water heater was gas. The pilot light is lit. I don't recall the specific model though I can look that up if people think it will help. I have actually turned up the thermostat on it above the default and when the water heater is putting out hot water, it can be very hot. Too hot. But again, that requires us to prime it before we get any decent amount of hot water out.  UPDATE 2 Looked it up, I believe this is the model info if that helps anyone: State Select: High Output. Model number: GS675XRRS 300 Looping through files with spaces in the names? I wrote the following script to diff the outputs of two directores with all the same files in them as such:  #!/bin/bash  for file in `find . -name "*.csv"`   do      echo "file = $file";      diff $file /some/other/path/$file;      read char; done   I know there are other ways to achieve this.  Curiously though, this script fails when the files have spaces in them.  How can I deal with this?  Example output of find:  ./zQuery - abc - Do Not Prompt for Date.csv What is the difference between "du -sh *" and "du -sh ./*"? What's the difference between du -sh * and du -sh ./* ?  Note: What interests me is the * and ./* parts. How to clone all remote branches in Git? I have a master and a development branch, both pushed to . I've cloned, pulled, and fetched, but I remain unable to get anything other than the master branch back.  I'm sure I'm missing something obvious, but I have read the manual and I'm getting no joy at all. I need help running python in ubuntu  I can run python without a problem in my terminal but when I create a .py file I can't get it to run. I want to hit enemy's axe to break it. How this is properly played in D&amp;D 5e? And what about shield or armor? Can I attack these items to break it? glBufferData not working outside main function How to convert a list of string to a list of int Headless linux install How do you do a headless install of linux? No monitor, no keyboard. Machine has floopy and cd drive. Can I configure a live cd to run sshd with a preconfigured pass or something similar and manage it via that?  Instructions for fedora 8+ would be ace but anything else also welcomed.  Cheers. Momentum is defined by the product of mass and velocity. Now a projectile out of a gun has to have high velocity to penetrate a human body, as its mass isn't significant. But to reach this velocity, due to inertia/the law of energy conservation, momentum on both sides is to be equal. As there is strong negative acceleration in the opposite direction of the bullet, it should result in a strong force in the opposite direction of the bullet ($F = m*a $).  Therefore I wonder why shooting a bullet with a handgun is not ripping your hand apart. On-screen keyboard popping up whenever I touch screen I'm in 17.10. Whenever I touch the screen, whether to change windows/apps, scroll within a browser, or press a button, the stupid little keyboard pops up in the bottom left corner.  I have never left Screen Keyboard enabled in Universal Access, but if I toggle it on, that's the same keyboard popping up in the bottom left corner.    In this screenshot, I'm simply touching the screen in a full-screen youtube video. You can see the menu pop up on the right, under the point where I'm touching.  I don't have a before pic, but it was similar look/color keyboard, but it was smaller, maybe half as wide, and only in the bottom left section of the screen, as opposed to stretching across the entire width. This change from little left-hand keyboard to full-width keyboard happened after following @pomsky 's advice below.    This is a . You can mark yourself affected by it to hopefully increase its received attention. How to put a full stop at the bottom, not mid-line, after an aligned matrix?