Michael Cordell's Blog

Technical tips for running a neuroscience (fMRI GLM) experiment

Having worked on a neuroscience experiment for the last 1.5 years I have learned a great deal along the way. I offer this post as what I would do if I were starting from scratch. I’m focused on the technical details rather than neuroscience aspects of experiment design. This focuses on a basic GLM with fMRI data, so …

Useful Rail Gems

Below are a list of Gems have found to be useful as I was learning rails: Testing gem 'factory_girl_rails' FactoryGirl automates the process of model creation for the purpose of testing. gem 'launchy' Launch allows you to open a webpage in testing, good for debugging tests gem 'annotate' …

Installing Rails

Ruby rails install sudo apt-get install ruby rubygems Install rails: gem install rails Long wait and then this result: Fetching: i18n-0.6.1.gem (100%) ERROR: While executing gem ... (Errno::EACCES) Permission denied - /var/lib/gems Installing RVM per Stackoverflow answer .: curl -L https://get.rvm.io | bash -s …

Compiling Git on a Shared Host without administrator rights (sudo)

This is guide focuses on how to get git working on a server where you do not have administrative rights (e.g. a webhost). You must have ssh (shell) access and gcc must be working. On my server I lacked expat.h library. Rather than try to install this library, I merely compiled git without it. I have not noticed a usage …

Using pathogen to install .vim plugins

Using pathogen to install .vim plugins. cd {git repository directory} git submodule add {git path of plugin} {path in git repository where it will be installed} git submodule init git submodule update For example to install supertab cd ~/.dotfiles git submodule add git://github.com/ervandew/supertab.git …

Determine the source of a package

In order to determine the source of a package: apt-cache policy {package name} e.g: apt-cache policy xbmc xbmc: Installed: 2:11.0~git20120321.14feb09-0ubuntu1~ppa1~lucid Candidate: 2:11.0~git20120321.14feb09-0ubuntu1~ppa1~lucid Version table: *** 2:11.0~git20120321.14feb09-0ubuntu1~ppa1~lucid 0 500 …

Installing the Vim Plugin Command-T on Ubuntu/Linux Mint

I won’t cover aquiring the Command-T source files. I recommend the pathogen method though. In order to install Command-T on Vim, it is necessary to have vim compiled with ruby. This is easily accomplished by installing vim-nox. sudo apt-get install vim-nox After installing vim you can try to make the extension by …

Debt

Debt is not a book whose message can be boiled down to a few bullet points. It is a lengthy study of the power of debt, and how it shapes human society. As the author states in the introductory chapter, “This book is a history of debt, then but it also uses that history as a way to ask fundamental questions about …

My Setup

Main Work Computer/Hackintosh My day to day computer is a desktop hackintosh that I built in early 2010. For the most part I find it to be rock solid and a great alternative to pricey Apple hardware. List of components GA-P67-UD3-B3 BIOS Revision: F9 i7-2600k Gigabyte ATI Radeon 5770 Crucial C300 128gb SSD Corsair …

Setting up AFP for OSX 10.8.2 <---> Ubuntu 11.10

Purpose Set up Netatalk to use afp between my Mountain Lion desktop and my Ubuntu file server. Relevant Details Hackintosh OSX desktop running 10.8.2 Ubuntu Server running Ubuntu 11.10 Oneric Process All of this is on the Ubuntu File server. Setting up the afp Mountain Lion client is trivial. Simply connect to server …

Pages