Setting up JRI with Eclipse on Mac OS X

November 26th, 2012 by Stefan Strohmeier No comments »

Dear all,

I had some difficulties in setting up the Java + R interface on my mac. At first, it didn’t find the jri library, then I had an error that the R_HOME variable was not set. Then, the program parameters were not set properly. This is how I got the whole thing working:

1. I copied the file libjri.jnilib to the folder /Library/Java/Extensions. The file can be found under /Library/Frameworks/R.framework/Versions/2.15/Resources/library/rJava/jri

2. I exported the R_HOME such: export R_HOME=”/Library/Frameworks/R.framework/Versions/2.15/Resources”

3. Under Eclipse I set  -> Run as -> Environment -> Variable R_HOME to /Library/Frameworks/R.framework/Versions/2.15/Resources

4. I set in Eclipse the -> Run as -> Arguments -> Program arguments to –no-save

Let me know if this helps you as well. Any feedback is greatly appreciated

Over and out! Stefan

iOS Demo App: Basic Interactions with Buttons and Progress Bar

April 16th, 2012 by Stefan Strohmeier No comments »

Hey Folks,

I have created a simple iOS application with buttons and a progress bar (see image below). If you are interested in the code please send me an email (st(dot)strohmeier(at) and I will send you the source code.

Cheers, Stefan

My Demo App

Rot 13 encryption using python!

March 23rd, 2012 by Stefan Strohmeier No comments »

Dear Folks,

somewhere deep down the internet I found a little bit of code to encrypt a string with rot 13 conversion. I augmented the script such that it can take a string from a file and encrypt it. So far, it only works for lowercase letters. One day, there might be a version that also works for uppercase letters. The string you want to encrypt is in the file “Text.txt”. So, here it is (unfortunately, the indentation got broken, so you have to figure out the python indention on your own):

import string

def make_rot_n(n):
lc = string.lowercase
trans = string.maketrans(lc, lc[n:] + lc[:n])
return lambda s: string.translate(s, trans)

rot13 = make_rot_n(13)

f = open ('Text.txt', 'r')
Data = f.readline()


How to install a new LaTeX package in Mac OS X?

February 4th, 2012 by Stefan Strohmeier 1 comment »

Hey folks,

I wanted to use the picins-package in a LaTeX document. There are two ways to get to use a new LaTeX package. One way is to download and copy the LaTeX package to the folder in which your LaTeX document is in. The latex/pdflatex will find the package in your documents folder automatically. The other way is to install the package permanently such that it can be used by other documents folder as well. The procedure on Mac OS X (10.6.8) is as follows:

1. copy the *.sty file or the whole package to: /usr/local/texlive/2010/texmf-dist/tex/latex/base/ (you must be root or use sudo to copy it)
2. use the “sudo texhash” command to make the new package available

CORRECTION THANKS TO D.W.: Local packages should go into the user TeXmf tree, which is by default ~/Library/texmf (see also the MacTeX-FAQ QM.04: Where do I put my personal additions to the texmf tree?

That’s it. Short and painless. Now you can use the package with every LaTeX file you want to compile


How to change the page numbers of a scrlttr2 letter using the lastpage package

February 3rd, 2012 by Stefan Strohmeier No comments »

Hey folks,

I was trying to change the footer of a scrlttr2 letter such that it included the no. of the last page. The following code did the trick:


% \setheadsepline{0.1mm}
% \headheight=2cm
% \ihead{\fbox{\parbox{5cm}{Logo 1\\[2em]}}\\Text}
% \ohead{\fbox{\parbox{6cm}{Logo 2\\[2em]}}\\Text}
% \ifoot{\today}
\ofoot{Seite \thepage\ von \pageref{LastPage}}

Hope to hear from you soon, Stefan

A GUI for managing git and mercurial!

January 25th, 2012 by Stefan Strohmeier 2 comments »

Hey folks,

it has been quite a while since my last post. Today I was working on some code for an iPhone application and the other developers use git to maintain the code. The command line version of git is a bit tricky: it is not too intuitive to switch between branches. Luckily, a friend mentioned the GUI sourcetree ( which deals with git by means of a nice graphical interface. I thought this is worth sharing. So, go to the website and check it out.

Enjoy, Stefan

Save time and key strokes while surfing the net with firefox: search it up! add-on

April 10th, 2011 by Stefan Strohmeier No comments »

Dear all,

there is a great add-on for firefox that saves you time and keystrokes while you are surfing the internet with firefox and you want to look something up in google or open a website. The add-on is called “search it up”. With “search it up” you can choose a keystroke, the default is “strg-q” to look something up very fast. The words you search for are opened in a new browser tab. If you highlight a website link the add-on will open a new tab with the specific website in a new tab.
I recommend using this add-on to save some time and keystroke.

That is it. Enjoy and save some more time by being efficient.


How to track the latest research article in your field?

March 19th, 2011 by Stefan Strohmeier No comments »

Dear Reader,

in this post I will show you two tricks to track the newest and most important research articles in your field. As I said there are two good options I know of. If you know another good option I am happy to hear about it.

Option 1:
Use a News- or Feed Reader software of your liking. You can also use the free option that is delivered by google, the google reader. Then you try to find the news feed of your favourite journal. I have currently two journals under supervision. Journal 1 is “Global Change Biology”, journal 2 is “Biogeochemistry”.

Option 2:
Use the function “citation alert” from the “Web of Science” website by Thompson Reuter. Look for a highly cited paper und put this one under “citation alert”. Every time this article is referenced you get an email. I like this function very much.

That is it. I am happy to hear from you and to get some feedback.

Guide to disable Spotlight

January 9th, 2011 by Stefan Strohmeier No comments »

After the installation of the new SSD I wanted to try out if disabling spotlight gives some performance boost. Some say it will make your solid state drive last longer. I am not sure. However, I disabled spotlight according to the guide here:

I don’t use spotlight so it might be ok. Perhaps some other applications might use it to do some searching. If I encounter any strange behaviour I will enable it again.


Installing the Vertex 2 extended SSD on the white Macbook

January 5th, 2011 by Stefan Strohmeier No comments »

I just bought a 60GB solid state disk. I went for the model Vertex 2 from OCZ. In the following I will explain what I did to install it, configure it and how it is running now. I will also try to write down which and how I installed the beloved software.

Hardware Installation:
1) open the battery case
2) open the three screws and remove the hidge
3) take the white plastic strap and pull out the old hard drive
4) put the thin case from the old disk onto the new one
I basically followed the instructions here with additionally mouting the hard disk slider from the old to the new hard drive:

Software Installation:
1) I made a clean reinstall, first formatting the ssd with the journaled file system

I got the hints from here (it is in german that’s why I will translate some of it):

More will followw