본문 바로가기

분류 전체보기22

백준 nodejs 기준 기본코드 실행소스 백준에서 알고리즘 문제를 풀때 nodejs 를 이용할때 사용되는 소스코드이다. 제출용 + 로컬 (리눅스) 양쪽에서 둘다 동작한다 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; let input = fs.readFileSync(filePath).toString().split("\n"); //console.log(input); input = input[0]; //console.log(input); input = input.split(" ").map((item) => +item); //console.log(input); exe(input[0], input[1]); func.. 2022. 8. 3.
mysqld: Can not perform keyring migration 문제 해결 mysqld: Can not perform keyring migration : Invalid --keyring-migration-source option. 2022-07-23T21:57:08.682603Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29) starting as process 6452 2022-07-23T21:57:08.699271Z 0 [ERROR] [MY-011084] [Server] Keyring migration failed. 2022-07-23T21:57:08.699317Z 0 [ERROR] [MY-010119] [Server] Aborting 2022-07-23T21:57:08.700027Z 0 [System] [.. 2022. 7. 24.
IP address could not be resolved: Name or service not known 로그 해결 mysql 로그 기록을 보던중 이상한 내용이 있는것을 발견함 위와 같은 내용이 반복되고 있음 알고보니 접속자의 아이피를 호스트네임으로 변환하려는데 그게 되지 않아서 발생하는 문제 my.cnf 파일에 다음과 같은 내용을 추가하여 해결함 [mysqld] skip-external-locking skip-host-cache skip-name-resolve 2022. 7. 24.
텔레그램에서 봇 공지하기 1) 봇을 텔레그램 관리자로 초대하기 2) 해당 채널에서 'hi' 와 같은 특정 문구 치기 3) 봇파더(botFather) 에 가서 /mybots 치기 4) 해당 봇 선택하기 5) API TOKEN 버튼 선택하기 6) 토큰 복사하기 https://api.telegram.org/bot123456:AAGlDt9Sth5-8R4iVfTddasdfasdf/getUpdates 7) 위 구문에서 bot 이후 부분에 붙여넣기 8) 위 링크에 접근하기 9) 나오는 json 파일에서 가장 아래 부분 "id":-123456789 이 부분 가져오기 10) 전송 api 에 해당 채팅방 코드에 위 -숫자 부분 붙여넣고 메시지 발송하기 2022. 7. 23.
yum(dnf) update 시 'Cannot download All mirrors were tried' 패키지 업데이트시 특정 모듈에서 다운로드가 안되면서 Cannot download All mirrors were tried 라는 메시지가 포함된 에러가 나올때가 있다 또한 커스텀 repo 설정이 안되는 경우도 있는데 이때 이렇게 해결했다 $ yum remove epel-release -y $ yum update 오랜만에 yum update (dnf update) 를 실행할시 업데이트가 안되는 문제가 발생할 수 있는데 epel-release repo 를 위 명령어로 삭제하고 다시 yum update 를 치니까 정상적으로 다운로드가 됨 2022. 7. 23.