Coding343 wget 다운로드 경로 지정해주기 -O is the option to specify the path of the file you want to download to.wget -O /path/to/folder/file.ext -P is prefix where it will download the file in the directorywget -P /path/to/folder -O를 주면 디렉토리와 저장될 파일명까지 지정할 수 있고-P만 주면 디렉토리를 지정할 수 있다. 2017. 12. 1. 네이버 클라우드 Ncloud 설치 및 사용방법 먼저 아래의 URL로 들어간다. https://www.ncloud.com/product/compute/server 이용 신청하기 버튼을 누른다.서버 생성을 누른다. 원하는 서버 사양을 선택한다. 새로운 인증키 생성을 선택하고 인증키 이름을 지정 후 생성 및 저장 버튼을 누른다.그러면 지정한 이름을 가진 pem파일이 자동으로 다운로드된다. 다음을 누른다. 서버 생성을 누르면 서버가 생성된다. 2017. 11. 29. 우분투(Ubuntu) 16.04 Yarn 설치하는법 Yarn은 node.js 패키지 매니저이다.아래의 명령어들을 차례대로 실행하면 된다. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.listsudo apt-get update && sudo apt-get install yarn 2017. 11. 12. 우분투(Ubuntu) 16.04 Node.js 설치하는법 먼저 node -v와 npm -v를 입력해본다.아래와 같이 나오면 설치가 안되어있다는 뜻이다. 다음으로 apt-get 을 update & upgrade 해준다. sudo apt-get update && sudo apt-get -y upgrade 아래의 명령어를 입력하여 node.js를 설치한다. curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - 버전을 확인해본다. 2017. 11. 12. 파이썬 pymysql fetchone() # Using a while loop cursor.execute("SELECT * FROM employees") row = cursor.fetchone() while row is not None: print(row) row = cursor.fetchone() # Using the cursor as iterator cursor.execute("SELECT * FROM employees") for row in cursor: print(row) 2017. 11. 9. 파이썬 TypeError: 'list' object is not callable 오류 해결 dept = []def dept():~ for d in dept:~ 위와 같은 코드로 작업을 하던 도중 TypeError: 'list' object is not callable 라는 에러가 발생했다. 알고보니 dept라는 리스트와 dept라는 함수가 둘 다 존재하기 때문이었다.가급적이면 변수와 함수는 같은 이름을 사용하지 말자. 2017. 11. 8. 이전 1 ··· 35 36 37 38 39 40 41 ··· 58 다음