728x90
Temp
62

[VSCode] Setting for Python Autoformatting

먼저 Command Palette > Preferences: Open User Settings (JSON) 에 아래에 있는 것을 추가한다. "editor.formatOnType": true, "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll": true, "source.fixAll.eslint": true }, 그리고 python script 파일 아무거나 열어서 save(ctrl + s)를 하면 Formatter autopep8 is not installed. Install? 이라는 에러가 뜬다. Formatter로는 에러창에 뜬 것처럼 autopep8을 사용할 수도 있지만 나는 black을 사용하기 때문에 에러창에 있는..

Temp 2023.01.27

[Paper] A Flexible Solid 3D Model Reconstruction System for Mechanical CAD /CAM Systems

1. Introduction 설계자들은 3D CAD 를 잘 사용해야했을 뿐만 아니라 도면을 해석할 수 있는 능력이 필요하다. 3D CAD 파일은 소프트웨어 간의 호환성이 잘 안되며 동일한 소프트웨어라고해도 버전이 다른 경우가 있다. 3D CAD 파일을 수정하는 것은 2D CAD 파일을 수정하는 것보다 복잡하다. 2D CAD 버전 간의 호환성은 아주 좋다. CSG: Constructive Solid Geometry의 약자로 솔리드 기반 모델링이라고도 부른다. 사용이 간단하고 오류가 날 확률이 적기 때문에 모델링의 뼈대를 만들 때는 CSG 방식으로 만드는 것이 좋다고 한다. B-rep: Boundary Represent의 약자로 surface modeling이라고도 부른며 방향성과 경계가 있는 곡면들을 이용..

Temp 2023.01.06

하위 버전의 CUDA Toolkit(e.g. CUDA-10.2) 설치가 안되는 이유

Ubuntu 18.04와 NVIDIA RTX 3090에서 CUDA toolkit 10.2 버전을 사용하기위해 설치를 시도해보았다. 1. 현재 NVIDIA Driver의 최신 버전인 515로 설치 후 CUDA 10.2를 설치 nvidia-smi 실행시 다음과 같은 에러가 뜬다. driver/library version mismatch nvidia-smi NVIDIA Driver 버전과 CUDA toolkit 버전과 mismatch가 되는가보다... 사실 NVIDIA Driver를 최신 버전으로 설치하면 보통 하위 버전의 CUDA toolkit도 정상적으로 실행되는데 이상하다... 2. CUDA 10.2에 맞는 NVIDIA Driver 440 버전 설치 NVIDIA Driver 440버전 설치시 440버전이..

Temp 2022.09.17

[Ubuntu 18.04] depends on libc6 (>= 2.34), libssl3 (>= 3.0.0)

linux kernel 설치시 다음과 같은 에러가 뜰 수 있다. dpkg: dependency problems prevent configuration of linux-headers-5.19.0-051900-generic: linux-headers-5.19.0-051900-generic depends on libc6 (>= 2.34); however: Version of libc6:amd64 on system is 2.27-3ubuntu1.6. linux-headers-5.19.0-051900-generic depends on libssl3 (>= 3.0.0); however: Package libssl3:amd64 is not installed. 다음 순서로 터미널에 치면 해결할 수 있다. sudo ad..

Temp 2022.09.13

Ubuntu 18.04 Install

Alienware-R13에서의 설치 기준으로 기록한다. USB에 Ubuntu를 넣고 설치를 진행하면 된다. Ubuntu를 설치할 때 발생한 문제 1. USB를 인식하지 못함 BIOS에서 Secure boot를 disable로 변경 2. Disk를 인식하지 못함 BIOS에서 RAPID ON을 disable로 변경 (다른 메인보드에서는 따로 드라이버를 받아서 설치해야하는 것 같다.) 인터넷 연결이 안돼!! 유선인데!! linux kernel을 upgrade 해주면 된다. 현재 최신 버전은 5.19이다. 하지만 최신 버전으로 설치할 때 하위 버전의 패키지들을 설치할 때 에러가나서 5.11로 설치해주었다. cd /tmp/ wget -c https://kernel.ubuntu.com/~kernel-ppa/main..

Temp 2022.09.07

[Pillow] Improve handling of file resources

__del__ 함수는 python의 ResourceWarnings를 예방하기위해 열려있는 file handler를 닫는 용도로 사용된다. 하지만 __del__ 함수는 다음과 같은 단점들을 가지고 있다. 1. __del__ 함수는 참조된 object의 개수가 0이 될 때까지 호출되지 않는다. 그래서 resource handler가 필요 이상으로 사용되거나 열러있다. 2. __del__함수는 system exit가 될 때 실행이 보장되지 않는다. (Python documentation) It is not guaranteed that __del__() methods are called for objects that still exist when the interpreter exits. 3. __del__ 함수..

Temp 2022.09.05
728x90