Useful Packages in the Preemble

...

December 5, 2012 · 6 min

Read and Write CSV Files with Matlab with Headers

This is a follow up post of a previous one just using Matlab instead of Python. In the following paragraphs, I will show my way of reading and writing CSV files using Matlab. If you happen to know a better or more elegant solution, please drop a comment! Reading CSV Files with Matlab The following Matlab function reads a CSV file with the header as a string vector and the data as numeric matrix. Note that non-numerical data returns NaN. ...

November 9, 2012 · 3 min

Push GIT branch to upstream

...

November 7, 2012 · 1 min

Read and Write CSV files with Python

Since CSV (comma-separated-values) files are supported by almost every statistics and/or math tool, I sticked to use the format for all my data collections. If you need further evidence, check out the (incomplete) list of natively CSV supporting applications: Gnu/R KNIME MS Excel LibreOffice Calc … Apart from those, a major benefit of CSV files is that you can edit them with any editor, as they are plain text files. Unfortunately, some applications have poor support for such files, e.g. Matlab and Python. Fortunately, as the file structure is so easy, you can add CSV support pretty easily. In the following I will show you my solution for Python. ...

November 7, 2012 · 2 min

Creating a bootable USB Stick on Mac OS X from an ISO Image

This is actually just a copy of an article from ubuntu.com, but they tend to move things around and I like to have short search times. Apart from that, this works for FreeBSD and even for Windows (tested with Windows 7) as well. Sorry for this this blatant plagiarism, but it might be also to your advantage ;) One more note: If you want to create a bootable USB stick to be used on a Mac/OS X, do not forget to format the stick with Disk Utility to HFS+ with a GUID partition table. ...

September 26, 2012 · 2 min

Git set upstream/tracking branch

...

September 26, 2012 · 1 min

Brew install R fails - Updated right away

I just cleaned up my home brew cellar and had problems reinstalling R. I got the old well-known error message: brew install r ==> Downloading http://cran.r-project.org/src/base/R-2/R-2.15.1.tar.gz Already downloaded: /Library/Caches/Homebrew/r-2.15.1.tar.gz Error: This formula requires a fortran compiler,... Reinstalling gfortran (which was actually installed already) did not help and so I decided to trick home brew until the problem is fixed, with the following: export FC=`which gfortran` brew install r Surprise surprise, it worked! :] ...

September 25, 2012 · 1 min

Octave Debugging

...

September 25, 2012 · 1 min

Referring to Git Remote Repositories

...

September 19, 2012 · 1 min

R tikzDevice Package Moved to Archive on CRAN

...

September 12, 2012 · 1 min