Tag Archives: compile

Log output for screen

The one thing that annoys me when I use screen is that I can’t scroll up after a long output has printed. To log outputs, add the following near the top (required!) of your screenrc file ($HOME/.screenrc): # auto-log http://www.cmdln.org/2007/07/20/automatic-session-logging-and-monitoring-with-gnu-screen-for-the-paranoid/ ## search for “STRING ESCAPES” in the manpage # logfile /tmp/screen_%Y-%m-%d-%c:%s_%n.log ## not using above read more »

R from source

The following are notes for myself. I like to use the [bleeding edge](http://cran.r-project.org/doc/manuals/R-admin.html#Using-Subversion-and-rsync) version of [R](http://www.r-project.org/):

Compile R on Mac OS X

I did this before on my Macbook, but never documented. Wanted to document my attempt on the [Mac virtual machine](http://blog.nguyenvq.com/2010/12/04/mac-os-x-in-linux-via-virtualbox-as-guest-os/). 1. Install Xcode (gcc/g++) and gfortran per [this](http://r.research.att.com/tools/) site. 2. Download the [R](http://www.r-project.org/) source file (2.12 in this example), and extract it. 3. `./configure` did not work (Fortran issue). Per [this](http://r.research.att.com/building.html), [this](http://www.mail-archive.com/r-sig-mac@stat.math.ethz.ch/msg04277.html), and [this](http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Mac-OS-X), I read more »

Compiling and Cross-compiling R packages for Windows (win32)

so recently i’m learning how to compile and cross-compile R packages from source for windows machines, which means i have to create windows binaries. the first option is to build on a windows system, and the 2nd is to cross-build on an intel-based linux or mac system. i will outline my experience. Send it off read more »

record music from last.fm using shell-fm

as i mentioned before again and again, i’ve been working on to get shell-fm to record music from last.fm. originally, i was trying to get shell-fm pipe to tee to save the songs and play using madplay (or mplayer) based on this method. this worked. i just need to write scripts to post process the read more »

hacking/editing portfile (MacPorts) to compile madplay for use with shell-fm (last.fm)

so recently i compiled shell-fm, a command-line last.fm player. in order to record music with shell-fm, i can output the stream of incoming data into tee, which saves the data to a file and at the same time pipes it out to stdout, and have that piped to madplay, a command-line player. i had mplayer read more »