I have a small Lenovo (ThinkPad X100e) running 32-bit Windows 7 Home edition. I wantd to add dual-boot, then upgrade to Windows 10 to test that it won't erase my Ubuntu partition.
I first tried just running a bootable Ubuntu 16.04 LTS (long term stable) USB, and it got me into Ubuntu install, but when I got to the partitioning step the computer said okay, then shut down, and it never seemed to install. I suspected I might need to partition first. I pre-emptively went ahead on shrinking the Windows partition before repartitioning, following these steps as in my previous post just adjusting steps by looking in Windows 7 places for the settings. System protection was already off and I skipped CHKDSK because Windows ran it on its own after my failed original Ubuntu automatic repartitioning attempts. My computer also insisted on rebooting between steps 4 and 5. Disk cleanup (step 5) took less than 20 minutes. Disk shrinking was maybe less than an hour.
I also realized during the Windows shrinking that I was trying to install 64-bit Ubuntu (the main file that downloads) onto a 32-bit computer. I downloaded 32-bit from a mirror (there didn't seem to be an easy link on the main Ubuntu site, had to look around for it in their site) and made a new bootable USB. I tried again. At the partitioning step, I got a scary looking message about whether I wanted to continue with automatic partitioning (it said it will change and format some things). I answered continue, and then I went on with set up. That worked and I now have Ubuntu 16.04 LTS dual booting with Windows 7.
This went a lot faster than with my last dual-boot setup. I think this was because I had Windows 7, an older laptop, and a bit more experience, and probably mostly because I cared less about whether I ruined my Windows set up. This older computer also didn't have weird boot settings that the newer one did (secure boot), nor did it have Windows 8 hibernation and fast shutdown/startup to worry about. I also did not want to set up a shared data partition on this laptop so that did not take up any time. So I did less prep, and it still turned out okay. Your results may vary.
Now, the Windows 10 upgrade over the dual-boot system. I ended up not having enough space on my Windows partition because I had some duplicate users and all their data. I uninstalled a few large programs that I didn't use any more and then removed the two duplicate users and their data (be careful with this! I was very sure I did not need those user profiles). After following the various on-screen prompts, I eventually got a message that I had to log into my administrator account. I did so, waited for the download again, and then the Windows 10 upgrade just... failed, every time, even though I was booting back into Windows 7 and not Ubuntu. With the error code, I found that I should be rebooting into the system recovery partition. I did that and sure enough, it worked! The install crashed once because my laptop overheated, but that's my laptop's problem. I set it on an air vent in the house and the AC kept it cool enough to restore Windows 7 (Windows did this on its own). I then started the Windows 10 upgrade again and it finished the install. I missed a few reboots and it booted into Ubuntu, but in those instances I just rebooted and watched to select the Windows system recovery partition and it resumed where it had left off. Windows 10 did not erase my programs or apps, so I am pleased with how this went and might even try it on my main working computer now.
Tuesday, July 19, 2016
Tuesday, May 03, 2016
New paper out: "Shadow of a doubt"
I am very pleased to announce that my behavioral work on reproductive isolation in hybridizing titmice has been accepted in Behavioral Ecology and Sociobiology and is now out as an online early! It was the main experimental work from my Ph.D. dissertation and is co-authored with my Ph.D. advisor Michael Patten.
Tuesday, April 26, 2016
Using R to work through Sokal and Rohlf's Biometry: Chapter 4 (Descriptive Statistics), exercises
Previously in this series: Chapter 4 (sections 4.6-4.9 in Sokal and Rohlf's Biometry).
I sure fell off the Sokal and Rohlf horse. Time to get back on track! Let's finish up Chapter 4. From this point onwards, I will do only the exercises that add to the code base I've written for the rest of the chapter. In this case there is just one.
#Use the data to get mean, standard deviation, and coefficient of variation,
#then repeat using groupings.
e2.7<-c(4.32, 4.25, 4.82, 4.17, 4.24, 4.28, 3.91, 3.97, 4.29, 4.03, 4.71, 4.20,
4.00, 4.42, 3.96, 4.51, 3.96, 4.09, 3.66, 3.86, 4.48, 4.15, 4.10, 4.36,
3.89, 4.29, 4.38, 4.18, 4.02, 4.27, 4.16, 4.24, 3.74, 4.38, 3.77, 4.05,
4.42, 4.49, 4.40, 4.05, 4.20, 4.05, 4.06, 3.56, 3.87, 3.97, 4.08, 3.94,
4.10, 4.32, 3.66, 3.89, 4.00, 4.67, 4.70, 4.58, 4.33, 4.11, 3.97, 3.99,
3.81, 4.24, 3.97, 4.17, 4.33, 5.00, 4.20, 3.82, 4.16, 4.60, 4.41, 3.70,
3.88, 4.38, 4.31, 4.33, 4.81, 3.72, 3.70, 4.06, 4.23, 3.99, 3.83, 3.89,
4.67, 4.00, 4.24, 4.07, 3.74, 4.46, 4.30, 3.58, 3.93, 4.88, 4.20, 4.28,
3.89, 3.98, 4.60, 3.86, 4.38, 4.58, 4.14, 4.66, 3.97, 4.22, 3.47, 3.92,
4.91, 3.95, 4.38, 4.12, 4.52, 4.35, 3.91, 4.10, 4.09, 4.09, 4.34, 4.09)
#a. without groupings
(e2.7.mean<-mean(e2.7))
(e2.7.sd<-sd(e2.7))
(cv.e2.7<-(e2.7.sd*100/e2.7.mean))
#b. with groupings.
#To create groupings, we use hist() but with plot=FALSE, which we did not use before.
(e2.7.hist<-hist(e2.7,
breaks=seq(min(e2.7),
max(e2.7),
length.out=11), #use 11 to get 10 groups (number of groups you want + 1)
#R will chose binning automatically if you do not use the breaks argument.
plot=FALSE))
#It comes out as a list so we need the midpoints (or "class marks" in the books' terminology)
#and the counts as a data frame.
#We also multiply the two to get class sums as in section 4.1 (and box 4.2)
(e2.7.grouped<-data.frame("frequencies"=e2.7.hist[[2]],
"classmark"=e2.7.hist[[4]],
"classsums"=e2.7.hist[[2]]*e2.7.hist[[4]]))
(e2.7.samplesize<-sum(e2.7.grouped$frequencies))
(e.2.7.summing<-sum(e2.7.grouped$classmark*e2.7.grouped$frequencies))
(mean.moo<-e.2.7.summing/e2.7.samplesize)
#These numbers are the same as before because I didn't code the class marks.
#You can see how to do that in the previous post.
#In the modern computing age we are unlikely to group the data to get averages,
#but you can see where it would be useful if you are given data in that format,
#or want to calculate by hand.
I sure fell off the Sokal and Rohlf horse. Time to get back on track! Let's finish up Chapter 4. From this point onwards, I will do only the exercises that add to the code base I've written for the rest of the chapter. In this case there is just one.
Exercises 4 (selected)
#Exercise 4.3#Use the data to get mean, standard deviation, and coefficient of variation,
#then repeat using groupings.
e2.7<-c(4.32, 4.25, 4.82, 4.17, 4.24, 4.28, 3.91, 3.97, 4.29, 4.03, 4.71, 4.20,
4.00, 4.42, 3.96, 4.51, 3.96, 4.09, 3.66, 3.86, 4.48, 4.15, 4.10, 4.36,
3.89, 4.29, 4.38, 4.18, 4.02, 4.27, 4.16, 4.24, 3.74, 4.38, 3.77, 4.05,
4.42, 4.49, 4.40, 4.05, 4.20, 4.05, 4.06, 3.56, 3.87, 3.97, 4.08, 3.94,
4.10, 4.32, 3.66, 3.89, 4.00, 4.67, 4.70, 4.58, 4.33, 4.11, 3.97, 3.99,
3.81, 4.24, 3.97, 4.17, 4.33, 5.00, 4.20, 3.82, 4.16, 4.60, 4.41, 3.70,
3.88, 4.38, 4.31, 4.33, 4.81, 3.72, 3.70, 4.06, 4.23, 3.99, 3.83, 3.89,
4.67, 4.00, 4.24, 4.07, 3.74, 4.46, 4.30, 3.58, 3.93, 4.88, 4.20, 4.28,
3.89, 3.98, 4.60, 3.86, 4.38, 4.58, 4.14, 4.66, 3.97, 4.22, 3.47, 3.92,
4.91, 3.95, 4.38, 4.12, 4.52, 4.35, 3.91, 4.10, 4.09, 4.09, 4.34, 4.09)
#a. without groupings
(e2.7.mean<-mean(e2.7))
(e2.7.sd<-sd(e2.7))
(cv.e2.7<-(e2.7.sd*100/e2.7.mean))
#b. with groupings.
#To create groupings, we use hist() but with plot=FALSE, which we did not use before.
(e2.7.hist<-hist(e2.7,
breaks=seq(min(e2.7),
max(e2.7),
length.out=11), #use 11 to get 10 groups (number of groups you want + 1)
#R will chose binning automatically if you do not use the breaks argument.
plot=FALSE))
#It comes out as a list so we need the midpoints (or "class marks" in the books' terminology)
#and the counts as a data frame.
#We also multiply the two to get class sums as in section 4.1 (and box 4.2)
(e2.7.grouped<-data.frame("frequencies"=e2.7.hist[[2]],
"classmark"=e2.7.hist[[4]],
"classsums"=e2.7.hist[[2]]*e2.7.hist[[4]]))
(e2.7.samplesize<-sum(e2.7.grouped$frequencies))
(e.2.7.summing<-sum(e2.7.grouped$classmark*e2.7.grouped$frequencies))
(mean.moo<-e.2.7.summing/e2.7.samplesize)
#These numbers are the same as before because I didn't code the class marks.
#You can see how to do that in the previous post.
#In the modern computing age we are unlikely to group the data to get averages,
#but you can see where it would be useful if you are given data in that format,
#or want to calculate by hand.
Tuesday, April 05, 2016
Tuesday, March 22, 2016
Lichen adventure
![]() |
| A fallen jack pine cone and twig in some neat lichen which might be Cladonia. 20 March 2016, east of Winnipeg, west of Elma, Manitoba. |
Tuesday, March 15, 2016
Latitude
![]() |
| Sweet, sweet warmth and growing plants. 03 March 2016, Stillwater, Oklahoma. |
![]() |
| Admittedly there IS a live plant in there, but it's not really doing much yet as the winter snow attempts to melt off. 08 March 2016, Winnipeg, Manitoba. |
Tuesday, March 08, 2016
Worms or cigarette butts: all the same to a bird
![]() |
| Google translate tells me that the text reads "I refrain from smoking because cigarette butt or worms, it's all the same for a bird". An excellent point with an excellent illustration. Maison de la nature (nature center?), Lattes, near Montpellier, France, 05 August 2015. |
Subscribe to:
Posts (Atom)




