전체 글

내공냠냠
· 개발
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/ 진행중
· 개발
작업환경 Python : 3.6.5 CUDA : Cuda compilation tools, release 10.1, V10.1.243 Pythorch : 1.4.0 Torchvision : 0.5.0 OS : Window 10, 64bit IDE : Pycharm Community https://tutorials.pytorch.kr/beginner/data_loading_tutorial.html 진행 중 마지막 부분에서 오류 발생 문제 {AttributeError}'ModuleSpec' object has no attribute 'transform' DataLoader 로 가져오는 부분에서 위와 같은 문제 발생 해결 dataloader = DataLoader(transformed_dataset, batc..
· 개발
git tutorial https://rogerdudler.github.io/git-guide/index.ko.html https://learngitbranching.js.org/ https://backlog.com/git-tutorial/kr/intro/intro1_1.html git - 간편 안내서 - 어렵지 않아요! rogerdudler.github.io Learn Git Branching An interactive Git visualization tool to educate and challenge! learngitbranching.js.org git - 간편 안내서 - 어렵지 않아요! rogerdudler.github.io Git을 이용한 버전 관리 【Git의 기본】 | 누구나 쉽게 이해할 수 ..
내공얌냠
내공냠냠