목록Coding Explanation (4)
Jun Hyuk Kim's Blog
SCP, or secure copy, is used in linux to copy files from one loaction to another securly. Using the key of the other server we can connect the two using scp and send(copy) files. A password can be used but most of the times a key file is used to determine its validity. This file transfer was used to transfer a file crawled in a AWS EC2 server to another server. Copy a file to another server scp ..
CORS or Cross-Origin Resource Sharing is an error we encountered when connecting the backend(fastapi) and the frontend(node.js). When connecting the two the following error happened Access to fetch at 'URL_1' from origin 'URL_2' has been blocked by CORS policy So I had to search about the CORS policy and here are the basic findings... So what is CORS? CORS is Cross-Origin Resource Sharing and is..
There are 3 different ways to print a string using a format. First, is using the '%' symbol like is the c language. Variables can be printed with their corresponding types (int = %d, float = %f, string = %s) Input: a = 1 b = 1.23 c = 'hello' print("%d %f %s" % (a, b, c)) Output: 1 1.230000 hello Floats can be printed with the wanted amount of decimal places. Input: b = 1.23 print("%.1f %.2f %.3f..
I learned the importance of testing and printing from the previous 2 days. class MaxMinHeap: def __init__(self, max_len): self.heap_arr = [0 for _ in range(max_len + 1)] self.arr_len = 0 def empty(self): if self.arr_len == 0: return True return False def is_min_level(self): if math.floor(math.log2(self.arr_len)) % 2 == 1: return False return True def insert_num(self, input_num): self.arr_len += ..