Newsyland Blog

tail -f /dev/brain >> blog.newsyland.com

Mac OS X: Mounting FAT32 external hard drive via Terminal command line

I have a 150GB USB external hard drive (IDE/Parallel ATA disk in an enclosure) which was formatted as one partition, FAT32 in Windows XP. I wanted to extract the files off of it using my Macbook Pro running Apple Macintosh Leopard (Mac OS X 10.5.6).
However, when I plug it in, I get a dialog box [...]

How to handle deleting trash in Thunderbird when using IMAP Gmail

The Google team about a year ago added IMAP services to gmail. This is a great way to be able to manage your mail from several different places (e.g. client software at work, and web based gmail page on the road) and have everything automatically be in sync.
I’m also a big fan of the open [...]

libtiff error in Matlab when attempting to use ImageMagick

Trying to use the Imagemagick toolbox (for me, installed via MacPorts) sometimes doesn’t work (for example, converting a png image) in Matlab because Matlab for some reason uses the libraries in its path over those given in system call (this is for Mac, but probably for *nix and maybe even Windows).
This is an example call:
[s,w] = [...]

Serial Port communications on Mac via Matlab

I have a rev B (Core 2 Duo from Dec, 2006) Apple MacBook Pro laptop running Leopard OS X (version 10.5.2) and have Matlab version 7.5.0.338 (R2007b). I’ve just found that I can NOT use the built-in serial port object, instead, I get the following error:
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
??? [...]

Getting tcl via macports to compile on Leopard

With a fresh install of MacPorts version 1.6.0 on Mac OS X 10.5.2 Leopard, then issuing the command:
sudo port install tcl
returned:
/usr/local/include/mach-o/arch.h:35: error: nested redefinition of ‘enum NXByteOrder’
/usr/local/include/mach-o/arch.h:35: error: redeclaration of ‘enum NXByteOrder’
/usr/local/include/mach-o/arch.h:36: error: redeclaration of enumerator ‘NX_UnknownByteOrder’
/usr/include/architecture/byte_order.h:137: error: previous definition of ‘NX_UnknownByteOrder’ was here
/usr/local/include/mach-o/arch.h:37: error: redeclaration of enumerator ‘NX_LittleEndian’
/usr/include/architecture/byte_order.h:138: error: previous definition of [...]

Leopard Broke SMB Tunnel Mounting via Finder

In Mac OS X 10.4 Tiger, you could use Finder (GUI) to mount an SMB mount which was being tunneled through ssh
For example:

From Terminal establish the tunnel:
ssh -L 139:remote_machine:139 user@remote_machine

Then, in Finder, Go ? Connect to Server…
In “Server Address”, smb://localhost/mountpoint

However, this doesn’t work in Mac OS X 10.5 Leopard anymore!
The workaround is instead of [...]

Updated X11 for Leopard

There are a few complaints and bugs with the X11.app which shipped with Leopard Mac OS X 10.5.0. You can download and install updates from x.org which incorporate many fixes. Works great. Also, you can get Darwin 9.0 source code.

Matlab 2007b on Leopard Bug

Mathworks Matlab version 2007b in Mac OS X 10.5 Leopard has a scrolling bug where the desktop GUI is sluggish and scrolls slowly. There is a bug fix posted at the Mathworks website, bug #412219, (login required).   It’s due to a different default Java Graphics2D rendering engine used by OS X 10.5 (Sun2D), where OS [...]