분류 전체보기
-
Vue 이미지 파일 업로드 하기Front-End(Vue) 2021. 10. 14. 11:40
두가지 방법 FileReader()를 사용하는 방법 URL.createObjectURL()을 쓰는 방법 이번 포스팅에서는 조금 더 간단한 두번째 방법을 활용해서 이미지 파일을 업로드 하는 법에 대해서 알아보겠습니다. # input이 들어왔을 때 코드를 실행하고 싶을 때는 change 이벤트를 활용하면 된다. methods : { upload(e){ # e 는 event와 관련된 자료 let file = e.target.files; # 내가 업로드한 파일이 다 담겨있다. let URL = URL.createObjectURL(file); # 내가 업로드한 파일 가져오는법 } } - 추가 정보 파일을 여러개 업로드 하고 싶으면 multiple을 써준다. 이미지 형식만 업로드 받고싶을때 accpet 파일 선택할..
-
[SWEA] 1949. 등산로 조성 (python)APS(Algorithm Problem Solving) 2021. 9. 16. 00:27
문제 바로가기 : [모의 SW 역량 테스트] 탈주범 검거 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 문제 요약 높은곳에서 낮은 곳으로 가로 또는 세로 방향으로 연결되는 최대 등산로의 길이를 구하는 문제 최대 K만큼 한번 깎을 수 있다. def dfs(x, y, cnt, k_cnt): global max_cnt # 최댓값 갱신 if max_cnt < cnt: max_cnt = cnt visited[y][x] = 1 # 4방향 탐색 하면서 for i in range(4): nx = x + dx[i] ny = y + dy[i] # 범위 내에 있으면 들어간다 if 0
-
[SWEA] 1952. 수영장 (python)카테고리 없음 2021. 9. 9. 00:19
문제 바로가기 : [모의 SW 역량 테스트] 수영장 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 문제 요약 1일, 1개월, 3개월, 1년 이용권에 대한 가격, 월별로 1년 수영장 이용 횟수를 받아서 가장 저렴하게 수영장을 사용했을 때의 가격을 구하는 문제 접근 방법 1일권과 1개월권을 먼저 비교해서 월별로 더 저렴한 가격을 구해 리스트로 받는다. 그 리스트를 3개월 단위로 끊어서 3개월 권과 비교 마지막으로 1년권과 비교해서 가장 저렴한 경우를 구한다. 내가 푼 코드 T = int(input()) for tc in range(1, T+1): price = list(map(int, input().split()..
-
6장 4계층 프로토콜네트워크 입문 2021. 9. 8. 23:08
따라하면서 배우는 IT 따라하면서 배우는 IT 어렵게 느껴질 수 있는 IT기술들을 하나하나 따라하면서 학습할 수 있는 곳입니다. www.ddarahakit.kro.kr 에 가시면 동영상 내용에 해당하는 설명도 함께 보실 수 있어요. www.youtube.com 여기서 배운 내용을 정리한 것입니다! 4계층 프로토콜 4계층(전송 계층)에서 하는 일 ex) 카톡에서 카톡으로 전달 송신자의 프로세스와 수신자의 프로세스를 연결하는 통신 서비스를 제공한다. 연결 지향 데이터 스트림지원, 신뢰성, 흐름제어, 다중화와 같은 편리한 서비스를 제공한다. 4계층 프로토콜의 종류 TCP 전송 제어 프로토콜 연결 지향 전송 방식을 사용 안전한 연결을 지향 연결이 되면 데이터를 보내고 잘 받았는지 확인한다. UDP 프로토콜 단순..
-
오늘의 면접 예상질문 3IT 기술면접 준비 2021. 9. 8. 17:06
HTTP와 HTTPS의 차이는 무엇인가요? HTTP : Hyper Text Transfer Protocol Protocol이라는 말은 규정, 규약 이라는 뜻 하이퍼 텍스트 트랜스퍼 프로토콜 : 전송에 대한 규약 HTTPS : Hyper Text Transfer Protocol Secure 차이 HTTPS는 기존의 프로토콜에 비해 보안이 강화된 프로토콜 HTTPS는 서버와 클라이언트간에 데이터를 암호화해서 넘긴다. 전송속도는 http보다 느리지만 보안은 훨신 더 높다. 풀어쓰면 HTTP와 HTTPS의 가장 큰 차이는 서버와 클라이언트 간에 데이터를 전송할 때 암호화 해서 넘기느냐 아니냐의 차이입니다. 보안이 강화되었기 때문에 전송속도는 HTTPS가 HTTP보다 느리지만 보안은 훨신 더 좋습니다.
-
5장 ARP프로토콜네트워크 입문 2021. 9. 7. 23:57
따라하면서 배우는 IT 따라하면서 배우는 IT 어렵게 느껴질 수 있는 IT기술들을 하나하나 따라하면서 학습할 수 있는 곳입니다. www.ddarahakit.kro.kr 에 가시면 동영상 내용에 해당하는 설명도 함께 보실 수 있어요. www.youtube.com 여기서 배운 내용을 정리한 것입니다! ARP가 하는 일 같은 네트워크 대역에서 통신을 하기위해 필요한 MAC주소를 IP주소를 이용해서 알아오는 프로토콜 같은 네트워크 대역에서 통신을 한다고 하더라도 데이터를 보내기 위해서는 7계층부터 캡슐화를 통해 데이터를 보내기 때문에 IP주소와 MAC주소가 모두 필요하다. 이 때 IP주소는 알고 MAC주소는 모르더라도 ARP를 통해 통신이 가능하다. ARP 테이블 통신 했던 컴퓨터들의 주소는 ARP테이블에 남는..
-
4장 OSI 3계층네트워크 입문 2021. 9. 6. 23:34
따라하면서 배우는 IT 따라하면서 배우는 IT 어렵게 느껴질 수 있는 IT기술들을 하나하나 따라하면서 학습할 수 있는 곳입니다. www.ddarahakit.kro.kr 에 가시면 동영상 내용에 해당하는 설명도 함께 보실 수 있어요. www.youtube.com 여기서 배운 내용을 정리한 것입니다! 3계층의 기능 3계층에서 하는일 3계층은 다른 네트워크 대역 즉, 멀리 떨어진 곳에 존재하는 네트워크까지 어떻게 데이터를 전달할지 제어하는 일을 담당 발신에서 착신까지의 패킷의 경로를 제어 3계층에서 쓰는 주소 IP 주소 : WAN에서 통신할 때 사용하는 주소 IPv4주소 : 현재 PC에 할당된 IP주소 서브넷 마스크 : IP주소에 대한 네트워크의 대역을 규정하는 것 게이트웨이 주소 : 외부와 통신할 때 사용하..
-
오늘의 면접 예상질문 2IT 기술면접 준비 2021. 9. 6. 19:04
SPA에 대해서 설명해 보세요 SPA란? Single Page Application의 약자 하나의 페이지로 구성되어있는 어플리케이션 현재 웹 개발의 트랜드 어떻게 이야기 해야하나? SPA는 싱글페이지 어플리케이션의 약자입니다. SPA가 나오기 이전에 웹페이지 개발은 각각의 파일마다 하나의 html파일을 가지지만 SPA는 하나의 뷰페이지에 컴포넌트를 추가하는 형식입니다. SPA를 왜쓸까요? 장점이 뭐죠? 전체 페이지를 업데이트 할 필요가 없기 때문에 빠르다. 필요한 리소스만 부분적으로 로딩 가능하다 모바일 환경에 알맞은 설계가 가능하다. 단점은? 초기 구동 속도가 느리다 검색엔진최적화(SEO)가 어렵다.