์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- html
- ์๋ฐ์คํฌ๋ฆฝํธ
- JavaScript
- ๋ฐฉํ๋ฒฝdmz
- ์นดํ๋๊ฐ
- Python
- ํ์ด์ฌ
- ์ค๋ธ์
- ํ์ฒ์ ๋ฆฌํธ๋ฆฌํธ
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- dmz๋คํธ์ํฌ
- ๋๊ฐ
- ๋คํธ์ํฌdmz
- ์นํผ๋ธ๋ฆฌ์ฑ
- database
- ํ๋ก๊ทธ๋๋ฐ
- dmz๋
- ๋ ์
- ์ํ
- ์๋ฐ
- ์ค๋ผํด
- css
- ์ ๋ฆฌํธ๋ฆฌํธ
- ์ฑ
- ํฐ์คํ ๋ฆฌ์ฑ๋ฆฐ์ง
- Java
- ์ฝ๋ฉ
- ๋ฐฐ์์ ๋ฐฐ์
- ๊ฐ๋ฐ
- dmz๊ตฌ์ฑ
- Today
- Total
๋ชฉ๋ก๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ (238)
JiYoung Dev ๐ฅ
for i in reversed(range(n)): ํน์ for i in range(n, 0, -1): def solution(my_string): answer = '' for i in reversed(range(len(my_string))): answer += my_string[i] return answer
Spring boot - JPA ํ์ฉ ๊ฒ์ํ ์ฒจ๋ถํ์ผ ๊ธฐ๋ฅ ์ถ๊ฐํ๊ธฐ FIleStore ์ฝคํฌ๋ํธ ์ถ๊ฐ ์ฒจ๋ถํ์ผ ์ ์ฅ ๊ฒฝ๋ก ์ง์ ์ฒจ๋ถํ์ผ ์ด๋ฆ ๋ณํ (์์ฑ์๊ฐ ์ ๋ก๋ํ ํ์ผ๋ช โ ์๋ฒ ๋ด๋ถ์์ ๊ด๋ฆฌํ๋ ํ์ผ๋ช ) ํ์ผ ์ ์ฅ package com.sjy.shopping.attachfile; import java.io.File; import java.io.IOException; import java.util.UUID; import org.springframework.stereotype.Component; import org.springframework.web.multipart.MultipartFile; import com.sjy.shopping.model.entity.UploadFile; @Component pu..
round() ํจ์ ์ฌ์ฉ round(number, ์๋ฆฟ์) def solution(num1, num2): answer = round(num1 / num2 * 1000, 0) return answer
String.valueOf() public String solution(String s) { String answer = ""; char[] arr = s.toCharArray(); int idx = 0; for(int i = 0 ; i < arr.length ; i++) { if(arr[i] != 32) { if(idx % 2 == 0) { answer += String.valueOf(arr[i]).toUpperCase(); } else { answer += String.valueOf(arr[i]).toLowerCase(); } idx++; }else { idx=0; answer += " "; } } return answer; }
Arrays.copyOf(๋ฐฐ์ด, ๋ณ๊ฒฝํ๊ณ ์ ํ๋ ํฌ๊ธฐ) copyOf๋ก ๋ฐฐ์ด ๋ณตํํ๊ณ ์ํ๋ ํฌ๊ธฐ๋ก ์ง์ class Solution { public int[] solution(int []arr) { int idx = 1; int[] answer = new int[arr.length]; answer[0] = arr[0]; for(int i = 1 ; i < arr.length ; i++) { if(arr[i] != arr[i-1]) { answer[idx] = arr[i]; idx++; } } int[] copy = Arrays.copyOf(answer, idx); return copy; } }

์ ์ ์น ์ ํ๋ฆฌ์ผ์ด์ ๊ณผ ์ฌ์ดํธ๊ฐ ์ค๊ฐ์ ์์ด ๋ธ๋ผ์ฐ์ ๊ฐ์ ์ค๋์ค๋ ์์ ๋ฏธ๋์ด๋ฅผ ์คํธ๋ฆผํ๊ณ , ์์์ ๋ฐ์ดํฐ๋ฅผ ๊ตํํ ์ ์๋๋ก ํ๋ ๊ธฐ์ ์๋ฒ๋ฅผ ์ต๋ํ ๊ฑฐ์น์ง ์๊ณ P2P(Peer-to-Peer Network)๋ก ๋ธ๋ผ์ฐ์ ๋ ๋จ๋ง๊ฐ์ ๋ฐ์ดํฐ๋ฅผ ์ฃผ๊ณ ๋ฐ๋ ๊ธฐ์ ์ ์น ํ์ค\ Zoom, ๊ตฌ๊ธ Meet, ํ์ด์ค๋ถ ๋ฉ์ ์ ๋ฑ์์ ์ฌ์ฉ ํน์ง ์น์์ ์ฌ์ฉํ ์ ์๋ ์ ์ผํ P2P ๊ธฐ์ ๋ก ๊ฐ๊ฐ์ ๊ธฐ๊ธฐ๊ฐ ์๋ฒ์ ๋์ ์์ด ์ฐ๊ฒฐ๋๊ธฐ ์ํด ์ฐ๊ฒฐ์ ๋์์ฃผ๋ ์๋ฒ(Signaling)๊ณผ P2P ์ฐ๊ฒฐ์ด ๋ถ๊ฐ๋ฅํ ์ํฉ์ ๋๋นํ ๋ฆด๋ ์ด ์๋ฒ(TURN)๊ฐ ํ์ํจ UDP(User Datagram Protocol) ๊ธฐ๋ฐ์ ์คํธ๋ฆฌ๋ฐ ๊ธฐ์ WebRTC๋ฅผ ๊ตฌ์ฑํ๋ ์ผ๋ จ์ ํ์ค๋ค์ ํ๋ฌ๊ทธ์ธ์ด๋ ์ 3์ ์ํํธ์จ์ด ์ค์น ์์ด ์ข ๋จ ๊ฐ ๋ฐ์ดํฐ ๊ณต์ ์ ..

