Xu Cui

 

   



544 Stories by Xu Cui

Limits in Adobe AIR and sqlite

int in Adobe AIR takes value -2,147,483,648 (-2^31) to 2,147,483,647 (2^31-1). integer (primary key) in sqlite takes value -9,223,372,036,854,775,808 (-2^63) to 9,223,372,036,854,775,807 (2^63-1). (source)
0 4 sec read

Learning Employee Directory Series

Employee Directory is an AIR sample application from which I learned a lot. (try it) Here I post some of what I learned here. 1. introduction 2. structure 2.1 singleton 2.2 command 2.3 Cairngorm 3. ui 3.1 style 3.2 size 3.3 component 4. flow 5 events
10 10 sec read

The HTML Coded Character Set

When writing html, I frequently find I need to use the code for some characters. Here is the table http://www.w3.org/MarkUp/html-spec/html-spec_13.html
0 5 sec read

recon-all of freesurfer

recon-all is a batch program and runs >30 steps.  It easily takes 30 hours to finish one subject. Use tkmedit CON14 T1.mgz and tksurfer CON14 lh inflated to visualize images. More about visualization with freesurfer. Note: commands are in green. T
3 10 min read

Adobe AIR error 303

You may get a 303 error when trying to use custom icons in your AIR application (even when your icon files are in the right place). Solution: Assume you are using Flex Builder. First move your icon files out of your source directory (e.g. move to Des
3 19 sec read

blackScreen, a program reminding you to relax

blackScreen has a simple function: it makes your computer screen black every 30 min (changable) so you can walk around and relax your eyes. To install, go to Adobe AIR marketplace and click INSTALL NOW. Or, you can follow the steps below: Download an
4 22 sec read

Lucas Center tips

Hardware settings In the “Projector source” panel, click “eprime” button to select Eprime as source. Always turn the knob to “SRBox” instead of “USBox”. Transfering data: You use gFTP to transfer data f
0 21 sec read

Trigger scanner script: E-Prime and MatLab

E-Prime This piece of code is used in Lucas Center scanner #2 at Stanford University. SRBOX.Lamps "4" Sleep(100) SRBOX.Lamps "" Set SumACC = New Summation You also need to declare SumACC in user script Dim SumACC = As Summation Ma
0 1 min read

来测测你是否近视

link http://cvcl.mit.edu/hybrid_gallery/monroe_einstein.html
0 2 sec read