2014의 게시물 표시

MQTT SERVER 설치 하기 (mosquitto broker)

   MQTT SERVER 설치 하기 (mosquitto broker)      * MQTT 를 간단히 설명하면 경량하된 메세지 프로토콜 이다.     - mosquitto 는 MQTT Broker 서버의 한 종류다. ( MQTT 공식 페이지 )     우분투 서버에서 mosquitto 설치 하기   1. 필요한 구성요소 설치  sudo apt-get install software-properties-common  sudo apt-get install python-software-properties  sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa  sudo apt-get update    sudo apt-cache search mosquitto   2. 서버 설치   sudo apt-get install mosquitto   3. 서버 실행   mosquitto  

우분투에서 JAVA 8 JDK(8u25) 설치 하기

우분투에서 JAVA 8 JDK(8u25) 설치 하기 1. Install Java8 (JDK 8) $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer 2. Verify JAVA Version $ java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode) 3. Setup JAVA Environment $ sudo apt-get install oracle-java8-set-default

안드로이드 스튜디오 Gradle Error - an unrecognized jvm option is used

안드로이드 스튜디오 버전 : 0.5.8 을 설치하고, 새로운 프로젝트를 만든 후에 실행 시켰더니, 아래와 같은 jvm 에러가 나타났다.   Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.10/userguide/gradle_daemon.html Please read below process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit   방법을 찾지 못하고 헤매던중,  아래 블로그를 통하여 Gradle option을 수정하였더니 해결 됐다.   참고 :  http://devbible.tistory.com/292   안드로이드 스튜디오 세팅 변경   모든 프로젝트 종료 > Settings > Compiler > Gradle > VM Option 을  -Xmx512m 로 세팅 Settings > Gradle > Gradle VM Option 에  -Xmx512m 세팅    

안드로이드에서 트위터 연동하기 (web, twitter4j)

안드로이드에서 트위터를 연동하는 방법은 2가지가 있다. twitter4j를 이용하는 방법,  url을 이용하여 activity를 실행하는 방법이다. 1) url를 이용하는 방법 try {      String strLink = String.format(" http://twitter.com/intent/tweet?text=%s ",                                URLEncoder.encode(message, "utf-8"));        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(strLink));       startActivity(intent);  }  catch (UnsupportedEncodingException e)  {      e.printStackTrace();  } 2) twitter4j를 이용하는 방법 1. sdk를 다운로드 받는다. ( http://twitter4j.org/ko/index.html#download ) 2. lib 폴더에 twitter4j-core-3.0.5.jar 를 복사해 넣는다 3. eclipse에서 property ->Java Build Path -> Libraries 에 Add JaRs 버튼을 이용해 추가한다     Order and Export ...

ActiveX cab파일에서 VC 재배포 패키지 설치 방법

<ActiveX 배포 방법> inf  파일 설정 방법은 아래와 같다 [Setup Hooks] hook1=hook1 [hook1] run=%EXTRACT_DIR%\vcredist_x86.exe [version] signature="$CHICAGO$ AdvancedINF=2.0 [Add.code] mytest.ocx=mytest.ocx vcredist_x86.exe=vcredist_x86.exe [vcredist_x86.exe] file-win32-x86=thiscab DestDir=11 RegisterServer=no [mytest.ocx] file-win32-x86=thiscab DestDir=11 FileVersion=1,0,0,0 clsid={XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX} RegisterServer=yes 참고) DestDir=10    # windows dir DestDir=11    # windows system32 dir