전체 글
-
Slack + Firebase 연동 알림DevOps 2019. 9. 7. 00:07
에러가 발생시 Firebase에 수집된 에러가 Slack으로 알림이 가도록 연동하겠습니다. 1. https://api.slack.com/apps 으로 이동 2. Create New App 버튼 클릭 3. App Name 에 Firebase 입력합니다. Development Slack Workspace 에 전받고자하는 Workspace를 선택합니다. 4. 앱생성이 완료된 다음 Basic Information 에서 Incoming Webhooks 버튼 클릭 5. Activate Incoming Webhooks 에서 우측 상단 스위치를 Off 에서 On 으로 변경 후 Add New Webhook to Workspace 버튼 클릭 6. Post to 에서 해당 Webhook 을 받은 체널을 선택합니다. (저는 ..
-
ReactiveX - SubjectAndroid/Rx 2019. 9. 4. 11:33
https://github.com/DNights/rxSubjectSample DNights/rxSubjectSample Contribute to DNights/rxSubjectSample development by creating an account on GitHub. github.com RxSubject 에 관한 내용을 정리하였습니다. RxSubject는 아래 4가지 종류가 있습니다. AysncSubject BehaviorSubject PublishSubject ReplaySubject AysncSubject는 구독이 끝나고 가장 마지막값을 전달합니다. fun runOnNextWithAsyncSubject(){ for (i in 0..100){ asyncSubject.onNext("asyncSubjec..
-
안드로이드 탐구영역 (GDG Korea Android)Conference 2019. 8. 31. 19:34
https://festa.io/events/441 안드로이드 탐구영역 | Festa! Festa에서 당신이 찾는 이벤트를 만나보세요. festa.io 안드로이드 탐구영역 행사에 다녀왔습니다. 주최는 GDG Korea Android 에서 하셨고요. 장소 후원은 우아한 형재들에서 하셨습니다. 주제는 Android Test 에 대한 내용에 주된 내용이었습니다. 저도 관심 있는 내용이었고 TDD 나 테스트 자동화에 대한 부분에대해서 그동안 고민이 있었기 때문에 발표내용들이 많이 궁금하기도 하였습니다. 행사 참가자들에게는 호두과자와 컴퓨터용 싸인팬은 선물로 주었습니다. 생각보다 공간이 넓었습니다 많은 분들이 참여해주셨고요 행사는 총 6교시로 진행되었습니다. 0교시 강경완 (GDG Korea Android) - 행..
-
E/RecyclerView: No layout manager attached; skipping layoutAndroid/Error 2019. 8. 27. 14:52
E/RecyclerView: No layout manager attached; skipping layout는 LayoutManager를 설정하지 않아서 발생한 현상이다. 위와 같이 app:layoutManager 를 입력을 해준다 또는 val layoutManager = LinearLayoutManager(this) recyclerView_main.setLayoutManager(layoutManager) 위와 같이 setLayoutManager에 LayoutManager을 Set하여 코드로 처리한다.
-
Exercism - Diamond(with.Kotlin)문제풀이/Exercism 2019. 8. 27. 09:48
[Instructions] The diamond kata takes as its input a letter, and outputs it in a diamond shape. Given a letter, it prints a diamond starting with 'A', with the supplied letter at the widest point. Requirements The first row contains one 'A'. The last row contains one 'A'. All rows, except the first and last, have exactly two identical letters. All rows have as many trailing spaces as leading spa..
-
GC(Garbage Collection) 가비지 컬렉터Domain knowledge 2019. 8. 27. 01:33
GC(Garbage Collection)는 프로그램이 실행되면서 메모리에 할당한 내용이 더이상 프로그램에서 사용하지 않을경우 자동으로 메모리에 할당한 영역을 제거하는 메모리 관리 방법이자 메모리를 관리하는 기능을 말합니다. 기본적으로 메모리를 할당하고 해제하는 것은 프로그래머가 직접 코드로 작성하여야 하나 프로그래머의 실수나 구조상의 문제등으로 메모리 누수가 발생할 수 있기때문에 자동으로 메모리를 관리해주는 GC가 나오게 되었습니다. 가장 대표적인것이 JVM의 GC 입니다. GC의 역할은 3가지 입니다. 1. 메모리 할당 2. 사용중인 메모리 확인 3. 비사용중인 메모리 확인 자바(JAVA)에서 기본적으로 메모리는 5가지 영역으로 나누며 스텍영역(Stack Area) , PC 레지스터(PC Registe..
-
안드로이드 스레드 (Android Thread)Android 2019. 8. 21. 22:10
https://github.com/DNights/CoroutinesSampleTest DNights/CoroutinesSampleTest Android CoroutinesSampleTest. Contribute to DNights/CoroutinesSampleTest development by creating an account on GitHub. github.com 최근 Coroutin 관련해서 내용을 보고 있다가 Thread 와 다른 점이 무엇이 있나 찾아보다가 일단 Thread 관련하여 내용을 정리해보자 해서 정리중입니다. 일단 Thread , Handler , Looper 에 관한 내용입니다. 스레드란? 스레드(thread)는 어떠한 프로그램 내에서, 특히 프로세스 내에서 실행되는 흐름의 단위를 ..
-
Exercism - Largest Series Product (With.Kotlin)문제풀이/Exercism 2019. 8. 21. 20:51
[Instructions] Given a string of digits, calculate the largest product for a contiguous substring of digits of length n. For example, for the input '1027839564', the largest product for a series of 3 digits is 270 (9 * 5 * 6), and the largest product for a series of 5 digits is 7560 (7 * 8 * 3 * 9 * 5). Note that these series are only required to occupy adjacent positions in the input; the digit..
-
Exercism - Luhn(with.Kotlin)문제풀이/Exercism 2019. 8. 19. 14:34
[Instructions] Given a number determine whether or not it is valid per the Luhn formula. The Luhn algorithm is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers and Canadian Social Insurance Numbers. The task is to check if a given string is valid. Validating a Number Strings of length 1 or less are not valid. Spaces are allowed in the in..
-
Exercism - Acronym(with.Kotlin)문제풀이/Exercism 2019. 8. 19. 00:37
[문제] Convert a phrase to its acronym. Techies love their TLA (Three Letter Acronyms)! Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG). [Solution1] object Acronym { fun generate(phrase : String) : String{ val strList = phrase.replace("-", " ").split(" ").filter { it.isNotEmpty() } val expected = CharArray(strList.size) s..