spotlight to find purchased music

Apple OSX

A while back people sold music with DRM. Don’t ask. It turns out that it is terribly easy to find these files:


mdfind kMDItemContentType == com.apple.protected-mpeg-4-audio

in a terminal window will list all purchased music. Apple did with Spotlight what Microsoft was known for in the 90s: Releasing a great concept. Hardly working / usable in it’s first Version, but then getting it right in the later updates. Spotlight is actually quiet useful under OS X 10.5.

OS X 10.5: me likes

Apple OSX

Installed 10.5 today. Actually 10.5.2. Needed a couple of reboots and installs. But it all seems to work rather well now. My crontab did not make it. Strange, but not the end of the world. The WWAN icon dissapeared from the menu bar. It turns out that you can add things to the menu bar by running them. They are located in:


/System/Library/CoreServices/Menu\ Extras/WWAN.menu

Other than that it has been pretty flawless. 10.5.2 seems to use less memory than than 10.4.11

The memory leak in ATSServer server seems to be gone as well. Yeah!

Overall it seems to be a very nice iteration. Somebody should put OS X 10.0,1,2,3,4 and now 5 side by side. That would be a very interesting example of design evolution. Apple did well in their upgrade concept in between major and minor releases.

My pet theory about Apple is this: Nothing major gets decided without “Steve”. Most of the mid size decissions are made based on “what would Steve say to this”.
Things that his Steve-ness is likely to use are finetuned and well honed. He probably have never a folder in the dock for instance. That “Fan mode” is simply ridicolous. Good thing it can be replaced with the “List” option now in 10.5.2. So on the good side we find: OS X, iPhone, probably Keynote (I would not know),
Safari, Finder (scrolls like butter) (<= Finder is good and bad. What S. uses works, but it's still broken elsewhere) Then there is the sad side of Apple: Unix in general (there are no tape devices. Yes, there are none. Go Figure!), OS X Server (joke, really, it is one) Pro Apps: Some are really nice, but overall there has been very little innovation. Quicktime is bubbling features on the surface, Final Cut is not bad, Motion was neat, yet pointless, Color was thrown in for free, and Final Cut Server has not been released yet. Apple should release the Pro Apps division out of their ridicolous communication strangulation and let it go on it's own rules. People need Beta versions. They want to shape the product. Millions of dollars of peoples testing and feedback get wasted right now because Apple is unable to apply different commuincation rules for consumer products like iPhones versus applications like Shake. Idiotic. Not like Apple? Well, much like Apple. There is the dark side of the Apple. That's the one that Steve's light does not shine on. He should realize that, and give those divisions the room they need to grow. Sure Apple, Inc can afford not to do that. Apple, Inc can afford many things. Some of them might be pretty stupid. Like the way the ProApps division is been treated.

OS X server 10.5 is a waste of time

Apple OSX

So I thought I’d give OS X Server another try. With 10.2 it was dismals. But things might have changed. Years have gone by. Turns out some of the horror is gone. But overall it is still a waste of time. Total waste. Serving AFP volumes. Fair enough, that works. I got a used G5 and over gigE the performance is decent.

For everthing else: Just don’t touch it. Apple has made a nice and impressive bullet list of features. And every single one I have tried to use stinks. It is as bad as Microsoft software 5 years ago. Just get any linux server do these things. Trying to configure / tweak / guess the Apple server interface is (still) an utter waste of time. It might demo ok, but anything that you like to do in real life (anymous ftp with write permissions, having a second wiki that does NOT 404, etc etc) is simply impossible. Allot of clicking to just find the feature to be broken in the end. A waste of 500 Dollars. That’s what OS X server 10.5 still is. Stay away from it. You will be much happier.

gcc_select

Apple OSX

when compiling gives this error:

/usr/bin/ld: Undefined symbols:
std::__default_alloc_template::deallocate(void*, unsigned long)
std::__default_alloc_template
::allocate(unsigned long)

then use

gcc_select 3.3

to use the proper compiler.

(this is a blog entry that I will hopefully find when I google for this problem again in six months or so)

pesky keychain password prompt

Apple OSX

After I rebooted my computer the Keychain prompted me for a password. I had seen this on other people machines before. The peskiness of this issue is rather windowesk. I am so glad that I could fix it! I got out the backup of my machine and copied the contents of ~/Library/Keychains from there. Reboot. Done, works again. Needless to say that I made a quick copy of this Keychains directory.

The problem was that none of my passwords really work. Apple recommends in those cases to delete the keychain and create a new one. Which is rather ridicolous. I have 140 items in my keychain. Of which I propably use 80, of those I maybe remember 50 the password for. It’s not a nice outlook having to enter / guess passwords 80 times in the next months. Probably exactly when I need to get something done quickly. Not getting distracted by the machine when something needs to get done is important. It’s why I choose to run a Mac.

How nice to have a backup.

OS X API Apple secretism bullshit

Apple OSX technology

For me this blog entry is very interesting in a couple of ways. Yes, it does expose that Apple has created a two class world. Other developers are welcome, as long as they add applications and functionalities. But whenever Apple feels like it, they will keep parts of the system they develop for themselves. This is extremely stupid and short sighted. It certainly got Microsoft not anywhere.

airport command line utility

Apple OSX

At


/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport

There is a very neat airport command line program. Starting it with –help will show you the possible options.
I like specially the -I option to show me the actual strenght of the signal etc in numbers. Not some bars. It also
seems to accurate more precisly what is going on. I wrote a quick perl wrapper to give me the outputs I care about
as a one line:


#!/usr/bin/perl

#airport usually is in /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources
use strict;
my $sleep = $ARGV[0] || 3;

my %trans = (
"commQuality" , "cQ",
"rawQuality" , "rQ",
"avgSignalLevel" , "sL" ,
"avgNoiseLevel" , "nL" ,
"lastTxRate" , "lR" ,
"maxRate" , "mR" ,
"Security" , "sec:"
);
while (1){
#print "x\n";
foreach my $o (`airport -I`){
#print "y $o\n";
$o =~ /\s*([^\:]+): (.*)/;
my $k = $1;
my $v = $2;
if ($trans{$k}){
print "$trans{$k} $v ";
}
#print "$k -> $v\n";
}
print "\n";
sleep ($sleep);
}

The other helpful option is the -s one: It scans all base stations it can find and displays them. Much better than the gui menu.

Moving this program in the bin folder would be a nice move by apple. Giving it a man page would even be better. But the way it is is certainly much better than nothing.

google down? Probably not

Apple OSX

With OS 10.4.11, but also before I have sometimes the funky behaviour that google appears to down: Both in Safari and fireofx the whole internet works normal, but when I do a google search both browsers show me google being down. Which is a blatant lie. In the terminal doing a


sudo killall lookupd

fixes the issues. It seems to happen when google can not be reached for reasons like an intermittend connection and and lookupd seems to give up on that name.

old computers that still work

linux M$ OSX

A new problem that is looking for solutions: Computers are worth replacing while they are still work fine.

Some solutions

Interesting is the theme that the OS is often the reason to kick it to the curb: It is outdated (OS9), just got slower and slower (windows used to do that, does it still? Luckily I have no idea) or it just filled with malware (That WOULD be a windows feature). The hardware might do some good. I am always surprised how little harddrives have been. “Back in the day”.

vmware Unexpected signal: 10

confessions of a pixel pusher OSX technology

When getting an error like ‘Unexpected signal: 10’ when launching vmware on OS X it could be that you ran a 3rd Memory Manager like iFreeMem. Quitting it did not fix the issue. I had to reboot, and then vmware was happy again. It might even be that running iFreeMem first and then VMware would work. My solution is just not to use ‘iFreeMem’ any longer. It feels snake-oilish anyway: why should a 15 dollar application do a better job in managing my memory than the OS itself? It’s one of these things that the OS should be really good at. It’s not about having ‘green’ in your pie chart.