728x90
전체 글
544

HTTP 버전별 특징

HTTP/1.0 기본적으로 한 연결당 하나의 요청을 처리한다. 서버로부터 파일을 가져올 때마다 3-way handshaking이 계속 일어나 RTT가 증가한다. RTT: 패킷이 목적지에 도달하고 다시 돌아오기까지 걸리는 왕복 시간 RTT의 증가를 해결하기 위한 방법으로 "이미지 스플리팅, 코드 압축, 이미지 Base64 인코딩"이 있다. HTTP/1.1 keep-alive라는 옵션이 적용되어 한 번의 3-way handshaking으로 여러 파일을 송수신할 수 있다. HOL(Head Of Line) Blocking: 같은 큐에 있는 패킷 중 첫 번째 패킷에 의해 지연될 때 발생하는 성능 저하 현상 헤더에 많은 메타데이터가 포함되어 무겁다 HTTP/2 여러 개의 스트림을 사용하여 송수신할 수 있는 멀티플렉..

Network 2023.05.25

Autoconstrain Model

Task Description partner prediction: 스케치의 노드와 constraints를 나타내는 그래프가 주어지면 새로운 constraint를 예측하기위해 현재 노드에 연결해야할 노드를 예측 constant lable prediction: partner prediction의 결과와 현재 constraint의 target partner가 주어지면 현재 constraint의 type을 예측 Model Description 모델은 다음 세 가지로 나누어진다. input representation: embedding the features from the primitives and constraints message passing: transforming these features using ..

Deep Learning 2023.05.24

[Paper] Discovering Design Concepts for CAD Sketches (4)

Cost matrix construction generated element와 target element와의 비교를 위해 type 차이를 계산 type과 parameter의 차이를 cross-entropy로 계산 reference의 binary distance 계산 Matching and reconstruction loss cost matrix C 가 주어지면 linear assignment를 적용 indices = [ linear_sum_assignment(c.detach().cpu()) for c in cost_matrixs] reference loss reference_loss = self.NLLloss(ref_pred_logprob, ref_dest_cand_idx) * self.correspon..

Deep Learning 2023.05.18

[Python] Cloudflare Workers get started

Install wrangler npm install -g wrangler Generate project npx wrangler generate https://github.com/cloudflare/python-worker-hello-world.git - 현재 시간을 기준으로 python-worker-hello-world 레포의 wrangler.toml에서 accound_id, workers_dev, route를 삭제한다. - Pull requests에 이미 있기 때문에 이후에 업데이트될 것 같다. 그 전까지는 직접 삭제해주어야한다. Install transcrypt - vitualenv를 사용할 경우 cd my-python-project virtualenv env source env/bin/activat..

Temp 2023.05.16

[Flutter] FlutterError (setState() or markNeedsBuild() called during build.

아래처럼 widget이 return되기 전에 조건에 따라 실행되는 함수를 넣었다. ValueListenableBuilder( valueListenable: notifierValue, builder: (context, value, child) { if (value == 0) { func(); } return Row( ... func 함수는 다음과 같이 Navigator.push를 포함한다. void func() { ... Navigator.push( context, MaterialPageRoute( builder: (context) => HomeScreen(); ... } FlutterError (setState() or markNeedsBuild() called during build. 라는 에러가 발생..

Dart & Flutter 2023.05.12

[chrome] omnivore 사용하여 논문, 글 정리

Sign Up https://omnivore.app/login 위에서 회원가입 및 로그인 Add omnivore extension https://chrome.google.com/webstore/detail/omnivore/blkggjdmcfjdbmmmlfcpplkchpeaiiab?hl=en-US Omnivore Save PDFs and Articles to your Omnivore library chrome.google.com Add paper or blog post chome extension을 통해서 추가하는 방법과 링크로 추가하는 방법이 있다. 1. chrome extension 추가한 omnivore extension을 사용하면 다음과 같이 우상단에 뜬다. 2. add link 좌하단에 "+ Ad..

Temp 2023.05.12

[Flutter] This widget has been unmounted, so the State no longer has a context (and should be considered defunct).

FlutterError (This widget has been unmounted, so the State no longer has a context (and should be considered defunct). Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.) 위 에러를 만났을때의 코드를 확인해보면 다음과 같다. @override void initState() { super.initState(); Navigator.pop(context); // this code is problem Navigator.push( context, Ma..

Dart & Flutter 2023.05.10
728x90