개발

    [에러해결] Could not load the Qt platform plugin "xcb"

    에러 메세지 qt.qpa.plugin could not load the qt platform plugin xcb in even though it was found 해결 방법 [참고] export QT_QPA_PLATFORM=offscreen

    [Linux] MySQL 명령어 : 접속, 데이터베이스, 사용자 계정 생성 등

    MySQL Database 생성하기 MySQL 실행하기 ./mysqld_safe MySQL 실행 확인 ps -ef | grep mysql MySQL 접속하기 ./mysql -u root -p # 비밀번호 입력 Enter password: # 접속완료 mysql> 현재 데이터베이스 목록 조회 mysql> show databases; 데이터베이스 생성 (한글 깨짐 방지를 위해 utf8로 생성) create database testDB default character set utf8; MySQL 에서 Database 를 생성할 때 character set 과 collate 를 지정할 수 있다. (생략시에는 MySQL 서버의 기본 설정을 따른다.) Character Set은 무엇인가? 문자들과 그 문자들을 코드..

    [Python] argparse 사용법 - 파이썬 인자 처리

    argparse는 파이썬에 기본 내장되어 있는 인자처리 패키지이다. 기본적인 로직은 다음과 같다. # example.py import argparse # argparse를 사용하는 첫 번째 단계는 ArgumentParser 객체를 생성하는 것이다. parser = argparse.ArgumentParser() # 인자 추가하기 parser.add_argument('--src', '--s', help='ip src address', required=True) # 인자 파싱하기 args = parser.parse_args() # 입력받은 인자값 출력 print(args.src) parser.add_argument('--src', '--s', help='ip src address', required=Ture)..

    [Linux] 서버에서 jupyter notebook 사용하기

    먼저 서버의 ip 주소를 확인한다. ip addr show config 파일을 생성한다. jupyter notebook --generating-config 그럼 user home 경로에 다음과 같은 config 파일이 생성된다. /data001/~~~~~~/.jupyter/jupyter_notebook_config.py 서버 비밀번호를 생성한다. (안해도됨) 터미널을 새로 열고 ipython In [1] : from notebook.auth import passwd In [2] : passwd() Enter password: Verify password: Out [2] : 'argon2:~~~~~~' # 입력한 비밀번호를 암호화해서 반환해줌 In [3] : quit() # 빠져나옴 주의할 점은 비밀번호를..