Some time ago I wrote an article about manipulating the iTunes XML database. I had moved some mp3s around on my NFS drive, and iTunes had lost track of them. Though I came up with a Scheme program that tracked them down and correlated them with their old location, it turns out you can't modify the iTunes XML database without losing most of your metadata, including play counts.
The best I could do was to extend the program to create symlinks from the original locations to the new ones; iTunes continues to reference the old locations, but it will see the files through the symlinks and thus access to your music is restored.
Unfortunately, this leaves a bunch of ugly symlinks hanging around for all eternity. This article fills in the missing piece by forcing iTunes to directly use the new locations.
A collection of articles and resources of interest to the modern software developer
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.
-- Steve Jobs
Saturday, January 28, 2012
Moving unmanaged iTunes files | Jim Ursetto
Moving unmanaged iTunes files
Tuesday, January 10, 2012
Drag-and-Drop with jQuery: Your Essential Guide
Drag-and-Drop with jQuery: Your Essential Guide
Learn how to use jQuery, and the jQuery UI Draggable and Droppable plugins, to create drag-and-drop interfaces in your web pages. Includes a full drag-and-drop card game example.
James Lorenzen's Blog: Groovy Sort List
James Lorenzen's Blog: Groovy Sort List
It's real easy to sort a list of numbers
assert [1,2,3,4] == [3,4,2,1].sort()
Or even strings
assert ['Chad','James','Travis'] == ['James','Travis','Chad'].sort()
But this was my example
class Person { String id String name }def list = [new Person(id: '1', name: 'James'),new Person(id: '2', name: 'Travis'), new Person(id: '3', name: 'Chad')]
list.sort() returns James, Travis, Chad
The solution is ridiculously simple (not that I thought the previous sort would work; I have to be realistic; groovy can't do everything for me).
list.sort{it.name} will produce an order of Chad, James, Travis.
Subscribe to:
Posts (Atom)