본문 바로가기

Series

(55)
[Python] Video File Renamer # Video File Renamer# Rename video files so that various sets of video files can be sorted properly. import os def main(): path = 'd:\\Down\\z' for root, dirs, files in os.walk(path): step = 1000 / len(files) files.sort() count = 0 for item in files: prefix = "{0:0>4.0f}".format(step * count + step / 3) os.rename(os.path.join(root, item), os.path.join(root, "{0} {1}".format(prefix, item))) count..
[Sandboxie] Detect Registry Changes 2 Registry Editor 사용 예제 Sandboxie > Default Box > Delete Contents Sandboxie > Default Box > Run Windows Explorer 시작 > 실행 > regedit (레지스트리 편집기 실행) 레지스트리 편집기 (regedit) > 보기 (View) > 새로 고침 (Refresh)HKEY_USERS > Sandboxie_UserName_DefaultBox Right-Click > 내보내기 (Export) > RegHive1.reg 파일로 저장 Sandboxie에서 실행한 Windows Explorer로 프로그램 설치, 실행, 등록 레지스트리 편집기 (regedit) > 보기 (View) > 새로 고침 (Refresh)HKEY_USERS > ..
[Sandboxie] Detect Registry Changes 1 프로그램을 설치한 후, 레지스트리 변경 내용을 알고자 할 때 사용할 수 있는 방법이다. Sandboxie > Default Box > Delete Contents Sandboxie > Default Box > Run From Start Menu > Cancel c:\Sandbox\%USERNAME%\DefaultBox\RegHive 파일을 RegHive1 파일로 d:\work 폴더에 저장 Sandboxie > Default Box > Run Any Program > 프로그램 설치, 실행, 등록 c:\Sandbox\%USERNAME%\DefaultBox\RegHive 파일을 RegHive2 파일로 d:\work 폴더에 저장 d:\work 폴더에서 아래 명령을 실행 reg LOAD HKEY_USERS\San..
[Sandboxie] Create Sandboxed Shortcut Start Sandboxie Control> Configure> Windows Shell Integration> Add Shortcut Icons> Select Desired Program
[Eclipse] Set C++ -static Option Set "-static" OptionProject > Properties > C/C++ Build > Settings > Tool Settings > MinGW C++ Linker > Miscellaneous > Linker flags > input "-static"Project > Properties > C/C++ Build > Settings > Tool Settings > Cygwin C++ Linker > Miscellaneous > Linker flags > input "-static"
[Eclipse] Set C++ Toolchain Set ToolchainProject > Properties > C/C++ Build > Tool Chain Editor > Current toolchain > select "MinGW GCC"Project > Properties > C/C++ Build > Tool Chain Editor > Current toolchain > select "Cygwin GCC"
Setup GCC on Windows using MSYS2 Windows 10 x64 환경에서 MSYS2과 GCC를 설치해보자. MSYS2 64-bit 버전인 msys2-x86_64-20161025.exe 파일을 실행하여 설치한다. 설치가 완료되면 아래와 같이 “MSYS2 MSYS” 터미널을 실행한다. Start Menu > MSYS2 64bit > MSYS2 MSYS “MSYS2 MSYS” 터미널에서 아래 명령을 실행하여 업데이트한다. pacman –Syu “MSYS2 MSYS” 터미널을 종료했다가 다시 실행한 후, 아래 명령을 실행하여 업데이트를 계속한다. pacman -Su “MSYS2 MSYS” 터미널을 종료했다가 다시 실행한 후, 아래 명령을 실행하여 compiler와 그밖에 필요한 package를 설치한다. pacman -S --needed base-..
Setup GCC on Windows using Cygwin Windows 10 x64 환경에서 Cygwin과 GCC를 설치해보자. Cygwin 64-bit 버전인 setup-x86_64.exe 파일을 실행하여 설치한다. 경험적을 봤을 때, 설치 도중 "Choose A Download Site"에서 ftp://ftp.kaist.ac.kr을 선택하면 빠르게 다운로드 받을 수 있다. (참고 : http://ftp.jaist.ac.jp도 속도가 괜찮게 나온다.) "Select Packages" 창이 나오면 Devel 섹션에서 아래 것들을 선택한다. (C/C++ compiler 사용을 위한 선택)gcc-coregcc-g++gdbmake참고 : CLion에서 cygwin을 사용하려면 cmake도 선택해서 설치하라고 하던데, 현재 배포 중인 CLion 2017.2.2 버전의..