분류 전체보기 594

[googleu url shorten 종료] 대신 bitly shorturl 사용하기

2018년 4월부터 구글 shortern url 의 서비스가 종료되어서 해당 api를 사용하는 프로젝트를 급하게 수정할 일이 생겼다.그래서 찾던 중 Bitly 라는 서비스가 있어서 사용해보았다.개인 계정으로는 10,000개까지 무료로 사용이 가능하다.우선 bitly 홈페이지에서 회원가입을 하면 콘솔창으로 이동된다.오른쪽 메뉴 - profile 을 들어가면 Generic Access Token이 있는데, 여기서 비밀번호를 입력한 후 토큰을 발급받아 이를 적어둔다.bitly 콘솔을 사용해서 직접 url을 줄일수도 있지만, api를 통해서 코드로 줄이는 일이 많을텐데 bitly documentation에서 확인할 수 있따.사용법은 아주 간단하다.http://google.com을 줄이려면 다음 request를 ..

tools 2018.04.23

Postgres: pg_dump: aborting because of server version mismatch Error

I tried to pg_dump from aws ec2 to local postgres. I run command below, and I encountered version mismatch error.pg_dump -h -U -f pg_dump: server version: 9.4.1; pg_dump version: 9.3.6 pg_dump: aborting because of server version mismatch I found out that ubuntu server has 9.3 postgres and ec2 has 9.4.To solve this problem, I have to upgrade ubuntu postgres to 9.4.Upgrade 9.3 to 9.4 article is He..