서버 프로그래밍(274)
-
AWS RDS 데이터 덤프/복원 문제
아무 생각 없이 PROD 데이터베이스를 dump해서 DEV 데이터베이스에 복원을 하기 위해 DEV 데이터베이스를 DROP 했다가, 데이터 복원시 뜻밖의 에러를 만났다. ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privilege(s) for this operation 백업한 수많은 SQL 파일에서 특정 커맨드를 주석 처리하는 것도 번거롭고... -- SET @@SESSION.SQL_LOG_BIN= 0; -- SET @@GLOBAL.GTID_PURGED=/*!80000 '+'*/ ''; -- SET @@SESSI..
2023.02.10 -
Babylon.js 관련 레퍼런스
https://github.com/Symbitic/awesome-babylonjs GitHub - Symbitic/awesome-babylonjs: A curated list of awesome things related to Babylon.js A curated list of awesome things related to Babylon.js - GitHub - Symbitic/awesome-babylonjs: A curated list of awesome things related to Babylon.js github.com https://babylonjs.medium.com/from-unity-to-babylon-js-how-is-the-journey-c71f79482aa3 From Unity to ..
2023.01.20 -
Python Gmail로 이메일 전송 구현
코드 자체는 간단하지만 전송용으로 사용할 Gmail 계정 세팅 부분이 복잡하다. https://coding-kindergarten.tistory.com/204 [python/smtplib] 파이썬으로 구글 Gmail 보내기 1편. SMTP의 개념과 구글 앱 비밀번호 발급받기 안녕하세요, 왕초보 코린이를 위한 코딩유치원에 오신 것을 환영합니다. 코딩유치원에서는 파이썬 기초부터 사무자동화, 웹크롤링, 데이터 분석 등의 다양한 패키지까지 초보자도 알기 쉽도록 coding-kindergarten.tistory.com https://seokhyun2.tistory.com/69 [PYTHON] gmail로 메일 보내기 python에서 gmail을 연결해서 메일을 보내는 코드를 한번 작성해보겠습니다. 메일은 SMTP..
2023.01.03 -
PeerJS를 이용한 Frontend 레벨 영상 스트리밍
https://peerjs.com/docs/#start PeerJS Documentation .browserstringif (util.browser === 'Firefox') { /* OK to peer with Firefox peers. */ } The current browser. This property can be useful in determining whether or not two peers can connect. For example, as of now data connections are not yet interoperable b peerjs.com https://peerjs.com/ PeerJS - Simple peer-to-peer with WebRTC The PeerJS librar..
2022.12.29 -
Flask Restful와 Swagger UI 연동
https://medium.com/pythonistas/automated-swagger-api-doc-with-flask-restful-a78119bc4473 Automated Swagger API Doc with Flask Restful Before diving into the blog, lets clear the air and talk about some of the terms that we are going to use in the blog extensively. medium.com 이전에는 다른 swagger 라이브러리를 사용했었는데, Flask나 기타 라이브러리의 버전이 낮아야하는 문제가 있어서 최신 버전의 Flask와 연동해서 사용할 수 있는 라이브러리를 찾아본 결과 flask-apispec이..
2022.11.30 -
MQTT keep-alive-time 관련 레퍼런스
Mosquitto와 같은 MQTT 브로커에 연결시 keep-alive-time out이 발생할 수 있다. Subscribe하는 태스크는 loop 함수를 사용해서 연결을 계속 유지하면서 메시지 수신하도록 처리해야 하고, Publish를 담당하는 태스트는 Publish할 때만 연결을 했다가 Publish 후에는 연결을 끊어줄 필요가 있다. Publish 태스크까지 굳이 계속 연결을 유지할 필요가 없다. http://www.steves-internet-guide.com/connected-or-disconnect/ MQTT Connections - Should You Stay Connected Do you close an MQTT connection after sending data or do you disco..
2022.11.15