Friday, May 09, 2008

Disable Anti-Aliasing in Matlab in Mac OS X : AntiAntiAliasing

Usual disabling of font smoothing does not work for Matlab 2008a since it uses Java for the IDE. To overcome this, create a file called java.opts with the following content: -Dapple.awt.textantialiasing=off and put it under bin/maci folder under /Applications/Matlab directory. Now editor and command line should be aliased, even though some parts of the GUI stay the same. Also, under Leopard, slow IDE performance is solved by appending this line in java.opts in a separate line: -Dapple.awt.graphics.UseQuartz=true Note that these should be on separate lines and no space should be between the options. You can check whether this works by the command: java.lang.System.getProperty('apple.awt.graphics.UseQuartz')

Matlab in Aquamacs under OS X 10.5

One can use Matlab without the IDE, under emacs. You need to set the value of matlab-shell-command-switches to '("-nojvm -nosplash") , and in .bash_profile; append export DISPLAY=localhost:0.0

Friday, May 02, 2008

alltop

alltop : a nice content aggregator on various topics

pbcopy : Copy from Terminal Output to Clipboard

OS X has a nice command called pbcopy which lets you to copy terminal output to the clipboard. Through command line redirection, you pipe the output to pbcopy. E.g.: make &> | pbcopy

Multiple Music Libraries in itunes

I keep some of my music on an external disk, however when the disk is not plugged, itunes cannot find the files and stops playback. One fix for this is to have multiple itunes libraries : one for both the files in the internal and external disks; and another for files only in the internal disk. To create and select which library itunes will use, hold down Option in Mac (Shift in Windows) when opening itunes. It will ask you which library to use; and whether you want to create another library. Typically, your current library resides in the "itunes" folder in your "Music" directory; another directory will be created inside the "Music" directory. I have named my libraries "ExternalInternal" and "Internal"; and when it asks you which library to use, typing the first few letters will take you to the matching folder; so that you don't have to scroll down to find them. There's also an app called Libra which takes care of this issue, though I haven't tried it yet. I assume it was useful when this feature was not implemented yet in itunes, i.e. pre itunes 7.