분류 전체보기 192

[iOS 스탠포드] Chapter3

Chapter 3 ✔︎ 수정사항 - Computed Progerties : 굳이 메모리에 저장되지 않아도 되는 변수 -> get{}, set{} 메소드를 통해 수정 : 필요시에 해당 메소드가 실행된 값을 반환, 설정하는 구조 //before : 저장된 변수값만 의미를 지닌 상태, 어떻게 사용, 저장하느냐에 따라 에러가 발생할 가능성이 있는 상태 var indexOfOneAndOnlyFaceUpCard: Int? //after : 사용, 저장시에 일종의 규칙을 명시하여 에러상황을 방지한 코드 var indexOfOneAndOnlyFaceUpCard: Int? { get { var foundIndex: Int? for index in cards.indices { if cards[index].isFaceUp ..

[iOS 스탠포드] Assignment 1 : Concentration

Required Tasks 1. Get the Concentration game working as demonstrated in lectures 1 and 2. Type in all the code. Do not copy/paste from anywhere. - 새롭게 제작 2. Add more cards to the game. - 4*4 배열인 16개의 카드로 수정 3. Add a “New Game” button to your UI which ends the current game in progress and begins a brand new game. - 버튼 생성 및 IBAction 연결 코드 @IBAction func newGame(_ sender: UIButton) { emojiChoices[g..

[iOS 스탠포드] Chapter2

Chapter 2 - StoryBoard : View - ViewController : Controller - Concentration : Model - Card : Struct ✔︎ MVC 구조 - M : Model - UI와 관련없는(import Foundation) 코드, 즉 Controller가 명령을 내리면 무엇을 보일지 여부 - V : View - UI만으로 존재 (StoryBoard) - C : Controller - View와 Model 사이의 소통담당(import UIKit), 어떻게 화면에 표시할지 여부 - C -> M, V : 직접적으로 접근 가능 - V -> C - delegate : 행위에 대한 요청 - data source : 데이터에 대한 요청 - M -> C : Notific..

[iOS 스탠포드] Chapter1

이번 방학동안에는 뭘하면서 실력을 쌓아볼까 고민을 하다가 얼마 후에 있을 네이버 부스트캠프 지원과 Stanford Univercity 교수님께서 강의하신 iOS11 강의를 쭉 들어볼 생각입니다 해당 영상은 Youtube 내에도 있지만 아무래도 영문강의다 보니 힘들것 같더라구요 그래서 Edwith 에 있는 [스탠포드]Swift를 활용한 iOS11 앱 개발 www.edwith.org/swiftapp [스탠포드]Swift를 활용한 iOS11 앱 개발 강좌소개 : edwith - 커넥트재단 www.edwith.org 위 강의가 한국어 자막과 더불어 간단한 요약내용이 있어 선택했습니다! Chapter 1 ✔︎ 목표 - 카드를 클릭하면 뒤집어지며, count 수가 증가된다! - 여러개의 카드의 outlet, act..

[OS] Week04 - 2 (3/25) : mailbox, synchronization, buffer, thread, multi threading

MailBox - Process : 여러개의 MailBox에 연결이 가능 - MailBox : 여러개의 Process에 연결이 가능 - MailBox 연결 설정은 Programmer가 원하는 대로 설정 - send(A, message) : A mailbox에 메세지 전송 - receive(A, message) : A mailbox에서 메세지 수신 MailBox 특징 4가지 - 1. Allow a link to be associated with at most two processes : 두가지 process끼리 연결 가능 - 2. Broadcasting : mailbox에서 다른 process에 메세지 전달 - 3. Allow only one process to receive a message : 한 pr..

JDBC : Java(eclipse), DB(progresSql) 연결하기

[ 준비과정 ] 1. java 설치하기 - 구글링 -> terminal 에서 "java -version", "javac -version" 입력시 정상출력 확인 2. eclipse 설치하기 - 구글링 3. postgreSql 설치하기 www.postgresql.org/download/ PostgreSQL: Downloads Downloads PostgreSQL Downloads PostgreSQL is available for download as ready-to-use packages or installers for various platforms, as well as a source code archive if you want to build it yourself. Packages and Install..

DB (DataBase) 2021.04.12

SQL 쿼리문 정리 - Subquery

[ subquery ] - where 문 outer query : 바깥의 query를 뜻 inner query, sub query, nested query : 안의 query를 뜻 outer query의 attribute 값과 inner query의 colum을 비교한다. 이때 inner query가 outer query 값에 영향을 받을 때 Correlated subquery 라고 부른다. * in, some, all : outer query의 attribute 와 inner query의 attribute에 해당되는 colum과 비교한다 1. in : 포함여부(true, false) 즉 outer query가 inner query에 포함되는 결과만 반환 즉 intersect와 동일한 결과 2. not ..

DB (DataBase) 2021.04.07

SQL 쿼리문 정리

1. 기본적인 사용형태 select name -- attribute from instructor -- relation where dept_name = 'Comp.Sci.' and salary > 80000 -- predicate 2. distinct : 퀴리문은 중복된 값을 허용하기 때문에 중복을 제거할 경우 사용. select dept_name --12가지의 중복된 데이터, all 키워드가 생략된 형태 from instructor; select distinct dept_name --7가지의 중복없는 데이터 from instructor; 3. select 문에 4칙연산이 들어갈 수 있다 select ID, name, salary --저장된 salary 그대로 출력 from instructor; selec..

DB (DataBase) 2021.04.06

SQL 쿼리문 정리 - BASIC

[INTRO] DB - how to search and store large data - not stored in main memory (not file system) Data scientist - Data Analyst : SQL, phython을 사용하여 분석하는 역할 - Data Scientist : develop algorithm or model 즉 query 문의 알고리즘을 제작하는 역할 File system의 문제점 - Difficulty in accessing data : 데이터에 접근이 불편하다 - Data isolation and separation (multiple file) : insert, delete 시 정보접근이 불편하며 불정확하다 - Integrity problems - Ato..

DB (DataBase) 2021.04.05

[OS] Week04 - 1 (3/23) : fork, exec, zombie, abort, IPC, buffer, spin lock, synchronization

fork 함수의 몇가지 이슈 - 1. Resource sharing options : 자원 공유 : subset, 즉 일부만 공유한다 - 2. Execution options : 수행 측면 : Parent, child는 concurrently 하게 동작한다 Parent 는 child 가 termination 될때까지 wait 한다 - 3. Address space : Child 는 duplicate 한 후 exec 로 초기화를 하여 또다른 process를 생성한다 Stack, Heap, Data, Text 중 Text는 새로운 코드로 바뀌며 나머지는 초기화 된다. fork 4가지 측면 정리 - 1. Resource sharing : subset - 공유 가능 : file - 공유 불가능 : CPU tim..

[OS] Week03 - 2 (3/18) : process state, PCB, scheduler, architecture

Process address space - virtual memory - Stack : method, local value - heap : Dynamically allocate moemory - data - text : code Process - not Program (text) : passive : "Execution" - Program + Stack + Heap + PCB : active (유동적으로 변동한다) Process State - new : created - running : executed (현재 진행중인 프로세스) - waiting : Interrupt를 기다리는중 (I/O request 상태) - ready : 다른 process가 running 중일때 임시정지상태 - terminate..

[OS] Week03 - 1 (3/16) : parameter, layered structure, virtual machine, boot

Passing parameters in system calls - 1. register에 parameter 전달 : parameter 가 6개 이하일 경우 그대로 전달 - 2. regester에 block 전달 : parameter가 6개 초과일 경우 주소값 block을 전달 Micro-kernel-based-approach - Monolitic kernel과 반대되는 개념 - kernel에 process manager 등 핵심만 존재 - 많은 기능들을 user space에서 동작되도록 설계 - kernel 확장이 쉽다 - 새로운 구조를 넣기 쉽다 - 신뢰도가 상승한다 (버그 감소) - overhead, message passing이 빈번하게 발생한다 Simple structure - MS-DOS때 쓰인..

[OS] Week02 - 2 (3/11) : system call interface (POSIX - kernel - system call number - run)

OS 전반적인 내용 요약 - Process : 현재 수행중인 프로그램 (program in execution) : Context Switch를 통해 전환된다 - Thread : Overhead를 줄이기 위한 개념 - Scheduling : CPU - 100 process 중 1 process를 CPU가 연산 - Synchronization : "semaphore", "critical section" 중요개념 - Deadlock : process 중단현상 - Memory : Virtual Memory : address translation이 이루어진다 : MMU가 한다 (Memory Management Unit) - HDD scheduling : seektime이 오래걸린다, SSD : NVM, NVMe,..

[OS] Week02 - 1 (3/9) : storage structure, cashing, multiprocess, scheduling

Interrupt - DMA가 cpu 간섭없이 I/O 작업을 수행 후 종료를 알려주는 역할 - ISR : Interrupt Service Routine의 약어 (Interrupt Handler)로 Interrupt가 종료될 시 CPU가 필수로 수행하는 함수 Interrupt 수행순서 - I/O 작업이 수행된다 - DMA가 작업을 수행한다 - 작업이 종료되면 Interrupt가 발생한다 - CPU는 현재 수행중인 내용의 위치를 Save 한다 - CPU는 해당 Source의 ISR를 실행하기 위해 Interrupt Vertor 값을 참조한다 - ISR 위치를 찾아 수행한다 - ISR 종료 후 수행중인 위치로 복귀한다 Interrupt, Trap - Interrupt : external processor에 의..