Difference between revisions of "User:Pieper"

From NAMIC Wiki
Jump to: navigation, search
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Steve Pieper of Isomics, Inc., is the Core PI for NAMIC Dissemination and Site PI for the BWH activities in the Engineering Core.<br /><br /> Email: pieper at bwh.harvard.edu<br />
+
Steve Pieper of [http://www.isomics.com Isomics, Inc.], is the Core PI for NAMIC Dissemination and Site PI for the BWH activities in the Engineering Core.<br /><br /> Email: pieper at bwh.harvard.edu<br />
 +
 
 +
Information about my Ph.D. thesis research is at [http://www.isomics.com/caps http://www.isomics.com/caps].
 +
 
 +
== Handy Links ==
 +
 
 +
[http://www.slicer.org/slicerWiki/index.php/User:Pieper Pieper Home Page on slicer.org]
 +
 
 +
[http://www.slicer.org/slicerWiki/index.php/Slicer3:EC2 Slicer3:EC2]
 +
 
 +
http://pieper.wikispaces.com/
  
 
== vim settings ==
 
== vim settings ==
Line 10: Line 20:
 
or on unix with
 
or on unix with
 
  :e ~/.vimrc
 
  :e ~/.vimrc
Z
+
 
 
The values I use are:
 
The values I use are:
 +
<pre>
 +
 +
" 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
 +
 +
set matchpairs+=<:> " To match arguments of templates
 +
set cinoptions={1s,:0,l1,g0,c0,(0,(s,m1 " ITK/VTK style indenting
  
<br />
+
set vb
 +
syntax on
  
" Steve Pieper's VIM preferences
+
" cycle through buffers with control page up/down
+
map <C-PageDown> :bn
set nocompatible
+
map <C-PageUp> :bp
source $VIMRUNTIME/vimrc_example.vim
+
" delete current buffer with control delete
source $VIMRUNTIME/mswin.vim
+
map <C-Del> :bd
"behave mswin
+
 
"
+
" cycle through tags with control right/left
behave xterm
+
map <C-Right> :tn
+
map <C-Left> :tp
set wildmode=longest,list
 
 
set clipboard=unnamed
 
 
set softtabstop=2
 
set expandtab
 
set tabstop=2
 
set shiftwidth=2
 
set autoindent
 
 
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
 
  
<br />
+
</pre>
  
 
== cygwin ==
 
== cygwin ==
  
My windows 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).
+
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).
 
+
<pre>
 
  @echo off
 
  @echo off
 
   
 
   
Line 61: Line 72:
 
  chdir C:\cygwin\bin
 
  chdir C:\cygwin\bin
 
   
 
   
set CYGWIN=binmode tty ntsec
+
  rxvt -fn courier -e /bin/bash --login -i
+
</pre>
  rxvt -e /bin/tcsh -l
+
 
+
== tcsh aliases ==
REM bash --login -i
+
 
 +
Simple aliases for controlling the title bar of an xterm (or compatible terminal emulator) to keep track of where you are:
  
<br />
+
alias xt 'echo -n "\033]0;\!*\007"'
 +
alias cd 'xt \!*; chdir \!*'
 +
alias ssh 'xt \!*; \ssh \!*; xt `hostname`'
  
 
== Benchmarks ==
 
== Benchmarks ==
  
[[Slicer:benchmarks|Slicer:benchmarks]]
+
[http://www.slicer.org/slicerWiki/index.php/Slicer: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 ==
 
== Wiki backup ==
Line 89: Line 121:
 
* http://wiki.cgsociety.org
 
* http://wiki.cgsociety.org
 
* http://www.linux-foundation.org
 
* http://www.linux-foundation.org
 +
 +
== 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"

Latest revision as of 21:32, 7 October 2010

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

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
 
 rxvt -fn courier -e /bin/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"