iTunes Consolidate Library

The iTunes menu item ‘Consolidate Library’ gathers all music & files in the library, and copies them to the library folder if they aren’t already. However, if you have multiple users with a shared library folder, to reduce space usage, and both users consolidate to a new location, iTunes will create 2 copies of each track. What I’ll need to do now is delete the second copy of each track (seems simple, since all 2nd copies end in 1, but some songs also end in a 1!), and then find a way to ’re-attach’ the missing tracks to the file they should correspond to. To delete files:

1
2
$ cd <Music Folder>
$ find . -name "* 1.m??" -newer <file of correct age> -exec rm {} \;

To reattach:

1
2
3
4
5
6
tell application "iTunes"
    --if song location is unknown then 
    --attach file according to 
    --it's track_number, title, 
    --artist and album details
end tell

Coding on Palm

I don’t write too many blog entries on my Zire (thanks to Jason, I’m not game to call it my Palm), and I just remembered why. It takes ages to enter data, and the error rate is too high. I was just trying to write a program in python (to run at home - I need to reinstall it on my Zire) and writing commas in particular is quite difficult. I might get around to buying a keyboard, or maybe just a laptop! I kind of like graffiti, but I wonder what the Palms with a keyboard are like. Using a retractable pen with the tip up is more comfy than the stylus.

Transferrence (iTunes Library Migration)

I’m putting my whole iTunes Library, and all of my iPhoto pictures, and the various movies I’ve collected onto my NSLU2. To shift the iTunes library, I just changed the library location in the Advanced Preferences, and then Consolidated the Library. I’m hoping I’ll be able to do exactly the same with Jaq’s and it won’t actually have to copy the files across, as they will already be there. It will be interesting to see how clever it is. It takes a couple of hours to transfer the many gigabytes of music I’ve encoded, so hopefully it won’t have to be completely redone. Either way, it will keep all of my ratings, and so forth. My tip for sharing songs from a library between multiple users - just point all of the iTuneses at the same location for storing the files, and make sure all of them are set up the same in terms of organising. When one person adds songs, the others just need to drag the folder/disk onto the iTunes Library icon in iTunes, and only the new files will be added. There are occasionally issues when someone changes an album or track name, but iTunes seems to cope pretty well most of the time.

NSLU2 on MacOS X

The instructions for installing an NSLU2 are designed for using a Windows box - but it’s easy enough to set it up using any OS. Just use the web server built in, and use an address of 192.168.1.77 and username/password of admin/admin. Following the NSLU2-Linux instructions on unslinging is easy too, except I didn’t know what to do after unslinging and rebooting - ie I cannot telnet back into the box! What you need to do is change the password after connecting the disk but before rebooting: # passwd [enter new password twice] # cp /etc/passwd /share/hdd/conf/passwd # ln -sf /share/hdd/conf/passwd /etc/passwd Then you need to reboot (or maybe you don’t, I did just to test the password stuck!), re-enable telnet login, and you can begin to install packages.

iTunesRater 0.1

As much as I like to bitch and moan about AppleScript, AppleScriptStudio isn’t too bad for creating simple applications. In a couple of hours, I just wrote a simple stand-alone application that monitors the current song playing in iTunes, and allows rating to occur, independent of the iTunes window. It also allows for a larger range of values as the rating, rather than the iTunes 0-5 stars. The tick marks are on the slider so you can see what the current rating will be in terms of the iTunes display. Features:

  • Automatically updates display from iTunes when song changes
  • Automatically updates iTunes rating whenever it’s changed
  • Allows for more flexible rating than basic iTunes, and most other programs capable of changing ratings.
  • Unobtrusive, can sit in the corner of the screen while working.

Limitations:

  • Ugly icon

I take no responsibility if this toasts your iTunes library - I use it with mine, but your mileage may vary. Here’s a little screenshot, and the archive is iTunes Rater. (Only Version 0.2 is still available!) Itunesrater The AppleScript code is IMHO interesting:

Gott wüfelt nicht

This March is the 100 year anniversary of Einstein’s Special Theory of Relativity.

The Science of Eternal Sunshine

I just started reading “Mind Wide Open: Your Brain and the Neuroscience of Everyday Life” (Steven Johnson) today, and then find a link to his blog tonight. Synchronicity! After reading through most of the stuff there, and subscribing to his RSS feed so I don’t miss anything, I finally found a link to a review he wrote of the Jim Carrey movie Eternal Sunshine of the Spotless Mind. I’ve just read, in creating the links that it was a Kaufman film (ie. Being John Malkovitch / Adaptation). I may have to rent it and have a watch. So, here’s SBJ’s article: The Science of Eternal Sunshine - You can’t erase your boyfriend from your brain, but the movie gets the rest of it right. By Steven Johnson: http://slate.msn.com/id/2097502/ iTunes: Your Disco Needs You from the album “Light Years” by Kylie Minogue

Naracoorte was like over 200,000 Years ago.

Typing Naracoorte into CityBrowser provides some interesting things to chuckle about:

Citybrowser reveals everything about a town! Naracoorte is located on the Keith to Mount Gambier Road, 350 km. Naracoorte was like over 200,000 years ago_. Naracoorte in the heart of the south-east of South Australia and provides visitors the opportunity to purchase direct from. Naracoorte will host. Naracoorte is situated in the south east of South Australia, wine lovers have become to know this popular area as the Limestone Coast region. Naracoorte was founded by Scotsman William MacIntosh in 1845. Naracoorte in the heart of the Limestone Coast. Naracoorte will lead you through to the next wine zone, Wrattonbully, a new wine district._

The one I like best is the one in red above: I thought someone might have been blogging about Naracoorte, and read it as “Naracoorte was, like, over 200,000 years ago”. But a quick Google produced a couple of pages about the Wonambi caves, and “…what Naracoorte was like over 200,000 years ago…” And apparently Naracoorte hosts the biggest tractor and engine rally in March. Might have to go home then… iTunes: Betterman from the album “Triple J Hottest 100 - Volume 9” by John Butler Trio

Curriculum is a Fish

We spent the first part of the first day back at school watching a short video about a Chicago Fishmonger where they throw the fish around, and have heaps of fun. We had to relate that back to our own employment within a school. I’m not sure some of the members of my group took it completely seriously. The best thing we came up with was Curriculum is a Fish. Make of that what you will. iTunes: Take The Long Way Home from the album “Sunday 8pm” by Faithless

Queer Ty for the Straight Guy.

I know how fantastic QE (the original, US version) is. I even watch it sometimes. And we are all waiting for the Australian version. Waiting to see just how many episodes they play before they pull the plug. For those Naracoortians watching who don’t get real TV, or aren’t aware, Ty Henschke, the fashion one, is an ex-Naracoorte boy. And I think we all knew he was gay back in high school, didn’t we…