// time.time() 은 Timestamp를 얻어온다. // 이 값에서 1일 만큼의 데이터를 빼면 어제에 대한 Timestamp가 된다. // 이 값을 date.fromtimestamp() 를 통해 컨버팅을 해주면 된다. // [ 소스 ] #!/usr/bin/python # -*- coding: cp949 -*- import time from datetime import date today = date.today() yesterday = date.fromtimestamp(time.time() - 60*60*24) print yesterday.strftime("%Y-%m-%d") print today.strftime("%Y-%m-%d") // [ 결과 ] // 2009-10-25 // 2009-10-26
urllib 로 네트워크 쿼리를 날리다가 보면 가끔 만나는 에러다. 에러 코드는 '11001', 메시지는 다음과 같이 나온다. ex) [Errno socket error] [Errno 11001] getaddrinfo failed getaddrinfo failed means, that the hostname could not be resolved in DNS. This can be due to one of the following: no internet connection dns server not available dns server has no or out-of-dated records for the queried hostname.
Python 으로 네트워크 드라이브 연결을 하려고 했다. 그런데, 아무래 해도 알아먹을 수 없는 에러코드만 뿌려주면서 아무 것도 동작하지 않는 것이다. 구글 형에게 물어보았다. 우선, ActivePython 에 아래와 같은 API 정보가 올라와 있다. 제길... MSDN 좀 본받으라굽쇼 ㅡ,.ㅡ win32net.NetUseAdd NetUseAdd(server, level, data) Establishes connection between local or NULL device name and a shared resource through redirector Parameters server : string/PyUnicode The name of the server, or None. level : int Th..
간단한 C/C++ 소스를 작성하고 어셈 공부를 하고 싶을 때가 있다. 이 때에 디버깅을 하면 되겠지만, 그냥 텍스트로 보고 싶을 때가 있을 것이다. 이럴때 프로젝트 빌드시 '.COD' 파일을 생성하도록 하면 유용하다. [빌드 명령 및 옵션] cl /c /Fc /FC test_helloworld.cpp 아래와 같이 .COD 파일이 생성되어 있다. TITLE d:\projects_svn\test_helloworld\test_helloworld.cpp .386P include listing.inc if @Version gt 510 .model FLAT else _TEXT SEGMENT PARA USE32 PUBLIC 'CODE' _TEXT ENDS _DATA SEGMENT DWORD USE32 PUBLIC '..
검색하던 중 소스포지에 프로젝트가 있는 것을 보고 노트한다. 여러 파일 중 자신이 이용하는 Python 버전에 맞는 것을 받으면 된다. http://sourceforge.net/projects/py2exe/ 사용법 스크랩 참조 : http://www.python.or.kr/pykug/py2exe 난, py2exe.exe 파일이 있어서 파라메터로 지정하면 바로 변환되는 줄 알았는데, 아래와 같이 변환 스크립트를 만들어야 한다. # setup.py from distutils.core import setup import py2exe setup( console=["myscript.py"], # 도스창에서 실행할 파일을 생성할 경우 # windows=["myscript.py"], # GUI등 도스창 없이 실행할 ..
이 에러는 외쿡 VS 에서는 다음과 같은 에러 메시지로 나온다. Error PRJ0003: Spawning 'mt.exe' 대부분의 구글 검색 결과가 헛소리로 점철되었기 때문에 정리 차원에서 몇 자 적는다. 위 에러는 VS2008 을 이용할 때 접할 수 있다. 에러의 상세 내역을 보기위해 BuildLog.htm 파일을 보면 아래와 같다. [ BuildLog.htm ] 코드를 생성하고 있습니다... 리소스를 컴파일하고 있습니다... 매니페스트를 리소스에 컴파일하고 있습니다... 링크하고 있습니다... 매니페스트를 포함하고 있습니다... 프로젝트 : error PRJ0003 : 'mt.exe'을(를) 생성하는 동안 오류가 발생했습니다. 에러와 직접 관련이 있는 부분... 즉 마지막 mt.exe 를 생성하는 ..
복잡한 이벤트 처리에 대해서 골치 아파하기 전에 한번쯤 시도 해볼만한 방법 PreTranslateMessage 를 이용하는 방법 우선, 헤더 파일에 아래의 라인을 넣는다. BOOL PreTranslateMessage(MSG* pMsg); 소스 파일에는 다음의 소스를 응용해서 원하는 이벤트 처리를 구현한다. BOOL CUninstDlg::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_KEYDOWN) // 이벤트 종류는 많으므로 알아서... { if (pMsg->wParam == VK_ESCAPE) { return TRUE; } } return CDialog::PreTranslateMessage(pMsg); // 웹에는 여기에 자신의 Class 를 넣도록..
댓글에 추가되고 있음
Can I put data into EML as well as metadata? Yes, there are provisions in the eml-physical module for inclusion of data. The module describes the structural characteristics of data formats as delivered over the wire or as found in a file system. One physical object (which can be a bytestream or an object in a file system) might contain multiple entities (for example, this would be typical in a M..
- Total
- Today
- Yesterday
- 지루박멸연구센타
- 열정의 힘을 믿는다
- Le4rN TO Cr4cK
- 디버깅에관한모든것(DebugLab)
- sysinternals
- FoundStone
- hashtab
- 보안-coderant
- 디바이스드라이버 개발자 포럼
- dualpage.muz.ro
- osronline.com - 드라이버 관련 정보 사이트
- NtInternals - NativeAPI Refere…
- pcthreat - spyware 정보 제공
- rootkit.com - 루트킷 관련 정보
- www.ntinternals.net
- WINE CrossRef. - source.winehq…
- tuts4you
- hex-rays
- idapalace
- idefense
- immunityinc
- threatexpert
- hdp.null2root.org
- www.crackstore.com
- crackmes.de
- www.who.is
- www.cracklab.ru
- community.reverse-engineering.…
- video.reverse-engineering.net
- SnD
- 클레이 키위
- reversengineering.wordpress.co…
- www.openrce.org
- www.woodmann.com
- PEID.Plusins.BobSoft
- roxik.com/pictaps/
- regexlib.com
- spyware-browser.com
- www.usboffice.kr
- regulator
- www.txt2re.com
- ietab.mozdev.org
- zesrever.xstone.org
- www.heaventools.com/PE-file-he…
- www.heaventools.com
- www.innomp3.com
- 울지않는벌새
- exetools.com-forum
- exetools.com
- utf8 conv
- robtex - IP trace
- onsamehost - same IP sites
- JpopSuki
- jsunpack.jeek.org
- wepawet.iseclab.org
- www.jswiff.com
- www.hackeroo.com
- winesearcher.co.kr
- khpga.org
- malwareurl.com
- anubis.iseclab.org
- www.crummy.com-eautifulSoup
- malwarebytes.org/forums
- bbs.janmeng.com
- blackip.ustc.edu.cn
- eureka.cyber-ta.org
- exploit-db.com
- 신한저축은행
- 미국주식
- CriticalSection
- 사회간접자본
- systemd
- 군함도
- 주식
- 레고랜드
- 매매가격지수
- 실시간트래이딩
- ElasticSearch
- PIR
- ubuntu
- O365
- hai
- 주식트래이딩
- 시스템트래이딩
- Pivot
- ROA
- SBI저축은행
- 다올저축은행
- INVOICE
- ChatGPT
- logrotate
- 자동트래이딩
- 공공인프라
- 맥쿼리인프라
- 피봇
- 주택구매력지수
- 전세매매지수
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |