Before starting the project assignment, I organized the requirements for the assignment in a notepad. Requirements for the Number Guessing Game: 1. Guess a number between 1 and 100. 2. Choose a difficulty level: 'Easy' or 'Hard'. 3. If the 'Hard' difficulty is chosen, the player is allowed only 5 attempts to guess the number. 4. After the player inputs a guessed number, if it is not correct, pro..
The rules for Blackjack If the total value of your cards exceeds 21, you lose (Bust).Jacks, Queens, and Kings are each valued at 10, and Aces can be valued as either 1 or 11, depending on which value is more advantageous.At the start, the dealer receives two cards, and the player also receives two cards.One of the dealer's cards is face-up, and the other card is face-down.To win, the player's to..
클라우드 관련하여 보안, 리눅스, 네트워크, aws에 대해서 공부하려고 계획있다가 급하게 우선 파이썬을 공부해야겠다는 생각이 들었다.나는 그동안 Java, C++, C 언어를 학교에서 배우면서 코드에 대해 기본적으로 탄탄한 줄 알았다.하지만 모바일 앱 프로그래밍이라는 수업을 수강하며 안드로이드 스튜디오를 활용하여 앱을 개발하는 과제에서나의 코딩 수준이 GPT, 혹은 인터넷이 없으면 코딩을 아예 못 짤 정도로 심각한 상황이었다. 그래서 나의 심각함을 깨닫고, 언어 하나를 탄탄하게, 코딩테스트를 봐도 어려움 없이 풀 수 있는 수준으로 코딩 실력을 늘려야겠다는 생각이 들어 파이썬을 먼저 공부하고자 한다!
Before starting with databases, I studied by writing a blog based on the exercises included in a Linux bootcamp.As I wrote the practice blog on Linux, I realized that to create a useful blog post not only for others but also for myself, it’s better to include both concepts and practical exercises. With that in mind, I now plan to organize and write about the concepts as well.Enough with the prea..
Cron은 특정 시간에 실행되도록 명령어를 예약하는 것이다. Cron을 실행시키기 위해선 Cron Syntax에 대해서 알아야 한다. 'a b c d e command' 로 이루어져 있으며 a(0-59): Minute b(0-23): Hour c(1-31): Day d(1-12): Month e(0-6): Day(of week) → 참고로 0:일요일 6:토요일 를 의미한다. 해당 값들에 '*'를 넣는다면 그것은 always를 의미한다. 'crontab -e'에서 편집할 수 있다. 만약 '30 6 * * * command' 라고 작성되어 있다면 매일 6:30am 실행을 의미한다. 만약 '*/5 * * * * command'라고 작성한다면, 매일 5분마다 실행을 의미한다. 실제로 'contab -e'를 명령..
명령어를 만들어 보기 전, 명령어가 어떠한 원리로 실행되는지 알아야 할 필요가 있다. 'echo $PATH'를 통해 알아볼 수 있다. ':'를 기준으로 나와있는 경로에 사용자가 입력한 명령어가 있는지 확인한 후, 없다면 다음 경로에서 다시 탐색한다. 만약 내가 'ls' 명령어를 입력했다고 하자. 그렇다면 위 사진에 나온 경로처럼 ① /usr/local/sbin 폴더에서 탐색한 후, 'ls'명령어가 없다면, ②/usr/local/bin 폴더에서 탐색한다. 그곳에서 'ls'가 없다면, ③/usr/sbin 폴더에서 탐색한다. 이곳에 'ls' 명령어가 있다면 이곳에서 해당 파일을 찾아 실행한다. 이러한 원리로 쉘에서 명령어가 동작하게 된다. 하지만 '$PATH' 경로를 보면 모두 /home 디렉토리를 거치지 않..