전체 글
-
[python] Make Korail reservation Macro with telegram botPrograming/python 2019. 11. 12. 21:37
기차를 자주타서 예매를 하다 보면 I often take train, so I always reserve ticket on my phone. 원하는 여정이 매진일 때가 종종 있다. But the journey I want is usually sold out. 그럴때면 새로고침을 하면서 계속 예매 시도를 한다. When that happen, I'll refresh and keep trying to book. 이렇게 해서 실패한적은 없지만 시간과 노동이 소모되어 불편하다. This has never failed, but time and labor are inconvenient. 텔레그램 봇을 이용해서 기차표 예약을 하는 매크로를 만들 수 있다는 글을 보게 되었다. I found out that I can ..
-
[python] python3 - urllib3 telepot ssl certificate verify errorPrograming/python 2019. 11. 11. 18:21
error message : urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot984209853:AAEVtP_NYAi7QVn6ibL7gHUPk4DUkFUjGCE/getUpdates (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)'))) You need to downgrade urllib..
-
[sqlite] weekly & month statistics queryFrontend/react-native 2019. 11. 8. 12:15
운동 기록 records에서 주간별 볼륨합을 구해서 그래프로 변화를 표현하고자 한다. (I'll calculate weekly & monthly volume sums and represent the changes in graph.) [Weekly] mysql: SELECT DATE_FORMAT(DATE_SUB(today, INTERVAL (DAYOFWEEK(today)-1) DAY), '%Y/%m/%d') as start, DATE_FORMAT(DATE_SUB(today, INTERVAL (DAYOFWEEK(today)-7) DAY), '%Y/%m/%d') as end, DATE_FORMAT(`today`, '%Y%U') AS `date`, sum(volume) as volume FROM records ..
-
[expo] Changing segment content onPress on react-nativeFrontend/react-native 2019. 11. 6. 18:14
leanmass 프로젝트에 볼륨 탭에 segment를 적용시켜 보려고 한다. (I'll set segment content page in the Volume Tab on My 'Leanmass' application.) 랜더링 부분은 아래와같이 해준다. (First, define rendering view.) 볼륨 기간별 종목별 {this._renderComponent()} 필요한 함수를 정의하고 (and define functions) selectComponent = (activePage) => () => this.setState({activePage}); _renderComponent = () => { if(this.state.activePage === 1) return //... Your Compo..
-
나의 부족한 부분은?Thinking 2019. 11. 1. 13:57
나는 무엇을 잘하는가? 나는 무엇을 못하는가? 쉬운데 어려운 질문이다. 못하는건 찾기 쉬운데 잘하는건 찾기가 여간 쉽지가 않다. 그럼 무슨일을 하는데 매번 잘 되지 않는다면, 분명 안 될 만한 이유가 있는 걸 테고 그 답은 자기 안에 있다고 생각한다. 지금 내가 그렇다. 잘 되지 않는 이유가 잘 가시화 되지 않는다. 뻔한 이유이지만 와닿지가 않는다고 해야하나? 다른 일을 하면 똑같이 느낄 수 있지 않을까? 하는 일은 달라졌지만 만약 또 안된다면 본질적인 이유는 같을테니까. 그러면 핑계 될 수 있는게 하나도 없으니까. 온전히 나의 문제점을 고스란히 느낄 수 있지 않을까. 겉핥기 detail 부족. 확인해 봐야 한다.
-
[django] channels 설치시 에러Backend/django 2019. 10. 29. 16:14
$ pip install channels 에러 내용: ... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:214:2: error: unknown type name 'uint64_t' uint64_t ri_interrupt_wkups; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. error: command 'gcc' failed with exit status 1 ---------------------------..