본문 바로가기

전체 글20

깃허브 블로그 만들기:github.io (git push Token) 1. 새로운 repository 만들기 - username.github.io 형식으로 만들기 - Public 체크 - Add a README file 체크초록 버튼 Create repository 선택 2. 로컬 저장소로 repository를 clone 하기 code - HTTPS 에서 주소 복사 git clone https://github.com/{my_github_username}/{my_github_username}.github.io# git clone (복사한 주소) git_blog 라는 폴더를 만들어 그곳에 clone  3. Clone 한 폴더에서 index.html 파일 생성html 처음 접근했을 때 보여질 화면을 결정터미널에서 html 파일 만들기(창을 띄우기 위한 예시파일)cd userna.. 2024. 5. 10.
Mac에서 gem 을 이용한 jekyll 설치가 안된다(Gem::FilePermissionError) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.시스템 ruby를 이용하고 있기 때문에 권한이 없어 gem 설치가 안되었다.sudo를 통해 root 권한으로 실행하면 설치가 가능하지만, 보안상 이유로 권장하지 않는다.따라서 rbenv를 사용할 것이다.1. rbenv설치brew updatebrew install rbenv ruby-buildrbenv -v를 사용해 잘 설치되었는지 확인  2. rbenv를 사용한 Ruby 설치rbenv로 설치 가능한 Ruby 버전 리스트를 확인하여 설치(너무 낮은 버전으로 하면 .. 2024. 5. 10.
Github push 가 안된다(git Token 발급) git push에서 비밀번호 입력하고 나서remote: Support for password authentication was removed on August 13, 2021.remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.fatal: Authentication failed for 'https://github.com/kcyeon0127/kcyeon0127.github.io.git/'비밀번호가 아니라 토큰을 발.. 2024. 5. 9.
[Mac] git 시작하기: 리눅스 명령어 현재 디렉토리 살펴보기1. ~ : 홈 디렉토리2. 현재 위치의 경로pwd # print working directory 3. 현재 디렉토리의 파일이나 디렉토리 확인ls # list 4. 명령에 옵션 추가 ls 명령어 다음(-)에 원하는 옵션ls -la #ls -al 순서 상관 없다-a숨김파일이나 디렉토리 함께 표시-l파일이나 디렉토리 상세 정보 함께 표시-r파일의 정렬 순서 거꾸로 표시-t파일 작성 시간 순으로(내림차순)표시 터미널 창에서 디렉토리 이동하기1. 상위 디렉토리 (cd다음 한칸 띄우고)cd .. # change directory 2. 이동한 다음 ls 명령을 사용하면 안의 파일과 디렉토리 확인 가능cd ..ls 3. 하위 디렉토리 이동 (cd다음 이동할 하위 디렉토리 명)cd User.. 2024. 5. 9.
[Mac] Homebrew 설치 및 사용 프로그램(패키지) 설치 # brew를 최신 버전을 업데이트brew update# 설치 가능한 프로그램 검색brew search PKG_NAME# 프로그램 설치 [@VERSION]brew install PKG_NAME @VERSION# 패키지 업그레이드brew upgrade PKG_NAME# 모든 패키지 업그레이드brew upgrade정보 확인# 설치된 프로그램 목록brew list# 패키지 정보 보기brew info PKG_NAME# 업그레이드 필요한 프로그램 찾기brew outdated설치된 패키지 삭제# 최신 버전 이외의 버전 삭제brew cleanup PKG_NAME# 특정 패키지 삭제brew uninstall PKG_NAMEHomebrew 설치하기설치명령어 Terminal상에 붙여놓고 Homebr.. 2024. 5. 9.
맥북에서 GPU 가속하기 맥북 M2에서는 NVDIA GPU CUDA 를 이용한 가속이 안됨맥 os GPU 가속 "mps"(Metal Performance Shaders)가능 여부먼저 확인conda activate ENV_NAMEpythonimport torchtorch.backends.mps.is_available()torch.backends.mps.is_built()# 둘다 True로 뜨면 사용 가능exit()        model.to(’cuda’)를 model.to(’mps’) 로device = "mps" if torch.backends.mps.is_available() else "cpu" # 디바이스 설정device = torch.device("mps") # 백엔드를 MPS로 설정import torchmps_device.. 2024. 5. 8.
conda command 1. 콘다 가상환경 조회conda env list 2. conda 가상환경 실행 & 종료conda activate ENV_NAMEconda deactivate 3. conda 가상환경 내 package 목록/버전 확인, package 설치conda list -n ENV_NAMEconda install PAK_NAME4. conda 가상환경 생성(create)conda create --name ENV_NAME4–1. 특정 python version의 conda env 생성conda create -n ENV_NAME python=3.44–2. 특정 conda env을 복제(clone)해 conda env 생성conda create --name NEW_ENV_NAME --clone ENV_NAME5. cond.. 2024. 4. 30.
[Numpy] 배열 생성과 형태, 브로드캐스팅 넘파이 가져와서 배열 생성하기축의 개수: x.ndim모양 확인: x.shape데이터 타입: x.dtype배열 타입: type(x)import numpy as npx = np.array([1.0, 2.0, 3.0])x.ndim # 1 //1차원 배열x.shape # (3,)x.dtype # dtype('float64')type(x) # numpy.ndarray 배열의 초기화- np.zeros(): 0으로 채우기zero = np.zeros((2, 3))array([[0., 0., 0.], [0., 0., 0.]])  - np.ones(): 1로 채우기one = np.ones((2, 3))array([[1., 1., 1.], [1., 1., 1.]])  - np.full(): 사.. 2024. 4. 30.
[컴퓨터구조] 조합회로:인코더, 디코더, 멀티플렉서 (디지털 논리회로: Chap0. Digital Logic Circuits) Combinational Components: 조합 구성 요소- More complex integrated circuits(ICs): 보다 복잡한 집적회로- DecoderConverts a coded input to a decoded output: 코드화된 input을 디코딩된 출력으로 변환- EncoderConverts a set of binary inputs into a unique binary code: 이진입력 집합을 고유 이진코드로 변환- Multiplexer(MUX)Selects between several input signals and forwards the selected input to a single output line: 여러 입력 신호 중에서 선택하고 선택한 신호를 단일 출력 라인.. 2024. 4. 29.