본문 바로가기 메뉴 바로가기

IT Tech Blog of niu

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

IT Tech Blog of niu

검색하기 폼
  • All (19)
    • Tech (12)
      • Cording (5)
      • Server ops (4)
      • Tips (3)
    • etc (7)
      • Lifes (5)
      • others (2)
  • 방명록

Tech/Cording (5)
[Java] Analysing a Java Core Dump

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..

Tech/Cording 2013. 11. 25. 03:28
[C++] Vista 이상에서 Service에서 활성화된 세션 ID로 특정 어플리케이션 실행하기

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..

Tech/Cording 2013. 11. 25. 03:26
[C++] 트레이에 아이콘 등록하기

프로그램 하단에 트레이 아이콘을 설정하는 법입니다. 기본적인 트레이 등록하는 법은 다음과 같습니다. #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..

Tech/Cording 2013. 11. 25. 03:18
[Grinder] xml parsing

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..

Tech/Cording 2013. 11. 25. 02:50
rand() 함수에 대해서...

전에 면접을 보고 rand() 함수에 대해 조금 자세하게 자료를 모아 봤습니다. 일반적으로 rand()함수는 random한 값을 가지게 됩니다. 하지만 그냥 rand()함수를 쓰게 되면 항상 같은 결과가 나오는걸 볼수 있는데 이건 왜 이럴까요? 이건 rand 함수가 항상 새롭게 랜덤한 수를 생성하는게 아니고 일정한 난수표를 가지고 있기 때문에 이러한 결과가 나오게 됩니다. 그래서 유사난수 생성기(pseudorandom number generator)라고 부릅니다. 그리고 이 난수표를 결정하는것이 바로 종자값이라고 부르는 seed 입니다. 그리고 이 시드값을 결정해 주는 함수가 바로 srand()인것입니다. 하지만, srand(1); printf("%i %i %i\n", rand(), rand(), ran..

Tech/Cording 2008. 4. 25. 02:12
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 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
more
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바