신사(SinSa)
R list로 생성된 행 데이터를 열로 변경하기
코드와 오류 기록 2021. 8. 25. 10:40

아무래도 python과 R을 번갈아가며 쓰다보니 어떤건 R이 편하고 어떤건 파이썬이 편하고 하다. 언제까지 이렇게 쓸 수 없는 노릇이기도 한데, 데이터를 가볍게 분석하고 시각화 하는 부분은 파이썬 보다 R이 더 간편하고 빠르다. 기본 내장 함수만 사용해도 굉장히 많은 것들을 할 수 있으니... 어쨋거나 서버에 접속해서 쿼리를 날리고 데이터를 list로 저장하는 것까지 파이썬으로 해놓고 R로 분석하거나 구글 시트에 넣으려고 하니 [123,123,123] 같은 구조여서 R에서 간단하게 가로, 세로를 바꾸었다. data

article thumbnail
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.fatal: un..
코드와 오류 기록 2021. 8. 16. 16:30

주말에 매일 자주 사는 상품 가격 불러오는 부분 수정할 것이 생겨서 수정해서 github에 push 하려고 하니 이런 오류와 마주했다. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: unable to access '{repo-url}': The requested URL returned error: 403 ..

RN 빌드 오류 날 때 필수 확인
코드와 오류 기록 2021. 6. 10. 10:07

adb를 입력해본다. 에러 또는 아무 일도 일어나지 않으면 source ~/.bash_profile 입력 후 adb 재확인 ios 폴더 이동해서 pod install 해주고 다시 cd .. 해서 빌드! 그래도 안되면 시뮬레이터에서 빌드했던 앱 삭제 후 재빌드!

article thumbnail
RN 웹뷰 띄우기
코드와 오류 기록 2021. 6. 4. 18:31

뭔가 결국은 순정인가 싶다.. 네이티브를 하다가 봐서 그런지 환경설정에서 엄청 애를 먹었다.. 구름 IDE에서는 쉽게 되길래 신났는데...ㅠ 환경 설정 아래 링크 참고하며 다시 하고, https://dev-yakuza.posstree.com/ko/react-native/install-on-mac/ 맥(Mac)에 react native 개발 환경 구축하기 react-native로 앱을 개발하기 위해 맥(Mac)에 개발 환경을 구축해 보고, react-native로 생성한 프로젝트가 잘 동작하는지 확인해 봅니다. dev-yakuza.posstree.com unable to resolve module react-native webview 와 같은 오류가 출력되면 npm i react-native-webview..

github page
코드와 오류 기록 2021. 2. 24. 09:30

해당 프로젝트 폴더로 경로 이동하여 bundle exec jekyll serve bundle exec jekyll serve http://localhost:4000 에 가서 수정 내용 확인 완료되면 git add . git commit -m 'message' git push

Athena에 SQLAlchemy+FastAPI 붙이는 중
코드와 오류 기록 2021. 2. 8. 17:58

매주 진행하는 WBR 때마다 쿼리 날리기도 느리고 답답한데다가 어딘가에 공유하기 위해 문서에 올려두는 것도 좋지만 일관되게 볼 수 있도록 우리만의 인터널 시스템을 만들어두는게 좋겠다고 생각했다. 난 지독히도 게으리기 때문에 그냥 구성원 각자 알아서 보고 나도 화면 하나 띄워놓고 이야기를 나누고 싶었다. 그리고 가장 큰 문제는 데이터를 자주 이야기할 수록 흐릿해지는 데이터에 대한 공감대였다. 10%도 어마어마 했었는데 이제 10%는 익숙하다는 듯한 분위기도 싫다. 어쨋거나 일단 이 글을 참고해서 FastAPI와 SQLAlchemy가 어떻게 작동하는지 파악하고 개발했다. towardsdatascience.com/fastapi-cloud-database-loading-with-python-1f531f1d438..

Svelte 초기 세팅
코드와 오류 기록 2021. 2. 8. 10:03

svelte 새로운 프로젝트 생성 시 참고용 메모 svelte app This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template. To create a new project based on this template using degit: npx degit sveltejs/template svelte-app cd svelte-app npx degit sveltejs/template svelte-app cd svelte-app Note that you will need to have Node.js installed. Get started Install the dependencies... cd svelt..

Athena Timezone 세팅 방법
코드와 오류 기록 2021. 2. 2. 08:06

AT TIME ZONE 명령어를 사용하여 KST로 변환한다. SELECT date_format(date_parse(date,'%Y-%m-%d %H:%i:%s.%f') AT TIME ZONE 'Asia/Seoul', '%Y-%m-%d %H:%i:%s.%f') FROM table GROUP BY date_format(date_parse(date,'%Y-%m-%d %H:%i:%s.%f') AT TIME ZONE 'Asia/Seoul', '%Y-%m-%d %H:%i:%s.%f')

R ggmap 400 에러 날 때 '&key=xxx'
코드와 오류 기록 2021. 1. 21. 16:04

구글 클라우드 플랫폼에 접속해서 API 에 Maps Static API와 Geocoding API를 검색하고 사용 설정한다. 이후 사용자 인증 정보에서 키 제한 > Maps Static API와 Geocoding API를 넣고 저장하면 정상적으로 map도 그려진다. 추가로 ggmap 설치 방법 가끔 구버전이 삭제가 안되어 충돌을 일으키는 경우 아래와 같이 진행하면 된다. install.packages('devtools') library('devtools') loadedNamespaces() remove.packages('ggmap') install_github('dkahle/ggmap', force=TRUE) library('ggmap')

article thumbnail
Google SpreadSheet + Google Analytics + Slackbot
코드와 오류 기록 2020. 8. 25. 08:46

Small start-ups are difficult to set up daily to check the status data of their products. So it becomes dependent on Google Analytics and Firebase, and there is no big change in the data it sees every day. I wanted to receive only the data that I must see on the Slack channel every day. It looks like bellow. I had to implement this function myself because the engineer was blank in the squad wher..