dual boot – Install along with win7 what partitions do I need to configure?

I have an unallocated partition of 40 GB in my c: drive. It may be a bit much but it's fine.
I am looking to install Ubuntu 19. I have seen some guides that I need to define exchange and root things. I'm a Linux baby, so I really don't know what it really takes.
Final answer?
16 GB of RAM, don't worry about hibernating if that matters.

Adorable storage: After formatting the SD card "as internal", can partitions be reduced?

I have a 16GB MicroSD card that is apparently faking its size. Using H2testw I discovered that only the first 7.8 GB are usable. Before buying a new one, I want to see if I can "fix it." The idea is that Android format the card "as internal", unmount it and then, through a rooted Android or a Linux / Windows desktop, reduce the size of the three resulting partitions so that they fit within the first 7.8 GB of the card .

Is there a reason why this would not work? My only concern is that the Android phone could have its own record of the sector ranges of each partition, which would be changing.

I am not just testing it, because I don't have a card reader at hand and I want to know if it is likely to work, before investing time in it.

Automation: the fastest way to create a medium and standard deviation data frame per time variable in partitions of large data sets?

I want to generate means and standard deviations per hour in different subsets of data that divide the data set.
In a small data set, this is simple, just run the code I have below as an example.
In a large data set, my method is not efficient. creating a billion A-Z variables, depleting the alphabet, … storing all partitions of my data and repeatedly writing the criteria for the subset () function is slow.
I am trying to find a way to automate what I am doing using purrr or other packages.

I have examined the "purr" package and I don't know how to use it.
I can have tapply do the same to calculate media in subsets of data.

Example 1:
Here is another reproducible example without external links.

library(dplyr)
install.packages(geesmv)
library(geesmv)

data("toenail")
a<-subset(toenail,Treatment==0 )%>%
  group_by(Month)%>%
  summarise(m=mean(Response),s=sd(Response))


b<-subset(toenail,Treatment==1)%>%
  group_by(Month)%>%
  summarise(m=mean(Response),sd=sd(Response))

I cannot link a and b because the set of months in which the Treatment Group number 0 and the Treatment Group number 1 are not equivalent. But I could copy and paste the data frame a and b into excel for my purposes.

Example 2: give an example where I can link partitioned data frames

Reproducible example using the CD4 data set:
http://www.mediafire.com/file/clk8c421ng7o26k/cd4.csv/file

#use the cd4 dataset
r<-read.csv(file.choose())

library(dplyr)
a<-subset(r,group01==0 & age<30)%>%
  group_by(week)%>%
  summarise(m=mean(logcd4),sd=sd(logcd4))
a1<-subset(r,group01==0 & age>=30)%>%
  group_by(week)%>%
  summarise(m=mean(logcd4),sd=sd(logcd4))

b<-subset(r,group01==1&age<30)%>%
  group_by(week)%>%
  summarise(m=mean(logcd4),sd=sd(logcd4))
b1<-subset(r,group01==1&age>=30)%>%
  group_by(week)%>%
  summarise(m=mean(logcd4),sd=sd(logcd4))
c<-rbind(a,a1,b,b1)
#c is the finished data frame I wanted to make that I'll import into Excel

In both examples I need to produce something like this:

 # A tibble: 679 x 3
    week     m     sd
      
 1  0     2.71  1.05 
 2  3.57  2.71 NA    
 3  4.14  2.71 NA    
 4  4.71  1.79 NA    
 5  6.57  3.22 NA    
 6  6.86  2.30 NA    
 7  7     3.37 NA    
 8  7.29  3.76  0.560
 9  7.43  3.71  1.42 
10  7.57  1.47  1.05 
# … with 669 more rows

where the first partition is stacked on top of the other

I wanted to do the same maybe using purrr avoiding doing many variables a, a1, b, b1 and writing the conditions in the subset function () as group01 == 1 or age<30 or age>= 30 repeatedly.

If I used a large set of data with more variables in addition to age, and if there were not only two treatment groups, but rather 4 or more, and I had to subdivide according to sex, height, marital status, province, political affiliations, the political party, I wanted this to work too, but doing it with dplyr is slow, tedious and inefficient, especially when the subset criteria or the dimensionality of the data set increase.

As you can see with just having an age variable, the process is much more difficult in example2.

I am trying to find a more efficient way to do this, especially if the cd4 data set had more information. Not sure how to use Python.

Similar question but without reproducible example:
https://stackoverflow.com/questions/58240707/faster-way-to-make-new-variables-containing-data-frames-to-be-rbinded?noredirect=1#comment102855077_58240707

I think the difficulty of this task has to do with the curse of dimensionality.
I cannot change the group_by condition.

Ubuntu installation: Quick start cannot be disabled and no partitions are shown

I am trying to install Ubuntu 18.04 (dual boot / along with Windows) on my Lenovo Yoga 520 with the InsydeH20 BIOS setup utility, but I have the following problems:

  1. I can't disable quick start. I know that disabling the option is necessary for proper installation, but disabling it in the start menu has no effect. Shutting down the computer and checking the boot menu again produces seeing the option "Quick start" as active (the BIOS battery must not be depleted since other options survive)

  2. The installer does not see partitions. When trying to install the operating system, the installer does not show me any partition to select.

However, I managed to solve a problem: I used to receive the error "MODSIGN: Could not get the db UEFI list", but I managed to solve it by resetting some keys in the boot menu.

