프로그래밍(301)
-
[Centos] yum 명령어 except KeyboardInterrupt
# 원인 파이선 버전업 하다보면 생기는 문제라고 한다. # 에러 내용 [elkiss@elkiss-centos bin]$ yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^SyntaxError: invalid syntax # 해결 $ cd /usr/bin$ sudo vim yum -#!/usr/bin/python+#!/usr/bin/python2.7 이 부분을 python2.7 등으로 바꿔주자.
2017.05.31 -
[DB] Upsert
용어를 찾아보자 오늘 회사에서 Upsert란 용어를 알게되어 찾아보게 되었다. https://wiki.postgresql.org/wiki/UPSERT definition 설명을 보면 _" "UPSERT" is a DBMS feature that allows a DML statement's author to atomically either insert a row, or on the basis of the row already existing, UPDATE that existing row instead, while safely giving little to no further thought to concurrency. One of those two outcomes must be guaranteed, ..
2017.03.30 -
[GIT] git pull no tracking info 에러
git pull 시 메시지 There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/ hotfix 해결 업스트림을 지정해줘야되는데 어디서 pull을 떙겨야 될지 몰라서 나오는 에러다. pull 이외에도 여러 명령어들이 remote 대상 브랜치를 지정해줘야 한다. 보통은 작업 브랜치가 있으므로 해당 loca..
2017.02.08 -
[curl] 윈도우 환경에서 라이브러리 빌드하기
준비물 openssl include, lib우선 앞서 성공했던 openssl 빌드가 필요하다.http://hmjo.tistory.com/533 curl 라이브러리 다운로드https://curl.haxx.se/download.htmlWin64-Generic에서 x86_64 zip 을 받았다. 빌드 솔루션 파일 열기curl-7.xx.x\projects 폴더에 보면 각 VS 버전에 맞게 sln 솔루션 파일이 있다.난 VS2015이므로 VC14를 열었다. 솔루션을 열면 curl 프로젝트와 libcurl 프로젝트가 있다. 타겟 지정두 프로젝트에 원하는 타겟을 지정해준다.난 LIB Debug LIB OpenSSL x64 으로 지정했다. openssl include, lib 폴더 지정해주기귀찮지만 해줘야지. 포함파일..
2017.01.12 -
[Tool] PC 상태 관찰할 수 있는 유용한 툴들
팀장님이 알려주신 귀한 것들크게 메모리, 프로세스, tcp 상태를 볼 수 있는 툴들이다. RAMMAPhttps://technet.microsoft.com/en-us/sysinternals/ff700229 Process Explorerhttps://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx TcpViewhttps://technet.microsoft.com/en-us/sysinternals/tcpview.aspx
2017.01.11 -
[OpenSSL] Windows에서 컴파일하기
들어가며.. Windows는 고통스럽다. yum이 필요하다.. 준비물 Perl 설치. http://www.activestate.com/activeperl/downloadsOpenssl 라이브러리 다운로드. https://www.openssl.org/ (1.0.2j) 설치 및 빌드 VS 개발자 명령프롬프트 실행 123perl Configure VC-WIN64A --openssldir=D:\OpenSSL no-shared no-asm threadsms\do_win64a.batnmake -f ms\ntdll.mak installColored by Color Scriptercs 트러블 슈팅 * perl은 activeperl을 깔자.* uplink.obj 오브젝트 x86, x64 충돌 문제.환경은 VS2015인데..
2017.01.11