본문 바로가기

컴터 때찌/Programming

[python] 문자열 % 비교 문자열이 얼마나 비슷한지 확인하는 모듈 import difflibprint difflib.SequenceMatcher(None,str1,str2).ratio() 0.981818181818100% 같으면 1.0 더보기
모바일 웹 사이즈 맞추기 출처 : http://www.elementfusion.com/tutorial-optimizing-your-website-for-mobile-devices 더보기
이중포인터? //char **makeargv(char *s){ void makeargv(char *s){ int **sp = &s; int cnt=0; for(cnt; cnt 더보기
[python] urlopen proxy url = 'http://leopardan.kr' proxies = {'http': 'http://111.222.333.444:3128'} a = urllib.urlopen(url,proxies=proxies) # Use http://www.someproxy.com:3128 for http proxying proxies = {'http': 'http://www.someproxy.com:3128'} filehandle = urllib.urlopen(some_url, proxies=proxies) # Don't use any proxies filehandle = urllib.urlopen(some_url, proxies={}) # Use proxies from environment - both version.. 더보기
python에서 qrcode 다루기 [1]http://pyqrcode.sourceforge.net/ 에서 파일 다운로드 sudo apt-get install jcc python-imaging python-setuptools python-dev [2] apt-get install qrencodehttp://pypi.python.org/packages/source/q/qrencode/qrencode-1.01.tar.gz#md5=5a1addd4d6e6412116fcfeb9661831a9 #!/usr/bin/env python# -*- coding: utf-8 -*-import qrencodeimport sysimport random def qrcode_gen(text,cnt):# text=raw_input("Su text: ")# imagen .. 더보기
Sudoku 알고리즘 Times to solve top_1465 (in millisec) using different techniques: (note: each technique also includes the ones above) Naked / Hidden Singles : 94.630 Locked Candidates : 59.317 Disjoint Subsets : 204.561 Hidden/Naked Pairs/Triples/Quads Fishies : 296.719 X-Wing/Swordfish/Jellyfish 1 Step Commonality : 1237.000 XY-Wing/many others http://www.setbb.com/sudoku/viewtopic.php?p=11671&sid=1dada80ad6cd.. 더보기
Section을 이용한 정적 메모리 공유 Section을 이용한 정적 메모리 공유 Leopardan earth1989 at naver 더보기
[NativeAPI.h] ZwQuerySystemInformation() NTSTATUS WINAPI ZwQuerySystemInformation( __in SYSTEM_INFORMATION_CLASS SystemInformationClass, //얻어올 시스템 종류(핸들정보) __inout PVOID SystemInformation, //버퍼 __in ULONG SystemInformationLength, //버퍼 크기 __out_opt PULONG ReturnLength //받아올 값의 크기 ); SystemInformationClass [in] The type of system information to be retrieved. This parameter can be one of the following values from the SYSTEM_INFORMATION_CL.. 더보기
NativeAPI.h 헤더 추가하고 lib 추가 했는데 안되네 http://cafe.naver.com/pplus.cafe?iframe_url=/ArticleRead.nhn%3Fclubid=11276386%26menuid=%26boardtype=%26page=%26userDisplay=%26articleid=4079 http://cafe.naver.com/pplus.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=4079& http://www.hanb.co.kr/exam/1396/ // Windows 구조와 원리 source코드 (include에 NativeAPI.h 있음) #pragma comment(lib, "ntdll.lib") 를 추가 더보기
DDK,WDK VC 6.0 WDK는 VC6.0에서 빌드되지 않는다. OTL ... http://thepassion.tistory.com/tag/VC6.0 Q . vc6.0 에서 DDK 함수 사용하기. A. vc 7.0 부터 지원하는걸로 알고있습니다 http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=104&docId=68172268&qb=UHNHZXRDdXJyZW50UHJvY2Vzcw==&enc=utf8§ion=kin&rank=2&search_sort=0&spq=0&pid=gSF9Sdoi5URssZoqM6osss--356835&sid=TVn9VfDtWU0AAEoqFn8 요약 = VC 6.0 버리자 더보기