๐Ÿ‘จ‍๐Ÿ’ป kimtongting
article thumbnail
[React] chartjs / chart.js / react ์ฐจํŠธ / react chart

Chart.js ์ด๋ฒˆ์— ์‹ ๊ทœ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๊ฒŒ๋˜์–ด ์‹œ์•ˆ์„ ๋ฐ›์•˜๋‹ค. ๋งค์ถœ์ด๋‚˜ ํ˜„ํ™ฉ ๋“ฑ ์ฃผ๋กœ ๋Œ€์‹œ๋ณด๋“œ์—์„œ ์ž์ฃผ ์“ฐ์ด๋Š” ์ฐจํŠธ๋ฅผ ์‚ฌ์šฉ ํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ์•„! ์—ฌ๊ธฐ์—์„œ๋Š” ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค : ) Install $ npm install chart.js --save Import import Chart from 'chart.js/auto'; How to Use function ??? () { const canvasDom = useRef(null); // Dependency array ์— props ์ถ”๊ฐ€ํ•˜๊ณ  return์— chart.destory() ์ถ”๊ฐ€ ์˜ˆ์ • useEffect(() => { const ctx = canvasDom.current.getContext("2d"); new Chart(ctx, {..

article thumbnail
[React] date format / moment / react YYYYMMDD YYYY-MM-DD

const currentDate = new Date() console.log(currentDate) //Output: 2022-01-29T10:03:47.564Z ์ด์ œ๊ป ๋ด์™”๋˜ Javascript์˜ ํ˜•์‹์ด๋‹ค! ๐Ÿ“”Monent ๐Ÿ“„How to Install ๐Ÿ“npm ๋˜๋Š” yarn ์„ ์ด์šฉํ•œ ์„ค์น˜ ๋ช…๋ น์–ด $ npm install moment --save // ๋˜๋Š” $ yarn add moment ๐Ÿ“„ Code Sample ์ฝ”๋“œ ์˜ˆ์ œ import "./index.css" import Moment from 'moment'; import "moment/locale/ko"; // Locale Setting function App() { const formatDate = Moment().format('YYYY-MM-DD'..

article thumbnail
[Flutter] flutter ์—๋Ÿฌ 'Cannot run with sound null safety' / 'don't support null safety' (feat. Android Studio)

Flutter ์—๋Ÿฌ Cannot run with sound null safety ์ด์Šˆ Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:http - package:http_parser For solutions, see https://dart.dev/go/unsound-null-safety FAILURE: Build failed with an exception. ์™€ ๊ฐ™์€ ์—๋Ÿฌ๋ฉ”์„ธ์ง€๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ํ•ด๊ฒฐ ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ Run - Edit Configurations ๋ฅผ ์„ ํƒํ•˜๊ณ ! --no-sound-null-safety ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  Ok ๋ฅผ ๋ˆ„๋ฅด๋ฉด ํ•ด๊ฒฐ!!

article thumbnail
[Docker] docker ์‚ฌ์šฉ๋ฒ• / docker ์‚ฌ์šฉ๋ฐฉ๋ฒ• (Part.2)

์ž, Docker์— ๋Œ€ํ•œ ๊ธ€์€ ์ž˜ ๋ณด๊ณ  ์˜ค์…จ๋‚˜์š”? ํ˜น์‹œ๋‚˜ ๋†“์นœ ๋ถ„๋“ค์„ ์œ„ํ•ด ๋งํฌ ๊ฑธ์–ด๋†“๊ฒ ์Šต๋‹ˆ๋‹ค. Docker ๋ž€? ์ด๋ฒˆ์—๋Š” ์‹ค์ œ๋กœ Docker๋ฅผ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€ ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. Host VM ์„ค์น˜๋ฅผ ์œ„ํ•œ ์ค€๋น„ VM ์ €๋Š” ๋ฌด๋ฃŒ(์ผ๋ถ€ ๋ฌด๋ฃŒ) VM ์ƒ์„ฑ๊ธฐ์ธ VMWare Workstation 16 Player๋ฅผ ์ด์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•˜๊ธฐ VMWare ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์—์„œ ๋‹ค์šด๋กœ๋“œ ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”! VMWare Workstation 16.0 Player (VMWare ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€) CentOS OS์˜ ์ด๋ฏธ์ง€ ํŒŒ์ผ์€ ๊ต์œก์šฉ์œผ๋กœ ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” OS๋กœ ์‚ฌ์šฉํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. Ubuntu ์‚ฌ์šฉ์ž ๋ถ„๋“ค์ด ๋งŽ์ด ๋ณด์ด๋‹ˆ ์ €๋Š” CentOS๋กœ ํ•ด๋ณด๋Š” ๊ฑธ๋กœ! CentOS ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€ The CentOS Project October 7..

article thumbnail
[Docker] docker ๋ž€? / docker ์‚ฌ์šฉ๋ฒ• / docker ์‚ฌ์šฉ๋ฐฉ๋ฒ• (Part.1)

Docker ๋ž€? Docker๋ผ๋Š” ๊ฒƒ์€ ์ปจํ…Œ์ด๋„ˆ ๊ธฐ๋ฐ˜์˜ ์˜คํ”ˆ์†Œ์Šค ๊ฐ€์ƒํ™” ํ”Œ๋žซํผ์ž…๋‹ˆ๋‹ค. ์ด๊ฒŒ ๋ฌด์Šจ์†Œ๋ฆฌ์ธ๊ฐ€ ์‹ถ์€ ๋ถ„๋“ค๋„ ๊ณ„์‹ค๊ฒ๋‹ˆ๋‹ค. ๋‹จ์ˆœํ•˜๊ฒŒ ์ด์•ผ๊ธฐ ํ•˜์ž๋ฉด, ํŠน์ • ํ™˜๊ฒฝ์ด ์„ค์ •๋˜์–ด์žˆ๋Š” ํŠน์ • ํ”„๋กœ์„ธ์Šค๋ฅผ ์••์ถ•ํ•˜์—ฌ ํ•˜๋‚˜์˜ '์ปจํ…Œ์ด๋„ˆ'๋กœ ์ถ”์ƒํ™”ํ•˜์—ฌ, ์ธํ„ฐํŽ˜์ด์Šค๋กœ ์ œ๊ณตํ•˜๋Š” ๊ฒƒ์ด์ฃ . ๋” ์‰ฝ๊ณ  ๊ฐ„๋‹จํ•˜๊ฒŒ ์ถ•์•ฝํ•˜์ž๋ฉด ๊ณต์œ ์„œ๋ฒ„์— ์ œ๊ฐ€ ๋งŒ๋“  ์„ค์ •์— ๋งž์ถ˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์˜ฌ๋ฆฌ๋Š” ๊ฒ๋‹ˆ๋‹ค. ํ•˜๋‚˜์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—ฌ๋Ÿฌ ๊ณณ์—์„œ ๋‹ค์šด๋ฐ›์•„ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์„ ๋•Œ ์ธํ„ฐ๋„ท๋ง์ด ์—ฐ๊ฒฐ๋˜์–ด์žˆ๊ณ  Docker ์‹œ์Šคํ…œ๋งŒ ๋‹ค์šด๋กœ๋“œ ๋˜์–ด์žˆ๋‹ค๋ฉด ์–ด๋””์„œ๋“  ๋‹ค์šด๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค๋Š” ์žฅ์ ์ด ์žˆ์ฃ . ์‹ค๋ฌด์—์„œ๋Š” ํ•˜๋‚˜์˜ ํ…œํ”Œ๋ฆฟ์—์„œ ๊ณ ๊ฐ์‚ฌ์— ๋งž๊ฒŒ ์ˆ˜์ •์„ ํ•˜๋Š” ์†”๋ฃจ์…˜ ์—…์ฒด์—์„œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. Docker ์˜ ์ปจํ…Œ์ด๋„ˆ Docker์—๋Š” ์•ž์„œ ์–ธ๊ธ‰ํ•œ '์ปจํ…Œ์ด๋„ˆ' ๋ผ๋Š” ๊ฒƒ์ด ์žˆ์Šต๋‹ˆ๋‹ค. Docker์˜ ๋กœ๊ณ ..

์›น์•ฑ์šฉ meta tag

์›น์•ฑ ์ปค์Šคํ„ฐ๋งˆ์ด์ง• ํ™”๋ฉด์— ๋Œ€ํ•œ ๊ด€์‹ฌ๋„๊ฐ€ ๊ฐˆ์ˆ˜๋ก ๋†’์•„์ง€๊ณ  ์žˆ๋‹ค. ์˜ค๋กœ์ง€ View ๋งŒ์„ ์œ„ํ•œ Program Language๊ฐ€ ๊ณ„์†ํ•ด์„œ ์ถœ์‹œ๋˜๊ณ  ์žˆ๋Š” ๊ฒƒ๋งŒ ๋ณด์•„๋„ ๋Š๊ปด์ง„๋‹ค. ์Šคํƒ€ํŠธ์—…์ด๋‚˜, ๋– ์˜ค๋ฅด๋Š” ๊ธฐ์—…์˜ ํ”„๋ก ํŠธ์•ค๋“œ ๊ฐœ๋ฐœ์ž๋“ค์€ ๋•๋ถ„์— ๋ฐ”๋น ์ง€๊ณ (?)์žˆ๋‹ค. ๋ณดํ†ต ์ค‘์†Œ๊ธฐ์—… ๋ฐ ์ค‘๊ฒฌ๊ธฐ์—…์€ ์˜›๋‚  ์†Œ์Šค๋ฅผ ๋Œ€๋ถ€๋ถ„ ์œ ์ง€๋ณด์ˆ˜ ์ค‘์ด๋‹ค. ์ด๋Š” ์ข‹๊ฒŒ ๋งํ•˜๋ฉด '์•ˆ์ •ํ™”', ๋‚˜์˜๊ฒŒ ๋งํ•˜๋ฉด 'ํ•„์š”์„ฑ์„ ๋ชป๋Š๋‚Œ' ๋˜๋Š” '๊ท€์ฐฎ์Œ' ์ด๋‹ค. ํŠนํžˆ ๋ฐฑ์—”๋“œ ๋ถ„์•ผ์—์„œ๋Š” ์ถ”๊ฐ€๊ฐœ๋ฐœ ์š”์ฒญ์ด ์˜ค๋ฉด ์˜›๋‚  ์†Œ์Šค๋ฅผ ๋ถ„์„ํ•˜๊ณ , JDK ๋˜๋Š” SDK ๋“ฑ ์–ธ์–ด์˜ ๋ฒ„์ „์„ ๋งž์ถ”๊ณ , ํ•ด๋‹น ๋ฒ„์ „์— ๋งž๋Š” ์˜›๋‚  ๋ฐฉ์‹์˜ ์†Œ์Šค๋กœ ์ฝ”๋”ฉ์„ ์ง„ํ–‰ํ•ด์•ผํ•˜๊ณ ... ์ด๋Ÿฌํ•œ ๋ถˆํ•„์š”ํ•œ ๊ณผ์ •๋“ค์ด ์ฐธ ๋งŽ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ, ํ”„๋ก ํŠธ์—”๋“œ ๋ถ„์•ผ์—์„œ๋Š” ์ด ๊ณผ์ •์ด ์กฐ๊ธˆ ์‰ฝ๋‹ค. ๋Œ€๋‹ค์ˆ˜๊ฐ€ HTML5๋กœ ๊ฐœ๋ฐœ๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ํƒœ..

article thumbnail
java๋กœ smtp ๋ฉ”์ผ๋ณด๋‚ด๊ธฐ(feat.gmail)

๐Ÿ“”SMTP For Gmail ๐Ÿ“„Gmail ๋ฒ„์ „ ๐Ÿ“Batch ํ”„๋กœ์„ธ์Šค๋ฅผ ๊ฐœ๋ฐœํ•˜๋˜ ์ค‘, ํŠน์ • ์•Œ๋žŒ์„ ๋ฐ›๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ๊ฐ€ ์ƒ๊ฒผ๋‹ค. Batch ์‹œ์ž‘๊ณผ ์™„๋ฃŒ ์‹œ์ ์ด๋ผ๋˜์ง€, Schedule ์— ๋”ฐ๋ฅธ ๋ฐ์ดํ„ฐ ํ™•์ธ์ด๋ผ๋˜์ง€.. ๊ทธ๋Ÿฐ ์ˆœ๊ฐ„์„ ์œ„ํ•ด SMTP Library ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์‹ฌํ”Œํ•˜๊ฒŒ ๊ตฌ์ถ•ํ•ด๋ดค๋‹ค. ์—ฌ๊ธฐ์—์„œ ํ™•์žฅ์„ฑ์„ ์—ผ๋‘์— ๋‘๊ณ  ์ถ”๊ฐ€ ๊ฐœ๋ฐœ์„ ํ•˜๋ฉด ๋”์šฑ ๋ฉ‹์ง„ ์ฝ”๋“œ๊ฐ€ ๋  ๊ฒƒ์ด๋‹ค. ์•„๋ž˜๋Š” ๋”ฐ๋กœ ๊ตฌํ˜„ํ•œ ์‹œ๋‚˜๋ฆฌ์˜ค์ด๋‹ค. * ์ˆ˜์‹ ์ž๋ฅผ ๊ณ ์ •ํ•˜๋„๋ก * ํ•„์ˆ˜ ์ฐธ์กฐ๋กœ ๋‚˜๋ฅผ ๊ณ ์ •ํ•˜๋„๋ก * ํŒ€ ๋ฉ”์ผ์„ ์ž๋™ ์ƒ์„ฑํ•˜๋„๋ก * ์กฐ๊ฑด์— ๋”ฐ๋ฅธ ๋ฉ”์ผ ๋‚ด์šฉ์ด ๋‹ค๋ฅด๊ฒŒ ์ „์†ก๋˜๋„๋ก * ํŠน์ • ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ํ†ตํ•ด์„œ๋„ ๋ฉ”์ผ์ด ์ „์†ก๋˜๋„๋ก ๐Ÿ‘จ‍๐Ÿ’ป๐Ÿ’ปโŒจ package smtp; import java.util.ArrayList; import java.util.List; impor..

java ๋น„๋ฐ€๋ฒˆํ˜ธ ๋žœ๋ค / ์ž๋ฐ” ๋น„๋ฐ€๋ฒˆํ˜ธ ๋žœ๋ค

์ž…๋ ฅ๋ฐ›์€ ์ˆซ์ž๋งŒํผ์˜ ๋žœ๋ค ๋น„๋ฐ€๋ฒˆํ˜ธ ์ƒ์„ฑ ์š”์ฒญ์‚ฌํ•ญ์— ์˜ํ•ด, ๋น„๋ฐ€๋ฒˆํ˜ธ ์ดˆ๊ธฐํ™” ์‹œ ๋žœ๋ค ๊ฐ’์œผ๋กœ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ƒ์„ฑํ•ด๋‹ฌ๋ผ๊ณ  ํ•˜์˜€๋‹ค. ์ˆซ์ž, ์˜ ๋Œ€์†Œ๋ฌธ์ž๋ฅผ ์„ž์–ด์„œ ํŠน์ • ์ž๋ฆฟ ์ˆ˜๋กœ ๋ง์ด๋‹ค. ์ผ๋‹จ์€ ์š”๊ตฌ์กฐ๊ฑด์— ๋งž๊ฒŒ๋” ๋น ๋ฅด๊ฒŒ ์ง„ํ–‰ํ•˜์˜€๋‹ค. private static String getRandomPassword(int passwordLength) { char[] pwdcharSet = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z', 'A', 'B', 'C', 'D', 'E', ..