시행착오의 흔적들 13

Google Drive에서 Git Clone하기

네, Google Colab에서 Google Drive에 Git 저장소를 클론할 수 있습니다. 이를 위해 Google Drive를 Colab 환경에 마운트(mount)하고, 그 후에 Git을 사용하여 원하는 저장소를 클론할 수 있습니다. 아래 단계에 따라 진행해 보세요.단계별 가이드Google Colab 열기: Google Colaboratory의 웹 애플리케이션을 엽니다.Google Drive 마운트: Google Drive를 Colab에 마운트합니다. 아래 코드를 실행하면 인증 절차가 진행됩니다. pythonCopyfrom google.colab import drivedrive.mount('/content/drive')Git 클론 명령어 입력: 이제 원하는 Git 저장소를 클론할 준비가 되었습니다. ..

gitignore 등록 후 changes에 안 올라오게 하는 법

To automatically remove files from the Git index that are listed in your .gitignore, you can use a combination of shell commands. Here's a step-by-step guide to achieve this:Step-by-Step Guide Ensure Your .gitignore is Updated:Make sure your .gitignore file includes all the files and directories you want to ignore. For example:          # Ignore virtual environment     .venv/      # Ignore Pytho..

애자일 2차 1주차 할 일 정리 (24/02/17~24/02/21)

명심feature branch 생성debugging (console.log, print)다른 사람 폴더 건드리지 않기팀장님에겐 구현 의도를 물어보고 기능 구현은 지피티에게 시키기FE 수정후 반영시 cd frontend-> npm run build작업 폴더frontend/src/components/MyinfoPagefrontend/src/api/dashboardApi.jsbackend/dashboard/대략적 계획1주차: 화면 구현 및 기능 끝내기2주차: 백테스팅 모델 구현 (FE에 보여지는 것 까지)3주차: 각 모델별 실제 거래 구현 [대쉬보드 구현]1주차 개인 정보 및 기타 지표 디스플레이 가능회원 정보 수정 불가 (업비트 api key, secret update 불가) > 수정 구현수정 버튼 만들기수..

사용자 인증, middleware

사용자 코인 계좌 잔고를 조회하는 로직을 views.py에 구현User table에서 api_key, api_secret 을 가져오려는 데, .models에 만든 User을 쓰지 않고 requests에서 가져오는 걸로 구현이 됨저 request에서 어떻게 유저 정보를 가져올 것인가에 대한 궁금증에 지피티 선생님께 여쭤봄답변:네, 사용자의 정보를 Django의 ORM이 아닌 requests.user에서 가져와도 잔고 조회는 가능합니다. 다만, 이를 위해서는 다음과 같은 조건이 필요합니다:Middleware 설정: 사용자가 인증되어야 하며, 이를 Django의 인증 미들웨어가 처리해서 requests.user에 올바른 정보가 들어 있어야 합니다.데이터 일치: requests.user에 있는 사용자의 정보가 ..

.gitignore 샘플

가상환경할 때 깔리는 python package list나, 캐시 등등 정말 쓰잘데기 없는거 깃헙에 올리지 않기 위해 미니 플젝하다 팀원이 어디 인터넷에서 주워온 걸 내가 줍줍해서 올린다.잘 쓰실 분들은 야무지게 잘 쓰시길__pycache__/*.py[cod]*$py.class# C extensions*.so# Distribution / packaging.Pythonbuild/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/share/python-wheels/*.egg-info/.installed.cfg*.eggMANIFEST# PyInstaller# Usually these files are written by a pyt..

Key already registered with the same priority: GroupSpatialSoftmax

chemprop train 모듈 돌리는데 에러났다... 구글링 해보니 이런게 나오네 https://discuss.pytorch.org/t/importerror-key-already-registered-with-the-same-priority/86271/2 importError:Key already registered with the same priority How did you install PyTorch? Did you install the binaries or build form source? Are you using the GroupSpatialSoftmax in a standalone module or just from pytorch/modules/detectron? discuss.pytorch...

conda and pip 그리고 아나콘다 가상환경 셋팅

먼저 conda와 pip 비교를 해보겠다. 아나콘다는 가상환경 설정 + 패키지 관리까지 가능,pip는 오직 파이선 패캐지 관리만 가능한 것이비교할만한 주요한 특징이다. https://www.anaconda.com/blog/understanding-conda-and-pip Anaconda | Understanding Conda and PipConda and pip are often considered as being nearly identical. Although some of the functionality of these two tools overlap, they were designed and should be used for different purposes. Pip is the Python Pac..

UnicodeDecodeError: 'cp949' codec can't decode byte 0xeb in position 1251: illegal multibyte sequence

Type "help", "copyright", "credits" or "license" for more information. Failed calling sys.__interactivehook__ Traceback (most recent call last): File "C:\Users\coco7\anaconda3\lib\site.py", line 440, in register_readline readline.read_history_file(history) File "C:\Users\coco7\anaconda3\lib\site-packages\pyreadline\rlmain.py", line 165, in read_history_file self.mode._history.read_history_file(f..

Ubuntu 20.04에서 소리가 작게 나오는 현상.

alsamixer도 설치해보았지만 별 소용이 없었다. https://kavoom2.github.io/%EA%B8%B0%ED%83%80/ubuntu_sound_mixing_problem/ Ubuntu 20.04에서 소리가 정상적으로 출력되지 않는 경우 우분투에서 가짜출력이 나오거나, 스피커 상호작용은 정상적으로 표시되지만 소리가 출력되지 않을 시 해결방법 kavoom2.github.io https://ksjm0720.tistory.com/12 Linux 볼륨을 조정해보자. Alsamixer I. Linux 실행에서의 어려움 지난 번 Ubuntu 설치에서 말했던 것처럼 Linux 설치의 경우 Window 설치보다 안정성이 떨어질 가능성이 높습니다. (특히 Debian 직접 설치의 경우) 많은 하드웨어를 직접..