IT인터넷/기타 유용한 것들 4

폴더내cp949 euc-kr형식 파일을 에서utf-8파일변환 쉽게 하는법

''' 파일명 : euc2utf8.php 기능 : euc-kr -> utf-8 파일변환. ''' import os import codecs def convert_file_to_utf8(filename): try: # 파일을 CP949 인코딩으로 열어 내용을 읽음 with codecs.open(filename, 'r', 'cp949') as file: content = file.read() # 파일을 UTF-8 인코딩으로 다시 쓰기 with codecs.open(filename, 'w', 'utf-8') as file: file.write(content) print(f"Converted {filename} to UTF-8") except Exception as e: print(f"Error converti..

VMWare비정상종료시 시작이 안되는 문제 해결 방법

Could not open virtual machine "Windows 10 x64" (D:\VMsD\Win10x64\Windows 10 and later x64.vmx): Taking ownership of this virtual machine failed. The virtual machine is in use by an application on your host computer. Configuration file: D:\VMsD\Win10x64\Windows 10 and later x64.vmx. Remove "Windows 10 x64" from the library? VMware 16 Pro를 이용하여 윈도우10을 설치한것을 사용중이다. 간혹 유용하여 쓰고있다. 윈도7과 윈도xp도 설치하여 사용..

ipTime원격접속시 악성스크립트(CSRF)오류 문제 해결법

ipTime이 성능도 기능도 좋아서 많이 주로 이용하는데.. 어느날 갑자기 접속이 안되고 /login/login.cgi 주소가 나오고 로그인 화면대신 400 Bad Request 오류가 뜬다. 192.168.0.1 로 접속하여 로칼에서 접속을 하는것은 잘된다. crome으로 말이다. 접속 로그를 보니 CSRF 악성스크립트 차단된것이 확인된다. "해결법" 원격으로 지구 반대푠에서도 인터넷만 연결되어 있으면 접속을 할수있게 "보안 기능 " => "공유기 접속/보안관리" 에 들어가면 (CSRF) 접근 방지를 off on 할수가 있게되어있다. off로 수정하고 적용시 공유기 재부팅되고 "정상"접근이 되었다. 다른 모델경우 위의경우는 도메인을 입력하여 허용을 할수있게 되어있으니.. IP로 접속안하고 필자처럼 도메..