처음보는 프로젝트의 소스 코드 해독을 위한 팁 모든 이에게 적용된다고 보긴 힘들다. 누구는 탑다운이 편하고 누구는 바텀업이 편하기 때문이다. Unit Test가 있다면 핵심 기능을 하는 TC를 따라가면 해독이 매우 용이하다. 핵심 클래스의 생성자가 어느 클래스로부터 생성되는지 찾는다. A와 B 클래스가 핵심 클래스라고 한다면, 이 클래스의 생성이 어디서 이루어지는지 (new A, new B 로 검색) 확인하면 객체간의 Dependency 관계가 어느정도 눈에 파악된다. 팁으로, 탑다운이 아닌 바텀업으로 소스를 보고자 할때 가장 유용한 기능은 Find Usage 기능이다. 행위의 Trigger가 되는 Method를 찾는다. Command패턴의 경우 Execute를 Override한 메소드를 살펴보면 되고,..
Opengl-tutorial 4 : 색깔이 입혀진 육면체 http://www.opengl-tutorial.org/kr/beginners-tutorials/tutorial-4-a-colored-cube/ 위의 튜토리얼 따라가다가 궁금한게 생겼다. Position 정보는 Vertex Shader에서 처리하니 Vertex Shader로 넘겨주는게 맞는 것 같은데 Color 정보는 Fragment Shader로 바로 넘기면 되는 것을 뭐하러 Vertex Shader로 넘긴 다음에 다시 Fragment Shader 로 넘기는 것인가? // TransformVertexShader.vertexshader // Output data ; will be interpolated for each fragment. out ve..
Oppo Phone 에서 ADB를 통한 디버깅 시도시, 앱은 정상적으로 설치 된 것 같은데, 앱 실행이 안되는 경우가 있다. Logcat에서 확인 할 수 있는 에러 내용은 아래와 같다 2019-04-26 15:05:31.161 13941-13941/com.example.helloworld I/InstantRun: starting instant run server: is main process 2019-04-26 15:05:31.184 13941-13941/com.example.helloworld D/AndroidRuntime: Shutting down VM 2019-04-26 15:05:31.187 13941-13941/com.example.helloworld E/AndroidRuntime: FATAL ..
xcrun: error: active developer path ("/Applications/Xcode10.app/Contents/Developer") does not exist Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools. See `man xcode-select` for more details. Xcode를 업데이트 하고 Git을 쓰려하니 위와 같은 에러 메세지 발생 X..
ec2 인스턴스를 생성하고, jekyll 의 hello world를 수행 중 jekyll serve 명령어로 서비스를 시작하고.. 아무리 시도해도 외부 브라우져에서 접근이 안되더라. 처음에는 ec2 보안 정책을 내가 잘못 지정하고 있나 싶어서 엄청 뒤져봤는데.. 으어............. tcp config를 지정해 줘야 했다. _config.yml 에 아래의 구문을 추가하자 # deployment host: 0.0.0.0 port: 4000 listen 을 all 로 해야한다......
우선 CGI에 대한 설명은 여기를 보자 http://snuet.com/CML/C05/C05.html 그리고 wsgi에 대한 설명은 퍼왔다. An Introduction to Python WSGI Servers: Part 1(번역) 원문 https://blog.appdynamics.com/python/an-introduction-to-python-wsgi-servers-part-1/ (해당 번역은 번역 수준으로도 범위적으로도 완전하지 않습니다. 원문을 볼 것을 추천드립니다.) Python WSGI의 역사 wsgi는 2000년대 초반 Phillip J. Eby라는 사람이 만들었는데, wsgi가 존재하기 전, 기존에 존재하던 Apache 모듈의 일종인 mod_python이 공식적인 명세도 없을 뿐더러 불안정했..
ec2에 flask로 만든 서버를 실행하고.. 5000 번 포트를 열고.. 외부에서 아무리 접속하려고 해도 안된다-_- * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) 실행하면 위처럼 나오길래.. 위의 키워드로 검색해보니.. 아래의 정보가 나왔다. Flask Is Not Your Production Server While lightweight and easy to use, Fl..
sudo apt-get install nginx 로 nginx 설치 시 아래와 같은 메세지가 뜨면서 에러가 났다. Failed to start A high performance web server and a reverse proxy server. 이는 80 포트를 누가 쓰고 있기 때문. 나같은 경우는 아파치가 쓰고 있었으므로.. sudo /etc/init.d/apache2 stop 위 명령어로 아파치 끄고 하니까 잘 됐음.
- Total
- Today
- Yesterday
- Visual C++
- NDK
- 음악
- linux
- database
- jni
- 프로그래밍
- source
- MFC
- Quiz
- it
- 안드로이드
- 드라이버
- API
- jni강좌
- gcc
- winapi
- db
- android
- Cloud
- Troubleshooting
- Python
- C++
- driver
- java
- 리눅스
- kering
- C
- AWS
- algorithm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 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 |