본문 바로가기

regex - 힌트를 사용하지만 WITH가 없는 쿼리 문자열 찾기 regex : /g(.*)([^WITH]\((NOLOCK|INDEX)(.*))/g
Docker 와 Docker-compose 설치 Docker 설치법은 인터넷에 참 많이 소개 되어 있습니다. 미세한 차이로 설치가 안되는 경우가 특히나 리눅스 환경에서는 많아서 최근 설치 방법을 포스팅 합니다. os : ubuntu server 18.04.LTS ( 현재 최신 버전은 19.04 ) 0. 있나? 없나? 확인 $ sudo systemctl status docker Unit docker.service could not be found. 1. Docker 설치 $ sudo snap install docker Download snap "docker" (384) from channel "stable" Download snap "docker" (384) from channel "stable" 이미 설치가 되어있으면 1번은 건너뛰어도 됩니다. 1-1..
[python][mssql] query module, example import pymssql def execute(query): conn = pymssql.connect(server='{{SERVER_IP}}', user='{{USER_ID}}', password='{{PASSWORD}}', database='{{DB_NAME}}', charset='utf8') cursor = conn.cursor(as_dict=True) result_data = [] if conn: cursor.execute(query) index = 0 for row in cursor: result_data.insert(index, row) index = index + 1 else: pass conn.close() conn = None return result_data sql = "SELECT *..
스타필드 고양 풍선 장인의 솜씨
[c#][linq][winform] combobox query foreach get index, value string selectValue = 저장된 값"; foreach (var item in {{combobox}}.Items.Cast().Select((value, index) => new { index, value })) { // item.value == selectValue 저장된 값 선택하기 if (item.value == selectValue) { {{combobox}}.SelectedIndex = item.index; break; } }
[python][win10] scrapy install error pip install scrapy #1 error: command 'cl.exe' failed: No such file or directory #2 C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt.h(10): fatal error C1083: 포함 파일을 열 수 없습니다. 'vcruntime.h': No such file or directory -> Visual Studio 2017 설치. #3 Could not find a version that satisfies the requirement win32api (from versions: ) -> pip install pypiwin32 https://stackoverflow..
[python][ubuntu] scrapy install error - setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 https://stackoverflow.com/questions/26053982/setup-script-exited-with-error-command-x86-64-linux-gnu-gcc-failed-with-exit/35164888 sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl ..
[ubuntu][error] /var/lib/dpkg/lock-frontend 잠금 파일을 얻을 수 없습니다 - open (11: 자원이 일시적으로 사용 불가능함) ubuntu 에서 패키지 설치 시 종종 발생하는 에러메세지로 대부분은 비정상적인 종료로 인해 락이 걸려서 사용 불가 합니다. 1. 정상적으로 리부팅하면 해결 됩니다. 2. 리부팅 후에도 동일하게 사용 불가함이라 나오면 아예 삭제 해버립니다. rm -rf /var/lib/dpkg/lock-frontend