본문 바로가기

Service23

[API Stack]Blocking vs Non-Blocking, Sync vs Async Blocking : 자신의 작업을 진행하다가 다른 주체의 작업이 시작되면 다른 작업이 끝날 때 까지 기다렸다가 자신의 작업을 시작 하는 것 Non-Blocking : 다른 주체의 작업에 관련없이 자신의 작업을 하는 것   Blocking Non-Blocking 즉, Blocking과 Non-Blocking은 다른 주체가 작업을 할 때 자신이 제어권이 있는지 없는지로 나뉜다는 것  Synchronous : 동기라는 뜻을 가진다작업을 동시에 수행하거나, 동시에 끝나거나, 끝나는 동시에 시작함을 의미 Asynchronous : 비동기 라는 뜻시작, 종료가 일치하지 않으며, 끝나는 동시에 시작을 하지 않음을 의미 Fahrenheit Synchronous = request 보내놓고, 처리 될때까지 기다리거나/다른.. 2025. 4. 2.
파이썬 클래스 설명 클래스 : 제품의 설계도 , 제품의 규격과 기능을 설명 해놓고, 그 설계도로 여러가지를 만들어내는 개념객체 : 설계도로 만든 제품 , 한개의 설계도(클래스)로, 여러개의 제품(객체)를 만들어 낼수 있음  속성 : 클래스 안의 변수메서드 : 클래스안의 함수생성자 : 객체를 만들 때 실행되는 함수인스턴스 : 메모리에 살아있는 객체 , 인스턴스는 객체에 포함 되어 있음 왜 ? 메모리에 할당된 값을 얘기하니까 self르르 매개 변수로 가지고 있어야함, 메서드로 자기 자신이 들어감 Wayne = classdef say = methoda = 객체 속성 , 생성자생성자 함수(__init__) 함수, 처음 클래스 실행될때 자동으로 실행되는 생성자 함수샤크 객체(self)의 이름의 속성(self.name)은 상어 이다 .. 2022. 10. 26.
Troubleshooting and Debugging - Week 1 Binary search TCP Dump and Wireshark can show us ongoing network connections ps top free show us the number the type of resourece 어떻게 작동하는지 알 수 없는 바이너리 파일을 받고, 그 파일이 어떻게 작동하는지 등을 다양한 방법을 통해 알아내야함. ​ 바이너리 분석은 다양한 기술과 기법을 활용해 더 많은 정보를 얻어야 하고, 대부분의 경우 소스코드가 없으므로 소스코드가 아닌 다른 형태의 코드를 읽어야 함. ​ 바이너리를 분석할 때도 코드를 읽음 - '역어셈블 처리 과정' 이용 (역어셈블 : 기계어 코드를 사람이 해석하기 쉬운 어셈블리 언어로 변환) ​ strace itrace == library cal.. 2022. 2. 22.
Introduction to Git and Github - Week 4 Collaboration ToolPull request create 한다음, allow 받으면 merge 됨 == 같이 collaborate 하는 거 github 통해서fork == creating new 갈라짐, for our user , include file, commit history  그럼 우리 branch 에 올라가고 , 이제 pull request 해서 master branch 에 merge 하면 되는 식  만약 pull request allow 못받고 comment 받은 상황이라면, 그 pull request파일 수정 하고 다시 올려야함  github의 commit tab에   Squashing Changeshttps://docs.github.com/en/pull-requests/colla.. 2022. 2. 20.
Introduction to Git and Github - Week 3 Working with remotes -> Github 쓰면 가능각각 개발자들이 로컬에 git 을 두고 중간에 upload 하는거를 remote 라고 함 -> 이 작업을 통해, 다른 개발자들이 server에 접근해서 코드를 real time 으로 sync 하고 뭐 하는식 으로 일을 함 Github저렇게 내 로컬컴퓨터를 쉐어 서버로 두려면, 호스팅 해야되고 하니까 귀찮아서 github라는 서로 git을 공유 하는 centeral server service 가 나옴github에서 코드 가져와서 내 로컬 컴퓨터로 돌리는식 bitbucket or gitlab 같은 비슷한게 많음repository size에 따라 돈 charging 함 github account 만든다음, 내 repo 만들어서 코드 쉐어하고, 다.. 2022. 2. 18.
Introduction to Git and Github - Week 2 Using git locally What is the Branches in git? git commit -a HEAD는 어떤 커밋 하나를 가르키고 있는 것이다. (참고로 커밋이 저장되는 곳은 repository이므로 HEAD는 repository에서 커밋을 가르킨다.) 보통 가장 최근에 한 커밋을 가르킨다. 그렇기 때문에 가장 최근에 한 커밋에 HEAD가 나타나는 것을 볼 수 있다. [출처] [Git/GitHub] 18. HEAD와 git reset|작성자 미니밍 "}_##]Head can be a commit in a different branch of the project 브랜치(branch)란 하나의 코드 관리 흐름을 나타내는 것​으로 '나뭇가지'라는 뜻을 가진다.​커밋을 할 때, 첫번째로 해준 커.. 2022. 2. 16.
Introduction to Git and Github - Week 1 How to use Version Control Systems(VCS) Git == repository 나눠서, command 입력해가지고 github 에 있는 storage control 하는 software 인듯github == Code sharing 할수있는 platform Version controlautomation script 계속 접할 것임.그리고 administration role 할때 documentation control 이나 이런게 엄청 중요한 걸 알게 될 거임새로운 code implement 했을때 잘 못될 경우를 대비해서 VCS 를 쓰는 거임. diff and patch Git == Tracking of chaging  diffing files파일 두개 comparison  하개 .. 2022. 2. 16.
Quiz Week 5 - Python Creating new instances of class objects can be a great way to keep track of values using attributes associated with the object. The values of these attributes can be easily changed at the object level. The following code illustrates a famous quote by George Bernard Shaw, using objects to represent people. Fill in the blanks to make the code satisfy the behavior described in the quote.  # “If you.. 2022. 2. 15.
Quiz week 4 - Python The format_address function separates out parts of the address string into new strings: house_number and street_name, and returns: "house number X on street named Y". The format of the input string is: numeric house number, followed by the street name which may contain numbers, but never by themselves, and could be several words long. For example, "123 Main Street", "1001 1st Ave", or "55 North .. 2022. 2. 15.
Quiz: Week 4 - Python The is_palindrome function checks if a string is a palindrome. A palindrome is a string that can be equally read from left to right or right to left, omitting blank spaces, and ignoring capitalization. Examples of palindromes are words like kayak and radar, and phrases like "Never Odd or Even". Fill in the blanks in this function to return True if the passed string is a palindrome, False if not... 2022. 2. 15.
Quiz 3 week - Python Question 1Fill in the blanks of this code to print out the numbers 1 through 7. number = 1while number 7:    print(number, end=" ")    number += 1 ---------------------------------------------------------------------------------------------------------------------------------- The show_letters function should print out each letter of a word on a separate line. Fill in the blanks to make that hap.. 2022. 2. 15.
Google Python Automation Certification - Week 6 Python Script 쓸때 Research 잘 해야함 input will be event class event랑 evolved 되어잇는 모든 elements sorted() , return the new list it's sorted sort fucntion 쓰면, 리스트안 value 들 값 순서대로 정리함, 정의 되어있는 벨류값을 바꾸진 않음 key 쓰면 sort 할때 어떤 기준으로 정렬 할지 알려주는거? sort() Parameters By default, sort() doesn't require any extra parameters. However, it has two optional parameters: reverse - If True, the sorted list is reversed (or.. 2022. 2. 9.
Google Python Automation Certification - Week 5 OOP Introduction Object Oriented Programming class apple instance Copy, Delete 뭐이런 거 하는거를 method, function이라고 함 help("") 치면 class help document 나옴 class Apple: pass color = "" flavor = "" jonagold = Apple() jonagold.color = "red" jonagold.flavor = "sweet" print(jonagold.color.upper()) print(jonagold.flavor.lower()) golden = Apple() golden.color = "gold" golden.flavor = "sower" print(golden.color.. 2022. 2. 5.
Google Python Automation Certification - Week 4 Data Type String, List, Dictionary 1. What is String? Data Type in Python. = Empty String = Using + sign is Concatenating(사슬같이 잇다, 연결시키다) = len(pet) = number of character So it is very important to know how to use them. def double_word(word): return word *2 + str(len(word)*2) #return 에다가 print 안쓰고 그냥 word string에 연산 가능. len function은 str 로 감싸줘야 functioning 함 print(double_word("hello")) # Should .. 2022. 2. 3.
Google Python Automation Certification - Week 3 Loops while loops,for loops, recursion(반복, 되풀이) x = 0 while x < 5: print("Not there yet, x=" + str(x)) x = x + 1 print("x=" + str(x)) 총 5번 , 0,1,2,3,4 반복함 def attempts(n): x = 1 while x 2022. 2. 2.
Google Python Automation Certification - Week 2 Syntax = 그냥 코드 쓰는거, 컴퓨터한테 뭐 할지 알려주는거 Data Type String = 문자열 (str) integer = 정수형 (int) Float = 소수형 type()하면 무슨 타입인지 확인 가능 variables = container of data lowercase and upercase are different value. function def greeting(name) = parameter print("Hi " + name) 즉 function쓸때, pamameter (== arguments) 대로 쓰면 그 function이 발생함 return returning value 하려면, 예를 들어서 function 돌려서 나온 결과값을 나중에 쓰려고 저장 하려면 return func.. 2022. 2. 1.
Google Python Automation Certification - Week 1 IT automation 에서 Tool Kit 에 Tools 를 많이 늘려가는게 정말 중요한 과정이다 Programming = recipe 임, 컴퓨터한테 뭐 시킬지 In Programming Semantic 이라는 말은 어디선가 많이 들어보고 많이 봤다. 하지만 그게 정확히 무슨 의미인지는 잘 이해가 안갔다. 그래. 시맨틱 웹. 그래. 의미가 있는 웹. 그렇게는 알고 있다. 단어 뜻은 안다. 하지만 정말로 제대로 이해한 것 같지는 않았다. ​ 간단히 이해할 수 있는 예제가 있다. 어떤 프로그램 오류가 있다. 그런데 이건 Syntax Error 가 있지는 않아서 컴파일이 잘 된다. 그런데 오류가 있다. 내가 바라는대로 작동을 안하고 이상하게 작동을 한다. 프로그래머들이 흔히 말하는, 제일 짜증나는 종류의.. 2022. 2. 1.
Object Oriented Programming 다시 클래스 : 함수 , 변수들의 합 오브젝트 : 클래스를 이용해서 만들어낸 물체 클래스 == 빵 만들 때 빵 틀 오브젝트(인스턴스) == 빵 self.name = name이라는 이미 만들어진 변수를 불러와서 self 오브젝트 안에 넣는 것 사람 3명을 예로 들어보자 각각의 이름들을 받아와서 나는 누구누구다 라는 프로그램을 짜고 싶을때 name 이라는 변수를 , person() object를 만들때 할당하고싶으면 여기서 __init__ 함수를 써야함 __init__함수는 self를 첫 인자로 받고 그다음 새로쓸 변수들을 설정 해줄수 있다 즉 미리 만들어진 person() 이라는 클래스에 , 객체를 만들때 __init__ 함수를 써서, 값을 받아오고, 그 값을 통해 이제 person() 안에 종속된 오브젝트가 .. 2022. 1. 26.
코딩 1시간 워니 - 3 클래스,오브젝트 클래스란? 간단히 말해서 함수와 변수들의 합 빵틀 오브젝트? == 인스턴스 클래스를 이용해서 만들어낸 오브젝트 빵 Self라는 인자는, 이 만들어진 물체에 변수를 활용해야할때 Name 변수를 고정시키지않고 오브젝트를 만들때 새로 이름을 짓고 싶다. 이때 initialize (초기화)를 줄여서 __init__ 함수를 쓰면됨 __init__함수는 Person이라는 Object를 만들때 name 이라는 인자를 받아서 name 이라는 오브젝 안에 넣어라 즉 say_hello 라는 함수를 만들어서 print 를 돌리는데 그 전에 __init__ 함수 써서 name object를 만들어서 이름 빵틀에 넣어서 이름 찍어내는 개념 함수 쓸때 ()에다가 인자를 넣으면 거따가 값이 들어감 !!! 중요 In.. 2021. 12. 27.
코딩 1시간 워니 - 2 반복문 똑같은 조건을 반복 하고 싶을때 쓰는 구문, 일일이 라인을 붙여서 쓰니까 코드가 더러워짐 for 이랑 while 두가지 방법으로 반복 가능 모든 숫자는 0 부터 시작한다. 1부터 시작하는건 없음 똑같은걸 while써보자 i = i + 1안해주면 무제한 반복함 그래서 for 이랑 while이랑 둘 다 비슷해서, for로 구성 할수 있는거면 while로 구성 가능 하다. 반대로 while로 구성할수 있는거는 for로 구성가능. 경우에 따라 쓰기 편한걸로 쓰면 됨 while true라는 무한 루프도 있음 While을 True로 해놓으면, 조건이 거짓으로 안 바뀌니까 계속 루프가 돌아가는 것. 이 무한 루프를 쓸 경우가 좀있음. 그리고 이 무한 루프를 어떻게 끝내는가? break와 continue를 씀... 2021. 12. 26.