본문 바로가기

전체 글168

vim에서 springboot 빌드하고 실행하기 1. 자신이 빌드하고 실행하고싶은 springboot 폴더에들어가서 ./gradlew build 입력 2. cd build/libs ->build폴더에 libs폴더 들어가기 3. ls 로 실행파일명 확인 4. java -jar hello-spring-0.0.1-SNAPSHOT.jar 위와 같이 실행시키면 빌드하고 실행끝! 위의 과정이 intellj안에서 파일 실행시키는거랑 vim에서 실행시키는것이랑 동일하다. 둘이 같이 실행하고 있으면 오류뜸 한쪽에서만 실행하길! 2023. 6. 29.
컬렉션 프레임워크 필수 암기 2023. 6. 27.
long 과 int 값을 같다고 생각한 에러 mac os 32bit에서는 long과 int가 4바이트로 같지만 mac os 64bit에서는 long이 8바이트로 long long과 같아진다. 따라서 내가 공부하는 OS는 mac os 64bit라 long과 int를 같다고 생각하면 안되는데 같다고 생각했다. 위의 코드를 보면 philo->last_eat_time은 long값을 리턴하고 이 리턴값을 result 변수에 값을 넣는다. 이 때 result는 int 값이다 그래서 philo->last_eat_time이 값은 long 값이면 mac os 64bit에서는 long long과 같다 따라서 philo->last_eat_time의 값이 int범위를 넘어경우 - 값이 된다. 이렇게 될경우 내가 원하는 값인 + 값이 안나오고 - 값이 나와 에러가 나오게.. 2023. 6. 21.
얕은 복사 vs 깊은 복사 얕은 복사 깊은 복사 개념 주소체를 복사한 것 메모리 공간을 새로 할당해서 복사하는 것 수정 원본이 수정된다 새로 메모리 공간을 할당해서 원본에는 영향이 갈수 없다 속도 빠르다 느리다 특징 특정 객체를 깊은 복사하는 경우 Clonable 인터페이스를 활용하여, clone()메서드를 Overriding해주어야 깊은 복사가 가능 2023. 6. 21.
1.4.4 Throughput in Computer Networks The instantaneous throughput at any instant of time is the rate (in bits/sec) at which Host B is receiving the file. If the file consists of F bits and the transfer takes T seconds for Host B to receive all F bits the average throughput of the file transfer == F/T bits/sec. Rs < Rc : the bits pumped by the server will “flow” right through the router and arrive at the client at a rate of Rs bps, .. 2023. 6. 20.
REST API vs SOAP API 차이 1. API란? API는 어떤 서버의 특정한 부분에 접속해서 그 안에 있는 데이터와 서비스를 이용할 수 있게 해주는 소프트웨어 도구 2. REST API vs SOAP API REST API SOAP API 네트워크를 통해서 컴퓨터들끼리 통신할 수 있게 해주는 아키텍처 스타일 그 자체로 프로토콜 해당 API를 사용하는 애플리케이션들이 동일한 경로를 통해서 접속해야 하고, 그 방식이 단순 보안이나 메시지 전송 등에 있어서 REST보다 더 많은 표준들이 정해져있기 때문에 조금 더 복잡합니다 인터넷 식별자(URI), HTTP 프로토콜 기반 보안 수준이 엄격, 기업용 애플리케이션 등을 작업하는데 더 이상적 웹에 최적화되어 있고, 데이터 포맷이 JSON이기 때문에 브라우저들 간에 호환성이 좋다 은행용 모바일 앱처.. 2023. 6. 12.
1.4 Delay, Loss, and Throughput in Packet-Switched Networks 1.4.1 Overview of Delay in Packet-Switched Networks The most important of these delays are the nodal processing delay, queuing delay, transmission delay, and propagation delay; together, these delays accumulate to give a total nodal delay. Processing Delay The time required to examine the packet’s header and determine where to direct the packet is part of the processing delay. Queuing Delay At t.. 2023. 6. 11.
1.3.3 A Network of Networks (p.58~) The access ISP can provide either wired or wireless connectivity, using an array of access technologies including DSL, cable, FTTH, Wi-Fi, and cellular. access ISP does not have to be a telco or a cable company; instead it can be, for example, a university (providing Internet access to students, staff, and faculty), or a company (providing access for its employees). Network Structure 1, intercon.. 2023. 6. 11.
함수의 매개변수가 어떤 것인지 확인하는 방법(intelliJ) Mac : command + p 위의 키를 누르면 위의 사진에나오는 것 처럼 어떤 매개변수 인지 나타난다. 2023. 6. 9.
사설 ip vs 공인 ip ip 주소란? IP 주소는 인터넷 프로토콜 주소를 의미하며 숫자로 구성되어 인터넷에 연결된 장치를 식별하는 역할을 합니다. 편지를 받으려면 우편함 주소가 필요하듯이 장치와 서버가 정보를 교환하기 위해서는 IP 주소가 필요하다. cf) ipv4 : IPv4 주소는 네 부분의 숫자로 구성되어 있으며 각 숫자는 x.x.x.x와 같이 점으로 구된다.. 또한 각 부분의 숫자는 0에서 255 사 이의 숫자로 구성된다. ipv6 : IPv6는 주소가 숫자와 알파벳이 포함된 16진법으로 구성되어 있으며, IPv4와 달리 암호화와 인증 기능을 제공한다는 차이점이 있다. 2. 사설 ip란? 공유기가 노트북, 스마트 TV, 휴대폰 등 홈 네트워크에 연결된 장치에 할당한 내부 IP 주소를 의미한다. 3. 공인 ip란? 인터넷.. 2023. 6. 8.
728x90