IT-Engineering130 React ๊ฐ๋ฐ์ index.tsx์์ Error ๋ฐ์ ํด๊ฒฐ(TypeScript์ฌ์ฉ) React์์ typescript๋ก ๊ฐ๋ฐํ๋๋ฐ ์๋์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. const root = ReactDOM.createRoot(document.getElementById("root")); ์๋ฌ ๋ด์ฉ์ ์๋์ ๊ฐ์๋ค. Argument of type 'HTMLElement | null' is not assignable to parameter of type 'Element | DocumentFragment'. Type 'null' is not assignable to type 'Element | DocumentFragment'. ํด๊ฒฐ ๋ฐฉ๋ฒ์ ๊ฐ๋จํ๋ค. getElementById๋ฅผ ํตํด ๋ฐ์์ค๋ ๊ฐ์ฒด์ Type์ ์ง์ ํด์ฃผ๋ฉด ๋๋ค. TypeScript๊ฐ ๋ฐ์ดํฐ ํ์ ์ ์์๋ณผ ์ ์๋๋ก ํด์ฃผ๋ ๊ฒ. ์์ ๋ ์ฝ๋.. 2022. 5. 4. openbabel ์ค์น ์๋ฌ Error: SWIG failed. Is Open Babel installed? ์๋์ฐ(Windows 10)์์ Openbabel ํ์ด์ฌ(Python) ๋ชจ๋์ condaํ๊ฒฝ์์๋ ์ผ๋ฐ ํ์ด์ฌ ํ๊ฒฝ์์๋ ์๋์ ๋ช ๋ น์ด๋ฅผ ์ํํ๋ ์ค์น๊ฐ ์ ๋์ง ์์๋ค. pip install -U openbabel argument์ธ -U๋ฅผ ๋นผ๊ณ ํด๋ ๋ง์ฐฌ๊ฐ์ง์๋ค. ์๋ฌ ๋ฉ์์ง์ ์ค๊ฐ์๋ ๋๋ต ์๋์ ๊ฐ์ ๋ฉ์์ง๊ฐ ๋ณด์๋ค. ์๋ฌ ๋ฉ์์ง Error: SWIG failed. Is Open Babel installed? ์ฌ๊ธฐ์ ๊ธฐ ์ฐพ์๋ดค์ง๋ง ์ฃ๋ค ์คํจํด์ ๊ทธ๋ฅ ์๋์ ์ฌ์ดํธ์ ๋ค์ด๊ฐ์ whlํ์ผ์ ๋ฐ์์ ํด๊ฒฐํ๋ค. https://www.lfd.uci.edu/~gohlke/pythonlibs/#openbabel Python Extension Packages for Windows - Christoph Gohlke .. 2022. 1. 24. ํ์ด์ฌ Python์ผ๋ก mysql ์ฐ๊ฒฐํ๊ธฐ(mysql-connector-python ๊ธฐ๋ณธ ์ฌ์ฉ๋ฒ) ์ด๋ฒ ํฌ์คํ ์์๋ ํ์ด์ฌ(Python)์ ํ์ฉํ์ฌ ๋ณธ์ธ PC์ ์ค์น๋ mysql ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ ๊ทผํ์ฌ ์ฐ๋๋ DB์ ์ง์๋ฌธ(์ฟผ๋ฆฌ๋ฌธ)์ ๋ ๋ ค์ ๋ฐ์ดํฐ๋ฅผ ์ถ๋ ฅํด๋ณด๋ ๊ฒ๊น์ง ์ดํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค. 1. MySQL ์ค์น ๋ณธ ํฌ์คํ ์ ๋ด์ฉ์ MySQL์ด ์ค์น๋ ๊ฒ์ผ๋ก ๊ฐ์ ํฉ๋๋ค(์ด ํฌ์คํ ์ ๊ฒฝ์ฐ 5.7๋ฒ์ ์ฌ์ฉ). ๊ทธ๋ผ์๋ ์ค์น ๋งํฌ๋ฅผ ์ฒจ๋ถํ๋ ์ฐธ๊ณ ํ์๊ธฐ ๋ฐ๋๋๋ค. mysql 5.7 ์ค์น ํ์ผ ๋งํฌ: https://dev.mysql.com/downloads/windows/installer/5.7.html ๋ค๋ฅธ ๋ฒ์ ์ ๊ณ ๋ฅด๊ณ ์ถ์ผ์๋ฉด: https://dev.mysql.com/downloads/installer/ 2. mysql-connector-python ์ค์น ํ์ด์ฌ(Python)์์ mysql์ ์ฌ์ฉํ๊ธฐ ์ํด.. 2021. 12. 31. ์๊ฒฉ ๋ฐ์คํฌํฑ aws EC2 ์๋ ๋ก๊ทธ์ธ ๋ก๊ทธ์จ ํ๊ธฐ autologon login Windows ์๋ ๋ก๊ทธ์ธ์ด ํ์ํ๊ฒ ๋์๋ ๋ฐฐ๊ฒฝ ๋ด๊ฐ ๊ฒช์ ๋ฌธ์ ์ํฉ์ ์ด๋ ๋ค. ์์ ์ค์ผ์ค๋ฌ์์ '์ฌ์ฉ์์ ๋ก๊ทธ์จ ์ฌ๋ถ์ ๊ด๊ณ์์ด ์คํ'์ ํตํด์ ๋ฐฑ๊ทธ๋ผ์ด๋์์ ์์ ์ ์คํํ๋ ์ค์ผ์ค๋ง์ ํ๋ ค ํ๋๋ฐ, ํด๋น ํ๋ก์ธ์ค๊ฐ ๋ฐฑ๊ทธ๋ผ์ด๋(background)์์ ์๋ํ์ง ์๋ ๋ฌธ์ ๊ฐ ์์๋ค. (์ ํํ๊ฒ๋ ํฌ๋ ์จ API์ ์ฃผ์ ์๋๋งค๋งค๋ด์ด ์ ์ ๋์ํ์ง ์๋ ๋ฌธ์ ๊ฐ ์์๋ค.) ๋คํํ๊ฒ๋ ํฌ๊ทธ๋ผ์ด๋(foreground)์์๋ ์ ์ ๋์ํ๋๋ฐ, ๋ก๊ทธ์ธํ๊ธฐ ์ํด์ ์ง์ ์ธ์คํด์ค์ ์ ์์ ์๋ํด์ผํ๋ ๋ฌธ์ ๊ฐ ์์๋ค. ์๋๋งค๋งค๋ฅผ ์ํจ์ธ๋ฐ, ์๋ ์์ ์ด ๋ค์ด๊ฐ๋ค๋ ๊ฒ์ด ์๋นํ ๊ท์ฐฎ์ ์ผ์ด์๋ค. ๊ทธ๋์ ์๋ ๋ก๊ทธ์ธ์ ํด๋ฒ๋ ธ๋ค. Windows ์๋ ๋ก๊ทธ์จ(AutoLogon) ํ๋ ๋ฐฉ๋ฒ 1. ์๋๋ก๊ทธ์จ ๋ค์ด๋ก๋ https://.. 2021. 12. 6. ์๋์ฝ๋ค(Anaconda) ์ฝ๋ค conda ๊ฐ์ํ๊ฒฝ ์์ฑ ์๋ก ๋ง๋ค๊ธฐ(Anaconda ๋ค์ด๋ก๋ ๋งํฌ ํฌํจ) ์ด๋ฒ ์ ๊ฒฝ์ฐ๋ django๋ฅผ ์ฃผ๋ก ์ฐ๋ ํ๊ฒฝ์ ์๋ก ํ๊ธฐ ์ํด์ ์ฝ๋ค ๊ฐ์ํ๊ฒฝ์ ์๋ก ์ธํ ํ๊ฒ ๋์์ต๋๋ค. conda ๊ฐ์ํ๊ฒฝ์ ์๋ก ๋ง๋๋ ๋ช ๋ น์ด๋ ์๋์ ๊ฐ์ต๋๋ค. conda create -n [๊ฐ์ํ๊ฒฝ์ด๋ฆ] python=[ํ์ด์ฌ๋ฒ์ ] Anaconda ๋ค์ด๋ก๋๋ ๋งํฌ๋ ์ด๊ณณ: https://www.anaconda.com/products/individual#Downloads Windows Python 3.8 64-Bit Graphical Installer (477 MB) 32-Bit Graphical Installer (409 MB) MacOS Python 3.8 64-Bit Graphical Installer (440 MB) 64-Bit Command Line Installer (433 MB) Li.. 2021. 11. 13. ํ๋ทฐ์ด ์์ ์ ์ฌ์ฉ ์์ฌ ๊ฐ์ง, ์ธ์ ์๊ฐ ์ด๊ณผ ์ฐ๊ฒฐ ์ฐจ๋จ ๋ฌธ์ ํด์ ๋ฐ ํด๊ฒฐ ๋ฐฉ๋ฒ(feat. ZIP CODE) ๋ํ์ ์ธ ์๊ฒฉ์ ์ด ํ๋ก๊ทธ๋จ ํ๋ทฐ์ด(TeamViewer)๊ฐ ์ข ์ข ์์ ์ ์ฌ์ฉ ์์ฌ์ผ๋ก ๊ฐ์ง๋์ด ์ฐจ๋จ๋๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค. TeamViewer ์ธ์ ์ด ์๊ฐ ์ด๊ณผ๋์ด ์ข ๋ฃ๋ฉ๋๋ค. ์์ ๊ฐ์ ํ๋ฉด์ ๋ณด์๊ณ , ์? ํ์ค ์๋ ์๋๋ฐ์. ์ ๊ฒฝ์ฐ๋ ์๋์ ๊ฐ์ ํ๋ฉด์ ๋ง๋๊ธฐ๋ ํ์ต๋๋ค. ์๊ฐ ์ด๊ณผ ํ ์ฐ๊ฒฐ์ด ์ฐจ๋จ๋์์ต๋๋ค. ๋ณด์ ํ์ ๋ผ์ด์ ์ค์์๋ ํํธ๋๋ก์ ์ต๋ ์ธ์ ๊ธฐ๊ฐ์ด ์ ํ๋์ด ์ฌ์ฐ๊ฒฐ์ด ์ฆ์ ์ฐจ๋จ๋ฉ๋๋ค. ๋์ค์ ๋ค์ ์๋ํ๊ฑฐ๋ ๋ผ์ด์ ์ค๋ฅผ ์ ๊ทธ๋ ์ด๋ํ์ญ์์ค. ์ด ํํธ๋๋ก์ ์ฐ๊ฒฐ์ด xx:xx๊น์ง ์ฐจ๋จ๋ฉ๋๋ค. ํน์ ์๋์ ๊ฐ์ ๋ฉ์์ง๊ฐ ๋จ๊ธฐ๋ ํฉ๋๋ค. ์ฐ๊ฒฐํ ์ ์์ ์์ ์ ์ฌ์ฉ ๊ฐ์ง ์ด ์ํํธ์จ์ด์ ์์ ์ ์ฌ์ฉ์ด ์์ฌ๋ฉ๋๋ค. ๋ฌด๋ฃ ๋ฒ์ ๋ง ๊ฐ์ธ์ฉ์ผ๋ก ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ ์ด์ ์๋ก์ด ์ธ์ ์ ์์ํ ์ ์์ต๋๋ค... 2021. 10. 8. Singularity ์ด์ ๋ฒ์ Old version ์ญ์ remove Singularity ๋ฒ์ ์ ๊ทธ๋ ์ด๋๋ ๋ฒ์ ๋ณ๊ฒฝ์ ์ํด์ ์ ์ฒด๋ฅผ ์ญ์ ํ๋ ๊ฒฝ์ฐ ์๋์ ๋ช ๋ น์ด๋ก ์ญ์ ํ๋ฉด ๋๋ค. sudo rm -rf \ /usr/local/libexec/singularity \ /usr/local/var/singularity \ /usr/local/etc/singularity \ /usr/local/bin/singularity \ /usr/local/bin/run-singularity \ /usr/local/etc/bash_completion.d/singularity ๊น๋. ์์. 2021. 10. 5. Singularity - cached file hash and expected hash does not match ๋ฌธ์ ํด๊ฒฐ singularity pull library://lolcow ์์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ์ ๋ ์๋์ ๊ฐ์ด ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. error fetching image๋ก ์์ํ๋ ๋ถ๋ถ์ด๋ค. cached file hash and expected hash does not match๋ผ๊ณ ์๋ฌ๊ฐ ๋ฐ์ํ๊ณ ์๋ค. INFO: Downloading library image 639.0b / ??? [===================================================] 927.9 KiB/s FATAL: While pulling library image: error fetching image: cached file hash(sha256.74c12dc5a0e309a82b73ac30eeedfb9f9af2c43c3.. 2021. 10. 3. ๋ฆฌ๋ ์ค(Linux) ์ฐ๋ถํฌ(Ubuntu) Singularity ์ค์น ๋ฐฉ๋ฒ Singularity๋ ๋์ปค(Docker)์ ์ ์ฌํ ์ปจํ ์ด๋(Container) ์์คํ ์ผ๋ก ๋์ปค์ ๋๊ฐ์ง ๋จ์ (ํ์ผ ์์คํ ๊ฒฉ๋ฆฌ, ์ฌ์ฉ์ ID ๋ฌธ์ )์ ํด๊ฒฐํ ์์คํ ์ผ๋ก ๋ฐฐ์น ๋ฐ์ดํฐ ์ฒ๋ฆฌ ๋ฑ์ ๋ค๋ฃจ๋ ๋ฌธ์ ์ ๋ฐ๋ผ ๋์ปค๋ฅผ ๋์ฒดํ ์ ์์ต๋๋ค. ๋ค๋ง, ๋์ปค์ ์ํ๊ณ๊ฐ ํจ์ฌ ํฌ๊ณ ๊ฐ์ฅ ๋์ธ๋ก ๊ตฌ์ถ๋์ด์๊ธฐ ๋๋ฌธ์ ์ผ๋ฐ์ ์ธ ์ปจํ ์ด๋ ์์คํ ์ ์ด์ฉํ๊ณ ์ ํ๋ ๊ฒฝ์ฐ ๋์ปค๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ฌ๋ฌ๋ชจ๋ก ๋ฐ๋์งํ ๊ฒ์ ๋๋ค. โปSingularity๊ฐ ๋์ปค์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ๋ฐฉ๋ฒ ์ปจํ ์ด๋๋ ํธ์คํธ ํ์ผ ์์คํ ์ ์๋์ผ๋ก ์ก์ธ์คํ ์ ์์์ต๋๋ค( $HOME, $PWD, ๋ฐ /tmp์๋์ผ๋ก ๋ง์ดํธ๋จ). ์ปจํ ์ด๋๋ ํ์ฌ ์ฌ์ฉ์๋ก ์๋์ผ๋ก ์คํ๋ฉ๋๋ค. ๋ณธ ํฌ์คํ ์์๋ ์ด๋ฌํ ์ปจํ ์ด๋ ์์คํ ์ธ Singularity์ ์ค์น ๋ฐฉ๋ฒ์ ์์๋ณด๊ฒ ์ต.. 2021. 10. 2. ์ด์ 1 2 3 4 5 6 ยทยทยท 15 ๋ค์