Altering Eclipse user name

Using StatET’s code generation templates is handy, but the standard Eclipse variable for ${user} just inserts the currently logged-in user’s account name. If you want a different name to appear when ${user} is called, one method is to alter the eclipse.ini file.

Specifically, add the line
-Duser.name = Your full name
at the end of the .ini file.

For instance, my eclipse.ini file looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
–launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-Duser.name=Luke Miller

When I open a new R-script file in Eclipse now, StatET automatically inserts that user name.

You can further alter the generated code in the Eclipse Preferences window. Go to Window>Preferences and you’ll get the following window.

[caption id=”attachment_502″ align=”aligncenter” … Continue Reading

Current temperature conditions at the Marine Science Center

Updated December 2013: The seawater temperature monitoring is no longer functional since I moved away and someone turned off the computer. The data I collected for 2010, 2011, and part of 2012 are available as one csv file: 2010-2012_MSC_temps.csv  The time stamps are all in Eastern Standard Time (UTC-5, no daylight savings time) and the water and air temperatures are in degrees Celsius.

I put together a temporary monitoring system for the seawater temperature and air temperature here at Northeastern University’s Marine Science Center in Nahant, Massachusetts.

The monitoring system is was running using some homebrewed Labview code … Continue Reading

Analyzing gels and western blots with ImageJ

The following information is an updated version of a method for using ImageJ to analyze western blots from a now-deprecated older page.

If you’re looking for a more comprehensive workflow option for your western blot analyses, please visit my tutorial on using Image Studio LiteIS_lite_icon, a free software package from LI-COR Biosciences. The Image Studio Lite software can be downloaded for free from www.licor.com/islite. In addition to the functionality described below for ImageJ, Image Studio Lite provides additional … Continue Reading

Printing to pdf with MS Office 2007

For those not aware, if you have Office 2007, Microsoft makes available a free download to enable you to save files as .pdf. SaveAsPDFandXPS.exe is available on the Microsoft site. It is not necessary to buy a copy of Adobe Acrobat, or go searching for any of the many free pdf printing utilities out there, just to output your Word document as a pdf file.

Pictures from Quoddy Head, Maine

Photo gallery from the Three Seas program trip to Lubec Maine. October 2010.

A thermocouple datalogger based on the Arduino platform

Updated with new Arduino code July 8 2012.

It never hurts to collect more data, and I often find myself wanting to record temperatures from a few extra animals. Most (all?) commercial thermocouple dataloggers that will record temperatures from multiple thermocouples cost several hundred or thousands of dollars. I set out to put together a relatively cheap 8-channel thermocouple datalogger based on the open-source Arduino development platform.

My 8-channel thermocouple datalogger. A single type-T thermocouple is plugged in to one of … Continue Reading

Shooting movies with a Canon 40D

This Sourceforge project “EOS Camera Movie Record” provides the ability to record high quality movies from older Canon EOS DSLR’s that have Live View functionality, but lack a movie mode from the factory (40D, 50D, 450D etc). It requires you to be tethered to a PC to record the video via USB cable, and there’s no sound input.

The video is 1024×680 pixels, and is saved as a .avi file. The video capture¬† seems to hover around 21-22 frames per second (confirmed in Matlab + Labview), even though the EOS Camera Movie Record window may report a higher frame … Continue Reading

Modifying basic plots in R

Below is a walk-through of some of the basics of customizing plots in R. These are all based on the graphics package that comes in the base installation of R.

Let’s start by making a basic plot in R. In the code snippets below, green text behind a # sign is considered comments by R, so everything after a # sign on a line will be ignored by R. We’ll call the plot command and supply it with two vectors of numbers representing the x and y values:

plot(c(1,2,3,4,5,6),c(4,3,6,2,1,1)) #x and y data for our example plot

which produces this plot:

[caption … Continue Reading

Eclipse and StatET – a working environment for R

In the endless search to find an interface for the R statistics package that recreates the features of my favorite Matlab development environment, I finally ran across the Eclipse and StatET combination. The Eclipse project produces the program that acts as the integrated development environment (also useful for Java development, php development, perl scripting etc.). To integrate your R installation into this development environment, you use the StatET plug-in for Eclipse, available at http://www.walware.de/?page=/it/statet/. The result looks like the picture below:

[caption id=”attachment_195″ align=”aligncenter” width=”300″ caption=”The Eclipse/StatET development environment for R. There aren't normally crudely drawn … Continue Reading

Spring in the intertidal

Spring sprang sometime recently, making for nice tidepooling weather in Nahant.

Ascophyllum nodosum waiting for the tide to return.

Semibalanus balanoides sunning themselves

Recently settled Semibalanus balanoides barnacles covering Mytilus edulis mussels.

Page 10 of 11« First...7891011