본문 바로가기

The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure. .NET Core Console Application 개발 시 HTTPS 접근을 시도할 때 나타나는 예외 메세지 입니다. static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback +=(sender, cert, chain, sslPolicyErrors) => true; //추가 string result = getData(); //구현 Console.WriteLine("{0}", result); } 출처 : https://stackoverflow.com/questions/2675133/c-sharp-ignore-certificate-errors
visual studio code configured debug type 'python' is not supported 현상 1. 잘 쓰던 python debuger 가 갑자기 에러를 띄운다. 2. Python Extention 이 설치되어 있는데 위와 같은 메세지가 보인다. 3. lauch.json 에서 type : python 이 지원하지 않는다고 표시된다. 방법 1. Extention Tab 에 가서 python 이라고 검색하고 2. Python - ms-python.python 을 제거하고 다시 인스톨한다.
쿠팡 파트너스 종이나라 풀 종이나라 투명나라풀 COUPANG www.coupang.com 머스타드 소스 하인즈 옐로우 머스타드 COUPANG www.coupang.com
docker-compose 쉘(shell) 사용법 yml(yaml)은 버전별로 양식이 다르니 유의하세요. 0. docker-compose.yml version: '2' services: api: ports: - "5000:80" - "5001:443" build: context: . dockerfile: Dockerfile # volumes: # - ./:/var/www depends_on: - db - cache db: image: mariadb environment: - "MYSQL_USER={{userid}}" - "MYSQL_PASSWORD={{password}}" - "MYSQL_ROOT_PASSWORD={{root_password}}" - "MYSQL_DATABASE={{default_database}}" ports: - "3306:3306"..
python md5 사용법 import hashlib for index in range(100): # hash = hashlib.md5(index).hexdigest() # hash = hashlib.md5("{0}".format(index)).hexdigest() hash = hashlib.md5(("{0}".format(index)).encode("utf-8")).hexdigest() print("{0} = {1}".format(index, hash)) pyfiddle link : https://pyfiddle.io/fiddle/ee1edabd-f51b-44b0-a7ff-7b833d467b4f/?m=Saved%20fiddle
Scaffold-DbContext - Build failed, errors 개발 환경 win 10, vs 2019, .net core 2.1 , mysql 8.0 패키지관리자콘솔 실행 PM> Scaffold-DbContext "Server={{host}};Port={{port}};Database={{db_name}};Uid={{user_id}};Pwd={{password}};" MySql.Data.EntityFrameworkCore -OutputDir Models 에러메세지 Build failed. > 접속정보는 정상이라는 가정하에 프로젝트를 처음 생성하고 빌드 과정을 거치지 않고 바로 실행했을때 발생합니다. Models 폴더에 db_name 의 The following file(s) already exist in directory {{source_path}}\Models: {..
simple string format print('%s %s %s' % ('a','b','c')) # a,b,c print('%s %d %s' % ('a',1,'c')) # a 1 c print('%s %f %s' % ('a',1.111,'c')) # a 1.111000 c print('{0} {1} {2}'.format('a','b','c')) # a b c print('{0} {1} {2}'.format('a',1,'c')) # a 1 c print('{0} {1} {2}'.format('a',1.111,'c')) # a 1.111 c pyfiddle : https://pyfiddle.io/fiddle/59d69f15-7723-4e55-8244-c4a8078dd322/?i=true more format : https://pyformat...
Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT). Virtualbox 와 Docker Desktop 을 같이 사용할 때 virtualbox 에서 발생 Hyper-V를 끄고 리부팅 합니다. https://github.com/MicrosoftDocs/windows-itpro-docs/issues/1556