You can use the following command in Powershell to switch the Docker daemon engine between Windows and Linux:
& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
| import pandas as pd | |
| # 'reset_index' is required to turn a multi-level index back into columns. | |
| df.groupby([pd.Grouper(key='my_date_column', freq='1D'), 'my_categorical_column']).count().reset_index() |
| import requests | |
| REGISTRY_URL = "http://<HOST>/v2/" | |
| proxies = { | |
| "http": None, | |
| "https": None, | |
| } | |
| def get_repositories(): |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApp1 | |
| { | |
| class Poller |
| @echo off | |
| rem Uninstall MSI application via Product-Key GUID Lookup. | |
| rem Modified from original source: http://stackoverflow.com/q/30790561 | |
| rem Extract Product Key GUID for provided product name wildcard ('%%b'), before performing silent uninstall. | |
| for /f "skip=1 delims=" %%a in ( | |
| 'wmic product where "Name like '%%INSERT_PRODUCT_NAME_WILDCARD%%'" get identifyingnumber' | |
| ) do @for /f "delims=" %%b in ("%%a") do msiexec /x %%b /qb |
Create Ubuntu server instance under Parallels (obviously).
Start VM, goto Actions - Install Parallels Tools... to mount the ISO image.
Devices > CD/DVD 1 > Connect Image..../Applications/Parallels Desktop/Contents/Resources/Tools/prl-tools-lin.iso.From the terminal, run the following commands:
| public class StochasticUniversalSampling { | |
| /** | |
| * | |
| * @param population - set of individuals' segments. Segment is equal to individual's fitness. | |
| * @param n - number of individuals to choose from population. | |
| * @return set of indexes, pointing to the chosen individuals in the population set | |
| */ | |
| public int[] execute(double[] population, int n) { | |
| // Calculate total fitness of population |