분류 전체보기

    jni 컴파일 하기

    1. JNI 컴파일 하기 jni을 컴파일해서 실행 파일을 얻기 위해서는 여러 명령어를 섞어 써야한다.그래서 아예 script로 만들어 놓고 그때그때 수정하면서 사용하곤 한다. 2. Script 내용 #!/bin/bashjavac ThreadEx.java javah NativeClassexport LD_LIBRARY_PATH=.:$LD_LIBRARY_PATHgcc -I/usr/lib/jvm/jdk1.6.0_32/include/ -I /usr/lib/jvm/jdk1.6.0_32/include/linux/ -fPIC -c NativeClass.c#gcc -shared -o libThreadEx.so NativeClass.ogcc -shared -o libNativeClass.so NativeClass.ojav..

    [펌] 라즈베리파이, sg90의 pwm clock값에 대해서

    [펌] 라즈베리파이, sg90의 pwm clock값에 대해서

    http://qiita.com/locatw/items/f15fd9df40153bbb4d27일본 블로그인데, 한국어로 번역한 후 읽으면 됩니다. --------------------------------------------------------------------------------------------------------- 사용한 것서보 제어 방식SG90의 사양WiringPi에서 서보를 제어하는​​ 방법Raspberry Pi에서 서보를 제어하는여담ServoBlaster 절대로 Raspberry Pi에서 서보을 움직일 수 있지만, 명령으로 조작하기 때문에 C ++에서 사용 어려웠다. Raspberry Pi의 GPIO 18 번 핀 PWM 출력을 낼 것 같아서 그것을 가지기를 보았다.사용한 것Raspb..

    Weird case. two header file and one source with static element.

    1. 만든 이유 (why made this code?) 이런 케이스를 디버깅해야 하는데 처음 보는 경우라 가능한지 궁금했습니다.( Meeting first this case, I wander what it is. ) 2. Class structureTestOne.h TestOne.cppnoHave.cppmain.cpp TestOne.cpp에서 noHave를 만들어서 저장하고,print를 하는데 noHave class를 불러와서 출력한다.그러니깐 noHave는 단순히 데이터의 역활정도로 보면 된다. 여기서 특이한 점은 Source 파일이 한 곳에 뭉쳐져 있어도 잘 동작하는 것이다. 저의 예상으로는 코드 스텍에 이상하게 쌓여서 동작을 하지 않는 것이였는데 잘 동작하는거 보니 싱숭생숭하다. (그럼 다른 원인을..

    클래스에 클래스를 저장하는 방법 3가지.

    1. 클래스의 포인터 타입으로 저장하는 경우 #include using namespace std; class Inner { int m_data; public: Inner(int data) : m_data(data) { } int getData() { return m_data; } }; class Outter { Inner *m_inner; public: void setInner(Inner *in) { m_inner = in; } Inner* getInner() { return m_inner; } }; int main() { // Setting Outter *out; out = new Outter; Inner *in; in = new Inner(10); out->setInner(in); // Getting..

    raspberry pi bluetooth connect

    1. Title How to connect bluetooth? 2. Reference http://www.raspberrypi.org/forums/viewtopic.php?p=521067 3. Command sudo apt-get updatesudo apt-get install bluez bluez-utils minicomsudo vi /etc/bluetooth/main.conf add this line towards the top: DisablePlugins = pnatsudo hciconfig hci0 piscanbluez-simple-agent sdptool add spsudo rfcomm listen hci0 -------- waitting connect app ----------When conn..

    Java Error message 종류를 알아봅시다.

    1. 목적 Java Error Message의 종류가 궁금했습니다. 2. 사용 방법 throw new XXXXX(error Message); 3. Reference Class Throwablehttp://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html - http://docs.oracle.com/javase/7/docs/api/java/lang/Error.html- http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html

    음악 플레이어. clementine

    https://apps.ubuntu.com/cat/applications/clementine/ 지니가 끊기면서 음악 스트리밍에 대한 궁금증과 더불어 지금 당장 노래를 들을 수 있는 플레이어가 필요했습니다. 그러다 검색하니 나온 클레멘타인 음악 플레이어, 우분투 소프트웨어 센터에서 검색할 수 있습니다. ( from : http://ttor.tistory.com/34 )

    mount 잡기 (usb 인식 시키기)

    1. Command$ cd /media$ mkdir temp$ sudo mount /dev/sda1 /media/temp 2. Check status$ mount