728x90 전체 글412 Ways of Variable Swapping Python에서는 tuple unpacking 방식으로 변수끼리 값을 스왑할 수 있다. C에서는 Temporary 변수를 활용해서 스왑하지만 Python은 그렇지 않아도 돼서 어떤 동작 원리가 숨어 있을까 궁금했다. https://swprog.tistory.com/entry/Python-tuple-unpacking-%ED%8C%8C%EC%9D%B4%EC%8D%AC-%ED%8A%9C%ED%94%8C-%EC%96%B8%ED%8C%A9%ED%82%B9 해당 글을 보고 tuple unpacking에 대해 알게 되었다. 그리고 궁금증 해결도 잠시... https://medium.com/@eliyazaidi16/exploring-7-different-ways-to-swap-variables-in-python-a2c.. 끄적끄적(Memo)/레퍼런스(reference) 2024. 3. 30. Github 인증 오류 해결 git pull을 하는데 해당 오류가 발생하였다. remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for '*' 원인은 1. github 정책에서 password 권한 인증 기준이 바뀐 것(2021.08.13일자 부로.. 끄적끄적(Memo)/레퍼런스(reference) 2023. 4. 9. [컴퓨터네트워크]15. Network Layer : Introduction, Virtual circuit and datagram, networks Network Layer Two key network-layer functions Interplay between routing and forwarding Network service model Connection, connection-less service transport 계층에서는 Process to process service 개념은 유사하지만 특징이 다름 Virtual circuits VC implementation call setup 시 : 이전 홉에게 - 앞으로 이 call setup request에 속하는 데이터그램이면 VC Number XX로 보내줘 => VC number가 달라짐 VC number가 다를 경우 - VC number 필드가 짧아질 수 있음 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 4. 4. [컴퓨터네트워크]14. Principles of congestion control - TCP congestion control Principles of congestion control Causes/costs of congestion: scenario 3 Approaches towards congestion control single bit : 0 or 1 = 있다 없다. TCP congestion control TCP Slow Start TCP Congestion Avoidance 1MSS(1 maximum segment size) / CWND => 1 RTT 당 TCP: detecting reacting to loss TCP: switching from slow start to CA TCP throughput TCP Futures: TCP over "long, fat pipes" TCP Fairness Why is TCP f.. 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 4. 3. [컴퓨터네트워크]13. Connection-oriented transport: TCP TCP reliable data transfer TCP sender events TCP ACK generation TCP fast retransmit TCP flow control Connection Management Agreeing to establish a connection ( 2-way handshake failure scenarios ) TCP 3-way handshake TCP: closing a connection 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 4. 1. [컴퓨터네트워크]12. Connectionless transport: UDP, Principles of reliable data transfer, Connection-oriented transport: TCP Transport layer의 핵심 : process to process logical communicationdemux, mux) Connection-oriented demux UDP: User Datagram Protocol [RFC 768] UDP: segment header UDP checksum segment에 오류가 있을지도 모르겠다 정도만 알려줌 Summary of Reliable Data Transfer Mechanism TCP: Overview TCP segment structure TCP seq. numbers, ACKs TCP round trip time, timeout 출처 kocw 이화여대 컴퓨터네트워크(이미영 교수님) 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 4. 1. [컴퓨터네트워크]11. Transport layer Transport services and protocols Internet transport-layer protocols Multiplexing/demultiplexing How demultiplexing works Connectionless demultiplexing 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 3. 31. [컴퓨터네트워크]10. Socket programming and Summary Socket programming Socket programming With UDP Client/server socket interaction: UDP Example app: UDP client / server socket programming With TCP client/server Interaction : TCP Example app: TCP client / server 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 3. 31. [컴퓨터네트워크]9. P2P Pure P2P architecture File distribution time: client-server File distribution time: P2P BitTorrent : requesting, sending file chunks / tit-for-tat 출처 : kocw 이화여자대학교 컴퓨터 네트워크(이미정 교수님) 프로그래밍공부(Programming Study)/네트워크(Network) 2023. 3. 31. 13. DNS records와 사례 알려줘 DNS 레코드(DNS records)는 도메인 이름 시스템(Domain Name System)에서 사용되는 데이터 구조로, 호스트 이름과 IP 주소 등과 같은 도메인 이름과 관련된 정보를 저장합니다. DNS 레코드는 도메인 이름과 연관된 정보를 찾는데 사용되며, DNS 쿼리를 통해 이러한 레코드들을 검색합니다. DNS 레코드는 다양한 유형이 있으며, 각각의 레코드 유형은 특정한 정보를 저장합니다. 다음은 일반적으로 사용되는 몇 가지 DNS 레코드 유형입니다. A 레코드: 호스트 이름과 IP 주소를 연결하는 레코드입니다. 이 레코드는 호스트 이름에 해당하는 IPv4 주소를 저장합니다. AAAA 레코드: 호스트 이름과 IPv6 주소를 연결하는 레코드입니다. CNAME 레코드: 호스트 이름의 별칭(alias).. 프로그래밍공부(Programming Study)/WithChatGPT 2023. 3. 31. 12. DNS root server 비용 지불은 누가하니? DNS 루트 서버를 운영하는 비용은 여러 기관과 단체들이 분담하고 있습니다. 다음은 DNS 루트 서버를 운영하기 위한 비용을 부담하는 기관들입니다. ICANN (Internet Corporation for Assigned Names and Numbers): ICANN은 전 세계적인 DNS 루트 서버 인프라를 운영하고 있으며, 이를 위해 여러 기관 및 단체들로부터 자금을 받아들이고 있습니다. 국가 정부 기관: 일부 국가에서는 자체적으로 DNS 루트 서버를 구축하고 운영하며, 이를 위한 자금은 해당 국가의 정부 예산으로 부담하기도 합니다. 인터넷 서비스 제공업체(ISP): ISP는 자체적으로 DNS 서버를 운영하고 있으며, 이를 통해 사용자에게 DNS 조회 서비스를 제공합니다. 인터넷 관련 단체: DNS 루.. 프로그래밍공부(Programming Study)/WithChatGPT 2023. 3. 31. 11. DNS root server 위치 DNS 루트 서버는 전 세계에 13개가 분산되어 있으며, 각각의 서버는 다음과 같은 위치에 위치하고 있습니다. A Root: 미국 버지니아 주 애쉬번 B Root: 미국 캘리포니아 주 로스앤젤레스 C Root: 미국 미네소타 주 미니애폴리스 D Root: 미국 메릴랜드 주 매리랜드주립대학교 E Root: 미국 노스캐롤라이나 주 덤 F Root: 스페인 마드리드 G Root: 미국 일리노이 주 시카고 H Root: 미국 버지니아 주 허스턴 I Root: 스웨덴 스톡홀름 J Root: 일본 도쿄 K Root: 미국 조지아 주 애틀랜타 L Root: 미국 캘리포니아 주 엘에이 M Root: 미국 버지니아 주 애쉬번 이러한 DNS 루트 서버들은 지구 상의 여러 지역에 분산되어 있어서 인터넷 사용자들이 도메인 이.. 프로그래밍공부(Programming Study)/WithChatGPT 2023. 3. 31. 이전 1 ··· 10 11 12 13 14 15 16 ··· 35 다음 728x90