requirements.txt 만들기
·
Programming/Python
pip freeze > requirements.txt 위와 같이 사용해주면 된다.
anaconda env 생성하기
·
Programming/Tensorflow
conda create -n venv python=3.7 위와 같이 사용하면 된다.
nginx restart 방법
·
Programming/Ubuntu
nginx를 사용하다보면 pc를 재부팅 할 경우 프로그램이 종료 되어있는 경우가 많다. 이 경우에는 sudo systemctl restart nginx 위와 같은 명령어를 사용해주면 된다. sudo systemctl status nginx 와 같이 명령어를 사용하면 아래와 같은 결과를 확인할수 있다.
tensorflow gpu memory 조절하기
·
Programming/Tensorflow
tensorflow를 이용하다 보면 학습 중에 gpu 메모리를 모두 사용중이어서 다른 작업을 하지 못하는 경우가 있다. 이럴 때는 아래와 같이 사용할 gpu memory를 조정해주면 된다. config = tf.ConfigProto() config.gpu_options.per_process_gpu_memory_fraction = 0.4 sess = tf.Session(config=config) as sess: or config = tf.ConfigProto() config.gpu_options.allow_growth = True sess= tf.Session(config=config):
리눅스 처음 root 계정 비밀번호 정하기
·
Programming/Ubuntu
처음에 루트 비밀번호가 저장이 안되면 이용을 root 권한을 이용할수가 없다. sudo passwd root 명령어를 사용하여 등록하면 된다.
codeground [4] 다트 게임
·
Programming/codeground
다트 게임문제출처 : codeground.org입력출처 : codeground.org출력출처 : codeground.org입출력예입력출력1Case#110 50 60 80 9013455 50 5545 -50-77 88-85 0이 문제의 경우에 각도에 관해서 미리 알아둬야 할게 있었습니다.소스.cppgithub1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 #include #include //sqrt(), atan2() 함수 struct rect { double x; d..
codeground [3] 시험 공부
·
Programming/codeground
시험 공부문제출처 : codeground.org입력출처 : codeground.org출력출처 : codeground.org입출력예입력출력1Case#14 28020 50 30 30소스.cppgithub1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 #include #include #include #include using namespace std; int Answer; int main(int argc, char** argv) { int T, test_case; unsigned int num; unsigned int study; cin >> T; for (test_case = 0;..
codeground [2] 프로그래밍 경진대회
·
Programming/codeground
프로그래밍 경진대회문제출처 : codeground.org입력출처 : codeground.org출력출처 : codeground.org입출력예입력출력1Case#133576소스.cppgithub1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 #include #include #include using namespace std; int Answer; int main(int argc, char** argv) { int T, test_case; unsigned int num; unsigned int max; cin >> T; for (test_case = 0; test..
codeground [1] 숫자 골라내기
·
Programming/codeground
숫자 골라내기문제출처 : codeground.org입력출처 : codeground.org출력출처 : codeground.org입출력예입력출력1Case#1472 5 3 3소스.cppgithub1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 // 소스 #include #include using namespace std; int Answer; int main(int argc, char** argv) { int T, test_case; unsigned int num; unsigned int temp; setbuf(stdout, NULL); scanf("%d", &T); for (test_case = ..
cg_intro
·
Programming/codeground
삼성이 제공하는것으로 알고 있는 알고리즘 사이트 입니다.