์ค์น ์ฌ๋ถ ํ์ธ rpm -qa httpd php mariadb-server ํ๋ก๊ทธ๋จ ์ค์น dnf -y install httpd php php-mysqlnd mariadb-server ๋ฒ์ ผํ์ธ rpm -qa httpd php mariadb-server rpm -qi httpd php mariadb-server dnf info httpd php mariadb-server ์๋น์ค ๊ตฌ๋ systemctl restart/enable/status httpd systemctl restart/enable/status mariadb start ์ฌ์ฉ์ ์ด๋ฏธ active ์ํ๋ผ๋ฉด ์ค๋ฅ๋ ์ ์์ โ restart ํฌํธ ์ด๊ธฐ (http, https) firewall-config ํด๋ผ์ด์ธํธ์์ ์๋ฒ ์ฐ๊ฒฐ ๋๋ฉ์ธ ์ค์ DNS ์..

-- 1. ์๊ฒฉ์ง ์์คํ ๊ด๋ฆฌ์ -- 461 --------------------- -- ํ ๋ (telnet) dnf install telnet-server -- ์๋น์ค ์์ systemctl start telnet.socket -- ์๋น์ค ์ํํ์ธ systemctl status telnet.socket -- ํ ๋ ์ฉ ์ฌ์ฉ์์์ฑ adduser inho passwd inho -- ๋ฐฉํ๋ฒฝ open -- gui ์ค์ firewall-config -- cli ์ค์ firewall-cmd --add-service=telnet firewall-cmd --add-port=23/tcp firewall-cmd --permanent --add-service=telnet firewall-cmd --reload -- xrdp -..

cron ๋ด๊ฐ ์ํ๋ ์๊ฐ๋์ ์์ ์ ์งํํ ์ ์๋๋ก ์ค์ โ ๋ฐฐ์น ์ฒ๋ฆฌ์ ์ฌ์ฉ (๋ฐฑ์ ) ๋ถ, ์, ์ผ, ์, ์์ผ์ ์ ํด์ง ์๊ฐ์ด ๋๋ฉด ๋ฐฑ์ ๋๋๋ก cron ์ค์ ํ๊ธฐ [root@localhost backup]# nano /etc/crontab [root@localhost backup]# systemctl restart crond [root@localhost backup]# systemctl status crond 1. ๋ฐฐ์น ํ๋ก๊ทธ๋จ ์ฝ๋ - backup.sh (๋ณธ์ธ ๊ณ์ ์์ ์์ฑ) home ๋๋ ํ ๋ฆฌ๋ฅผ ๋ฐฑ์ ํ ์์ถ โ backup ํด๋์ ์ ์ฅํ๋ ํ๋ก๊ทธ๋จ backup ํด๋ ์์ฑ : mkdir /backup backup.sh ์คํ๊ถํ ๋ถ์ฌ : chmod 755 backup.sh 2. crontabl ํ๋ก..

vmware : ๊ฐ์์๋ฒ๋ฅผ ๋์๊ฐ ์ ์๊ฒ ํด์ฃผ๋ ํ๋ก๊ทธ๋จ ๋ฆฌ๋ ์ ์๋ฒ ์ค์น ๊ฐ์์๋ฒ vm์ ๋ถ์ด๊ธฐ ํธ์คํธ ์ฃผ์ ๋ณ๊ฒฝ power On ํต์ ํ์ธ : ping test host ์ปดํจํฐ์์ ์งํ ์๋น์ค ์คํ์ํค๋ ค๋ฉด system ctl start restart stop status 4๊ฐ์ง option http ์คํํ๋ฉด๋จ rpm ์ผ๋ก ํ๋ก๊ทธ๋จ ์ค์น ์ค์นํ๊ณ ์ ํ๋ ํ์ผ ์์น๋ก ์ด๋ [root@localhost CentOS-8-BaseOS-x86_64]# cd AppStream/ [root@localhost AppStream]# cd Packages/ [root@localhost Packages]# ls mc-* mc-4.8.19-9.el8.x86_64.rpm ํ์ผ ์ค์น ์ฌ๋ถ ํ์ธ : qa [root@localh..