I was asked about this today. In practice, I rarely use 2-dimensional array, instead I use vector of vectors. ...
[OpenCV]detectMultiScale
I met a problem when using the interface ‘detectMultiScale’ of OpenCV. The rectangles it gives out may not be fully inside the frame of the original image. As a result, if these rectangles are applied directly on the original image to crop out the
SSE2 Vector Operation by Vlfeat
If you are writing something involving the math between vectors in C/C++, you may want to check out Vlfeat (http://vlfeat.org). ...
Setup dropbox without X
Assume you are accessing your server remotely through SSH. ...
fstream issue under 64-bits cygwin
This is a question I posted on StackOverflow: fstream issue under 64-bits cygwin, glad to get help from Nemo on Stackflow, all credits goes to him. ...
Think about this, you want to replace “XXX” with a path like “/path/to/YYY” in a file.
Your file looks like this: ...
Project-Specific Vim Configuration
Usually, we have our own vim configuration in the file ~/.vimrc
What if we want one for our project?
For example, we are working on certain project which needs to read in a tags file.
Well, here is a possible solution. ...
tail -n
Quite useful trick, when you want to get rid of the first certain lines of the output/file. ...
Draw ROC Curve

A piece of fairly simple Matlab script to draw the ROC Curve from an array of scores and an array of labels. ...