'Programmer/etc.' 카테고리의 글 목록 (2 Page)
본문 바로가기


Programmer/etc.

(12)
내 Mac에서만 ssh 접속시 한글이 깨질 때 검색해보면 ssh로 접속한 터미널에 export LANG=ko_KR.UTF-8을 입력하라고 하지만, 다른 분들 컴퓨터에서는 멀쩡히 잘 나타나는 로그파일의 한글들. 원인은 내 Mac이 영어로 설정되어 있었고, 터미널이 자동으로 컴퓨터의 Locale을 전송하도록 설정되어 있었기 때문이었다. 해결방법은 사용하는 터미널 프로그램의 locale 자동 전송 설정을 해제하면 된다. * iTerm: preference -> Profiles -> Terminal 탭의 Environment의 set locale variables automatically 체크 해제 * terminal: preference -> Profiles -> Advanced탭의 International의 Set locale invironment va..
Google calendar 사용하기 https://console.developers.google.com 에서 API 사용가능하도록 설정 필요 * 특정 캘린더에 일정 추가하기1. 원하는 캘린더 존재하는지 확인https://developers.google.com/calendar/v3/reference/calendars/patchCalendars: patch | Calendar API | Google DevelopersNote: Requires authorization. Updates metadata for a calendar. This method supports patch semantics. Try it now. Request HTTP request PATCH https://www.googleapis.com/calendar/v3/calend..
When the Virtualbox microphone doesn't work. I tried to record on guest Ubuntu 18.x. but It didn't work. In my case, I ran the Virtualbox on the macOS Catalina. I searched a lot, but there was no solution. Many solutions said to check the Audio tap in the Virtualbox, but It was not my point. For me, the point of to do is set not only checking "Enable audio input" on the "Audio tap" but also adding a "new USB filter" on the Ports tap. I was..
mysql과 웹 사이의 한글연동 문제 처음엔 생각없이 mysql 테이블을 euc-kr , php는 utf-8로 지정하였다.화면으로 넘어오면서 테이블이 깨지길래 php를 euc-kr로 지정해 봤지만 이번엔 php의 한글이 깨진다. mysql에서 테이블을 utf8_general로 다시 설정하고 csv파일 인코딩도 utf8로 해서 실행했다. 이번에는 파일을 테이블에 import할 때 오류가 난다. 다 깨진다.csv파일 인코딩은 ansi로 저장, 테이블은 utf8로 캐릭터셋을 설정하고 저장한다. 다시 php를 불러왔으나 역시 깨진다.이것저것 검색해 보다가 내가 얻은 해결은mysql데이터를 fetch해주기 전에 mysql_query("set session character_set_connection=utf8;"); mysql_query("set se..