Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| use std::str; | |
| fn main() { | |
| // -- FROM: vec of chars -- | |
| let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
| // to String | |
| let string1: String = src1.iter().collect::<String>(); | |
| // to str | |
| let str1: &str = &src1.iter().collect::<String>(); | |
| // to vec of byte |
| wget https://storage.googleapis.com/golang/go1.10.1.linux-armv6l.tar.gz | |
| sudo tar -C /usr/local -xvf go1.10.1.linux-armv6l.tar.gz | |
| cat >> ~/.bashrc << 'EOF' | |
| export GOPATH=$HOME/go | |
| export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin | |
| EOF | |
| source ~/.bashrc |
| # enable Docker for your repository | |
| options: | |
| docker: true | |
| pipelines: | |
| branches: | |
| development: | |
| - step: | |
| # python image with aws-cli installed |
This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.
The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.
The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb and 1G on versatile-a9/versatile-a15). It also supports virtio disks whereas versatile-a9/versatile-a15 only support SD cards via the -sd argument.
| $ python xor.py | |
| Training: | |
| Epoch 0 MSE: 1.765 | |
| Epoch 100 MSE: 0.015 | |
| Epoch 200 MSE: 0.005 | |
| * Target MSE reached * | |
| Evaluating: | |
| 1 XOR 0 = 1 ( 0.904) Error: 0.096 | |
| 0 XOR 1 = 1 ( 0.908) Error: 0.092 | |
| 1 XOR 1 = 0 (-0.008) Error: 0.008 |
rsync (Everyone seems to like -z, but it is much slower for me)