전체 글 썸네일형 리스트형 [Linux] 터미널에서 서버로 파일 업로드하기 서버가 외부에 위치한 경우, 아래와 같은 명령어를 통해 파일을 서버에 업로드할 수 있다. scp [파일경로] [사용자@서버도메인:목적지경로] bash: scp: command not found 오류 발생 시에는 아래 자료 참고하여 서버에 openssh-cliients를 설치하면 된다. https://shary1012.tistory.com/252 더보기 [Tomcat] 톰캣 버전 확인, 시작, 중지, 재가동 하기 1. 톰캣 버전 확인 -1. 톰캣 설치 경로로 이동. 일반적으로 cd /usr/local에 보면 tomcat 폴더가 있음. -2. 위와 같이 tomcat 폴더명 뒤에 붙은 숫자로 버전을 알 수 있지만, 만약 tomcat 폴더명에 숫자가 없다면 lib 폴더로 이동한 후, 아래의 명령어를 입력해주자. 그러면 버전 확인도 가능하고, 좀 더 자세한 정보를 얻을 수 있다. java -cp catalina.jar org.apache.catalina.util.ServerInfo 2. 톰캣 서버 켜기 cd [설치경로]/bin ./startup.sh 또는 service tomcat start 3. 톰캣 서버 끄기 cd [설치경로]/bin ./shutdown.sh 또는 service tomcat stop 4. 톰캣 서버 .. 더보기 [알고리즘] 그리디 알고리즘과 예제 그리디 알고리즘: 탐욕법. 현재 상황에서 지금 당장 좋은 것만 고르는 방법. 문제 유형 파악 어려울 때는 그리디 알고리즘을 의심하고, 탐욕적 해결법이 존재하는지 고민한다. 그럼에도 없다면 DP, 그래프 등을 고민한다. #예제1. 거스름돈. 500/100/50/10원 무한히 존재. 거슬러줘야할 동전의 최소 개수 구하기. #--> 가장 큰 화폐 단위부터 거슬러 주기. n = input() count = 0 coins = [500, 100, 50, 10]; for coin in coins: count += n //coin n %= coin print(count); # 예제2. 큰수의법칙 # n개의 수에서 k만큼 반복할 수 있고, m번 더해서 가장 큰 수 구하기. n, m, k = map(int, input().. 더보기 [컴퓨터구조] 3. Arithmetic for Computers [요약] 1. Integer Addition and Subtraction 2. Integer Multiplication - 기존 : Prod = Prod + Mcand --> SL Multiplicand --> SR Multiplier - Improved : (Multiplier를 product 하위 32비트에 초기화) --> Prod(상위 32비트)에 multiplicand 더하기 --> SR Product 3. Integer Division - (Dividend를 Remainder 하위 32비트에 초기화) --> SL Remainder --> Remainder(상위 32비트)에서 Divisor 빼기 --> Remainder의 MSB가 1: Remainder LSB에 +1 한 후, Remainder(상.. 더보기 [네트워크] DNS Cache 삭제 (Feat. Wireshark 응답이 오지 않을 때 해결 방법) Wireshark를 사용하다보면 응답이 오지 않을 때가 있다. 이건 이미 필요한 DNS캐시가 저장되어서 원하는 DNS교환이 발생하지 않는 상황일 수 있다. 따라서 DNS Cache 삭제가 필요하다. 1. 맥북 DNS Cache 삭제 방법 -1. 터미널 켠다 -2. sudo killall -HUP mDNSResponder; sleep 2 입력 -3. 비밀번호 입력 후 엔터 -4. 끝. 2. 윈도우 -1. CMD 켠다. -2. ipconfig/flushdns 입력 -3. 끝. 더보기 [컴퓨터비전] Read / Display / Resize Image and Video (VideoCapture 속성) 1. Pixel resolution 2. Total number of bits to store a digital image 3. Read an image 4. Read a video 5. Read a video from a webcam 6. Display an image 7. Display a video 8. Resize an image Pixel resolution - The number of pixels in an image VGA 640*480 HD 1280*720 --> 1k FHD 1920*1080 --> 2k QHD 2560*1440 UHD 3840*2160 --> 4k Total number of bits to store a digital image M: the number of rows(h.. 더보기 [컴퓨터구조] 2. Instructions Language of the Computer (Part1) [ 주요 ] 1. Instruction Set Architecture (ISA) -1. Instruction Set Architecture -2. Instruction Set 2. MIPS ISA Basics -0. MIPS ISA Key Idea -1. Registers -2. Arithmetic -3. Data transfer 3. Procedures in MIPS ISA 4. Translating and Starting a Program 5. Examples 1. Instruction Set Architecture (ISA) -1. Instruction Set Architecture ISA : 프로세서 등 HW를 직접 컨트롤할 수 있게 하는 정보로, Register 등에 대한 정보, Instruct.. 더보기 [컴퓨터구조] 1. Computer abstraction and technology 1. Introduction -1. The Computer Revolution makes novel applications feasible : novel (새로운). 휴대폰, 검색엔진, 등. 컴퓨터가 많이 pervasive(퍼져있는) -2. Classes of Computers(컴퓨터의 종류) Personal : 퍼스널 컴퓨터. 우리가 평상시 사용하는 컴퓨터. General purpose, variety of software. 일반적인 목적, 소프트웨어의 다양성. Subject to cost/performance tradeoff(비용과 성능 트레이드오프 적용) Workstations : High-performance. reliability(신뢰성). 그래픽, 영상편집, 캐드 등. Server : 서버 컴.. 더보기 이전 1 ··· 13 14 15 16 17 18 19 20 다음