'분류 전체보기'에 해당되는 글 167건

  1. 2010.06.01 Emacs xcode-compile
  2. 2010.06.01 연구미팅 20100607
  3. 2010.05.31 temporary posting
  4. 2010.05.29 i386 compilation
  5. 2010.05.28 유기물이론
  6. 2010.05.28 Emacs Tips
  7. 2010.05.25 매트랩 라이브러리 링크시 아키텍처 오류
  8. 2010.05.25 다음학기
  9. 2010.05.25 How to change MAC adreess in OSX
  10. 2010.05.20 Opencv on Snowleopard

Emacs xcode-compile

OSX 2010. 6. 1. 17:31

이번에는 Emacs에서 Xcode project를 build하는 것이다.

다음의 emacs lisp 코드를 .emacs 파일안에 넣어놓으면 M-x xcode-compile이 나 F10키로 바로 컴파일이 가능하다.

  1. (defvar xcode-compile-sdks nil)  
  2. (defvar xcode-compile-sdk-history nil)  
  3.   
  4. (dolist (line  
  5.          (split-string  
  6.           (with-temp-buffer  
  7.             (call-process "xcodebuild" nil t nil "-showsdks")  
  8.             (buffer-string))  
  9.           "\n" t)  
  10.          )  
  11.   (let ((comps (split-string line "-sdk " t)))  
  12.     (if (> (length comps) 1)  
  13.         (add-to-list 'xcode-compile-sdks (car (last comps)))  
  14.       )  
  15.     )  
  16.   )  
  17.   
  18. (defun xcode-compile ()  
  19.   (interactive)  
  20.   (let ((command "xcodebuild -activeconfiguration -activetarget"))  
  21.     (setq command  
  22.           (concat  
  23.            command  
  24.            (if xcode-compile-sdks  
  25.                (let ((default-sdk (or (car xcode-compile-sdk-history) (car xcode-compile-sdks))))  
  26.                  (concat  
  27.                   " -sdk "  
  28.                   (completing-read  
  29.                    (format "Compile with sdk (default %s): " default-sdk)  
  30.                    xcode-compile-sdks  
  31.                    nil  
  32.                    t  
  33.                    nil  
  34.                    'xcode-compile-sdk-history  
  35.                    default-sdk  
  36.                    )  
  37.                   )  
  38.                  )  
  39.              )  
  40.            (let ((dir ".") (files nil))  
  41.              (while  
  42.                  (progn  
  43.                    (setq files (directory-files dir nil "\\.xcodeproj\\'"))  
  44.                    (and (not (string-equal "/" (expand-file-name dir))) (null files))  
  45.                    )  
  46.                (setq dir (concat (file-name-as-directory dir) ".."))  
  47.                )  
  48.              (unless (null files) (concat " -project " (file-name-as-directory dir) (car files)))  
  49.              )  
  50.            )  
  51.           )  
  52.     (compile (read-string "Compile command: " (concat command " ")))  
  53.     )  
  54.   )  
  55.   
  56. (define-key global-map [f10] 'xcode-compile)

http://han9kin.doesntexist.com/29#recentTrackback

:

연구미팅 20100607

Work Backup 2010. 6. 1. 16:57

---------

| 지난주 |

---------

* poseEstimator 실행법 학습

-> 격투기에서는 팔을 들고 뻗는 과정이 대부분인데 여기서 주먹의 2D 화면상의 위치는 거의 일정하다

----> 이프로그램으로는 움직임 궤적 추출하기 어렵다

----> 두가지 방법

--------1) 궤적은 주어졌다고 생각하고 바로 CRF로 인식부분 해보기

--------2) poseEstimator를 스테레오 비전으로 개선후 CRF로 인식

----> 다른 고려해야 될점: 나오의 비전 시스템 자체가 제한적인 view angle을 갖고 있을듯 (테스트는 안해봄) 격투기 시나리오 상 상대로봇과 가까이 있을 경우에 화면상의 정보는 더욱 적어질듯함


* 제안서 개요 완성

---------

| 금 주 |

---------

* 제안서 마무리

* 위에서 언급한 움직임 궤적 추출하기위한 두가지 방법 중 한가지 방법 택해서 추진하기 (일정 계획 수립 후 시작)


