본문 바로가기

전체 글

(86)
[git] 폴더 내부 파일들 commit (git bash가 설치되었다는 가정하에) github에 올리고 싶은 파일들을 담고있는 폴더 오른쪽 클릭 -> git bash Her #1 git init #2 .py file add git add *.py #3 write commit msg git commit -m "py file commit" #4 git branch -M main #5 git remote add origin "github repository 주소" #6 push 했던것들을 원격 저장소에 모두 올리기 git push -u origin main
[Error] FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions 에러 전문 : com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions. https://dev-syhy.tistory.com/63 firestore missing or insufficient permissions 해결 방법 firebase 프로젝트에서 테스트로 잘 사용하고 있었던 것이 어느 날 갑자기 snapshot 작동이 안되고 콘솔창에 아래와 같은 에러로그가 떴습니다. firestore missing or insufficient permissions firebase에 접속해보 dev-syhy.tistory.com Firestore에 들어가서 '규칙' 탭을 선..
[Python] 왕실의 나이트 import sys input = sys.stdin.readline now = input() pos = [1,1] pos[1] = int(now[1]) if now[0]=='a': pos[0] = 1 elif now[0]=='b': pos[0] = 2 elif now[0]=='c': pos[0] = 3 elif now[0]=='d': pos[0] = 4 elif now[0]=='e': pos[0] = 5 elif now[0]=='f': pos[0] = 6 elif now[0]=='g': pos[0] = 7 else: pos[0] = 8 # print(pos) new_pos = [0,0] cnt = 0 move= [[-1,-2],[1,-2],[-1,2],[1,2],[-2,-1],[-2,1],[2,-1],[..
[Python] 리스트 행렬 전환 arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] arr_T = list(map(list, zip(*arr))) print(arr_T)
Greedy "현재 상황에서 지금 당장 좋은 것만 고르는 방법" 정렬, 최단 경로 문제에서 기본 지식으로 사용됨 Dijkstra Algorithm 또한 greedy algorithm으로 분류됨 문제의 유형이 다양해서 암기로는 풀기 힘들다 -> 많은 유형의 문제를 접해보고 풀어보는 훈련 필요 "문제풀이를 위한 최소한의 아이디어를 떠올리고, 이것이 정당한지 검토하기"
[Kotlin] Android studio Firebase realtime database data delete https://blog.naver.com/PostView.nhn?blogId=eo930827&logNo=221582052785&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView [Android & Firebase] 실시간 데이터베이스 삭제하기(Delete Realtime database) 위 실시간 데이터에서 Bright_hour에 있는 모든 내용을 지우고 싶다고 하면 removeValue로 지울 수 있다. blog.naver.com
[Kotlin] Android Studio intent로 bitmap 넘겨주기 (fragment <-> activity) https://it77.tistory.com/221 (Android) Intent로 Bitmap 넘기기 넘겨주는 Activity intent intent = new intent(this, Main.class); intent.putExtra("image", BITMAP); startActivity(intent); 받는 Activity Intent intent = getIntent(); (Bitmap)intent.getParcelableExtra("image") 오늘도 하나 배워갑니다.^^ it77.tistory.com
[Kotlin] Android studio 카메라로 사진찍고 내부 저장소에 저장하기 https://juahnpop.tistory.com/223 안드로이드 코틀린 : 카메라 사진 찍기, 내부저장소, 외부저장소, 공용저장소 저장 방법 with FilePr Android Kotlin : 기본 카메라 앱 호출해서 사진 찍기 Intent의 암시적 호출 방법으로 카메라를 호출하여 찍은 사진의 미리보기 및 원본을 내부저장소, 외부저장소, 공용저장소의 특정 폴더에 저장하 juahnpop.tistory.com