Category Archives: Operating System

iTunes Cover Art without iTunesaccount on Intel Macs

If for some reason you don’t want to
use your iTunes account to fetch cover art for your music
collection, maybe this is for you.
fetchart
Aric Friesen has written an iTunes script called Fetch Art to fetch cover art for your songs from
Amazon.
Unfortunately it will only work on powerpc Macs, as it uses some
compiled perl modules which are not yet universal/intel.
Although the author stated that he is willing to build an universal
application if he would get donations (which according to some
guestbook entries, he already received), there is still no updated
application for intel Macs available, and the application will
crash, when it comes to downloading the cover art.”holy me”

Now don’t panic….
…so what we need to do is to call the perl module in Rosetta
mode.

What calls the perl module ?
– Perl.

Lets check perl:
kobaans-computer: kobaan$
which perl
/usr/bin/perl

kobaans-computer: kobaan$ file /usr/bin/perl
/usr/bin/perl: Mach-O universal binary with 2 architectures
/usr/bin/perl (for architecture i386): Mach-O executable i386
/usr/bin/perl (for architecture ppc): Mach-O executable
ppc

So, perl, is actually a universal binary, that means an intel
platform Mac will call the intel code natively.
Let’s correct this for the runtime of Fetch Art.

FIRST: make a backup of your original perl binary
kobaans-computer: kobaan$
sudo cp /usr/bin/perl /Users/kobaan/perl

SECOND: strip the intel code from the perl binary
kobaans-computer: kobaan$
sudo lipo -remove i386 /usr/bin/perl -o
/Users/kobaan/perl-ppc

THIRD: copy the stripped ppc-only binary of perl over the original
“location” of perl
kobaans-computer: kobaan$
sudo cp /Users/kobaan/perl-ppc /usr/bin/perl

What have we done:
kobaans-computer: kobaan$
file /usr/bin/perl
/usr/bin/perl: Mach-O universal binary with 1 architecture
/usr/bin/perl (for architecture ppc): Mach-O executable
ppc

What will happen if we call the Fetch Art script from within iTunes now….
… select your files, (choose your amazon store in preferences), and fetch the cover
art,
WOOOO its working using Rosetta, not fast, but working.

NOW, THE IMPORTANT LAST THING TO DO !!!
After using the script for your collection, quit Fetch Art, and copy back your original “universal” perl
binary.
kobaans-computer: kobaan$
sudo cp /Users/kobaan/perl /usr/bin/perl

Done . Everything back to normal.

Save your donations,
Kobaan.

Switching browser defaultapplications on Mac

Since I had to search a bit hard on
this one, you might be interested in HOW TO CHANGE A DEFAULT
APPLICATION that is called when you open a file within your
browser.I just wanted to click on a link, that proofed to be a
mms-video-stream, to open in my favorite video player VLC, instead it ended up
opening in the rosetta-translated ages old windows media player for
mac. That was simply a no go.

“was”

Searching through various preferences in Mac OS and its
applications, even within Firefox as
it is done on Windows…
…I found this entry (already fixed):

kobaans-computer:~ kobaan$
defaults find mms

