TIL( Today I Learned)
23-01-23 월
- Holiday
23-01-24 화
Holiday
23-01-25 수
-
WORKPLACE
-
PHASE 1 9-12 | 6
- api 디버깅
- Asyncpg pool closing
-
PHASE 2 13-16 | 6
- 연결
-
PHASE 3 16-18 | 4
-
nginx 디버깅
- 내부 application 떠 있음
-
-
23-01-26 목
-
WORKPLACE
-
PHASE 1 9-12 | 6
-
프로젝트 데이터 처리
-
이벤트보다 anomaly 가 더 많음..
-
삐빅 정상입니다.
- 별개로 나가고 있음
-
-
-
도커 동작 .sh 써놓기
-
git pull
- git pull origin isec
-
location
- cd ~/ast_ai/fastapi-ai-serving-docker/fastapi-ai-service
-
ENV 선언
- export DOCKER_BUILDKIT=1
-
docker build
- docker build -f docker/api/Dockerfile3 . -t fastapi-ai
-
기존 프로세스 내리기
-
id 확인
- docker ps -aqf “ancestor=fastapi-ai”
- docker stop $(docker ps -aqf “ancestor=fastapi-ai”)
-
-
띄우기
- docker run -p 9797:8000 —add-host host.docker.internal:host-gateway -d fastapi-ai askdf
sdaf
-
-
-
PHASE 2 13-16 | 6
- 이벤트 MITRE 매핑
-
PHASE 3 16-18 | 4
-
23-01-27 금
- WORKPLACE
- 75개 검토 숙제
23-01-28 토
-
async iamport
- docstring 달기
- 미구현 api 들 달기
-
rebase with squashed remote
- unsquashed local merge
-
solution
-
앞에것들 같이 스쿼시로 뭉개면 된다.
- skipped rebase 진행됨
-
TEL (Trial and Error Log)
-
23-01-25
-
ERROR: TypeError: unsupported operand type(s) for -: ‘decimal.Decimal’ and ‘float’
-
SITUATION:
- dataframe column operate
-
REASON:
- type definition
-
SOLUTION:
- df[column].apply(typecastingfunc)
-
-
ERROR: TypeError: ufunc ‘isnan’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ”safe”
-
SITUATION:
- pandad dataframe trying np.isnan
-
REASON:
- np.isnan won’t work for object or string dtypes.
-
SOLUTION:
- use pd.isnull
-
-