Tips for

Contact me: dhalperi@cs

Back to Daniel Halperin's webpage.

MATLAB

Increasing Datatip Precision

By default, MATLAB only displays four digits of precision when using the Datatip tool in plots. This can be really irritating when you're trying to get an exact spot in a large file:

You can load an alternate datatip file every time you open a plot, or you can export the cursor data and then access the coordinates of that point inside the object in the command window, but I really wanted another way.

So I found the default datatip file and modified it myself.

This file has two lines of text reading:

I changed the 4's to 8's.

Subversion

Creating and using patches with SVN

SVN doesn't recognize my PDF/PS files as binary

For individual files, SVN will treat them as binary files if you mark their mime-type as application:

svn propset svn:mime-type application/pdf my.pdf

Or, you can set options for all files of a certain extension by editing ~/.subversion/config:

 [miscellany]
 enable-auto-props = yes                # enables SVN's automatic labelling
 [auto-props]
 *.pdf = svn:mime-type=application/pdf
 *.ps = svn:mime-type=application/ps

Preparing conference papers with latex/dvips/ps2pdf/pdflatex

ACM/IEEE camera ready process

OmniGraffle