2012년 7월 31일 화요일

compile sources in XCODE

Target --> Build Phases --> Compile sources.

변화는 좋지만, 일관성 없는 변화는 좋지 않다.

"_OBJC_CLASS_$_AsyncUdpSocket", referenced from: ...

2012년 7월 24일 화요일

바나나

바나나는 칼륨이 많다고 함.


신기한 보관 방법

2012년 7월 22일 일요일

No fmex9.pfb when update to Ubuntu 10.04

Ubuntu 10.04 로 업그레이드 하고 나서 생기는 문제.


dvips: ! Couldn't find font file fmex9.pfb

solution

It is caused by the pdfmap file in $HOME/.texmf-var.
The solution is just remove or rename $HOME/.texmf-var to $HOME/.texmf-var_Ubuntu904.
Then pdflatex the lyx file inside LyX again . The texlive will produce another new subdirectory $HOME/.texmf-var.
Done.
by Kuo-Ping Chiao
2010-5-9

ㄳㄳ

2012년 7월 15일 일요일

Direct Access to CvMat



If CV_32FC1 (1 channel float)

CvMat* M = cvCreateMat( 4, 4, CV_32FC1 );
M->data.fl[ row * M->cols + col ] = (float)3.0;

or...

cvmGet( mat, row, col );

...


inline void cvDoubleMatPrint( const CvMat* mat )
{
    int i, j;
    for( i = 0; i < mat->rows; i++ )
    {
        for( j = 0; j < mat->cols; j++ )
        {
            printf( "%f ",cvmGet( mat, i, j ) );
        }
        printf( "\n" );
    }
}

from http://note.sonots.com/OpenCV/MatrixOperations.html