๊ธฐํ
-
[ JS ] 0.1 + 0.2 == 0.3 ์ ์ false์ธ๊ฐ?๊ธฐํ 2022. 9. 13. 15:19
์์์๋ ์๋ฐ์คํฌ๋ฆฝํธ.. 0.1 + 0.2 == 0.3 ์ด false๋ก ๋์จ๋ค. 0.1 + 0.2๋ฅผ ์ณ๋ณด๋ฉด ๊ฐ์ด 0.30000000000000004๋ก ๋์ค๋๋ฐ ์ ์ด๋ฐ๊ฑธ๊น? ๊ฐ๋จํ ๋งํด์ ๋ฉ๋ชจ๋ฆฌ์ ๊ฐ์ ์ ์ฅํด์ผํ๋๋ฐ ์์์ ์ ์ ์ฅ๋ฐฉ์์ด ์ข๋ค๋ฆ ์ ์ 1์ด๋ฉด ๋ฉ๋ชจ๋ฆฌ์๋ 1 ํ์นธ ๋ค์ด๊ฐ๋๋ฐ ์์์ ์ ์์ด ์ ์๋ผ๋๊ฐ๊ณผ ์์๋ผ๋๊ฐ๊ณผ ๋๋จธ์ง๊ฐ์ ๋ฃ์ด์ค์ผํ๋๋ฐ ์๋ง์ ์นธ์ ์ฌ์ฉํ๋๋ฐ ๊ทธ ์นธ์ ์ฌ์ฉํ ์ ์๋ ์ ํ์ด ์์ ๊ทธ ์ ํ์ ๊ฑธ๋ฆฌ๋ฉด์ ์์น๊ฐ ๋ค๋ฅด๊ฒ ๋์ค๋๊ฒ ๊ทผ๋ฐ ๊ทธ ์์ ์๋ ์์ญ๊ฐ์ 0 ๋๋ถ๋ถ์ด ํ๋ฆฌ๊ธฐ๋๋ฌธ์ ๋์น๋ชป์ฑ ^_^! ๊ทธ๋์ ํ๋ณํ์ด๋ผ๋๊ฑธ ์ฌ์ฉํด์ ์๋ผ์ฐ๊ธฐ ํด์ค์ผ๋จ ^_^! ๊ทธ๋์ ์๋ฐ์์๋ ์ด ๋ฌธ์ ๋๋ฌธ์ ๋๋ธ์ด๋ผ๋ ์๋ฃํ์ด ์กด์ฌ ^_^! ์คํฌ๋ฆฝํธ๋ ๊ทธ๋ด๊ฑฐ์์ ^_^! ์ฐธ๊ณ ์์ธ์ ๋ฐ๋ก ์๋ฐ์คํฌ๋ฆฝํธ๊ฐ ์ซ..
-
[ thymeleaf ] ์ด๋ฏธ์ง ๊ฒฝ๋ก ๊ฐ์ ธ์ค๊ธฐ๊ธฐํ 2022. 1. 5. 15:41
ํผ๋ธ ๋ฐ์์ ๋ ์ด๋ ๊ฒ span tag์ url์ด ์ด๋ ๊ฒ ๋ค์ด๊ฐ ์์๋๋ฐ ์ด๋ฏธ์ง๊ฐ ์๊ฐ์ ธ์์ ธ์ ์ด๋ ๊ฒ ์์ ํ๋ ๊ฐ์ง๊ณ ์๋ค....ใ ์ฐธ์กฐ : https://stackoverflow.com/questions/35789526/how-to-set-background-url-for-css-files-in-thymeleaf How to set background url for css files in thymeleaf? I have a thymeleaf template where I don't have CSS files imported and wanted to declare style attribute for the body element with background-image: url{/image.jpg} pro..
-
[ intelliJ ] ์๋ฒ ์ฌ๊ฐ๋์์ด ์๋ก๊ณ ์นจ ํ ์ฝ๋ ์ค์๊ฐ ๋ฐ์๊ธฐํ 2021. 12. 22. 14:18
1. gradle์ Dependencies ์ถ๊ฐ developmentOnly("org.springframework.boot:spring-boot-devtools") 2. application.yml ์ ์์ฑ๊ฐ ์ค์ spring: devtools: livereload: enabled: true restart: enabled: true thymeleaf: cache: false 3. IntelliJ IDEA -> Preferences (๋จ์ถํค Cmd + , ) -> Build, Execution, Deployment -> Compiler์์ 'Build Project automatically' ์ ์ฒดํฌ ๊ทธ๋ผ intelliJ์์ ์๋ฒ๋ฅผ ์ฌ๊ฐ๋ํ์ง ์๊ณ ๋ ์๋ก๊ณ ์นจ ๋ง์ผ๋ก ์์ ์ฌํญ์ ๊ธ๋ฐฉ ํ์ธํ ์ ์๋ค.
-
[ intelliJ ] 'java.lang.String org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()'๊ธฐํ 2021. 12. 9. 01:00
'java.lang.String org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()' ์์ธ ์ธํ ๋ฆฌ ๋ฒ์ ๋ฌธ์ ํด๊ฒฐ 2019.03๋ ๋ฒ์ ์ฐ๊ณ ์์ด์ 2021.03 ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธ ํด์ค
-
Plant UML : ์ค์น ๋ฐ ์ฌ์ฉ๋ฒ๊ธฐํ 2021. 11. 3. 15:42
1. PlantUML์ด๋ ? ์ฌ์ฉ์๊ฐ Plain Text ์ธ์ด๋ก๋ถํฐ UML ๋ค์ด์ด๊ทธ๋จ์ ๋ง๋ค ์ ์๊ฒ ํ๋ ์คํ ์์ค ๋๊ตฌ 2. Plant UML ์ค์น - Visual Studio Code ๋ฐ IntelliJ์์ ์ฌ์ฉํ ๊ฒฝ์ฐ : Plugin ์ค์น ํ Alt + D๋ก ์คํ - ์น์ฌ์ดํธ์์ ์์ฑ : http://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000 PlantUML Web Server The PlantUML Web Server allows you to create and edit online UML diagrams using the PlantUML Language. www.plantuml.com 2. Plant UML ๊ณต์๋ฌธ์ http..
-
[ ๊ธฐํ ] : ' Port 8080 was already in use' ์๋์ฐ(Windows), ๋งฅ(Mac) ํฌํธ ๋๋ฒ ๊ฒ์ ๋ฐ ํฌํธ ์ฃฝ์ด๊ธฐ๊ธฐํ 2021. 8. 20. 15:43
*************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 8080 was already in use. ์ต์ํ ์ด๋ฌธ๊ตฌ.. ์๋ฒ ๊ตฌ๋์ ์๋ฒ๊ฐ ์ฌ์ฉํ๋ ค๊ณ ํ๋ port๋ฅผ ๋ค๋ฅธ ํ๋ก์ธ์ค๋ ํ๋ก๊ทธ๋จ์ด ์ฌ์ฉ์ค์ธ ๊ฒฝ์ฐ์ ๋ฐ์ํ๋ค. Window 1. cmd ์ฐฝ์์ netstat -a -o ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ค. (์ฐธ๊ณ ๋ก ์คํ์ค์ธ ์๋ฒ๊ฐ ๋ง์ ๊ณ์ ๋ก๋ฉ๋๋ค๋ฉด Ctrl +C ๋ก ๋ฉ์ถฐ์ฃผ๋ฉด ๋๋ค.) 2. ๋๋ 8080์ ์ฌ์ฉ์ค์ด์๊ธฐ ๋๋ฌธ์, ๋ก์ปฌ ์ฃผ์์ 0.0.0.0:___ ์ด๊ณณ์ ๋๋ฒ๊ฐ 8080์ธ ๊ณณ์ PID๋ฅผ ์ฐพ๋๋ค. 3. taskkill /f /pi..
-
SourceTree ์์คํธ๋ฆฌ : Please use a personal access token instead, ๋น๋ฐ๋ฒํธ ๋์ ํ ํฐ์ผ๋ก ์ธ์ฆ ๋ณ๊ฒฝํ๊ธฐ๊ธฐํ 2021. 8. 14. 18:07
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: unable to access 'https://github.com/ucompanion/connect..
-
git : ์ธ์ฆ์ ์ํ ๊น ํ ํฐ (git Token) ์์ฑํ๊ธฐ๊ธฐํ 2021. 8. 14. 11:46
1. ์์ ์ ๊นํ๋ธ ๊ณ์ ์ ๋ก๊ทธ์ธํ ๋ค, Settings > Developer settings > Personal access tokens ๋ก ๋ค์ด๊ฐ๋ค. 2. Generate new token์ ํด๋ฆญํ๋ค. 3. Note์ ์ฌ์ฉ๋ชฉ์ ์ ๋ํด ๊ฐ๋จํ ์ ๋๋ค. ๋๋ ํ์ฌ ์งํ์ค์ธ ํ๋ก์ ํธ ์ด๋ฆ๊ณผ ๋ฐ๊ธ๋ ์ง๋ฅผ ํจ๊ป ์ ์ด์คฌ๋ค. Expiration ์ ์ด ํ ํฐ์ ๋ฐ๊ธ ํ ํ๊ธฐํ ๊ธฐํ์ ๋ํด ์ค์ ํ๋ ๊ณณ์ด๋ค. 4. Select scpoes๋ ๋ฐ๊ธํ๋ ํ ํฐ์ ๋ํ ๊ถํ์ ์ค์ ํด ์ฃผ๋ ๊ณณ์ด๋ค. repo์ read:repo hook, gist์ ์ฒดํฌ ํ ํ๋จ์ Generate Token์ ํตํด ํ ํฐ์ ๋ฐ๊ธํ๋ค. (commandline์์ ์ ๊ทผ์ ํ๊ณ ์ถ๋ค๋ฉด repo์ ์ฒดํฌํ๋ฉด ๋๋ค.) 5. ๋ฐ๊ธ๋ฐ์ token์ copy๋ฒํผ์..