본문 바로가기

분류 전체보기219

2 실습7 ORM 적용 - GET 단일조회 API 앞 단계 참조 링크:상태 코드:  2024.03.26 - [Web 개발/FAST API (인프런 강의 내용)] - 1 FastAPI 알아보기프로젝트 소개 및 환경 구축: 2024.04.05 - [Web 개발/FAST API (인프런 강의 내용)] - 1 실습1 GET API 전체조회1 실습1 GET API ToDo 전체 조회: 2024.04.05 - [Web 개발/FAST API (인프런 강의 내용)] - 1 실습1 GET API 전체조회1 실습2 GET API ToDo 단일 조회: 2024.04.09 - [Web 개발/FAST API (인프런 강의 내용)] - 1 실습2 GET API 단일조회1 실습3 POST API ToDo 생성: 2024.04.15 - [Web 개발/FAST API (인프런 강의 .. 2024. 5. 14.
LSF 데몬 관련 ERROR 00 개요목적: 흔한 LSF 문제를 다룸대부분의 문제들은 due to incorrect installation or configuration절차: error log files 먼저 확인해보기01 LIM 1. LIM dies quietly 절차Run the following command to check for errors in the LIM configuration files. # lsadmin ckconfig -vThis displays most configuration errorIf this does not report any errors, check in the LIM error log2. LIM unavailable설명sometimes the LIM is up, but executing the l.. 2024. 5. 13.
dialog (dialog 박스 시각화 패키지) 00  개요리눅스 환경에서 VERTICA를 설치할 때 yum install dialog로 dialog라는 패키지를 설치하였는데, 이 dialog 패키지가 정확히 어떤 것을 하는 것인지에 대해 알아보고자 한다 01 dialog 패키지란리눅스 환경에서 yum install dialog로 dialog를 설치할 수 있다1. 정의dialog는 리눅스 환경에서 console 기반으로 dialog를 만들기 위한 utility package"display dialog boxes from shell scripts" (man dialog)이를 통해 shell script에서 다양한 dialog 구성 가능기능: buildlist, calendar, checklist, dselect, editbox, form, fselect.. 2024. 5. 10.
2 실습6 ORM 적용 - HTTP Response 처리 앞 단계 참조 링크:상태 코드:  2024.03.26 - [Web 개발/FAST API (인프런 강의 내용)] - 1 FastAPI 알아보기프로젝트 소개 및 환경 구축: 2024.04.05 - [Web 개발/FAST API (인프런 강의 내용)] - 1 실습1 GET API 전체조회1 실습1 GET API ToDo 전체 조회: 2024.04.05 - [Web 개발/FAST API (인프런 강의 내용)] - 1 실습1 GET API 전체조회1 실습2 GET API ToDo 단일 조회: 2024.04.09 - [Web 개발/FAST API (인프런 강의 내용)] - 1 실습2 GET API 단일조회1 실습3 POST API ToDo 생성: 2024.04.15 - [Web 개발/FAST API (인프런 강의 .. 2024. 5. 10.
파이썬 Type Hint (타입 정보 명시적 표시) 00 개요파이썬을 사용하고 있는 도중에 강사가 todos:  List[ToDo] = get_todos(session=session)와 같이 '타입 힌트'라는 것을 사용하는데 뭔지 몰라서 알아보고자 함01 Type Hint란0. 예시# typing 모듈 사용 시from typing import List, Set, Dict, Tuple, Optionalnums: List[int] = [1, 2, 3]unique_nums: Set[int] = {1, 2, 3}vision: Dict[str, float] = {"left"L 1.0, "right": 0.9}jhon: Tuple[int, str, List[float]] = (25, "John Doe", [1.0, 0.9])grades: Optional[int] =.. 2024. 5. 8.
vsql admintools 사용하기 00 개요SI 1.0 설치 관련 학습 시 VERTICA DB 접속 확인 및 SI-DB 설치 확인 할 때 vertica를 전에 (며칠 전) 설치했었는데 다시 vsql 명령어를 통해서 DB에 접속하려니까 다음과 같은 에러가 뜸[root@si1dya analytics9.1.4_deploy_dbschema]# vsql -U siuser -w sivsql: could not connect to server: Connection refused Is the server running on host "???" and accepting TCP/IP connections on port 5433?그래서 다음과 같이 입력하여 vertica가 실행되고 있는지 확인해봤는데 실행중이지 않고 있었음[root.. 2024. 5. 7.
로그 레벨 (log4j) 01 log4j란1. 정의 Java logging framework (composed of an API, its implementations, and components to assist the deployment for various use cases)Apache Log4j는 자바 기반의 로깅 유틸리티로서 Apache Software Foundation의 한 프로젝트인 Apache Logging Services의 일부분이다 (Ceki Gülcü가 작성)2. 로그 레벨 단계: ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF Logger의 setLevel에서 지정된 로그 레벨 미만의 로깅 이벤트 무시됨 예) # 코드 내에 다음과 같이 지정되어 있다면 lo.. 2024. 5. 7.
install_vertica 옵션 00 개요목적: Scheduler Insight 설치 시 데이터베이스로 Vertica를 사용하는데, Vertica 설치 시 --point-to-point 및  --failure-threshold FAIL을 설정하는 이유에 대해서 알아보고자 research함# sh /opt/vertica/sbin/install_vertica -s sidbserver1,sidbserver2,sidbserver3 -r /data1/VERTICA-9.3.1-30_RHEL7.6/vertica-9.3.1-30.x86_64.RHEL6.rpm -u dbadmin -p lsfadmin --point-to-point --failure-threshold FAIL01 install_vertica Options다음 표는 install_vert.. 2024. 5. 3.
Generator (제너레이터) 01 Generator란1. 정의'발전기' → 이 객체를 호출할 때마다 yield가 작동되어 값을 순차적으로 산출함yield 키워드 사용하며 iterator를 생성해주는 함수iterator는 class에서 iter, next 등의 메서드를 구현해야 하지만 generator는 함수 안에서 yield라는 키워드만 사용하면 iter, next 등의 메서드를 쉽게 생성 가능 (yield로 생성된 generator는 이미 iter, next를 갖고 있음)def generator_func(): yield 1 yield 2 yield 3print(generator_func()) # print(hasattr(generator_func(), '__iter__')) # Trueprint(hasattr(ge.. 2024. 5. 3.