Found 1 keys in domain ‘com.apple.LaunchServices’: {
LSHandlers = (
{LSHandlerRoleAll = “org.videolan.vlc”; LSHandlerURLScheme = mms;
}

Since modifying plist files can be tricky for some people (not
using developer tools, or being familiar with “vi” and/or
“defaults” class syntax) I found that great application (actually a
preferences panel) called RCDefaultApp, which can be used to change and inspect
almost every file/mime/uri/… handling on Mac OS easily.

Enjoy.
Kobaan.

Mac Mail application speedup,cleanup

For those of you experiencing
slowdowns on Mac OS’s Mail application over some time, this might
be a cheap trick for you to get back speed and disk-space.
Mail, is keeping track of mail message subjects in a database, to
quickly scan, search and organize threading in your
mailboxes.The good thing is: once you delete a mail, it is also gets deleted
in the database…
The bad thing is: a database needs to be maintained, and this is
not done automatically…

What does this mean now….
…your database deletes items by reference, but it does not free
up the allocated disk-space, thus blowing up your overall database
size which leads to longer access times as more (empty) data needs
to be parsed through.

The solution:

While your Mail application is NOT running…
…use a terminal and go into “cd ~/Library/Mail”…
…open the database with: “sqlite3 Envelope Index”…
…and free up the already deleted database disk-space using:
“vacuum subjects;”…
…et voila, quit sqlite3 and you’re done.

Mail will be quite fast again, and your disk capacity should show a
few more free blocks.

Mac – Eve of destruction

So less bytes and so deadly:
maceve
524946464407030057415645666D7420
1000000001000100007D000000000000
000000006461746120070300

I’m starting to get angry now, as I filed in this bug 1 year ago,
and there’s still no fix for such a trivial bug.
Also I filed it in as a security issue since you can crash every
Mac from remote with these little numbers, but Apple degraded it to
be cosmetic only as it is not possible to alter or execute
code.
I guess they’re not anymore interested in fixing Tiger, as the
Leopard is waiting for its victims…..

Hint: Check for zero values before dividing…..

Good news, it works. Bad news, it works.

Bad awakening for Mac users, Apple
fixed a bug.
andy-scared
It took almost 2 years for Apple to release a security fix so that
it’s not anymore possible to hijack the builtin or even the
external USB camera from within a webpage.
At least everyone believed that this issue has been fixed in the
security update 2006-008, and people became already sad about
missing the feature to preview realtime effects on local video like
on this page: (only works for Mac people.)

But there’s also good news. It still works.

Oh wait, or is it bad news ?

Anyway the good news is, that the bad news of a killed feature is
not true, and that the security fix works, as your realtime video
cannot be sent via ajax/javascript or a java applet to someone you
don’t even know by just accessing someone’s evil website.

How do we check that ?
Apple doesn’t say anything about it.

So the real good news is, enjoy the feature as long as you’re not
sitting naked in front of your mac. Winking

Oh, uhh, aehh did I mention the bad news is, we don’t know if its
really fixed, or apple became so much interested in your homevideos
that they patched something in your system to get much sharper
pictures of you than anyone else does. Winking

Beryl, a fork of compiz 3D desktop for Linux

Yeah, me again, and again 3D desktops,
I’m sure you’ll ask yourself where’s the difference between compiz
and beryl.See it this way, what options do you have if you want to check
something on your desktop or another window, if a window is already
placed on top of it.Sure, you can minimize the window, move the window or even close
it. You may use taskwitching, window transparency might work as
well.
But how about, just taking a quick look behind a window border or
corner, like what you would do if it’s just a piece of paper. Watch
this:

Beryl is a fork of the compiz 3D
desktop composition manger for Linux.

Beryl, a fork of compiz 3D desktop for Linux

Yeah, me again, and again 3D desktops,
I’m sure you’ll ask yourself where’s the difference between compiz
and beryl.See it this way, what options do you have if you want to check
something on your desktop or another window, if a window is already
placed on top of it.

Sure, you can minimize the window, move the window or even close
it. You may use taskwitching, window transparency might work as
well.
But how about, just taking a quick look behind a window border or
corner, like what you would do if it’s just a piece of paper. Watch
this:

Beryl is a fork of the compiz 3D
desktop composition manger for Linux.

Beryl, a fork of compiz 3D desktop for Linux

Yeah, me again, and again 3D desktops,
I’m sure you’ll ask yourself where’s the difference between compiz
and beryl.

See it this way, what options do you have if you want to check
something on your desktop or another window, if a window is already
placed on top of it.

Sure, you can minimize the window, move the window or even close
it. You may use taskwitching, window transparency might work as
well.
But how about, just taking a quick look behind a window border or
corner, like what you would do if it’s just a piece of paper. Watch
this:

Beryl is a fork of the compiz 3D
desktop composition manger for Linux.