목록분류 전체보기 (97)
변명은 만개 결과는 한개
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cLZ3oc/btqGpyXoTzu/7JgwqMKKcSrZNKbMPcyDXK/img.png)
기존 repo에 서브모듈 추가 1 git submodule add "submodule repo link" cs 서브모듈 추가 후 빈 디렉토리 채우기 ( init & update ) 1 2 git submodule init git submodule update cs + 메인 repo clone 시 서브모듈 자동 초기화 및 업데이트 1 git clone --recurse-submodules "main repo link" cs 서브모듈 최신으로 업데이트 1 git submodule update --remote "submodule path" cs 출처 : https://git-scm.com/book/ko/v2/Git-%EB%8F%84%EA%B5%AC-%EC%84%9C%EB%B8%8C%EB%AA%A8%EB%93%88
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cGLQt9/btqFBeRBtDu/A3f6AFsLFffZ4kieR9Kmfk/img.png)
평소처럼 게시글 통계를 보며 얼마나 블로그에 들어와주는지, 어떤 사람들이 어떤 게시글에 관심을 가지는지 지켜보며 게시글 작성에 힘을 얻으려고했는데 디스코드 오류 해결법 글에 (https://tmrtkr.tistory.com/67) 뭔가 이상하게도 기타 유입이 많아서 살펴보았다. 해당 링크를 들어가보니 내가 포스팅한 오류를 맞닥뜨린 외국인 개발자들이 깃허브에 내 게시글을 링크걸어 참조했는데, 국내/외를 통틀어 이런 경험이 처음이라 너무 뿌듯하고 신기했다. 스레드 내용으로 짐작해보니 이슈 리포팅 하신분은 내 게시글은 확인해보셨지만 맨 아래의 해결법에 대해서는 파악을 못하신것같았다 ㅎㅎ 그래도 PR 올리신분이 정확히 해결법을 아셔서 다행(?) 이다 ㅎㅎ 다른사람들에게는 정말 별거 아닌 게시글이고 요렇게 참조된..
로컬 브랜치 생성에서부터 리모트 서버 푸시까지! 업무 보다 매번 깜빡깜빡해서 기록을 남겨놓을겸 정리해서 올립니다 1 _ local 에서 BBB 라는 branch 생성 git checkout -b BBB 2 _ remote 에 BBB (1번에서 생성한) 라는 branch 생성 git push origin BBB ※ 주의 이상태에서 git checkout BBB 커맨드로 local 을 BBB 브랜치로 옮긴 후 커밋, push 하려고해도 remote upstream 설정이 안되어있기때문에 push 안됨. 3번 작업 이후 push 필요함 ↓ 에러메세지 더보기 user@DESKTOP-R9START MINGW64 ~/eclipse-workspace/SPP Server (BBB) $ git add . user@DES..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/baoqOt/btqFxz3rtUj/IOUmSyJ1zRQP7pRRELFtDk/img.png)
TypeError: __new__() got an unexpected keyword argument 'allow_new' 발생 시 해결법 ↓ 오류 전문 더보기 TypeError: __new__() got an unexpected keyword argument 'allow_new' Ignoring exception in on_voice_state_update Traceback (most recent call last): File "C:\Python36\lib\site-packages\discord\client.py", line 312, in _run_event await coro(*args, **kwargs) File "c:\bot\MY_BOT.py", line 58, in on_voice_state_up..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/8558Z/btqFpKExIx1/gByQbcJ1US7jWeCFb6rzj1/img.png)
최근 팀에서 휴면 계정을 확인하는 봇에 대한 요청이 있어서, 몇일동안 밤늦게 자며 작업하였다. 진행하며 시간을 정말 많이 소비한 두가지 포인트가 있는데, 첫번째는 "파일 전송시 에러 발생" 이며, 두번째는 "다수 인원에 대한 속도 최적화" 였다. 우선 이번 게시글은 파일 전송시의 에러에 대해서만 다룰 예정이다. 두번째는 시간나면 천천히.. 어쨌든 커맨드를 받을 시 봇이 특정 파일을 요청자에게 DM 으로 Sending 해주는 기능이었는데, 이상하게도 "한줄 전송은 되지만 두줄 이상 전송은 불가능" 하였다. 현상은 "커맨드를 수신한 뒤에도 프롬프트에서 가만히 멍때리다 오류메세지 뱉기" 였고, 정확한 오류 메세지는 아래와 같았다 더보기 Ignoring exception in command getList .....
더보기 #include using namespace std; int A, B, V; int minn = 1000; int ansDay = 0; int dayHeight(int day){ int yesterdayHeight = (A - B) * (day - 1); int todayHeight = yesterdayHeight + A; // int tomorrowHeight = tdayHeight - B; return todayHeight; } int main() { scanf_s("%d %d %d", &A, &B, &V); int right = V + 1;// int left = 0;// //printf("left,right : %d,%d\n", left, right); int result = right; ..
더보기 https://www.acmicpc.net/problem/1260 #include #include #include #include using namespace std; vector v[1001]; bool visit[1001]; void bfs(int startIndex) { queue q; q.push(startIndex); visit[startIndex] = true; while (!q.empty()) { // 큐에 값이 있을 경우 계속 반복 // 큐에 값이 있다 -> 아직 방문하지 않은 노드가 존재함 int x = q.front(); q.pop(); printf("%d ", x); // x index 의 vec size(개수)만큼 훑음 for (size_t i = 0; i < v[x].siz..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/RpsO1/btqE7BmKIpD/K2xBB2cOBhey1DHKLKACpK/img.png)
import discord client = discord.Client() token = "YOUR_BOT_TOKEN" @client.event async def on_ready(): print("logged in as ") #화면에 봇의 아이디, 닉네임 출력 print(client.user.name) print(client.user.id) print("==============") # 디스코드에는 현재 본인이 어떤 게임을 플레이하는지 보여주는 기능이 있습니다. # 이 기능을 이용하여 봇의 상태를 간단하게 출력 가능합니다. game = discord.Game("with the API") await client.change_presence(status=discord.Status.idle, activity=g..