I have already disabled the quick start on Windows, but it doesn't seem to have any effect as you can see here … My only idea for the cause is a broken hibernation file.

I accept any advice, thanks in advance.

If I delete all partitions during Ubuntu installation and create an efi partition, will I have to update the firmware?

I am installing Ubuntu 19.04 on the laptop (it has an SSD drive) that comes with DOS preinstalled. I configured BIOS to boot as uefi and I will remove all current partitions and create efi (with boot flag), root and home. Will everything be fine or will I have to update the firmware? Thanks in advance.

disk utility: cannot merge partitions and remove bootcamp

I am trying to uninstall bootcamp and merge partitions.

I executed the following, which seems to have eliminated the volume, but I don't think they are merged.

diskutil apfs deleteContainer [diskid]
diskutil eraseVolume free n [diskid]
diskutil apfs resizeContainer [diskid] 0

enter the description of the image here

enter the description of the image here

Macintosh had 200 and Bootcamp had 50 GB allocated. I just tried to hold on alt and to see if Windows was still on the prowl, and yes, I could even start it. It seems that the disk was erased but could still reach a Windows recovery screen.

I know there are answers out there, but I don't want to try everything, since I don't want to take any risks.

partitions: I can't move files to the trash in ubuntu

I already check this and try enter the description of the image here

But when I did this. The following error message will appear while trying to mount the partition:
enter the description of the image here

I have another disk partition that contains windows and there I don't have the problem even in my ubuntu partition. Can you help me please?

algorithms – binary string partitions

They give you a binary string of 0s and 1s.

Your task is to calculate the number of ways for a chain to be partitioned satisfying the following restrictions:

  1. The length of each partition must be in non-decreasing format. Thus,
    the length of the previous partition must be less than or equal to the
    Length of the current partition.

  2. The number of bits set in each partition must be in non-decreasing format.
    Therefore, the number of 1 that are available in the previous partition
    must be less than or equal to the number of 1 that are available in the
    current partition

  3. There should be no leading zeros available in each partition.

example:
string = 101110
The three valid partitions are 101110, 10 | 1110, 101 | 110

Note: the number of 0 does not need to be in non-decreasing order

// I want to know how to deal with these types of problems.

I tried brute force methods by running loop for 2 groups, 3 groups, etc. But

They are taking a long time.

I want to calculate it in feasible time. //

please: try to explain methods and suggestions in simpler terms.

ssas – ProcessUpdate of the dimension activates the processing of all partitions of all measure groups in the cube

I have Account and Client dimensions in the cube that are connected to the same measure groups (there are about 15-20 measure groups in the cube).

When I execute the XMLA command to process the update of these two dimensions, like this:


    
        
            
                My Database
                Dim Customer
            
            ProcessUpdate
            UseExisting
        
    

in the case of the Account dimension, it ends in a couple of minutes because it does not activate the processing of all partitions of all measure groups. But in the case of the Client dimension, it activates the processing of all partitions of all the measurement groups, so the process update of this dimension lasts longer than the complete processing of the entire cube.

I am not sure what the reason may be for which the dimension will activate all this processing in the case of one dimension and not in the case of the other. For both dimensions, Process affected objects is set to Do not process. Where should I look, what to verify? Can I somehow prevent this reprocessing from happening?

Thank you!

twrp: Why would TRWP Nandroid backups of system and vendor partitions be different between backups?

For general information, I just acquired a global version of Xiaomi Mi 9 and I am running the latest Xiaomi.eu Pure MIUI weekly ROM (if it is important, the latest Xiaomi.eu weekly for Mi 9 is based on Android 10 ).

I started making full backups with TWRP and noticed something strange. As a reference, these backups have compression disabled and there is no encryption to try to discard any variable.

When I verify the hashes sha2 of the different partitions, I have noticed that all the partitions (boot, recovery, modem, efs, etc.) have the same hash sha2 between the backups (which means that the images are exactly same). However, even from one night to the next morning, or even from one boot to another as I tried today, the hashes of the provider's backups and the system partition are different. I don't have any custom system module or kernel installed that can modify those partitions, although I'm rooted with Magisk.

I used adb shell to navigate through the system and vendor partitions and all the date stamps of the folders and files are "1969-12-31" (basically it means that the date is 0 since that is the beginning of "unix time if you take into account my time zone) or "2019-09-06", which is probably the date on which the ROM or its base ROM was created (the original Xiaomi ROM from which they made the Xiaomi.eu version). I used the find command from an adb shell to search the system and partitions of the provider for the updated files (any file with a date more recent than "2019-09-06") and there are none.

So my question is this: If I didn't update a new ROM or installed something on the system partition, why would two backups be different?

I would think that only the data partition would change as I use the phone. I thought that since the provider's system and images are the ROM itself, they should never change unless I change the ROMs. I had the impression that even the system settings are stored in the data partition because performing a factory reset essentially only deletes that partition … so I don't see why the system and especially the vendor partitions should change to unless ROM specifically blinks or updates the ROM that would obviously write to those partitions (or at least the system partition)

Are there any files or folders automatically generated on the system and vendor partitions that change slightly at boot or something?

I would just like to understand this better to know if, for example, it is okay to make regular backups of the data partition and only make a backup of the system and the provider when I do a new ROM update.

Hopefully someone with more experience in ROM with Android can shed some light on this.