All Articles

brain images: convert between different formats

For single file to single file conversion, you usually use mri_convert of freesurfer. For example mri_convert x.img y.nii Other options would be LONI Debabeler...
Xu Cui
1 min read

I support PLoS

As an author, when you publish paper, you pay to the publisher; As a reader, when you read paper, you pay to the publisher;...
Xu Cui
9 sec read

amfphp bug? Negative integer becomes big positive

In local actionscript, if you have an object like: o.x = 6; o.y = -5; Then send this object to remote server using amfphp,...
Xu Cui
7 sec read

sqlite: update id automatically in a relational table

Let’s say we have three tables: user, paper, userPaperRelation. user has columns id and username paper has column id and title userPaperRelation has columns...
Xu Cui
22 sec read

fslmerge: convert 3D ANALYZE to Nifti

/fs/quarry/cuixu/fsl/fslmerge -t f I_???.* On my computer, it doesn’t convert to .nii file; but to a single img/hdr pair. This method won’t...
Xu Cui
8 sec read

vim cheatsheet

http://www.tuxfiles.org/linuxhelp/vimcheat.html Author: Nana Långstedt < nana.langstedt at gmail.com > Working with files Vim command Action :e filename Open a new file. You can use...
Xu Cui
3 min read

LaTex support

I use jsMath to write mathematical equations in this blog. Here is an example This is inline equation (use slash parenthesis): \(\alpha+\beta\geq\gamma=\pi\) This is...
Xu Cui
32 sec read

MatLab: figure window always on top (front)

When there is keyboard input, the command window of MatLab will gain focus and all its figure windows will be hiden back. How to...
Xu Cui
9 sec read

typecast in MatLab to convert data type

We need to get real-time neural signal from Hitachi’s ETG4000. Hitachi provides a MatLab script “RealtimeOT” to get data from a parallel port and...
Xu Cui
26 sec read

code highlighter

The code highlighter used in this blog is SyntaxHighlighter Plus. It’s quite easy to set it up. (1) download and unzip to wp-content/plugins (2)...
Xu Cui
26 sec read