본문 바로가기

분류 전체보기143

[MYSQL] Placements ▶ SQL > Advanced Join > Placements Problem You are given three tables: Students, Friends and Packages. Students contains two columns: ID and Name. Friends contains two columns: ID and Friend_ID (ID of the ONLY best friend). Packages contains two columns: ID and Salary (offered salary in $ thousands per month). Write a query to output the names of those students whose best friends got offered a h.. 2022. 10. 5.
[MYSQL] New Companies ▶ SQL > Advanced Select > New Companies Problem Given the table schemas below, write a query to print the company_code, founder name, total number of lead managers, total number of senior managers, total number of managers, and total number of employees. Order your output by ascending company_code. Company_code founder의 이름 lead manager의 수 senior manager의 수 manager의 수 employee의 수 를 company_code로 .. 2022. 9. 30.
[Kotlin/Coroutine] 공식문서에서의 Flow 1 포스팅 내용과 작성된 코드는 Kotlin 공식문서에서 참조한 내용입니다. Multiple Value를 나타낼 수 있는 방법 Sequence Suspend function Flow - Collections의 chain calls 패턴의 오버헤드를 피할 수 있는 방법 중 하나 - lazy evaluation - 계산을 위해 blocking 되지 않는 비동기 - 비동기로 처리하는 stream of value Flow의 builder 함수는 flow flow { ... } builder block 내부 코드는 suspend 일 수 있음 flow에서 방출되어야 할 값은 emit()을 이용해서 처리할 수 있음 Flow는 Cold flow는 sequence와 유사한 cold stream이다 Cold Stream Ho.. 2022. 5. 14.
[Android] LiveData를 1번만 관찰하는 방법 이번에 해결할 이슈는 LiveData의 value를 1번만 observing하는 것이다. 하고자 했던 것은 특정 기준을 달성하면 서버에서 보상에 대한 데이터를 전송해주고, 그 데이터에 대한 다이얼로그를 띄워야 했다. 하지만 LiveData로 보상 데이터를 observing하는 상태에서 해당 데이터를 다이얼로그로 띄우니 다이얼로그를 닫아도(dismiss) 계속해서 다이얼로그가 발생했다😶‍🌫️ LiveData를 사용한 이유? [Android/Jetpack] AAC - LiveData LiveData 식별 가능한(Observable) 데이터 홀더 클래스 LiveData는 Activity, Fragment, Service 등 다른 앱 구성요소의 수명 주기를 고려(Lifecycle-aware)한다. 수명 주기 인.. 2022. 4. 6.
[Android] CalendarView 라이브러리 추천 : kizitonwose/CalendarView 프로젝트에서 캘린더가 필수적인 기능이었기 때문에 여러 캘린더 라이브러리를 들여다보고 뜯고 맛보고 즐기고(?)... 원하는 기능이 라이브러리에 없는 경우, 라이브러리를 뜯어서 해결하다가 그래도 안되는 기능이 있어서 3번 정도 캘린더 라이브러리를 갈아엎고 정착한 라이브러리에 대해 소개하고자 한다! kizitonwose/CalendarView GitHub - kizitonwose/CalendarView: A highly customizable calendar library for Android, powered by RecyclerView. A highly customizable calendar library for Android, powered by RecyclerView. - GitHub - kizitonw.. 2022. 4. 5.
[프로젝트] 대외 프로젝트 : 나의 첫번째 앱 런칭 '해냄' 이제는 내가 만든 앱을 런칭해보고 싶다는 생각을 하게 되었다. 배움에는 끝이 없다지만 언제까지 공부만 할 수는 없다고 생각했다. 혼자 앱을 런칭하는 것도 좋지만, 팀 프로젝트 경험을 더 쌓아보고 싶었고 실제로 기획자와 디자이너가 있는 팀에서 기깔나는(?) 앱을 만들어보고 싶다고 생각해서 IT 동아리를 알아보았다. 그러다 마감 2일 전에 CMC라는 동아리를 알게 되었고, 지원해서 합격했다. 매주 토요일마다 게더 타운으로 모였고, 디스코드로 소통했다. 팀이 매칭되고 나서는 노션과 디스코드를 주로 사용했다. 가장 기억에 남는 순간이라면 팀 매칭하는 날이었다! 10개의 기획자-디자이너 로 구성된 팀이 있었고, 팀의 주제와 방향성을 보고 게더 타운을 돌아다니면서 질문하고 서로를 어필해야 하는 날이었다... 재밌기.. 2022. 4. 3.
728x90