전체 글(855)
-
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 -
M2 맥북에어 개발 환경 설정
1. pod install 에러 Xcode 설치 후 이전에 작업하던 프로젝트를 가져와서 pod install을 하려니 다음과 같은 에러가 발생한다. M2에서는 gem으로 cocoapod를 설치하면 안되는 듯. $ sudo gem install cocoapods 그래서 일단은 uninstall 하고, sudo gem uninstall cocoapods homebrew로 인스톨을 하기 위해 당연히 homebrew를 먼저 설치해줘야 한다. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install cocoapods 이제는 pod install이 정상 동작한다. 2. Xcode..
2022.10.31 -
TensorFlow Lite를 이용한 동작 인식
TensorFlow Lite 예제 중에 동작 인식을 구현하기 위해서는 pose_estimation 예제를 참고하면 된다. 참고로 안드로이드용은 Pose Classification을 하는 부분이 붙어 있지만, iOS용은 별도로 붙여주어야 한다. https://github.com/tensorflow/examples/tree/master/lite/examples/pose_estimation https://github.com/tensorflow/examples GitHub - tensorflow/examples: TensorFlow examples TensorFlow examples. Contribute to tensorflow/examples development by creating an account on..
2022.10.30 -
Swift 개발 관련 팁 모음
static func getDayOfWeek(date: Date) -> String { let formatter = DateFormatter() formatter.dateFormat = "EEEEEE" formatter.locale = Locale(identifier:"ko_KR") let convertStr = formatter.string(from: date) return convertStr } https://effectivecode.tistory.com/1621 Swift 지정된 날짜(Date)의 요일 구하기 요일을 구하는 방식이 여러가지 다양하게 있는데 검색을 하다 보니 여간 복잡스러운 방법이 있는 경우도 있었다. 좀 더 심플하게 구성할 수 있는 방법이 없을까? 고민하다 포멧터를 이용해서 출 ef..
2022.10.30 -
강제로 Landscape 모드로 전환
어이없게 너무 간단하다 ㅠㅠ // 가로전환을 위해 사용 ( landscape / Left / Right 가능 ) override var supportedInterfaceOrientations: UIInterfaceOrientationMask { return .landscapeRight } https://leechamin.tistory.com/411 [Swift] 넷플릭스 화면 따라만들기 (3) 저번까지는 searchAPI를 구현해봤었다. 이제는 클릭 이후에, 영상을 가져오고/틀어주고, 화면전환까지 되도록 구현해보자. 그러기 위해서는 먼저 영상을 갖고 있는 movie라는 객체가 있어야 하고 영 leechamin.tistory.com
2022.09.13