tomcat을 돌리다가 갑자기 죽었을때!catalica.out을 보면 간단한 데이터들이 있긴하지만...core가 발생했으니 디버깅을 해보자. Java의 core dump를 확인하는 방법은 아래 내용 참조 원문 : http://fahdshariff.blogspot.kr/2012/08/analysing-java-core-dump.html In this post, I will show you how you can debug a Java core file to see what caused your JVM to crash. I will be using a core file I generated in my previous post: Generating a Java Core Dump.There are differen..
BOOL CManager::Load_WTS_Process( UINT nId ) { DWORD dwSessionID; DWORD dwWinlogonPID; HANDLE hToken, hTokenDup, hWinlogon; TOKEN_PRIVILEGES token_priv; LUID luid; BOOL bSuc; dwSessionID = nId; hToken = NULL; hTokenDup = NULL; hWinlogon = NULL; try { dwWinlogonPID = IsProcess_running((const PTCHAR)Winlogon, _tcslen(Winlogon)); bSuc = WTSQueryUserToken( nId, &hToken ); if(!bSuc) { bSuc = WTSQueryU..
프로그램 하단에 트레이 아이콘을 설정하는 법입니다. 기본적인 트레이 등록하는 법은 다음과 같습니다. #define UM_TRAYICON_MSG (WM_USER + 0x100) UINT g_nTaskbar = ::RegisterWindowMessage( _T("TaskbarCreated") ); ... // BEGIN_MESSAGE_MAP 안에 아래를 추가 ON_REGISTERED_MESSAGE( g_nTaskbar, &CMainFrame::OnTaskbarCreated ) ... LRESULT CMainFrame::OnTaskbarCreated(WPARAM wParam, LPARAM lParam) { // NOTIFYICONDATA m_TrayIcon; // Delete를 위해 멤버로 추가 m_TrayI..
jython에서는 substring과 같은 문자열 처리가 없다. 근데 onetime url 획득 후 데이터 확인해야 한다면? 결과물이 xml이라면 아래와 같은 방식으로 xmlData를 추출할수 있다. 출처 : http://www.travisglines.com/web-coding/python-xml-parser-tutorial #import library to do http requests: import urllib2 #import easy to use xml parser called minidom: from xml.dom.minidom import parseString #all these imports are standard on most modern python implementations #downl..
전에 면접을 보고 rand() 함수에 대해 조금 자세하게 자료를 모아 봤습니다. 일반적으로 rand()함수는 random한 값을 가지게 됩니다. 하지만 그냥 rand()함수를 쓰게 되면 항상 같은 결과가 나오는걸 볼수 있는데 이건 왜 이럴까요? 이건 rand 함수가 항상 새롭게 랜덤한 수를 생성하는게 아니고 일정한 난수표를 가지고 있기 때문에 이러한 결과가 나오게 됩니다. 그래서 유사난수 생성기(pseudorandom number generator)라고 부릅니다. 그리고 이 난수표를 결정하는것이 바로 종자값이라고 부르는 seed 입니다. 그리고 이 시드값을 결정해 주는 함수가 바로 srand()인것입니다. 하지만, srand(1); printf("%i %i %i\n", rand(), rand(), ran..
- Total
- Today
- Yesterday
- Mersenne Twister
- 왕좌의 게임
- CLOSE_WAIT
- 스웰시즌
- 공연후기
- 원스
- 메르센 트위스터
- Marketa Irglova
- 백혈검
- 홍대 프리마켓
- srand
- mediastreamvalidator
- swell
- 연성결
- http live streaming
- 백마소서풍
- 홍대앞 놀이터
- ONCE
- 협객행
- Glen Hansard
- rand
- 월녀검
- THE SWELL SEASON
- 원양도
- 정규분포
- game of thrones
- 서검은구록
- 설산비호
- tcp_retries2
- rsync