Banner

My Tech Blog (์ƒ์„ฑ)

1. What's Amazon EC2?E2C in AWS stands for Amazon Elastic Compute Cloud = Infrastructure as a Serviceโ–ถ EC2 is one of the most popular of AWS's offeringโ–ถ EC2 is not a single service. โ–ถ mainly consists in the capability of :- Renting virtual machines (EC2) ๊ฐ€์ƒ๋จธ์‹  ์ž„๋Œ€ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ ์ด๊ฑธ EC2 Instance ๋ผ๊ณ  ํ•จ- Storing data on virtual drives (EBS) ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ƒ ๋“œ๋ผ์ด๋ธŒ or EBS Volume์— ์ €์žฅ ํ•  ์ˆ˜ ์žˆ๋‹ค- Distrubuting load across ..
IAM Identity and Access Management- ์‚ฌ์šฉ์ž๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ๊ทธ๋ฃน์— ๋ฐฐ์น˜ํ•˜๊ธฐ ๋•Œ๋ฌธ์— Global Service- Root account created by default, shouldn't be used or shared - Users are people within your organization, and can be grouped- Groups only contain users, not other groups- Users don't have to belong to a group, and user can belong to multiple groups IAM: Permissions- Users or Groups can be assinged JSON documents called po..
ttps://www.tablesgenerator.com/html_tables  HTML Tables generator – TablesGenerator.comYou can import table data by uploading file in CSV format (Comma Separated Value). Most spreadsheet software, both desktop and online, allows to save tabular data in CSV format — it is usually available in the File menu under the name "Save As..." or "Exwww.tablesgenerator.comํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ ์ž‘์—… ํ•˜์‹œ๋‹ค๋ณด๋ฉด ํ…Œ์ด๋ธ”์„ ๋งŒ๋“ค์–ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€..
โœ… ๋ฌธ์ œ8์นธ ํฌํ‚ค์˜ ๋ฐฐ์—ด์„ ์„ ์–ธํ•˜๊ณ  ๋žœ๋ค์ˆ˜๋กœ ์ดˆ๊ธฐํ™” ํ•œ ํ›„ ๊ฐ€์žฅ ํฐ ์ˆ˜์™€ ์ž‘์€ ์ˆ˜๋ฅผ ๊ฐ๊ฐ ์ถœ๋ ฅํ•˜์‹œ์˜ค. โœ… ์ถ”๋ก  ๊ณผ์ •- Java์—์„œ ๋žœ๋ค ์ˆ˜๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” java.util.Random ํด๋ž˜์Šค๋‚˜ Math.random() ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.๋žœ๋ค์ˆ˜๋ฅผ ๋‚œ์ˆ˜๋ผ๊ณ ๋„ ํ•œ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” java.util.Random ํด๋ž˜์Šค์™€ newํ‚ค์›Œ๋“œ๋กœ ์ƒ์„ฑ ๊ฐ€๋Šฅํ•˜๋‹ค.- ๋žœ๋ค์ˆ˜๋ฅผ ๋‹ด์•„ ์ค„ 8์นธ์งœ๋ฆฌ ๋ฐฐ์—ด์„ ์ƒ์„ฑํ•œ๋‹ค. - ๊ทธ๋ฆฌ๊ณ  ์ตœ์†Œ๊ฐ’๊ณผ ์ตœ๋Œ€๊ฐ’์„ ๋‹ด์•„์ค„ intํ˜• ๋ณ€์ˆ˜ ๋‘ ๊ฐœ๋ฅผ ์„ ์–ธํ•œ๋‹ค. (int mim, max ์„ ์–ธ)- ๋ฐ˜๋ณต๋ฌธ for์„ ๋Œ๋ ค์„œ ๋žœ๋คํ•œ ์ˆ˜๋ฅผ 8๊ฐœ ์ƒ์„ฑํ•˜๋ฉด์„œ ๋ฐฐ์—ด ์ธ๋ฑ์Šค 0๋ฒˆ๋ถ€ํ„ฐ 7๋ฒˆ๊นŒ์ง€ ๋‹ด์•„ ์ค€๋‹ค.-  ์ž๋ฐ”์—์„œ ๋ฐฐ์—ด์„ ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•˜๋Š” ๋ฉ”์„œ๋“œ๋Š” java.util.Arrays ํด๋ž˜์Šค์˜ sort() ๋ฉ”์„œ๋“œ์ด๋‹ค. ์—ฌ๊ธฐ์„œ..
๋ฐฐ์—ด์€ ์ผ๋ จ์˜ ๋™์ผํ•œ ์œ ํ˜•์˜ ๋ฐ์ดํ„ฐ ์š”์†Œ๋ฅผ ๋ณด์œ ํ•˜๋Š” ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ์ด๋ฉฐ, ์ž๋ฐ”์—์„œ ๋งค์šฐ ์œ ์šฉํ•˜๊ฒŒ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์ž๋ฐ”์—์„œ ๋ฐฐ์—ด์„ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์—ฌ๋Ÿฌ ๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ์€ ๊ฐ€์žฅ ์ผ๋ฐ˜์ ์ธ ๋ฐฉ๋ฒ•๋“ค์ž…๋‹ˆ๋‹ค. 1. ๋ฐฐ์—ด ์ƒ์„ฑํ•˜๊ธฐ 1) ๋ฐฐ์—ด ๋ฆฌํ„ฐ๋Ÿด๋กœ ์ƒ์„ฑํ•˜๊ธฐ ๋ฐฐ์—ด์„ ์ง์ ‘ ์ •์˜ํ•˜๊ณ  ๊ฐ’์„ ํ• ๋‹นํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. int[] numbers = {1, 2, 3, 4, 5}; String[] names = {"John", "Doe", "Alice"}; 2) new ํ‚ค์›Œ๋“œ๋กœ ์ƒ์„ฑํ•˜๊ธฐ new ํ‚ค์›Œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐฐ์—ด์„ ๋™์ ์œผ๋กœ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. int[] numbers = new int[5]; // ํฌ๊ธฐ๊ฐ€ 5์ธ ์ •์ˆ˜ ๋ฐฐ์—ด ์ƒ์„ฑ String[] names = new String[3]; // ํฌ๊ธฐ๊ฐ€ 3์ธ ๋ฌธ์ž์—ด ๋ฐฐ์—ด ์ƒ์„ฑ 3) ๋ฐฐ์—ด์˜ ..
Java์—์„œ ๋žœ๋ค ์ˆ˜๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” java.util.Random ํด๋ž˜์Šค๋‚˜ Math.random() ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ๊ฐ์— ๋Œ€ํ•ด ๊ฐ„๋‹จํžˆ ์„ค๋ช…ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. java.util.Random ํด๋ž˜์Šค import java.util.Random; public class Main { public static void main(String[] args) { Random random = new Random(); // ์ •์ˆ˜ํ˜• ๋žœ๋ค ์ˆ˜ ์ƒ์„ฑ int randomNumber = random.nextInt(); System.out.println("๋žœ๋ค ์ •์ˆ˜: " + randomNumber); // ๋ฒ”์œ„ ์ง€์ •ํ•˜์—ฌ ์ •์ˆ˜ํ˜• ๋žœ๋ค ์ˆ˜ ์ƒ์„ฑ int randomInRange = random.nextInt(100); ..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'์ƒ์„ฑ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