본문 바로가기

프로그래밍/미분류

(80)
[프린터] FilterGraphics 래스터데이터 조작 출처 번역 : DwYoon 최종수정일 : 20080215 From: "Ashwin Needamangala" References: Subject: Re: how to catch EMF spool file Date: Fri, 25 Oct 2002 17:46:41 -0700 Message-ID: There are APIs provided by GDI for handling EMF files. For example, you could use GdiGetSpoolFileHandle in order to capture the spool file of a particular print job. Refer to the section titled "Using GDI Functions for Print Processors..
[번역] 프린트 서브시스템의 기본개념 Fundamental concepts of the print subsystem 프린트 서브시스템의 기본개념 Posted Tuesday, February 28, 2006 9:54 AM by ashwinn 번역 2008년 2월 27일 DwYoon After having posted details on bitmap drivers and port monitors, I realised that I should probably cover the fundamentals first. So my next few posts will be on the fundamentals of the print subsystem, overview of the print driver model etc. 비트맵 드라이버와 포트모니터에 대해 ..
비트맵 드라이버 만들기 How to write a bitmap driver 비트맵 드라이버 만들기 Posted Tuesday, February 21, 2006 5:44 PM by ashwinn 번역 2008년 2월 22일 by DwYoon It didn't take much for me to come up with the topic for my first blog post. If I only had a penny for the number of times I have seen questions on writing bitmap drivers. So here goes... 첫 블로그 포스트를 뭘로 할지 결정하는 건 쉬웠다. 비트맵 드라이버를 어떻게 만드냐는 질문을 자주 봤다. 자, 이제 그 답변이다. The best approac..
[번역] ROP코드만 보고 해석하기 http://groups.google.com/group/microsoft.public.development.device.drivers/msg/67e084bd105c0eb6?dmode=source From: "Maxim S. Shatskih" References: Subject: Re: raster operation codes Date: Sun, 28 Nov 2004 00:14:21 +0300 Lines: 55 Organization: StorageCraft X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.0..
구에서 좌표사이의 거리 구하기 직교좌표계에서 내적을 구하는 건 매우 간단하다. 내적은 단위원 위의 두 벡터에 대해서는 두 벡터 사이의 사이각의 코사인. 최단거리이기 때문에 180도 이상인지 이하인지는 중요하지 않다. 그래서 내적의 역코사인에 구의 반지름을 곱하면 답. void GetCartesian(double Lat, double Long, double *x, double *y, double *z) { /* 유사구면좌표계를 직교좌표계로 변환. http://ko.wikipedia.org/wiki/%EA%B5%AC%EB%A9%B4_%EC%A2%8C%ED%91%9C%EA%B3%84 */ *x = cos(Lat)*cos(Long); *y = cos(Lat)*sin(Long); *z = sin(Lat); } double Calc1(doubl..
MSDN번역 UNICODE_STRING UNICODE_STRING 구조체 https://docs.microsoft.com/ko-kr/windows/win32/api/ntdef/ns-ntdef-_unicode_string 블로그주인장의 비공식번역임. 정확한의미는 원문으로 확인하라. 2018-04-30 /읽는 데 2분 UNICODE_STRING 는 유니코드 문자열을 정의하는데 사용되는 구조체다. Syntax typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; PWSTR Buffer; } UNICODE_STRING, *PUNICODE_STRING;Members LengthBuffer 에 저장되어 있는 문자열의 크기, 바이트단위 MaximumLengthBuffer 의 크기, 바..
VS Code Remote SSH 확장 사용시 설정한 사용자명이 아닌, 윈도우계정명으로 접속을 시도. vs code ( visual studio code ) 로 원격코딩을 하기 위해 유용하게 사용하는 것이, Remote SSH 확장이다. 별도의 ssh 클라이언트 접속 없이 code 안에서 ssh 터미널 작업이 가능하고, 원격디렉토리 작업도 가능하기 때문에 너무 잘 쓸 수 있다. 오늘은 새로운 원격접속을 설정하여 ssh 접속을 시도하였는데, 이상하게, .ssh/config 설정파일에 써 놓은 사용자명으로 로그인을 시도하지 않고, 윈도우사용자 계정으로 원격 로그인을 시도했다. 이전과 달랐던 점은, ssh 디폴트가 아닌 다른 포트 설정으로 접속해야 했다는 점. config 한 설정을 대략 다음과 같다. Host 88.88.88.88:22022 HostName 88.88.88.88 Port 22022 User ..
ubuntu flask nginx 설정방법 테디노트| flask-aws-nginx-설정방법 nginx 과 uwsgi 를 연결해 주는 것이 무엇인지 궁금했음. nginx 서비스 사이트 설정파일 안의 uwsgi_pass unix:/tmp/myflask.sock 와 uwsgi 실행 설정파일 안의 socket = /tmp/myflask.sock 을 통해서 연결됨. graph LR nginx-service --sock--- uwsgi-process --- flask-app 추가참고 https://wikidocs.net/7387