Google
 

9/19/11

Comment in .vimrc

It is unusual. It is ".

7/31/11

matlab mex

1. be careful with the data type. It messes up instead of telling you that there is some implicit conversion.

7/26/11

use vi to open two files at the same time.

from here

Sometimes you need to edit a new or existing file while looking at a separate file using VI. This can be very useful and a powerful time saver. Fortunately you can do this using some simple commands.


First go ahead and edit a file with VI
shellprompt$ vi test-1.txt
while in VI enter the following
:new
This will open a new split screen session, in order to navigate between the two windows in VI do the following
ctr-w
j
Or
ctr-w
k
Using the first will move you to the lower window and using the latter will move you to the upper window.
To make one of the windows full screen and out of the dual screen mode use the following
:only
*Important Side Notes
If you used :new and opened up a new window session it will not have a name so you cannot save it without entering the following
:wq whatevername.txt
Also if you want to open a file in split screen mode that is not new and exists you can enter the following
:new /path/to/whateverfile

7/16/11

list only direcoties

>> ls -d */

to list hidden direcotories:

>> ls -d .*/

7/5/11

mac: move applications to different spaces.

You do not have to view all Spaces to move windows between them (That is, by pressing F8, then using your mouse to drag and drop the desired window to the desire Space location). Nor do you have to drag to a screen edge, wait, then drop. If you like to use your keyboard, here's a fast way to do it.

  1. Using your mouse, click and hold the window you want to move to another Space.
  2. While still holding your mouse button down, use your Spaces keyboard shortcut to move to the desired Space. This is usually done by pressing Control and one of the arrow keys.
The window you are holding will be moving with you as you change your Spaces. Once you reach your destination, release the mouse button.

[robg adds: You can also use this method to move the window directly to a numbered space -- just select the window, then press Control-1, -2, -3, etc. This is my preferred method of moving a window to a space, as it seems by far the quickest.]


source from here

5/20/11

rsync exclude files.

To exclude some directory, check the following:

http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/

5/6/11

uninstall Qt


sudo /Developer/Tools/uninstall-qt.py

3/22/11

ITK directory

To configure cmake
ITK_DIR
It should be "/Users/xxxx/software/InsightToolKitCompiled", where you put your compiled ITK.

3/21/11

Problem with ITK: library not loaded.

Problem: 
dyld: Library not loaded: libITKCommon.3.16.dylib


Solution:
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib/InsightToolkit


/usr/local/lib/InsightToolkit is where the "libITKCommon.3.16.dylib" lives in.