Banner

My Tech Blog (Coding)



1. ์†Œ์ŠคํŠธ๋ฆฌ ๋“ค์–ด๊ฐ€์„œ ์ตœ์‹  ์ƒํƒœ์—์„œ ๋ธŒ๋žœ์น˜๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค๊ธฐ ์ด๋ฆ„์€ ์ถฉ๋Œ ์—ฐ์Šต์šฉ์ด๋‹ˆ๊นŒ conflict๋ผ๊ณ  ํ•ด ์ฃผ์—ˆ๋‹ค.์ด๋ ‡๊ฒŒ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•ด์ฃผ๋ฉด checkout์ด ์ž๋™์œผ๋กœ ๋œ๋‹ค. 2. ์ด์ œ conflict์—์„œ ์—๋””ํ„ฐ๋ฅผ ์—ด์–ด์„œ ํŒŒ์ผ์„ ์ˆ˜์ •ํ•˜๊ณ  ์ปค๋ฐ‹ ํ•ด ์คŒ 3. ๋งˆ์Šคํ„ฐ์— ์ฒดํฌ์•„์›ƒ ํ•˜๊ณ  ์—๋””ํ„ฐ๋กœ ๊ธ€ ์ˆ˜์ • ํ›„ ์ปค๋ฐ‹ ์—ฌ๊ธฐ๋ถ€ํ„ฐ๋Š” ํ‹ฐ์Šคํ† ๋ฆฌ๊ฐ€ ์ €์ ˆ๋กœ ๋กœ๊ทธ์•„์›ƒ๋˜๋ฉด์„œ ์Šคํฌ๋ฆฐ์ƒท ํ•œ๊ฒŒ ์‹น ๋‚ ์•„๊ฐ...master ์ฒดํฌ์•„์›ƒํ•œ ์ƒํƒœ์—์„œ conflict ๋ณ‘ํ•ฉํ•˜๋ฉด์ปค๋ฐ‹ํ•˜์ง€ ์•Š์€ ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์žˆ๋‹ค๊ณ  ๋œจ๋ฉด์„œ ์•„๋ž˜์— ์Šคํ…Œ์ด์ง€์— ์˜ฌ๋ผ๊ฐ„ ํŒŒ์ผ ์˜์—ญ์—๋Š” ๋Š๋‚Œํ‘œ ์•„์ด์ฝ˜์ด ๋œธ์ถฉ๋Œ์ด ๋‚œ ๊ฒƒ!  1. pull ์ถฉ๋Œํ•ด๊ฒฐ๋ฒ•1-1. ์—๋””ํ„ฐ์—์„œ ํ•ด๊ฒฐ- Shift + delete(๋ผ์ธ์ง€์šฐ๊ธฐ) ์ง์ ‘ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜- ํ•˜๋‹จ์˜ Resolve in Merge Editor ํด๋ฆญ์™ผ์ชฝ..
1. ์ดํด๋ฆฝ์Šค์— ๊นƒํ—ˆ๋ธŒ ์—ฐ๋™ํ•˜๊ธฐ ์ƒ๋‹จ๋ฉ”๋‰ด [Window] - [Show View] - [Other] [Git] - [Git Repositories] - ๋งˆ์šฐ์Šค ์šฐํด๋ฆญ [Clone a Git Repository] URI: ๋‚ด ๊นƒํ—ˆ๋ธŒ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ URI (HTTP)User  & password : ๋‚ด ๊นƒํ—ˆ๋ธŒ ์•„์ด๋””์™€ ๊นƒํ† ํฐ ์ž…๋ ฅํ•˜๊ณ  [Next] - [Finish] ๊นƒํ—ˆ๋ธŒ์™€ ์—ฐ๋™ํ•˜๊ณ ์ž ํ•˜๋Š” ํ”„๋กœ์ ํŠธ ๋งˆ์šฐ์Šค ์šฐํด๋ฆญ [Team] - [Share Project..] ํด๋ฆญ Repository: ์•„๊นŒ Git Repositories์—์„œ ๋งŒ๋“ค์–ด ๋†จ๋˜ ๊ฒฝ๋กœ๋ฅผ ํด๋ฆญ ๊ทธ๋ฆฌ๊ณ  [Finish] ์ปค๋ฐ‹ํ•˜๋ ค๋ฉด ํ”„๋กœ์ ํŠธ ๋งˆ์šฐ์Šค ์šฐํด๋ฆญ [Team] - [Commit]  - [Unstaged Chages] ์— ์žˆ๋Š” ํŒŒ์ผ๋“ค์„ ์ƒ๋‹จ [++] ์„ ..
๊พธ๋ฏธ๊ธฐ ๋ผ๊ณ  ํ•˜๊ธฐ์—๋Š” ์†Œ์†Œํ•˜์ง€๋งŒ๋ถ€ํŠธ์ŠคํŠธ๋žฉ ์†์„ฑ ๊ณต๋ถ€ํ•˜๋Š” ์‹œ๊ฐ„ ๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ” ์•„๋ž˜ ๋ฉ”์ธ ์˜์—ญ์— ๋ถ€ํŠธ์ŠคํŠธ๋žฉ์œผ๋กœ ์†Œ๊ฐœ๊ธ€ ์ถ”๊ฐ€main์˜์—ญ์ด๋ผ๊ณ  ํ•ด์•ผ ํ• ์ง€ content ์˜์—ญ์ด๋ผ๊ณ  ํ•ด์•ผ ํ• ์ง€ 1. ์†Œ๊ฐœ๊ธ€ ์ถ”๊ฐ€ `jumbotron`ํŽ˜์ด์ง€ ๋‚ด์—์„œ ๊ฐ•์กฐํ•˜๋Š” ํžˆ์–ด๋กœ ์„น์…˜์ด๊ณ  ํฐ ํ…์ŠคํŠธ์™€ ์—ฌ๋ฐฑ์„ ๊ธฐ๋ณธ์œผ๋กœ ํฌํ•จํ•จ๋ถ€ํŠธ์ŠคํŠธ๋žฉ 5์—์„œ๋Š” Jumbotron ํด๋ž˜์Šค๊ฐ€ ์ œ๊ฑฐ๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ์•„๋ž˜์™€ ๊ฐ™์€ ํด๋ž˜์Šค๋ฅผ ์กฐํ•ฉํ•ด์„œ ๋น„์Šทํ•œ ํšจ๊ณผ๋ฅผ ์ˆ˜๋™์œผ๋กœ ๋‚ด์•ผ ํ•œ๋‹ค. `rounded`์š”์†Œ์˜ ๋ชจ์„œ๋ฆฌ๋ฅผ ๋‘ฅ๊ธ€๊ฒŒ ๋งŒ๋“ฌ  border-radius: 0.375rem (์•ฝ 6px)์—ฌ๊ธฐ์„œ rounded-circle, rounded-pill ์“ฐ๋ฉด ๋” ๊ทน๋‹จ์ ์œผ๋กœ(?) ๋‘ฅ๊ทผ ์Šคํƒ€์ผ ๊ฐ€๋Šฅ`display-4`ํ…์ŠคํŠธ๋ฅผ ํฌ๊ฒŒ ํ‘œ์‹œํ•˜๋Š” ํ—ค๋”ฉ ์Šคํƒ€์ผ๋ถ€ํŠธ์ŠคํŠธ๋žฉ์˜ ๋””์Šคํ”Œ๋ ˆ์ด ํด๋ž˜์Šค์ธ๋ฐ ..
1. ๊ฒŒ์‹œ๊ธ€  ์ˆ˜์ •ํ•˜๋Š” update ๋ฉ”์„œ๋“œ ๋งŒ๋“ค๊ธฐBbsDAO ํด๋ž˜์Šค ํ•˜๋‹จ์— ๋ฉ”์„œ๋“œ ์ถ”๊ฐ€public int update(int bbsID, String bbsTitle, String bbsContent) { String SQL = "UPDATE BBS SET bbsTitle = ?, bbsContent = ? WHERE bbsID = ?"; PreparedStatement psmt = null; try { psmt = conn.prepareStatement(SQL); psmt.setString(1, bbsTitle); psmt.setString(2, bbsContent); psmt.setInt(3, bbsID); return p..
๊ทธ๋™์•ˆ ํŒ€ํ”„๋กœ์ ํŠธ ํ–ˆ์„ ๋•Œ ๋‚˜๋Š” ์ฝ”๋“œ๋งŒ ์งœ๊ณ  ๊ทธ๋ƒฅ ๊นƒ ๋ฐฐ์‰ฌ์—์„œ add commit push๋งŒ ํ–ˆ์—ˆ๋‹ค. ์šฐ๋ฆฌํŒ€ ๋„ค ์‚ฌ๋žŒ๊บผ ์ฝ”๋“œ ํ•ฉ์น˜๋Š”๊ฑฐ๋Š” ๋ณ‘ํ›ˆ๋‹˜์ด ํ•ด์ฃผ์…”์„œ ์†Œ์ŠคํŠธ๋ฆฌ๋ฅผ ์ง์ ‘ ์‚ฌ์šฉํ•ด ๋ณธ ์ ์€ ์—†์—ˆ๋‹ค. ์–ด์ œ๋ถ€ํ„ฐ ์†Œ์ŠคํŠธ๋ฆฌ ๊น”์•„์„œ ์จ ๋ณด๋Š”๋ฐ  ์•„์ง ์ต์ˆ™ํ•˜์ง€ ์•Š์•„์„œ ์ƒˆ๋กœ ๋ฐฐ์šฐ๋Š”๊ฒŒ ๋งŽ๋‹ค.  ๊ฒ ์—†๋Š” ๋‚˜๋Š” ์–ด์ฐจํ”ผ ์—ฐ์Šตํ• ๊ฑฐ ์ด๊ฒƒ์ €๊ฒƒ ๋ˆŒ๋Ÿฌ๋ดค๋‹ค.๋ณ‘ํ•ฉ๋„ ํ•ด๋ณด๊ณ  ๋ธŒ๋žœ์น˜ ์ฒดํฌ์•„์›ƒ, ๋ฎ์–ด์“ฐ๊ธฐ, ๊ฐ•์ œ๋กœ ์‚ญ์ œ ๋“ฑ ใ…‹ใ…‹ใ…‹ ์ด๊ฒƒ์ €๊ฒƒ ์•„๋ฌด๊ฑฐ๋‚˜ ๋‹ค ๋ˆŒ๋Ÿฌ๋ณด๋‹ค๊ฐ€ ์ž๊พธ ์˜ค๋ฅ˜๊ฐ€ ๋‚œ๋‹ค ใ…‹ใ…‹ใ…‹๊ณ ์žฅ๋‚˜๋ฉด ์ปดํ“จํ„ฐ ๋ฐ€๋ฉด ๋ผ~ ํšŒ์‚ฌ์ปด๋„ ์•„๋‹Œ๋ฐใ…‹ใ…‹ใ…‹ (๋†๋‹ด) Git ์ €์žฅ์†Œ์— ์—ฐ๊ฒฐ๋œ ํŒŒ์ผ์„ ์ˆ˜์ •ํ•˜๋ฉด ์ˆ˜์ • ํ›„์— ์•„์ง ์Šคํ…Œ์ด์ง•์ด๋‚˜ ์ปค๋ฐ‹ ์•ˆํ–ˆ์„ ๋•Œ ์ฝ”๋“œ ์™ผ์ชฝ์— ์กฐ๊ทธ๋งฃ๊ฒŒ ์„ธ๋กœ์ค„์ด ๋œฌ๋‹ค.  ์ด๊ฑธ Diff Decorations์ด๋ผ๊ณ  ํ•œ๋‹ค. Diff Decorations๋Š” ํŒŒ์ผ..
CSS Diner๋Š” CSS ์„ ํƒ์ž๋ฅผ ํ•™์Šตํ•˜๊ณ  ์—ฐ์Šตํ•  ์ˆ˜ ์žˆ๋Š” ์žฌ๋ฏธ์žˆ๋Š” ์›น ๊ธฐ๋ฐ˜ ๊ฒŒ์ž„์ด๋‹ค.์‚ฌ์šฉ์ž๊ฐ€ HTML ์ฝ”๋“œ์— ์ ์šฉํ•  ์˜ฌ๋ฐ”๋ฅธ CSS ์„ ํƒ์ž๋ฅผ ์ž‘์„ฑํ•˜๋ฉด, ๊ฒŒ์ž„์˜ ๊ฐ ๋ ˆ๋ฒจ์„ ํด๋ฆฌ์–ดํ•˜๋ฉฐ ์ ์  ๋” ๋ณต์žกํ•œ ์„ ํƒ์ž๋ฅผ ์ตํž ์ˆ˜ ์žˆ๋‹ค. ์ด ๊ฒŒ์ž„์€ CSS๋ฅผ ๋ฐฐ์šฐ๊ฑฐ๋‚˜ ๋ณต์Šตํ•˜๊ณ  ์‹ถ์€ ์ดˆ๋ณด์ž์™€ ์ค‘๊ธ‰์ž๋ฅผ ์œ„ํ•œ ์ข‹์€ ๋„๊ตฌ์ด๊ณ ํŠนํžˆ ์„ ํƒ์ž ๊ณต๋ถ€๋ฅผ ํ•˜๊ณ  ์‹ถ์€ ์‚ฌ๋žŒ๋“ค๊ป˜ ์ถ”์ฒœํ•œ๋‹ค.ํฌ๋กค๋ง ์—ฐ์Šตํ•˜์‹œ๋Š” ๋ถ„๋“ค๊ป˜๋„ ๋งŽ์€ ๋„์›€์ด ๋  ๊ฒƒ ๊ฐ™๋‹ค.  https://flukeout.github.io/ CSS DinerA fun game to help you learn and practice CSS selectors.flukeout.github.io ๊ฐ€์žฅ ์‰ฌ์šด ๋‚œ์ด๋„์ธ 1๋ฒˆ๋ถ€ํ„ฐ ๊ฐ€์žฅ ์–ด๋ ค์šด 32๋ฒˆ๊นŒ์ง€ ์žˆ๋‹ค.ใ…‹ใ…‹ ํ™”๋ฉด์—์„œ ๊ณ ๋ฅด๋ผ๊ณ  ํ•˜๋Š” ๋ฌผ๊ฑด์„ ๊ณ ๋ฅด๋Š” CSS..
๋‚˜๋งŒ ์•Œ๊ธฐ์—๋Š” ์•„๊นŒ์šด ์‚ฌ์ดํŠธ `Learn Git Branching` ์€ Git์„ ์“ธ ๋•Œ ํ•„์š”ํ•œ ๋ธŒ๋žœ์น˜์— ๋Œ€ํ•œ ๊ฐœ๋…์„ ์žก๋Š” ๊ฒƒ์„ ๋•๊ธฐ ์œ„ํ•ด ๋งŒ๋“ค์–ด์ง„ ์‚ฌ์ดํŠธ์ด๋‹ค. https://learngitbranching.js.org/?locale=ko Learn Git BranchingAn interactive Git visualization tool to educate and challenge!learngitbranching.js.org ์ฒ˜์Œ ์ ‘์†ํ•˜๋ฉด ์ด๋ ‡๊ฒŒ ํŒ์—…์ด ๋œจ๋Š”๋ฐ ESC ๋ˆ„๋ฅด๋ฉด ๋ฐ”๋กœ ๋ฐฐ์‰ฌ์ฐฝ์— ์•„๋ฌด๊ฑฐ๋‚˜ ์—ฐ์Šตํ•ด ๋ณผ ์ˆ˜ ์žˆ๋‹ค.๋‹จ๊ณ„๋ณ„๋กœ ์—ฐ์Šตํ•˜๊ณ  ์‹ถ์€ ์‚ฌ๋žŒ์€ ์•„๋ž˜ ํŒ์—…์—์„œ ๋ ˆ๋ฒจ์„ ์„ ํƒํ•˜๋ฉด ๋œ๋‹ค. ์ฝ˜์†”์— ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด๋„ ๋˜๊ณ ,๋ธŒ๋žœ์น˜ ์ด๋ฆ„์„ ์ง์ ‘ ํด๋ฆญํ•ด๋„ checkout ์ด ๋œ๋‹ค~
์†Œ์ŠคํŠธ๋ฆฌ ๋‹ค์šด ๋ฐ›๊ธฐhttps://www.sourcetreeapp.com/ Sourcetree | Free Git GUI for Mac and WindowsA Git GUI that offers a visual representation of your repositories. Sourcetree is a free Git client for Windows and Mac.www.sourcetreeapp.com Source Tree์—ด๊ณ  ๊ตฌ๊ธ€ ๊ณ„์ • ์—ฐ๋™ํ•ด์„œ ํšŒ์›๊ฐ€์ž…ํ•ด์ฃผ์—ˆ๋‹ค. Source Tree > Clone ํƒญ์— ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ ๋ถ™์—ฌ๋„ฃ๊ธฐSSH๋ง๊ณ  HTTPS ๋ณต์‚ฌํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด์•ผํ•œ๋‹ค.1. ํด๋ก (Clone)๊นƒํ—ˆ๋ธŒ ์›๊ฒฉ์ €์žฅ์†Œ์˜ ๋‚ด์šฉ์„ ๊ทธ๋Œ€๋กœ ๋‚ด PC ๋‚ด๋ฌธ์„œ์— ๊ฐ€์ ธ์˜ค๋Š” ๊ฒƒํด๋ก ์€ ํ•œ๋ฒˆ๋งŒ ํ•˜๋ฉด ๋˜๊ณ  ์ž‘์—…ํ•œ ํ›„์—๋Š” stage..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'Coding' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