분류 전체보기
-
JAVA String 객체 와 String 리터럴(literal)Domain knowledge 2019. 10. 16. 23:23
String strA = "Hello World"; String strB = new String("Hello World"); Java 에서 String 을 생성하는 방법은 위의 2가지가 있습니다. 기본적으로 print 문을 통해 출력시 같은 내용이 출력 됩니다. 출력 내용은 동일하나 내부 메모리상으로는 차이점을 보입니다. String strA = "Hello World"; 위와 같이 선언한 경우 상수풀에 저장된 메모리를 확인하여 동일한 데이터가 있다면 해당 데이터 주소를 참조합니다. String strB = new String("Hello World"); 위와 같이 선언한 경우 heap 메모리 상에 새로운 영역을 할당하여 해당내용을 저장후 메모리 주소를 참조합니다. import org.junit.Test..
-
Bitrise 시작하기DevOps 2019. 10. 15. 10:37
https://app.bitrise.io/ Bitrise - Mobile Continuous Integration and Delivery Android, iOS & cross-platform mobile continuous integration / delivery, with 200+ integrations. Sign up and start building (for free!) today. www.bitrise.io Bitrise 시작하기 Bitrise 회원가입 / 로그인을 합니다. githhub , bitbucket, gitlab 의 계정을 사용하여 로그인 할수 있습니다. 로그인후 Dashboard 탭의 Add your first app 을 클릭합니다. 처음 항목에서 App 빌드 내용의 공개여부를 선택 ..
-
Centos7 ssh port 변경 방법자유글 2019. 10. 14. 10:11
1. sshd_config 설정파일 변경 vi /etc/ssh/sshd_config 2. #Port 로 주석처리된 부분아래 또는 주석을 지우고 변경하고자 하는 포트번호 입력(ex>1234) ... #Port 22 Port 1234 ... 3. sshd 재시작 service sshd restart 재시작후 아래와 같은 애러 발생시 4. 이후 내용을 진행 Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details. 4. semanage 미설치시 아래 명령어로 설치 yum install policycore..
-
XPER 2019 스터디 2차 컨퍼런스 - DevOps -Conference 2019. 10. 12. 18:25
https://festa.io/events/495/ XPER 2019 스터디 2차 컨퍼런스 - DevOps - | Festa! Festa에서 당신이 찾는 이벤트를 만나보세요. festa.io https://github.com/xperstudy/devops xperstudy/devops Contribute to xperstudy/devops development by creating an account on GitHub. github.com 오늘은 Xper 2019 스터디 2차 컨퍼런스를 다녀왔습니다. 주제는 DevOps 입니다. 행사순서 12:30 - 13:00 등록 13:00 - 13:20 아이스 브레이킹 13:20 - 13:50 김두진 Docker 소개 및 체험 13:50 - 14:30 김성식 Bit..
-
Introduction to Kotlin coroutinesKotlin 2019. 10. 10. 21:39
https://tv.naver.com/v/10353853?fbclid=IwAR0pxy6bkT_WUBUI_pbu9eQ8sPgHiT2j5ibTp-nQxZ-BJk1JnFXbYHFMMno Introduction to Kotlin coroutines NAVER Engineering | 발표자: Svetlana Isakova (JetBrains, Kotlin in Action 도서의 공동저자) 발표월: 2019.8 Introduction to Kotlin coroutines - Kotlin 개발자를 대상으로 Kotlin coroutines에 대하여 설명합니다. tv.naver.com https://www.slideshare.net/NaverEngineering/introduction-to-kotlin-corouti..
-
SubscribeOn 와 ObserveOn 그리고 SchedulersAndroid/Rx 2019. 10. 7. 00:03
SubscribeOn SubscribeOn은 구독(subscribe)에서 사용할 스레드를 지정 도중 ObserveOn이 호출되어도 SubscribeOn의 스레드 지정에는 영향을 끼치지 않는다. ObserveOn ObserveOn은 Observable이 다음처리를 진행할때 사용할 스레드를 지정 ObserveOn이 선언된 후 처리가 진행뒤 다른 ObserveOn이 선언시 다른 ObserveOn에서 선언한 스레드로 변경되어 이후 처리를 진행한다. Schedulers Observable 연산자 체인에 멀티스레딩을 적용하고 싶다면, 특정 스케줄러를 사용해서 연산자(또는 특정 Observable)를 실행하면 된다. ReactiveX의 일부 Observable 연산자는 사용할 스케줄러를 파라미터로 전달 받기도 하는데..
-
안드로이드 비동기 처리 질문 (Thread Sleep)Android 2019. 10. 6. 00:03
안드로이드에서 아래와 같은 코드를 동작시 어떻게 작동할것 같냐고 질문을 받았다 class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) for(i in 0..10){ tv_main.text = "cur $i" SystemClock.sleep(1000) } } } 내 대답은 0부터 10까지 1초단위로 textView가 출력 될 것 같다 하지만 나중에 직접 돌려본 결과는 내 대답과는 달랐습니다. 해당시간 동안 아무것도 뜨지 않고 for문이 종료된 이후에서 화면이 표..
-
러너블(Runnable)이란?Domain knowledge 2019. 10. 5. 00:03
https://github.com/DNights/CoroutinesSampleTest DNights/CoroutinesSampleTest Android CoroutinesSampleTest. Contribute to DNights/CoroutinesSampleTest development by creating an account on GitHub. github.com 추가적으로 Runnable을 구현 해보았습니다. https://dnight.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C%EC%8A%A4%EB%A0%88%EB%93%9C?category=843230 안드로이드 스레드 (Android Thread) https://github...
-
lateinit / lazy 의 차이점Kotlin 2019. 10. 4. 21:07
lateinit - var 변수에서만 사용합니다. - null 값으로 초기화 할 수 없습니다. - 초기화 전에는 변수를 사용할 수 없습니다 - Int, Long, Double, Float (primitive type) 에는 사용할 수 없습니다. - 변수에 대한 setter/getter properties 정의가 불가능합니다. lazy - val 에서만 사용합니다. - 호출 시점에 by lazy 정의에 의해서 초기화를 진행합니다. - 초기화를 위해서는 함수명이라도 한번 적어줘야 합니다. - lazy을 사용하는 경우 기본 Synchronized로 동작합니다. [참고링크] https://thdev.tech/kotlin/2018/03/25/Kotlin-lateinit-lazy/ Kotlin lazy proper..
-
Android Paging LibraryAndroid 2019. 10. 1. 21:58
https://github.com/DNights/RestAPISample DNights/RestAPISample Contribute to DNights/RestAPISample development by creating an account on GitHub. github.com 페이징 라이브러리를 사용한 샘플코드 [참고자료] https://developer.android.com/topic/libraries/architecture/paging Paging library overview | Android Developers Paging library overview Part of Android Jetpack. The Paging Library helps you load and display small chu..