VPC 가상 네트워크(Virtual Private Cloud) Subnet(CIDR), EC2, RDS 등의 상위 요소 하나의 Region에만 속함 AZ Availability Zone 하나의 Region에 물리적으로 분리된 데이터 센터 Subnet VPC의 하위 단위 Private subnet(외부접속X), Pubilc subnet CIDR 블록을 통해 Subnet을 구분 Subnet1 : 211.11.124.0/26 (211.11.124.0 ~ 211.11.124.63) Subnet2 : 211.11.124.64/26 (211.11.124.64 ~ 211.11.124.127) Subnet3 : 211.11.124.128/26 (211.11.124.128 ~ 211.11.124.191) Subnet4 ..
문제 해결 최대 전원거리는 $최대 Chebyshev / 2$ LineA -> LineB의 최대 Chebyshev 거리를 구하되, 기준이 되는 점을 따로 잡아야 함 LineA의 pt1 -> 나머지Line들의 Chebyshev 거리의 최댓값 = ChebyshevA LineA의 pt2 -> 나머지Line들의 Chebyshev 거리의 최댓값 = ChebyshevB LineA -> 나머지Line 에 대한 전원거리는 $min(ChebyshevA / 2, ChebyshevB / 2)$ $O(N^2)$ 소스코드 /* Prob SCPC 1회 예선 회로판 위의 배터리 Writer MyungSeung Kim(mskim9967@gmail.com) */ #include #include using namespace std; in..
자격증명 우선순위 CLI 명령어 옵션 환경 변수 ~/.aws/credentials ~/.aws/config 인스턴스 프로파일 자격증명 ~/.aws/config # default profile 등록 [default] # 자격 증명 aws_access_key_id=... aws_secret_access_key=... # 기본 region 설정 region=ap-northeast-2 # 출력 형식(json, text, table, yaml, yaml-stream output=yaml # 다른 profile 등록 [profile user1] aws_access_key_id=... aws_secret_access_key=... region=... 다른 profile 사용 환경변수 등록 export AWS_PROF..
Postgres DB를 사용한 예제 TypeORM Setting Install $ npm install pg typeorm @nest/typeorm pg: Postgres module typeorm: Typeorm module @nestjs/typeorm: Typeorm-nestjs 연동 module Confing Setting // src/boards/board-status.enum export enum BoardStatus { PUBLIC = 'PUBLIC', PRIVATE = 'PRIVATE', } // src/configs/typeorm.config.ts import { TypeOrmModuleOptions } from '@nestjs/typeorm'; export const typeORMConf..
Module 생성 $ nest g module boards app module에서 불러오기 // app.module.ts @Module ({ imports: [boards] }) Controller 생성 $ nest g controller boards Module에서 Controller 불러오기 // boards.module.ts import { BoardsController } from './boards.controller'; @Module({ controllers: [BoardsController] }) Service 생성 $ nest g service boards Controller에서 Service/Provider 불러오기 // boards.module.ts import { BoardsServic..
const $ = cheerio.load((await axios.get(url)).data, { xmlMode: true }); { xmlMode: true }
Comment