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.
Friday, December 30, 2011
Getting Started with Grails web apps on Heroku/Cedar | Heroku | Dev Center
Heroku | Dev Center | Getting Started with Grails web apps on Heroku/Cedar
This guide will show you how to deploy a Grails application to Heroku and bind it to the Postgres database service.
Thursday, December 22, 2011
Web Testing with MbUnit and WatiN Part 2: Controlling Localhost and IIS Express
Web Testing with MbUnit and WatiN Part 2: Controlling Localhost and IIS Express
One important aspect of web testing which is not so often discussed in blogs or articles is how to run tests against a web project running in debug mode on the local host. Microsoft provides two options to let you debug web projects locally: the Visual Studio development server and IIS Express. In this second part of our series on writing web integration tests, we’re going to demonstrate how to use the WebTestServer<T> class to start either server from within a running test suite.
In this article, you will
- Create a simple one page website project for testing
- Create a web test project that tests it against the VS Development Server
- Alter the website and test project to test the page using IIS Express.
Wednesday, December 21, 2011
Web Testing with MbUnit and WatiN Part 1: Keeping Your Tests Legible | developerFusion
Web Testing with MbUnit and WatiN Part 1: Keeping Your Tests Legible
We’re all quite comfortable writing unit tests to verify that a piece of code does what we think it should do, and there are many test frameworks to enable this activity. One solid solution for going one step further and writing powerful integration tests for .NET web applications is to combine WatiN, an informal .NET port of the WatiR open-source (BSD) family of Ruby libraries for automating web browsers, with the Gallio automation framework and MbUnit test library.
Deploy Grails Applications on Heroku
Deploy Grails Applications on Heroku
We're happy to announce the public beta of Grails application deployment on Heroku with support for Grails 1.3.7 and 2.0 provided by the open source Heroku Grails buildpack.
Subscribe to:
Posts (Atom)