본문 바로가기
728x90
반응형

Programming161

add multi addObserver for KVO using addObserver function to observe one or more specific values, should be able to separate values. ex. If we have Label1 and Label2, we don't know what is Label1's value in observeValue function.123456789101112131415// define two UILabel@IBOutlet var label1: UILabel!@IBOutlet var label2: UILabel! // add addObserver to each labellabel1.addOberver(self, forKeyPath: "text", options: [.old, .new].. 2017. 7. 16.
[SSH] no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 문제 OpenSSH가 7.0이상 키 교환 알고리즘이 기본으로 켜져 있지 않아서 나는 문제로 SSH 접속 시 직접 알고리즘을 키거나 1ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@hostcs ~/.ssh/config 설정을 추가하면 된다. 1234567HOST host HostName host User user Port port KexAlgorithms diffie-hellman-group1-sha1 $ssh hostColored by Color Scriptercs 2017. 5. 26.
docker file copy from container to host 12docker cp :/file/path/within/container /host/path/target Colored by Color Scriptercs 2017. 4. 3.
Nginx on Docker Run Nginx on Docker 1. Create Dockerfile1234FROM nginxCOPY html /usr/share/nginx/html # html directory of contentADD nginx.conf /etc/nginx/nginx.conf # nignx config fileCMD ["nginx", "-g", "daemon off;"]cs 2.Create nginx.conf1234567891011121314user nobody nogroup;worker_processes auto; # auto-detect number of logical CPU cores events { worker_connections 512; # set the max number of simultaneous.. 2017. 3. 30.
728x90
반응형