본문 바로가기


전체 글

(223)
[Python] cx_Oracle 한글 깨짐 import cx_Oracle import os os.environ['NLS_LANG'] = '.UTF8' os.environ['NLS_LANG'] = '.UTF8' 추가
[Python] Dataframe - row 추가 append 사용 data = {'a': 123, 'b':34123} df = df.append(data)
[Python] matplotlib - plot outside text plot 바깥쪽에 text 쓰기 plt.text(1.03, 0.95, textstr, transform=ax.transAxes, fontsize=14, verticalalignment='top', bbox=props) import numpy as np import matplotlib.pyplot as plt np.random.seed(19680801) fig, ax = plt.subplots() x = 30*np.random.randn(10000) mu = x.mean() median = np.median(x) sigma = x.std() textstr = '\n'.join(( r'$\mu=%.2f$' % (mu, ), r'$\mathrm{median}=%.2f$' % (median, ), r'$\sig..
[Oauth] Google, email 정보 얻기 serviceName='oauth2', version='v2' 서비스명, 버전 뭘로 해야할지 몰라서 email 정보 얻기 한참 헤맴 ㅠ ㅠ 서비스명 정보 있는 곳 아시는 분 알려주세욧! import googleapiclient.discovery def get_user_info(credentials): """Send a request to the UserInfo API to retrieve the user's information. Args: credentials: oauth2client.client.OAuth2Credentials instance to authorize the request. Returns: User information as a dict. """ user_info_service = go..
[nginx] 기본 연결 https로 설정 # HTTP server { listen 80; server_name sample.or.kr www.sample.or.kr; location / { return 301 https://$server_name$request_uri; } } godpeople.or.kr/board/3429912 The plain HTTP request was sent to HTTPS port 에러 해결법 400 Bad Request The plain HTTP request was sent to HTTPS port nginx nginx로 서버를 운영할 때 가급적 ssl이 적용된 443포트로 서버를 운영한다. 이때 Edgerouter의 경우 NAT를 설정하면 표준 80, 443 포트라도 NAT를 거치�� godpeople.or.kr
OAuth 구글 인증 과정 참고 사이트 Sign In/Authorize Revoke access developers.google.com/identity/protocols/oauth2/web-server#prerequisites Using OAuth 2.0 for Web Server Applications | Google ID 플랫폼 This document explains how web server applications use Google API Client Libraries or Google OAuth 2.0 endpoints to implement OAuth 2.0 authorization to access Google APIs. OAuth 2.0 allows users to share specific data with an applic..
웹에서 OAuth 2.0 사용하기 (Google) Sign In/Authorize Revoke access developers.google.com/identity/protocols/oauth2/javascript-implicit-flow OAuth 2.0 for Client-side Web Applications | Google ID 플랫폼 This document explains how to implement OAuth 2.0 authorization to access Google APIs from a JavaScript web application. OAuth 2.0 allows users to share specific data with an application while keeping their usernames, passwords, and o..
[Power BI] DAX - Dynamic Index No. = CALCULATE ( COUNT ( 'Data'[인덱스] ), FILTER (ALLSELECTED ('Data'), 'Data'[인덱스]