Java, SwingWorker, NetBeans and Mac OS X leopard!
I turns out NetBeans 6.5 on my Mac (running Leopard) uses Java 1.5, not 1.6 which is necessary for SwingWorker. To get Netbeans using Java 1.6:
Tools => Java Platforms => Add Platform. A new window should appear. Select the Java Standard Edition and 1.6 should be here: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home . Then click next!
To enable 1.6 within your project right click on the project and select "Set Configuration". Select Libraries, and at the top of the window it should say: "Java Platform: JDK 1.5" click on the JDK 1.5 part and you should be able to select 1.6.
pyItunes, a Python Itunes Library Parser
I believe every personal website needs some flair that personifies the website's owner. The first way I plan on achieving this is by providing a list of some of my favorite songs. Figuring out which songs I like is trivial as I've been raiting all the songs I listen to on Itunes. Since I'm still in the early phase of learning to program I figured this would be an easy opportunity to role my own Itunes library parser. As a result I created a python module, which I called pyItunes. pyItunes includes three classes that can parse the "iTunes Music Library.xml" file and convert it into list of Song objects. I decided to roll my own micro-xml parser that can only parse the iTunes xml file. Although, reinventing the wheel, especially an XML parser, is likely a horrible idea I felt it would be a good learning experience. In future versions I may swap an existing XML parser that is much faster and more efficient than the one I created.
My music page
Download pyItunes:
download via git:or go to github and click download.