분류 전체보기
-
알고리즘/프로그래머스 2021. 10. 18. 21:34
문제 코딩테스트 연습 - 큰 수 만들기 programmers.co.kr 풀이 a. 시간 초과 풀이 범위 내의 index에서 최대 수를 구하는 것을 반복하는 방식으로 문제를 풀이하였다. 만들어야 하는 자리 수는 number의 길이 - k개이고, 가장 높은 자리의 숫자부터 차례로 결정하여 문자열을 얻어내야 한다 start_index = 0, size = (숫자의 길이) - (제거해야 할 숫자 k개) - 1 로 설정 k개를 제거할 때까지, 삭제 가능한 범위 내에서 최대 수를 구하여 answer 문자열에 추가하기를 반복 k개를 제거한 뒤, 선택해야 할 숫자의 갯수를 충족하지 못한 경우, 남은 수를 answer 문자열에 추가 def solution(number, k): """ start_idx: 탐색을 시작할 s..
-
Develop/Web & Framework 2021. 10. 17. 19:41
장고는 하나의 프로젝트 내에 여러 개의 app이 존재하는 구조이다. python manage.py startapp [appname] 명령으로 app을 생성한 뒤, settings의 INSTALLED_APPS에 생성된 app을 등록해줌으로서 손쉽게 관리할 수 있다. 좌측의 이미지는 app을 생성하였을 때의 기본구조이다. root 디렉토리에 manage.py가 위치하고, app내에 각각 model, view, test, admin, migration 파일들이 위치하고 있다. 최근 새로운 사이드 프로젝트를 시작할 때도 해당 구조를 그대로 적용했었는데, 프로젝트 구조가 정리되지 않은 느낌이 있다는 피드백을 듣고 정말 고민을 많이 했었다. url과 setting을 개발용/배포용으로 분리하는 것 의외에 프로젝트 구..
-
Develop/Web & Framework 2021. 10. 17. 17:30
진행 중인 사이드 프로젝트에서 문자 인증 기능이 필요했고, Naver Cloud의 Simple&Easy Notification Service를 이용하기로 하였다. 프로젝트를 생성하고, 계정 인증 키를 발급받는 것까지는 어렵지 않았다. serviceId, accessKey, secretKey 세 종류의 key가 필요한데 헷갈리기 아주 딱 좋다. serviceId는 요청URL에 포함시킬 path parameter로서 사용되며, 서비스 프로젝트를 생성하는 즉시 발급된다. accessKey, secretKey는 네이버 클라우드 계정에 대한 인증키 값으로, 메뉴 > 마이페이지 > 인증키 관리 메뉴에서 발급받고 관리할 수 있다. 내가 지금까지 호출하여 사용해본 API들은 대부분 인증 key값만 raw하게 heade..
-
프로젝트/IBM C:Louders 2020. 9. 22. 13:29
벌써 IBM C:Louders의 멤버로서 미션을 수행하고 행사에 참여한지 석 달이 지났다. 석 달간 cloud에 대해 공부하고, 주어진 미션을 수행하고, 오피스를 방문하여 advocate분들께 멘토링도 받았다 아. 사진은 없지만 cloud foundry 세션, Quantum Computing 세션에도 참가했다. 이번 방학은 정말 바쁘게 지냈던 것 같다. 멋사 프로젝트, 코딩 스터디, 자격증 공부, 졸업 프로젝트, C:Louders 활동, 교내 교육 프로젝트, 운동 뭐라도 닥치는대로 하고 싶었다. 그리고 벌려 놓은 일이 많았던 만큼, 정말 바빴다. 열심히 살았다. 정말 계획 없이 못 사는 스타일이네 그런데 주위를 둘러보니 더 바쁘게 사시고, 더 멋진 일을 완벽하게 해내시는 분들이 많더라. 긍정적인 자극을 ..
-
프로젝트/IBM C:Louders 2020. 9. 21. 18:14
이번엔 지난 포스팅에서 사용해보았던 watson assistant를 slack과 연동해보려고 해요! IBM Watson Assistant 사용하기 ❓Watson Assistant란? Watson Assistant is a conversation AI platform that helps you provide customers with fast, straightforward and accurate answers to their questions, across any application, devi.. soheeeep.tistory.com 저는 도서 대여나 구매를 위한 챗봇을 만들어보고자 했어요🔔 챗봇이 제가 원하는 대화를 수행하도록 하기 위해 간단한 intent들을 생성하고, dialog를 구성해보았습니다!..
-
Develop/Web & Framework 2020. 9. 20. 15:58
저는 지금 에서 서비스를 개발 중인데요😎 유저가 악성 유저에 대한 신고를 접수하면, 관리자인 우리 팀에게 바로 알림이 오도록 하는 기능이 있으면 좋겠다! 라는 생각이 들었고 마침 협업 툴로 slack을 사용하고 있었기에, slack bot을 이용해보기로 했습니다! 코드 몇 줄로 아주 간단하게 사용이 가능해요👍🏻 0. 라이브러리 설치하기 파이선에서 slack을 사용하기 위해 slacker 라이브러리를 설치합니다 $ pip install slacker 1. Slack API 사이트에서 token 발급받기 Slack API 사이트에 접속하여 bot을 사용할 workspace를 지정하고, app 이름을 설정해줍니다 그 다음, 지정한 workspace에서 app을 추가해주면, 이렇게 "xoxb-__로 시작하는 A..
-
프로젝트/IBM C:Louders 2020. 9. 10. 12:00
❓Watson Assistant란? Watson Assistant is a conversation AI platform that helps you provide customers with fast, straightforward and accurate answers to their questions, across any application, device or channel. Watson Assistant는 사용자들에게 여러 어플리케이션이나 기기, 그리고 채널에 대한 빠르고 정확한 답을 제공해주는 AI 대화 플랫폼이다 IBM Watson Assistant를 활용하여 간단한 대화를 구성해보겠습니다! 0. Watson Assistant를 생성하고, 실행하기 ※ Lite계정은, 하나의 서비스 당 하나의 inst..
-
프로젝트/자율주행 자동차 제작 프로젝트 2020. 9. 2. 17:54
💡Line Tracer란 무엇일까요? 단어 그대로입니다! 정해진 선(Line)을 따라가는(Tracer) 것으로, line following이라고도 불립니다. 주로 산업용 AGV(Automatic Guided Vehicle)에 사용된다고 하네요. 주행선을 센서로 검출하여 목적지까지 선을 따라 이동하는 원리입니다. 이 포스팅에서는 카메라를 통해 영상을 인식하고, Line Tracer를 활용하여 라인을 추출하여 자율주행 로봇을 제어해보는 실습을 진행해보겠습니다. 이동 간에 목적지 위치를 지속적으로 수신하기 위해서 GPS 센서를, 장애물들을 회피하기 위하여 이전 포스팅에서 사용했던 초음파 센서를 접목시키면 주행의 정확도와 안전성을 향상시킬 수 있겠죠🤩 Line Tracer의 원리를 적용하여, 이미지에서 주행선을..