Thursday, November 5, 2009

First draft of Javadoc completed

It took a while and it's pretty mundane, but as every programmer knows, you have to document your code. So today I finished the draft of the javadoc. If you are interested you can view it here.

Wednesday, November 4, 2009

Documenting

Anyone want to raise their hand at the worst part about programming??!! Yep you guessed it, going back and documenting all of the classes you've written. Following a close second is going back and fixing bugs you find after you've run more tests.

What I've been working on today.
Basically the above. I've created some more JUnit test classes and I'm going back and documenting my classes as well. Overall I haven't found any new bugs to speak of, maybe minor things but nothing show stopping.

I've checking on the web stats for my blog. It looks like I get around 20 new visitors a day! That's exciting, remember if you find the program useful, think about donating to me. I can always use a cup of coffee. No amount is to small.

Hope everyone has a good day
Brian

Tuesday, November 3, 2009

Folder watching and JDK 7

I was interested in adding Folder Watching to iTunesDSM so that you could basically have it run at startup and then just automatically add songs to iTunes as new songs were added to the directory. I thought I found a way to do this too here but then I realized you need to run java 1.7/jdk 7 which is still in early release. I then though about implementing my own file watching thread thingy, but that's not really a good idea either as continuing walking the entire file tree every 15 secs is taxing to the system. I could set it up to scan every half an hour or something but even then, it would take a lot of resources. I'll consider it though.

Brian

Version .6 out

Updated version today, version .5 was shortlived but that's ok. .6 mostly fixes bugs behind the scenes. iTunesDSM would be unable to find duplicate files that iterations above 8, so if for some reason you had more than 9 duplicate files in the directory then iTunesDSM wouldn't remove all of them. That's now fixed. I also added a version check into the software. On startup it will poll my webspace for the most current version. If the versions are off, then you are given an option to download the newest version. Neat.
Brian

Monday, November 2, 2009

Working with JUnit

Today, after releasing the next big update, I began some formal Unit testing. Unit testing simply means that testing units or pieces of the program for bugs. I started with the Extensions class since that is the most direct user class. It's the class that handles parsing the custom extensions essentially. JUnit is interesting, it's integrated into Netbeans, though I accidently imported a newer version of JUnit than what Netbeans shipped with and it seemed to cause some errors later. No biggie now as it's just imported as any other Jar file. Not a whole lot to say about JUnit yet, other than the nice integration though. I plan on testing further this week.

I also got an idea for a very simple way to check for new versions from the client. I was thinking of a simply URL class that reads a text file on my server space from school. The same server that currently hosts iTunesDSM now. Should be simple. For now, toodles.

Brian

v.5.1 Released

Fixed a couple of bugs. Added a changelog file. Enjoy!

Brian

v.5 Released!!!

I'm posting the new version today. Here's what's new:
  1. Options panel that you can set your music directory and file types to filter.
  2. Add tracks to iTunes that exist in your music directory but not yet in your iTunes library. For example, users are sharing a directory for all their music and one user has bought a new song, but the other iTunes libraries don't know about it. Other wise known as folder watching.
I've added a readme file as well to help new users get up and running. I'm debating on whether or not to record a new YouTube video, I'm not really sure it's necessary, but I might do it anyway.

All of the features are supported on Windows, but unfortunately iTunesDSM relies on COM's to communicate with iTunes and therefore are not available on Macs. You can still use iTunesDSM to backup and/or remove duplicate files from a directory.

If you find any bugs, don't hesitate to email me or post a comment, I will try to fix them.

Enjoy!
Brian