Strange Symphonies Don’t worry, be happy

Related tags

26Feb/102

MacPorts lame: output buffer too small

I've run into a small problem working with MacPorts ffmpeg port.

Trying to convert a file I get the error:

lame: output buffer too small

Now this isn't a problem with ffmpeg, but more specifically the MacPorts lame port.

As of today, the latest version of lame in MacPorts is v3.98.2. I needed to easily rollback to a previous version of lame, one which worked.

I scoured the MacPorts for the previous version of the lame Portfile. I found one for lame v3.98.0, and decided to give it a try.

Installing Older Port

Inside the command line I had to enter the following:

svn checkout -r 39480 http://svn.macports.org/repository/macports/trunk/dports/audio/lame

This would checkout the revision of lame I wanted. I entered the directory and executed:

cd lame
sudo port install

After installation, I gave it a try and everything worked!

Prevent lame From Being Upgraded

Now if you generally update your MacPorts via port upgrade outdated or port -u upgrade, you'll have to becareful.

Running those two commands will upgrade your lame to the current revision, which may break your setup again.

Instead you are required to upgrade your MacPorts like so:

sudo port upgrade outdated and not lame

There you have it! Hope you enjoy your lame!

7Dec/090

FreeMind Now Native on Apple Mac OS X 10.6 Snow Leopard

FreeMind

Previously I discussed how FreeMind didn't work on Apple's latest Mac OS X 10.6 Snow Leopard, due to requiring Apple Rosetta and a temporary work around for it.

But don't worry, no work around is required any more! As of this writing, FreeMind v0.9.0 Release Candidate 6 now runs fine on Apple Mac OS X 10.6 Snow Leopard. Go download the latest FreeMind.

The best part is, it loads a hell lot faster. Looks like there is a new splash screen and logo.

FreeMind

20Sep/0911

FreeMind on Apple Mac OS X 10.6 Snow Leopard

Update: FreeMind has been updated to work out of the box on Apple Mac OS X 10.6 Snow Leopard

FreeMind

FreeMind is a mind mapping tool to help you structure your ideas. The best part about it is that its both Free and Open Source Software (FOSS), and cross platform as it runs on Java.

With a default upgrade to Apple Mac OS X 10.6 Snow Leopard, and loading FreeMind you are asked to install Rosetta.

To open JavaApplicationStub, you need to install Rosetta. Would you like to install it now?

Now, I don't want to install Rosetta as I wanted to eliminate all legacy PowerPC code on my machine, and let my machine run as best as it possibly could. Even upgrading to the latest unstable release of FreeMind (v0.9.0 Release Candidate 4 at this time of writing) doesn't help.

Doing a bit of googling, I found a result on how to remedy this issues. Unlucky for me, the site was in Japanese, but thanks to the help of Google, we were able to translate the article.

Explanation

Executing a file inside the FreeMind application on the JavaApplicationStub will show us the problem. Assuming that FreeMind is in the /Application directory, open the Terminal and execute:

file /Applications/FreeMind.app/Contents/MacOS/JavaApplicationStub

Results:

/Applications/FreeMind.app/Contents/MacOS/JavaApplicationStub: Mach-O executable

You'll see that the JavaApplicationStub is a Mach-O executable. FreeMind packaged their application without the x86 executables.

Lucky for us, we can find a substitute on the computer. Execute:

file /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub

Results:

/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub: Mach-O universal binary with 3 architectures
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub (for architecture x86_64):	Mach-O 64-bit executable x86_64
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub (for architecture i386):	Mach-O executable i386
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub (for architecture ppc7400):	Mach-O executable ppc

You will notice that it has all the architectures.

Solution

Inside the terminal execute:

cp \
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub \
/Applications/FreeMind.app/Contents/MacOS/JavaApplicationStub

Now open up FreeMind, and enjoy the Mind Mapping. It'll take a while to load, but it works just fine.
FreeMind

Update: FreeMind has been updated to out of the box on Apple Mac OS X 10.6 Snow Leopard