Difference between revisions of "User:Pieper"

From NAMIC Wiki
Jump to: navigation, search
Line 22: Line 22:
  
 
The values I use are:
 
The values I use are:
 
+
<pre>
<br />
 
  
 
  " Steve Pieper's VIM preferences
 
  " Steve Pieper's VIM preferences
Line 67: Line 66:
 
  map <C-Left> :tp
 
  map <C-Left> :tp
  
<br />
+
</pre>
  
 
== cygwin ==
 
== cygwin ==

Revision as of 14:57, 7 April 2009

Steve Pieper of Isomics, Inc., is the Core PI for NAMIC Dissemination and Site PI for the BWH activities in the Engineering Core.

Email: pieper at bwh.harvard.edu

Information about my Ph.D. thesis research is at http://www.isomics.com/caps.

Handy Links

Pieper Home Page on slicer.org

Slicer3:EC2

http://pieper.wikispaces.com/

vim settings

Get to them on windows with

:e $VIM/_vimrc
 

or on unix with

:e ~/.vimrc

The values I use are:


 " Steve Pieper's VIM preferences
 
 set nocompatible
 source $VIMRUNTIME/vimrc_example.vim
 source $VIMRUNTIME/mswin.vim
 "behave mswin
 "
 behave xterm
 
 set wildmode=longest,list
 
 set clipboard=unnamed
 
 set softtabstop=2
 set expandtab
 set tabstop=2
 set shiftwidth=2
 set autoindent
 set showmatch
 set laststatus=2


 " search for files recursively relative to parent directory (for 'gf')
 set path=../**


 set matchpairs+=<:> " To match arguments of templates
 set cinoptions={1s,:0,l1,g0,c0,(0,(s,m1 " ITK/VTK style indenting
 
 set vb
 syntax on
 
 " cycle through buffers with control page up/down
 map <C-PageDown> :bn
 map <C-PageUp> :bp
 " delete current buffer with control delete
 map <C-Del> :bd
 
 " cycle through tags with control right/left
 map <C-Right> :tn
 map <C-Left> :tp

cygwin

My windows c:/cygwin/cygwin.bat (launched by the shortcut). Requires rxvt and tcsh for cygwin. This is better for me because rxvt uses X-style cut and paste (middle mouse to paste) and tcsh can file complete with the drive letter (e.g. c:/Pro<Tab> --> c:/Program\ Files/ which bash won't do).

@echo off

C:
chdir C:\cygwin\bin

set CYGWIN=binmode tty ntsec

rxvt -e /bin/tcsh -l

REM bash --login -i


tcsh aliases

Simple aliases for controlling the title bar of an xterm (or compatible terminal emulator) to keep track of where you are:

alias xt 'echo -n "\033]0;\!*\007"'
alias cd 'xt \!*; chdir \!*'
alias ssh 'xt \!*; \ssh \!*; xt `hostname`'

Benchmarks

Slicer:benchmarks

Launching visual studio for slicer3 debugging

The you need to have the library paths set up correctly or the debugger won't find the dlls. In the Slicer3-build directory made by getbuildtest.tcl:

./Slicer3.exe --launch c:/Program\ Files/Microsoft\ Visual\ Studio\ 8/Common7/IDE/devenv.exe --detach Slicer3.sln

or, for the free Visual Studio Express 2005:

 ./Slicer3.exe --launch c:/Program\ Files/Microsoft\ Visual\ Studio\ 8/Common7/IDE/VCExpress.exe --detach Slicer3.sln

or, for the free Visual Studio Express 2008:

 ./Slicer3.exe --launch c:/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/VCExpress.exe --detach Slicer3.sln

For 64 bit windows 2005:

./Slicer3.exe --launch "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe" --detach Slicer3.sln

Then go to the Slicer3-real project and right click on it and select Set As Startup Project from the menu. Then you can use F5 to compile and start the debugger.

Wiki backup

A quick and dirty way of backing up the wiki:

wget -r http://wiki.na-mic.org

as of January 2007, this results in 3.3G. This doesn't preserve the full history or wiki markup, but it's an easy way to get piece of mind.

Format Test

A page testing format options.

Pages with nice wiki formatting:

Short Hacks

User:Pieper:differ

Web Services Links

http://www.xfront.com/REST-Web-Services.html

http://wiki.opengarden.org/REST/REST_for_the_Rest_of_Us

Python windows build notes

  • Upgrade solution files
../../../Slicer3-build/Slicer3 --launch ../../python-build/PCbuild/python.exe setup.py --verbose install
mt -manifest mtrand.pyd.manifest "-outputresource:mtrand.pyd;2"