목록전체 글 (332)
민프
Uri.parse를 이용한다. final String url = "https://jsonplaceholder.typicode.com/photos?albumId=$albumId"; var uri = Uri.parse(url);
https://api.flutter.dev/flutter/widgets/State/dispose.html dispose method - State class - widgets library - Dart API void dispose() Called when this object is removed from the tree permanently. The framework calls this method when this State object will never build again. After the framework calls dispose, the State object is considered unmounted and the mounted property api.flutter.dev Flutter ..

Row안에 Text를 넣었는데 글자 수가 너무 많을 경우 잘리는 현상이 발견되었는데 이것은 부모의 크기를 지정해주면 해결된다. 나는 아래와 같이 Expanded를 사용하여 해결하였다. Widget ListContainer(String text)=> Container( margin: EdgeInsets.only(top: 10), child: Row( children: [ DotPoint(5, 0xff000000), Expanded(child: Text(text, 10, 15) ], ) );

순서는 1. 데이터 셋을 만들기 위해서 다운로드를 하는 부분 2. Labelme에서 Polygon 작업하는 부분 3. jupyter notebook에서 라벨링 한 부분이 잘 적용되었는지 확인하는 부분 으로 나누겠습니다. 1 - 아나콘다 다운로드 https://www.anaconda.com/products/distribution Anaconda | Anaconda Distribution Anaconda's open-source Distribution is the easiest way to perform Python/R data science and machine learning on a single machine. www.anaconda.com 아나콘다를 사용하는 이유? 인공지능 프로젝트를 하다보면 여러 ..

알림은 잘 도착하는데 봇에서 이런 오류 메세지를 보여주었다. stackOverflow에 검색해보았는데 https://stackoverflow.com/questions/56317962/message-notifications-produce-this-content-cant-be-displayed

람다 생성 함수 이름과 런타임 (각자에 맞게 알아서 설정)을 해주면 된다. 오른쪽 사진을 보면 람다가 생성 된 것을 확인할 수 있다. 람다 - 환경 변수 설정 환경 변수 HOOK_URL, SLACK_CHANNEL을 가져오는 방법은 아래 사진들을 참고하면 될 것 같다. 환경 변수를 넣고 등록하면 아래와 같이 URL와 채널 ID가 잘 등록된 것을 확인할 수 있다. Lambda Funtion 코드 작성 및 람다 실행 import boto3 import json import logging import os from base64 import b64decode from urllib.request import Request, urlopen from urllib.error import URLError, HTTPErro..

Lambda를 통해서 슬랙에 알림을 자동으로 보내보자 순서는 아래와 같다. 슬랙 앱 등록 https://api.slack.com/ Slack은 미래의 업무가 이루어지는 곳입니다 Slack은 여러분의 팀과 소통할 새로운 방법입니다. 이메일보다 빠르고, 더 조직적이며, 훨씬 안전합니다. slack.com ] 슬랙 앱 설정 - 봇에 권한 부여 봇이 슬랙에 메세지를 주고 받기 위해서는 권한을 줘야한다. OAuth & Permissions로 가보자 여기서 "Add an OAuth Scope"로 권한을 부여할 수 있다. 'chat:write'은 슬랙에 메세지를 날릴 수 있게 해준다. Scopes의 자세한 내용은 공식 홈페이지를 참고해보자https://api.slack.com/scopes Permission scop..

파라미터 그룹에서 파라미터 그룹 생성을 해준다.(이름만 정해주면 된다.) 만들어진 그룹을 클릭 한 후 -> 파라미터 그룹 작업 -> 편집을 눌러서 - character-set-client : utf8 - character-set-connection : utf8 - character-set-database : utf8 - character-set-filesystem : utf8 - character-set-results : utf8 - character-set-filesystem : utf8 이번엔 'collation'로 검색하여 아래 항목 값을 utf8_general_ci로 수정한다 - collation_connection : utf8_general_ci - collation_server : utf8_g..

#charset을 해주지 않으면 오류가 날 수 있으니 해주기 #RDS에서도 charset을 해줘야 함 database = pymysql.connect( 'hostRDS Endpoint', 'userName', 'userPassword', 'innodb', charset='utf8') cursor = database.cursor() #유저 인포의 모든 내용 표시 sql = "SELECT * FROM user_info" cursor.execute(sql) data = cursor.fetchall() print(str(data)) #INSERT INTO sql = "INSERT INTO user_info (userName, colorDetection) VALUES (%s, %s)" val = ("뭔솔이야", ..