분류 전체보기(864)
-
Apollo Server GraphQL 테스트 구현
https://www.daleseo.com/graphql-apollo-server-testing/ GraphQL 서버 테스트 방법 (Apollo Server Testing) Engineering Blog by Dale Seo www.daleseo.com https://stackoverflow.com/questions/53935108/jest-did-not-exit-one-second-after-the-test-run-has-completed-using-express Jest did not exit one second after the test run has completed using express I'm using JEST for unit testing my express routes. While ru..
2022.05.18 -
Ubuntu 20.04에 GitLab 설치
1. AWS EC2 Ubuntu 20.04 생성 gitlab-runner를 위해 t2.medium에 20GB EBS 수준의 인스턴스 생성 2. GitLab 다운 및 설치 https://velog.io/@ysy3285/AWS-Ubuntu-20.04%EC%97%90-GitLab-%EC%84%A4%EC%B9%98 [AWS] Ubuntu 20.04에 GitLab 설치 깃랩(GitLab)은 깃랩 사(GitLab Inc.)가 개발한 깃 저장소 및 CI/CD, 이슈 추적, 보안성 테스트 등의 기능을 갖춘 웹 기반의 데브옵스 플랫폼입니다.오늘은 온프레미스 방식으로 GitLab을 설치해보도록 하 velog.io 3. docker와 gitlab-runner 설치 https://school-of-life.tistory.co..
2022.05.13 -
구글의 object detection 모델 MoveNet 관련 자료
https://blog.tensorflow.org/2021/05/next-generation-pose-detection-with-movenet-and-tensorflowjs.html Next-Generation Pose Detection with MoveNet and TensorFlow.js MoveNet is a human pose detection architecture developed at Google that is ultra fast and accurate. It was designed to detect difficult poses blog.tensorflow.org - js기반의 텐서플로우로 설계되어 server call 없이 오직 client 단에서도 동작 가능하여 고객의 개인 디바이스(데스..
2022.05.09 -
React에서 브라우저 크기 변경 시 윈도우 사이즈 구하기
브라우저 크기를 변경할때마다 자동으로 윈도우 사이즈를 업데이트 해주는 예제이다. Event Listenert를 이용하여 resize 이벤트가 발생할 때 윈도우 사이즈를 다시 얻어다가 저장을 해주면 된다. https://usehooks.com/useWindowSize/ useWindowSize usehooks.com import { useState, useEffect } from "react"; // Usage function App() { const size = useWindowSize(); return ( {size.width}px / {size.height}px ); } // Hook function useWindowSize() { // Initialize state with undefined wid..
2022.05.07 -
Python Flask RestPlus API에서 BOOL 타입 패러미터 사용
FLASK Restplus로 API를 만들때 BOOL 타입 패러미터를 사용하고자 할때에는 다음과 같이 inputs.boolean을 사용해야 한다. from flask import Flask from flask_restplus import Resource, Api from flask_restplus import inputs app = Flask(__name__) api = Api(app) test_parser = api.parser() test_parser.add_argument('foo', type=inputs.boolean, default=False) test_parser.add_argument('bar', type=inputs.boolean, default=True) @api.route('/hello..
2022.04.21 -
MongoDB에서 다중 Counting 연산
다수의 레코드에 대한 각각의 Counting을 해야하는 상황이라 무식하게 count() 수십번 호출하는 것보다 aggregation을 이용하여 처리하고자 했다. $facet를 이용하면 싱글 스테이지에서 다중 aggregation 파이프라인을 동작할 수 있기 때문에 이 방법을 사용해보았다. 그런데... https://stackoverflow.com/questions/52088666/multiple-counts-with-single-query-in-mongodb Multiple Counts with single query in mongodb I am new to Mongo Db and would appreciate some help with this query. I have been sifting throu..
2022.04.03