Category: Blog

  • Decode Rolling Code 433Mhz Signals with Arduino

    I’m posting this here because of my frustration in interpreting signals from a 433Mhz rolling code garage door opener based on the HCS301 chip with Arduino. To start with, I’d like to say that I don’t think it’s actually possible to decode the encrypted part of the transmission. But the 66 bit payload transmitted by…

  • Formatting external drives for Mac and Windows

    Formatting external drives (flash drives and external HD) for use in Mac and Windows environment can be quite confusing. Here is some info I put together: NTFS Windows (XP+): read/write Mac: read* Note: There is an option to activate writing to NTFS partitions in Mac, but it’s not stable and can corrupt files. FAT32 Windows (XP+):…

  • Scheduling automatic Google Sheets changes

    I have a weekly schedule for our rotations at the hospital in Google Sheets. It usually contains the schedule for the next two months. The problem was that one always had always to search for the current week… So I thought there should be a way to automatically hide past weeks from the sheet. In fact, this…

  • Matlab and Freesurfer

    Some functions of Freesurfer 5.3.0 (like computing the local Gyrification Index) require integration with Matlab. In order to do this, the following code has to be in matlab’s startup.m file: %———— FreeSurfer —————————–% fshome = getenv(‘FREESURFER_HOME’); fsmatlab = sprintf(‘%s/matlab’,fshome); if (exist(fsmatlab) == 7) path(path,fsmatlab); end clear fshome fsmatlab; %—————————————————–% Also, if you are getting “ERROR: Matlab is…

  • Running FreeSurfer in batch mode

    Here is a quick way to run FS for each MRI image as a Nifti file in a folder. Start by creating a new text file in the terminal (eg vi run.sh). Put in the following code: for file in * do recon-all -i $file -subjid $(cut -d ‘.’ -f 1 <<< $file) recon-all -all -subjid…

  • Printing your brain in 3D

    So I’ve been doing some testing on our newly acquired CubeX 3D printer and had the idea to print a miniature of my brain. Since I served as a control for one study, I had a great T1 scan from a 3T MRI. This scan had allready been processed by FreeSurfer, so all I had…