상황 DLL1을 사용하여 DLL2을 만들고 그것을 테스트하는 프로그램 생성 프로그램 실행 시 Debug 일 경우 오류 발생, Release 일 경우 오류 발생하지 않고 정상 작동. 오류메시지 __acrt_first_block == header STL을 사용하고 난 이후에 발생 해결법 DLL2와 테스트하는 프로그램 둘 다 아래처럼 설정한다. 프로젝트 속성 > C/C++ > 코드 생성 > 런타임 라이브러리 Debug일 경우, 다중 스레드 디버그 DLL(/MDd) Release일 경우, 다중 스레드 DLL(/MD) 아래의 참고 링크가 더 정확하지만 간단히 하면, MT와 MD는 heap 메모리를 같이 쓰냐 DLL 마다 각자 쓰냐의 차이이다. DLL과 사용하는 프로그램의 런타임 라이브러리 설정이 같도록 맞춰주어야..
개발
Github 블로그 테마 변경 기존 설치 이후에 티스토리가 있으니까 필요성을 느끼지 못해 작업을 안 했는데 목표가 생겨서 인공지능 쪽 공부를 한 것을 정리하고, 포트폴리오 용으로 작업하기 위해 다시 꺼내들었다. (기본적인 기능들을 다 구현해야 하지만 티스토리보다는 깃허브가 더 오래갈 것 같다는 그런 개인적인 생각으로) 테마선택 내가 선택한 테마는 이것 https://mmistakes.github.io/so-simple-theme/ So Simple A simple and clean responsive Jekyll theme for words and photos. mmistakes.github.io 설치 테마의 README.md 에 대부분 나와있을 것이다. https://github.com/mmistake..
ubuntu에서 file encoding 확인하기 file -- mime [파일명] $ file --mime ms_celeb_folder_list.csv output 은 다음과 같이 나온다. [파일명]: text/plain; charset=utf-8 출처 https://stackoverflow.com/questions/11018967/how-can-i-be-sure-of-the-file-encoding
telegrambot 버튼 이어서 진행하기 ConversationHandler 라고 한다. from telegram.ext import Updater, Filters, ConversationHandler, CallbackQueryHandler HEY = 200 ACTION = 201 EAT = 202 PLAY = 203 LOVE = 204 kairos_token = "[각자 발급받은 토큰]" updater = Updater(kairos_token) def hey(update, context, args): hey_message = "이봐.... 나 " + str(args[0]) + "가 원하는 것은" reply_markup = InlineKeyboardMarkup([ [InlineKeyboardButton..
telegrambot /명령어 입력받기! CommandHandler를 사용한다. 이번 글에서는 두 가지를 살펴본다. 1. /help 라고 입력할 경우 응답하는 내용 2. /say [사용자 입력값] 라고 입력할 경우 응답하는 내용 1. /help 라고 입력할 경우 응답하는 내용 from telegram.ext import Updater, CommandHandler def help(update, context): # 설명 context.message.reply_text("/help : kairos 사용 명령어 표시\n/create : 알람 생성") kairos_token = "[각자의 토큰 입력]" updater = Updater(kairos_token) updater.dispatcher.add_handle..
텔레그램 봇 생성하기 텔레그램 > 대화 검색창에 botfather 검색 하단의 시작 터치 친절한 설명이 보여진다 /newbot bot name 입력 bot username 입력 토큰이 발급된다! 토큰은 적당히 기록해두기 bot name 으로 검색하여 대화할 수 있다 생성 완료!
전달받은 flutter project를 clone 받아 열어보니 빨간줄이 계속 있고 vscode에서도 뭐 설치하란 창도 안 뜬다. Kotlin 쪽은 Kotlin이나 Kotlin Language로 창 뜨니까 설치해주면 되고, kotlin 쪽 파일들은 빨간줄이 해결되었으나 dart 부분은 아직이니 dependency 가져오기! pubspec.yaml 파일이 있는 디렉토리에서 아래 명령어 입력 flutter packages get 참고: https://medium.com/flutter-community/flutter-essential-what-you-need-to-know-567ad25dcd8f Flutter Essential: Bloc, Networking (REST API call), Unit Testin..
완료 https://gaussian37.github.io/dl-pytorch-pytorch-tensor-basic/ 진행중