Author: byun1114

  • sqlite에서 import

    비트코인 투자를 하지 않는다. 하지만, 비트코인 가격 변동은 하나의 투자 지표가 될 수 있다.

    과거 지표들을 CSV 파일로 구할 수 있었다.

    미리 만들어준 테이블 구조와 같도록 csv 파일을 변경했다. 그리고 다음과 같이 import 한다.

    sqlite> .mode csv
    sqlite> .import /var/tmp/btc.csv btc_rates

  • Papanicolaou’s class

    • Class I. Absence of atypical or abnormal cells
    • Class II. Atypical cytology but no evidence of malignancy
    • Class III. Cytology suggestive of, but not conclusive for, malignancy
    • Class IV. Cytology strongly suggestive of malignancy
    • Class V. Cytology conclusive for malignancy

    I~V까지 있는 세포 판독 기준을 문의하여 찾아 보았다.

  • Rocky II

    • 1편이 더 멋진 것 같다.
    • 2편은 아빠 영화다. 다만, 아들 아빠 영화다.
  • matplotlib에서 font 등록

    코파일럿 도움을 받음.

    특정 글꼴을 사용해서 작업을 할 경우 폰트를 등록해 주어야 한다.

    스크립트를 실행할 때 마다 실행해 준다.

    from matplotlib import font_manager
    
    font_dirs = ["/usr/share/fonts"]
    font_files = font_manager.findSystemFonts(fontpaths=font_dirs)
    for font_file in font_files:
        font_manager.fontManager.addfont(font_file)

    이렇게 하면 등록된 글꼴을 이용해서 matplotlib에서 사용할 수 있다.

    plt.rcParams['font.family'] = 'D2Coding'

    파일명과 등록된 글꼴명이 다른 경우가 많다. 그럴 경우에는 다음의 코드를 이용해서 글꼴을 파악한다.

    font_list = font_manager.fontManager.ttflist
    for font in font_list:
        print(f"Path: {font.fname}, Name: {font.name}")