포맷하고 svn을 새로 설치했는데, 갑자기 svn에서 업데이트(update)는 잘 되는데, 커밋(Commit)이 안 된다. 그때 아래와 같은 오류를 뱉어내는데, Error: Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY 인터넷에 찾아보면, 저장소 주소를 바꾸거나, http 대신에 https 를 써 보라는 조언이 있다. 내 경우에는 둘 다 적용이 안 됐음. 몇 번의 삽질 끝에 알아낸 문제점은 바로 svn 계정 설정을 잘못한 것. update만 되는 계정을 가지고 commit을 하려고 할 때, 위와 같은 오류를 뿜어낸다. 해결책은 마우스 우클릭 – TortoiseSVN – Settings – Saved Data – ..
원본 소스는 http://ibmsmiportal.springnote.com/pages/4098269 받아서 보기 좋게 정리함. alt + / Word Completion alt + ->, alt + ctrl + space 기본 for문 완성 sysout > ctrl + space System.out.println(); try > ctrl + Space 기본 try-catch문 완성 템플릿을 수정, 추가 java > editor > Templates ">Preferences > java > editor > Templates 해당프로젝트에서 alt + enter Project 속성
시스템을 구현하다가, 어제 두 시간 동안 나를 고민하게 만들었던 문제 ㅎㅎ 내 생각엔 면접 문제로도 괜찮을 거 같다. 나중에 내가 면접관이 되면 이 문제를 써야지. Q) 다음 함수를 구현하시오. Rules addRule(Rules previousRules, int min, int max); 1) 각 룰은 min, max로 이루어지는 size cluster 단위로 정렬되고, 각 cluster는 겹치지 않아야 한다. e.g.) 1-5, 8-13, 19-25, 28-33 요런 식으로.. 2) 새로운 룰(min, max)이 추가되었을 때, 기존의 룰과 비교하여 필요한 경우, merge를 해야 한다. e.g.) 위 규칙 셋에서 10-20 이 추가될 경우, 다음과 같은 룰 셋이 생성 되어야 함 1-5, 8-25, ..
프로젝트 우클릭 – 속성 – 구성 속성 – 디버깅 – 명령 인수에 값을 적으면 됨
맨날 코딩하다 보면 헷갈리는데.. 우선 const point variable에 대해서.. class Widget이 있을 때.. const Widget *p; //object가 const이므로 *p의 내용을 바꿀 수 없음 Widget const* p; //위와 같은 의미 Widget* const p; //pointer 변수가 const이므로, pointer p자체를 바꿀 수 없음 (*p의 내용은 변경가능) const Widget* const p; //둘 다 const이므로, pointer p, *p object 모두 변경 불가 그리고 default argument (혹은 default variable)는 non-default argument 뒤에 선언 되어야 함. ex) int f(int a, int b,..
테터툴즈의 가장 부러운 점은 인기글 및 태그 관련글 플러그인이었다. 내 블로그에서 어떤 글이 사람들에게 많이 익히고, 또 글들이 어떻게 연결되어 있는지를 알 수 있다?! 생각만해도 가슴이 뛰는 일이건만, 티스토리 사용자들은 그저 플러그인이 업데이트 되기를 기다리는 방법밖엔 없었다. 관련 플러그인이 최초로 공개된 시점이 2007년 2월임에도 아직 티스토리 플러그인에 업데이트 되지 않은 점을 볼 때, 티스토리에서는 해당 플러그인을 별로 중요하게 생각하지 않거나, 해당 플러그인이 생각보다 많은 리소스를 잡아 먹어 최적화가 힘든 모양이다. 그러던차에 티스토리 블로그 중에서 최근 인기글을 표시해주는 블로그를 발견! 구글로 찾아보니 아래와 같은 사이트를 찾을 수 있었다. http://n-3.net/count/ 아이..
c:\Program Files\OpenCV\cvaux\src\cvbgfg_gaussmix.cpp(343): error C2039: 'foreground_regions' : is not a member of 'CvGaussBGModel' c:\Program Files\OpenCV\cvaux\src\cvbgfg_acmmm2003.cpp(411): error C2039: 'foreground_regions' : is not a member of 'CvFGDStatModel' cvaux.h 파일을 살펴보면, #define CV_BG_STAT_MODEL_FIELDS() ...... CvMemStorage* storage; /*storage for 밼oreground_regions?/ CvSeq* foregroun..
매트랩에서는 imfilter만 써 봤었는데.. 막상 low pass filter를 어떻게 써야 될지 몰라서 막막해 하다가 구글에서 찾았음. % Examples of Butterworth filter design using Matlab function "butter" % [b,a]=butter(n,0.4) % nth order low pass filter with normalized % cut-off frequency 0.4 [b,a]=butter(n,0.4,'high') % nth order high pass filter [b,a]=butter(n,[0.2 0.5]) % 2*nth order bandpass filter with edge % frequencies 0.2 and 0.5 [b,a]=butte..
built-in C++ type class가 아닌 직접 만든 class를 사용할 때 다음과 같은 operator들을 overloading을 해 주어야 sort와 같은 알고리즘을 적용시킬 수 있다. Copy-constructor Assignment(=) operator: list에서 새로운 순서로 생성한 member들을 할당하기 위해 Less than (
http://dsc.sensable.com 에서 퍼옴 기타 설정 파일은 첨부파일 참조 /***************************************************************************** Copyright (c) 2004 SensAble Technologies, Inc. All rights reserved. OpenHaptics(TM) toolkit. The material embodied in this software and use of this software is subject to the terms and conditions of the clickthrough Development License Agreement. For questions, comments ..
1. MATLAB Compiler 준비 (MATLAB 설치 CD에 보면 설치 옵션으로 있음) 2. 매트랩 command window에서 >> mbuild –setup %적당한 C컴파일러를 고른다 >> mcc –m hoho.m %hoho.m 파일을 exe 파일로 만든다 %주의할 사항 : script M-file은 exe파일로 만들 수 없다. 반드시 function 형태의 m파일 로 만들 것! 참고 : http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/f13-1003481.html 3. 만들어진 exe파일을 매트랩이 없는 다른 컴퓨터에서 실행하기 위해서는 h..
막상 쓰려니 헷갈려서.. 책을 찾아서 정리함. //static data member들은모든block의밖에서define 되어야한다 //모든block의밖에서define되는static data memeber들은따로초기화값을주지않으면 //자동으로0으로초기화된다. class Widget { static int n; //declaration }; int Widget::n = 0; //definition //const data member들은constructor's initialization section에서초기화가되어야한다. //member initialization list class Widget { public: Widget() : n( 0 ) { } private: const int n; //const dat..