--------------------------------------------------------------------------------

cf) 두 영상 한화면에 나오게 에디팅할 수 있는 툴은 모두 상용툴만 됨 -> 베가스 선택

--------------------------------------------------------------------------------


:

temporary posting

카테고리 없음 2010. 5. 31. 10:34

lipo -info /opt/local/lib/libboost_filesystem.dylib

sudo mv ./g++ ./g++.old

sudo mv ./gcc ./gcc.old

sudo mv ./cc ./cc.old

sudo mv ./c++ ./c++.old

sudo ln -s g++-4.0 g++
sudo ln -s gcc-4.0 gcc

EMACS
* 자동완성 익히기* [] [] 바로 건너뛰기 incremental search* 소스 네비게이션 (헤더/소스)

  • 기본적으로 다음과 같은 단축키들이 제공된다 (자세한 것은 `xcscope.el'의 주석을 꼭!!!! 한 번 읽어보기 바란다):

키 입력 설명
C-c s s Find symbol.
C-c s d Find global definition.
C-c s g Find global definition (alternate binding).
C-c s G Find global definition without prompting.
C-c s c Find functions calling a function.
C-c s C Find called functions (list functions called from a function).
C-c s t Find text string.
C-c s e Find egrep pattern.
C-c s f Find a file.
C-c s i Find files #including a file.

etags/cscope를 잘 쓰기만 하면 웬만한 source 분석은 무난히 해결할 수 있지만, 좀 더 강력하거나 편집 기능 보다 source 분석 전용 툴을 찾고 있다면, 아래 툴을 써 보기 바란다:



현재 에러나는 곳
Fitter.cpp:510   // And set silhouette to each of the estimators!   rightHandEstimator_->setBaseModelSilhouette(baseModelContour_);   leftHandEstimator_->setBaseModelSilhouette(baseModelContour_);   rightFootEstimator_->setBaseModelSilhouette(baseModelContour_);   leftFootEstimator_->setBaseModelSilhouette(baseModelContour_);

baseModelContour_ = cvCreateMat(capturer_->getHeight(), capturer_->getWidth(), CV_32FC1);
   rightHandEstimator_->setBaseModelSilhouette(baseModelContour_);


void threePartedEstimable::setBaseModelSilhouette(CvMat* baseSilhouette){// Copy base model silhouette! cvCopy(baseSilhouette, baseModelSilhouette_);}

   baseModelSilhouette_ = cvCreateMat(my::Singleton<glEnvironment>()->getHeight(),my::Singleton<glEnvironment>()->getWidth(), CV_32FC1);




bodyRenderer::bodyRenderer(const std::string& name,    int width, int height): glRenderer(name, width, height)

glRenderer::glRenderer(const std::string& name,   int width, int height)void glRenderer::onReshape(int x, int y)


void glRenderer::ReshapeCallback(int x, int y){   glRenderer::s_renderer_->onReshape(x, y);}










:

i386 compilation

OSX 2010. 5. 29. 17:21

I was able to compile as universal (on Leopard) with: CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -DCRYPTOPP_DISABLE_ASM" make

lipo -info /opt/local/lib/libboost_filesystem.dylib

:

유기물이론

Etc 2010. 5. 28. 14:11

[건강]액취증, 고지방 줄이고 야채·과일 먹으면 좋아져

경향신문 | 박효순 기자 | 입력 2010.05.27 17:22 | 수정 2010.05.28 11:42 | 누가 봤을까? 10 대 여성, 제주


날씨가 더워지면 땀샘의 기능이 왕성해져 몸에서 냄새가 나기 쉽다. 발 고린내가 심하거나 액취증이 있는 사람들은 고민이 더 커질 수밖에 없다.

액취증은 몸에 있는 '아포크린' 땀샘과 관련이 크다. 겨드랑이 부위에 많이 밀집한 이 땀샘은 지방산과 유기물질을 땀과 함께 배출한다. 이것들이 세균에 의해 지방산과 암모니아로 분해되면서 계란 썩는 냄새나 양파 냄새, 혹은 시큼한 냄새 등 고약한 체취를 풍기게 된다.

액취증은 가족력이 강한 유전적 질환으로, 부모 중 한 사람만 있어도 유전될 확률이 50%나 된다. 일단 증상이 가볍다면 몸을 자주 씻고 제모(除毛)를 하면 도움이 된다. 겨드랑이의 털은 피지와 엉켜서 세균이 번식하기 좋은 온도와 환경을 조성하므로 제모를 하면 냄새가 덜 나는 것이다. 땀냄새 억제제인 데오도란트를 이용해도 일시적으로 도움이 될 수 있다. 하지만 습진이나 염증이 있는 경우 피부 트러블을 일으킬 수 있으므로 과도한 사용은 삼가야 한다. 또 체취에 영향을 주는 지방 섭취를 자제하는 것도 액취증을 완화하는데 도움이 된다.

강남 아름다운나라 성형외과피부과 김진영 원장은 "액취증을 줄이려면 육류, 계란, 우유, 버터, 치즈 등 고지방 고칼로리 식품은 줄이고 녹황색 야채와 과일을 자주 섭취하는 것이 좋다"면서 "녹황색 야채 등에 들어있는 비타민 A와 비타민 E는 세균에 대한 저항력을 길러주어 액취증을 예방하고, 악취 발생의 원인이 되는 과 산화지질의 생성을 억제하는 효과가 있다"고 밝혔다.

그러나 액취증이 심한 경우 이러한 대증적 조치들이 한계가 있어 근본적인 땀샘 제거 수술을 받아야 한다. 최근 흉터가 거의 없고 회복기간도 많이 줄어든 롤러클램프-리포셋 병행 시술이나 오스미 레이저 치료 등이 적용되고 있다.

액취증 못지않게 주위 사람들을 괴롭히는 발 냄새도 땀이 많은 여름철에 심해진다. 특히 스트레스나 긴장 등으로 땀이 날 때 더 악화된다.

발가락 사이에 축축히 땀이 차면 바깥쪽 각질층이 불어난다. 여기에 박테리아(세균)가 땀에 불어 말랑말랑해진 각질을 분해하면서 만들어내는 '이소 발레릭산'이라는 악취성 화학물질이 발 냄새의 실체다. 곰팡이 감염인 무좀이 있으면 세균감염과 합쳐져 발냄새가 심각해진다.

발 냄새를 억제하는 최선의 방법은 발을 잘 씻고 제대로 말리는 것. 레몬 조각을 우려낸 물에 발을 5~6분가량 담그거나, 녹차를 우려낸 따뜻한 물에 10분 정도 담그면 냄새 완화에 도움이 된다. 헤어 드라이어 등을 이용해 물기를 완전히 건조시킨 뒤 향기가 있는 발 전용 파우더로 가볍게 마사지 하는 것도 효과적이다. 그래도 계속 발냄새가 난다면 발바닥 각질층이나 발가락 사이가 진균이나 세균에 감염됐을 가능성이 크다. 이 때는 항진균제나 항생제 치료를 받아야 한다.

:

Emacs Tips

카테고리 없음 2010. 5. 28. 14:10

grep -rF "JLOG" .

ido-mode

:

매트랩 라이브러리 링크시 아키텍처 오류

OSX 2010. 5. 25. 22:28

/Applications/MATLAB2009a/MATLAB_R2009a.app/bin/maci/libmx.dylib, file

is not of required architecture
:

다음학기

Etc 2010. 5. 25. 21:57
선택 CS572 36.572 지능형 로보틱스 3 : 0 : 3 조성호
10:30AM - 12:00PM
10:30AM - 12:00PM
정보전자동
[ 3444 ]
0 Y영어강의,학석사상호인정

선택 CS542 36.542 인터넷 시스템 기술 3 : 0 : 3 송준화
4:00PM - 5:30PM
4:00PM - 5:30PM
정보전자동
[ 2112 ]
0 학석사상호인정
공필 CC511 11.511 확률및통계학 2 : 3 : 3 길이만
9:00AM - 10:00AM
9:00AM - 10:00AM
9:00AM - 10:00AM
산업경영동
[ 1501 ]
0 Y영어강의





선택 EE735 35.735 컴퓨터를 이용한 시각기법 3 : 0 : 3 권인소
2:30PM - 3:45PM
2:30PM - 3:45PM
정보전자동
[ 1216 ]
0 Y

전선 CS478 36.478 금융 데이터 분석기법 3 : 0 : 3 정교민, 김기응
10:30AM - 12:00PM
10:30AM - 12:00PM
정보전자동
[ 2443 ]
0 Y영어강의,학석사상호인정





17 선택 CS546 36.546 무선이동인터넷 3 : 0 : 3 김명철
9:00AM - 10:30AM
9:00AM - 10:30AM
정보전자동
[ 3444 ]
0 Y영어강의,학석사상호인정



:

How to change MAC adreess in OSX

OSX 2010. 5. 25. 14:55
여러가지 이유로 Airport의 Mac Address를 변경해야할 필요성이 있습니다.
구글링을 해보면 2-3가지의 Apps, 스크립트들이 있으나 어찌된 것이 현 OSX 10.5.6에서는 효과가 없더군요.
그러다가 다음에서 방법을 찾았습니다. http://curtisschweitzer.net/blog/?p=2152
요약하면

1. 상단 메뉴 Airport 아이콘을 클릭, "다른 네트워크에 연결"을 선택
2. 네트워크 이름을 입력하십시요...에서 가상의 SSID를 입력 (Airport가 찾지 못하도록, 예; Fake SSID, TEST SSID.....) 후
3. 연결 버튼을 클릭하면, Airport가 해당 SSID를 찾지 못하고 헤메게 됩니다. Airport 아이콘을 보면 신호강도가 없는 것 처럼 보입니다.
=> 바로 이 때가 Airport Mac Address를 바꿀 수 있는 찬스!
4. 터미널을 열고
sudo ifconfig en1 lladdr xx:xx:xx:xx:xx:xx
라고 입력후 패스워드 입력하면 완료!
5. ifconfig en1 을 입력해 보면 바뀐 Mac이 보일겁니다.

단, 시스템환경설정 혹은 네트워크 유틸리티 에서 보이는 Mac 주소는 Airport의 기본 Mac주소가 계속 보입니다.
이는 Airport의 Mac Address를 Software적으로만 바꾼것이며 전원을 껐다 다시 켜면 초기상태로 원복됩니다.


:

Opencv on Snowleopard

카테고리 없음 2010. 5. 20. 15:15
Because I get some requests about how to apply the patch ...

 Check where you installed macports, that is usually /opt/local/
 Locate the Portfile for OpenCV, for me that is at

 /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/opencv

 now apply the third patch (Portfile-sl_64bit_21014.diff)
 by executing

 sudo patch Portfile -i ~/Downloads/Portfile-sl_64bit_21014.diff

 in the above directory (adjust the last path accordingly to your download
 location)

 When you execute port variants opencv you should see the sl_64bit_21014
 variant. Now install opencv with

 sudo port install opencv +sl_64bit_21014


{{{
 $ port deps opencv
 Full Name: opencv @1.0.0
 Library Dependencies: gtk2, zlib, jpeg, libpng, tiff
 $ port variants gtk2 zlib jpeg libpng tiff
 gtk2 has the variants:
    darwin_7: Platform variant, selected automatically
    darwin_8: Platform variant, selected automatically
    no_x11: Disable support for X11
    quartz: Enable Quartz rendering
      * conflicts with x11
      * requires no_x11
    universal: Build for multiple architectures
 [+]x11: Enable rendering in X11 (default)
      * conflicts with quartz
 zlib has the variants:
    universal: Build for multiple architectures
 jpeg has the variants:
    universal: Build for multiple architectures
 libpng has the variants:
    universal: Build for multiple architectures
 tiff has the variants:
    macosx: Platform variant, selected automatically
    universal: Build for multiple architectures
 }}}
 Building OpenCV's dependencies as universal variants succeeds.

 When "build_arch" is commented out in macports.conf, the one command "

sudo port upgrade --enforce-variants atk +universal 
sudo port upgrade --enforce-variants cairo +universal
sudo port upgrade --enforce-variants jasper +universal
sudo port upgrade --enforce-variants pango +universal
sudo port upgrade --enforce-variants tiff +universal

port install gtk2 +universal

" succeeds, and installs all of OpenCV's
 dependencies.
: