GetText 로컬라이즈 방법, ko.po, ko.mo GetText 로컬라이즈 방법 Install brew install gettext port install gettext yum install gettext sudo apt-get install gettext ko.po msgid "Hello World!" msgstr "세상아 안녕이다." Convert msgfmt -o hello.mo hello.po msgunfmt ko.mo > ko.po lang 2016.12.30
AnroidStudio/PhpStrome/IntelliJ keymap PhpStorm DEFAULT WINDOWS & LINUX KEYMAP IntelliJ IDEA Default Keymap IntelliJ IDEA Default Keymap Window IntelliJ IDEA Mac OS X Keymap IntelliJ IDEA Mac OS X Keymap Android Studio Keyboard Shortcuts Ctrl + Space 코드 제안 Ctrl + Shift + Enter 코드 완성 Cmd + M 코드 생성 Alt + Shift + Up Arrow, Alt + Shift + Down Arrow 코드 이동 Cmd + Shift + Up Arrow, Cmd + Shift + Down Arrow 코드 이동(메소드 단위) Alt + Cmd + L 코드 정리 A.. ide/intellij 2016.12.29
okhttp3 Android Networking Tutorial: Getting Started dependencies { ... compile 'com.squareup.okhttp3:okhttp:3.5.0' compile 'com.jakewharton:butterknife:8.4.0' compile 'com.jakewharton:butterknife-compiler:8.4.0' } package kr.domain.testokhttp; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.net.ConnectivityManager; import android.. ide/androidstudio 2016.12.28
Android Networking Connect Android Networking Tutorial: Getting Started private boolean isNetworkConnected() { ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); // 1 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); // 2 return networkInfo != null && networkInfo.isConnected(); // 3 } private boolean isWifiConnected() { ConnectivityManager connMgr = (ConnectivityMan.. ide/androidstudio 2016.12.27
ssh proxy nixCraft SSH Proxy 와 점프호스트 ( 경유서버를 이용한 목적서버 연결 ) ssh를 socks proxy를 통해서 접속하기 “bash: nc: command not found” error on ssh multi-hop [closed] Bash script to setup a temporary SSH tunnel #1. Pseudo Terminal ssh -tt server1 ssh server2 #2. ProxyCommand ssh -o ProxyCommand="ssh -W %h:%p server1" server2 #3. ~/.ssh/config Host server1 HostNmae domain.com Port 22 User Username Host s2 HostName server2 Us.. os/Linux 2016.12.26
현재 메소드 명 How do I get the method name from within that method? private final static String TAG = MainActivity.class.getSimpleName(); protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Log.d(TAG, new Exception().getStackTrace()[0].getMethodName() ); } ide/androidstudio 2016.12.23
com.jakewharton:butterknife:8.4.0 @BindView 에러 JakeWharton/butterknife ButterKnife Homepate http://gun0912.tistory.com/2 com.jakewharton:butterknife:8.4.0 @BindView 에러 dependencies { compile 'com.jakewharton:butterknife:8.4.0' compile 'com.jakewharton:butterknife-compiler:8.4.0' // compile을 같이 등록해야 한다. // compile 'com.jakewharton:butterknife-annotations:8.4.0' // compile 'com.jakewharton:butterknife-gradle-plugin:8.4.0' } import butterknife... ide/androidstudio 2016.12.22
rxAndroid rxlifecycle RetroLambda, Lambda Error 1. RxAndroid를 적용해보고 HelloWorld를 찍어보자. Crunching RxAndroid — Part 2 rxlifecycle RetroLambda, Lambda 형식이 먹히지 않을 때 buildscript { ... dependencies { ... classpath 'me.tatarka:gradle-retrolambda:3.1.0' } } apply plugin: 'me.tatarka.retrolambda' android { ... configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1' } ... compileOptions { sourceCompatibility JavaVersion.VER.. ide/androidstudio 2016.12.21
rxAndroid rxlifecycle prepareDebugAndroidTestDependencies Error Gradle build finished with 1 error(s) and 1 warning(s) #178 rxlifecycle prepareDebugAndroidTestDependencies 문제는 전략부재.... 방향성을 기입한다.... 맞나? configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1' } ide/androidstudio 2016.12.20
buildInfoDebugLoader 실행오류 Error:Execution failed for task ':app:buildInfoDebugLoader'. [안드로이드 스튜디오 ] 오류 - Error:Execution failed for task ':app:buildInfoDebugLoader'. 제시된 해결책 android { defaultConfig { multiDexEnale true } } 난... 난 해결이 되지 않아서 에러가 난 classes.dex 파일을 삭제하고 다시 Run하니 정상적으로 된다. ide/androidstudio 2016.12.19