본문 바로가기

전체 글131

[Eclipse] C++ 2011 std 이용하기 -std=c++11 이클립스 CDT를 이용하다가 C++ 2011 표준을 이용하려고 하면, 빨간 줄이 그어지는 경우가 있다. 그럴 때 이용하는 방법이다. Project -> Properties -> C/C++ Build -> Settings -> Tool Settings 탭 -> GCC C++ Compiler -> Miscellaneous의 입력 란 가장 앞에다가 -std=c++11 추가(GCC 버전이 낮은 경우 -std=c++0x를 추가 해야 될 수 도 있다.) Window -> Preferences -> C/C++ -> Build -> Settings 의 Discovery 탭에서 CDT GCC Built-in Compiler Settings를 선택하고 마찬가지로 -std=c++11을 Command에 추가한다. 프로젝트를 .. 2015. 2. 11.
[Tip]numpy 생략 기호 없애기 numpy 배열의 내용을 제대로 확인하고 싶을 때 생략 기호가 말썽이다. 그럴 때 사용할 수 있다. import numpy as npmy_array = ... (초기화)np.set_printoptions(threshold=np.inf, linewidth=np.inf) print(my_array) 2015. 2. 9.
[bash]확장자 없는 파일 찾아서 확장자 변경 출처: http://stackoverflow.com/ 가끔 확장자 없는 파일만을 찾아서 파일 확장자를 추가할 필요가 있다. 조금 수정은 해야 되지만.. 아무튼 다음 처럼 사용할 수 있다. find . -type f -not -name "*.*" -print0 |\xargs -0 file |\grep 'JPEG image data' |\sed 's/:.*//' |\xargs -I % echo mv % %.jpg 2015. 2. 6.
Sequence similarity cannot reveal all functional identity? 출처: proteinstructures.com Since large variations in the sequence may result in the same structure, we say that the structure has a higher degree of conservation than the sequence. This is reflected in the fact that the determination of the protein 3D structure may often help revealing its function. An interesting example was provided by the anaerobic cobaltochelatase, an enzyme active in vitamin.. 2015. 2. 3.