특정 파일을 선택한 후 우클릭 - TortoiseSVN - Properties에서
Add Property를 하면 아래의 창이 뜨고 원하는 속성을 추가하면 된다.



 [링크 : http://johnbokma.com/mexit/2008/09/30/subversion-svn-keywords-property.html]

---
2012.03.23 추가
소스에서 $Rev$를 추가하고
위의 과정을 통해 snv:keywords 에서 property value를 Rev로 입력해준다.
그리고 나서 커밋을 하면 아래와 같이 소스가 변경된다.


다시 해제 하면 아래와 같이 소스가 변경됨을 알 수 있다.


 
Posted by 구차니
프로그램 사용/xen2012. 3. 6. 19:06
xen을 찾다보니 나오는 다른 가상화 프로그램.

[링크 : http://www.linux-kvm.org/page/Main_Page]
[링크 : https://help.ubuntu.com/community/KVM]

'프로그램 사용 > xen' 카테고리의 다른 글

ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
xen 설치관련 문서링크  (0) 2010.11.14
Intel ATOM cpu중 가상화 지원모델  (2) 2010.09.24
Posted by 구차니
지금까지 사용하면서 뻗은적은 없지만(역설적으로 리눅스 커널이 안정적인걸지도)
최악의 경우 시스템을 통채로 뻗게 할 수 있다고 한다.

Problems with coLinux

The primary disadvantage of coLinux is that it has the ability to crash the entire machine (all cooperating operating systems) because the guest operating system runs in a privileged mode in the host kernel. It also has some dependencies on external software for normal operation (windows and networking support). Outside of this, it's quite easy to install and configure. In the many hours that I've used it, I've never seen a crash.
 

[링크 : http://www.ibm.com/developerworks/library/l-virtualization-colinux/]  

Posted by 구차니
프로그램 사용/antlr2012. 2. 23. 21:25
lexer(어휘분석기)는 token을 구분해내고
paser(구문분석기)는 lexer가 구분해낸 token의 문법구조를 분석한다.
아래예제에서 startRule()은 .g(rule)파일에서 가장 처음 규칙을 지칭한다.

int main(int argc,char** argv)
{
  try {
    std::ifstream inputstream("test.c", std::ifstream::in);
    MLexer* mainLexer = new MLexer(inputstream);
    mainLexer->setFilename("test.c");
    
    parser = new PParser(*mainLexer);
    parser->setFilename("test.c");
    gCurrentInputStream = &inputstream;
    parser->startRule();
  }
  catch(exception& e) {
    cerr << "exception: " << e.what() << endl;
  }
return 0;
}


int main(int argc,char** argv)
{
  try {
    … // 어휘 분석기/구문 분석기를 설정하기 위한 코드
    parser->startRule();
  }
  catch(ANTLR_USE_NAMESPACE(antlr)RecognitionException& e) {
    // 필요한 작업 수행
  }
  catch(ANTLR_USE_NAMESPACE(antlr)TokenStreamException& e) { 
    // 필요한 작업 수행
  }
return 0;
}

[링크 : http://www.ibm.com/developerworks/kr/library/tutorial/au-parsingwithantlr/index.html]
     [링크 : http://www.ibm.com/developerworks/kr/library/tutorial/au-parsingwithantlr/section5.html]

'프로그램 사용 > antlr' 카테고리의 다른 글

java를 이용한 antlr AST 탐색하기(AST navigation)  (0) 2011.11.02
ANTLR IDE 2.1.2 for ANTLR 3.0 above  (0) 2011.11.02
antlrworks  (0) 2011.11.02
antlr + eclipse & java  (0) 2011.10.30
antlr / pccts package  (0) 2011.10.24
Posted by 구차니
이클립스에서 svn을 통해 올리는데 이런 에러가 배를 짼다 -_-
알고보니 구글 코드를 https가 아니라 http로 해서 발생한 문제
http의 경우 update는 가능하지만 commit은 불가능하다.

org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/ca9894f5-921e-5345-9624-5964af3da63c'

org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/ca9894f5-921e-5345-9624-5964af3da63c' 

Posted by 구차니
프로그램 사용/gcc2012. 2. 12. 11:19
gcc 도움말에 의하면 아래의 경로에서 기본적으로 include 파일을 찾게 된다는데

2.3 Search Path

GCC looks in several different places for headers. On a normal Unix system, if you do not instruct it otherwise, it will look for headers requested with #include <file> in:

     /usr/local/include
     libdir/gcc/target/version/include
     /usr/target/include
     /usr/include

[링크 : http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html]  

음.. 저 긴 옵션을 다 줘야 하는 이유는 먼지 모르겠지만,
아무튼 확인해보면 /usr/local/include가 /usr/include 보다 우선적으로 검색하게 된다.
그런 이유로 opencv가 /usr/local/include에 설치되는 듯하다.
$ g++ -v -x c -E -
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
COLLECT_GCC_OPTIONS='-v' '-E' '-shared-libgcc' '-mtune=generic' '-march=i486'
 /usr/lib/gcc/i486-linux-gnu/4.4.3/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -mtune=generic -march=i486 -fstack-protector
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
 /usr/include
End of search list.

[링크 : http://gcc.gnu.org/ml/gcc-help/2007-09/msg00216.html]   

'프로그램 사용 > gcc' 카테고리의 다른 글

ubuntu gcc가 바보  (2) 2013.09.19
gcc 64bit 확장  (0) 2013.01.13
gcc의 2진수 표기법  (0) 2011.12.28
c++ 컴파일 오류 - error: extra qualification  (0) 2011.10.12
gcc 컴파일 단계별 옵션  (0) 2010.03.04
Posted by 구차니
Step 1. doxygen을 설치한다. graphviz 설치는 옵션!
           [링크 : http://www.stack.nl/~dimitri/doxygen/]
           [링크 : http://www.graphviz.org/

Step 2. Help - Install New software에서
           "http://download.gna.org/eclox/update" 를 추가하여 eclox 를 설치함


Step 3. 재시작 하고 나면 @ 아이콘이 생기는데 이걸 누른다.


Step 4. 저걸 처음 누르면 Preferences가 뜨는데 자동으로 인식을 하지 못하면 Doxygen이 설치된 위치를 추가해준다.
           최초 설정 이후에는 이 메뉴로 들어가려면 doxygen 작업중 cancel을 누르면 들어갈지를 물어본다.


 Step 5. Doxygen을 적용할 프로젝트를 선택하고 파일 이름을 적어주면 자동으로 Doxyfile 이라는 확장자가 붙는다.


Step 6. 해당 doxygen 설정 파일을 더블클릭하면 다음과 같이 나온다.
           기본값에 가까운(Scan recursively 가 꺼져있다) 설정으로 필요에 따라 옵션을 바꾸어 주면 된다.
           필수 사항으로는 Input Directories(프로젝트 최상위 폴더로 선택) Scan recursively 선택
           output directory는 비워두면 프로젝트 폴더의 HTML / LATEX 라는 폴더가 생성되므로
           docs나 docs 폴더를 생성후 그곳을 output 으로 정해주는 것이 좋다.


 [링크 : http://home.gna.org/eclox/
    [링크 : http://download.gna.org/eclox/update]
[링크 : http://www.stack.nl/~dimitri/doxygen/]
[링크 : http://www.graphviz.org/]
 
[링크 : http://neodreamer.tistory.com/625]
[링크 : http://stackoverflow.com/questions/2108586/how-to-use-eclox-the-doxygen-plugin-for-eclipse]
Posted by 구차니
프로그램 사용2012. 2. 7. 15:26
IE 기반의 중국산 브라우저이며 "360 안전 브라우저"라고 중국내 2위 점유율이라고 하는데
그렇게 따지면.. IE가 1등이고 2등이 IE기반 브라우저니 중국도 실질적인 IE 천국인건가.. -_-

특정 문제가 있어서 테스트를 해볼일이 있었는데
PC에 설치된 IE 버전에 따라서 작동이 달라지며
IE6이 있는 시스템에서는 탭을 지원하지 않고 새 창으로 열리며 테마가 적용되지 않는다.

특징 : IE에서 사용한 히스토리를 끌어가는 것으로 보임
         생각보다 빠르게 구동된다(IE8 대비)
         크롬(새 탭 화면) + IE의 느낌? activeX는 귀찮아서 안해봄 -_-



[링크 : http://se.360.cn/]
Posted by 구차니
주석 스타일을 doxygen 스타일로 할 수는 있지만
그렇다고 해서 eclipse에 통합되서 jdt의 javadoc 처럼 바로 될수는 없는듯 하다.


[링크 : http://www.eclipse.org/forums/index.php/t/26571/]
    [링크 : http://blog.naver.com/athena805/130069223295]
    [링크 : http://forum.falinux.com/zbxe/?document_srl=516472]
Posted by 구차니
프로그램 사용/eclipse2012. 1. 29. 17:07
Windows - Preferences 에서 설정이 가능하며
jdt와 cdt는
언어 - Editor - Syntax Coloring에 설정이 존재한다.



Posted by 구차니