Setup Docker on Linux

NOTE – if you are going to run kubernetes then you will need Hyper-V which will fight with VMWare, rather use virtual-box.

Steps to install #docker on Ubuntu

  1. Download VMWare Workstation Player
  2. Download linux ISO
    1. ubuntu-17.10.1-desktop-amd64.iso
    2. ubuntu-17.10.1-server-amd64.iso (GUIs face :D)
  3. Add to VMware-player
    1. (Docker VM) un/pw carl/carl
    2. (PSQL VM) un/pw carl/carl
  4. After the install, allow Putty Session for remote management
    1. How to install and configure SSH on Ubuntu (Server) 14.04 LTS Step-by-Step
1
2
3
4
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server
ip addr show

Also see other FTP Server Options

  1. Putty to the server on the IP from the above command, then run the following commands
1
2
3
4
5
#(1) Set up the docker repository
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

If you are running ‘artful’ you will need to use this repository

1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"
1
2
3
#(2) Install Docker CE
sudo apt-get update
sudo apt-get install docker-ce
1
2
#(3) Verify the installation
sudo docker run hello-world

Senior Telemaster

Senior Telemaster

Based on suggestions by domain experts the wing should be built with zero dihedral: https://en.wikipedia.org/wiki/Dihedral_(aeronautics)

Wing Construction (2 piece, removable spar):

Wing Construction (1 piece):

Fuselage Construction:

  • TBA

Size Conversions

Size Conversions, Inches upset me!

Downloaded Plans (outerzone)

References

C# Enum

Enumeration types

The enum keyword is used to declare an enumeration, a distinct type that consists of a set of named constants called the enumerator list.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public static class GenericStatus
{
public enum GenStatusEnum
{
Pending,
Approved,
Declined
}

public static string ReadStatus(int id)
{
GenStatus s;
Enum.TryParse<GenStatus>(id.ToString(), out s);
return s.ToString();
}
}

Enumeration types as bit flags

You can use an enumeration type to define bit flags

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace EnumDemo.Enum
{
[Flags]
public enum Days
{
None = 0,
Sunday = 1,
Monday = 2,
Tuesday = 4,
Wednesday = 8,
Thursday = 16,
Friday = 32,
Saturday = 64
}
}

You create a bit flags enum by applying the System.FlagsAttribute attribute and defining the values appropriately so that AND, OR, NOT and XOR bitwise operations can be performed on them.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using EnumDemo.Enum;
using System;

namespace EnumDemo
{
class Program
{
static void Main(string[] args)
{
// Initialize with two flags using bitwise OR.
var meetingDays = Days.Tuesday | Days.Thursday | Days.Friday;
Console.WriteLine($"Meeting days are {meetingDays} with flag value {(int)meetingDays}");
// Meeting days are Tuesday, Thursday, Friday with flag value 52

// Toggle a flag using bitwise XOR, this will remove `Days.Tuesday` from `meetingDays`
meetingDays = meetingDays ^ Days.Tuesday;
Console.WriteLine($"Meeting days are {meetingDays} with flag value {(int)meetingDays}");
// Meeting days are Thursday, Friday with flag value 48

// Test value of flags using bitwise AND, this is checking for the existance of `Days.Thursday` in `meetingDays`
bool test = (meetingDays & Days.Thursday) == Days.Thursday;
Console.WriteLine($"Thursday {(test == true ? "is" : "is not")} a meeting day.");
// Thursday is a meeting day.
}
}
}