Archive for November, 2007

How to check if a path is a Folder

For the life of me, I couldn’t do anything like this last night. Sleep depravation is deadly.

In case anyone’s wondering, this does the trick:

private bool isFolder(String path) {
return ((File.GetAttributes(path) & FileAttributes.Directory) == FileAttributes.Directory);
}

Yeah. It’s nice.

Working with MusicBrainz

I decided that while I’m on winter break, instead of doing something useful like.. I don’t know, finally getting some rest, I’ll code yet another MusicBrainz client. Yes, yet another project. Picard sucks and the MBTagger is being discontinued quite soon, so…

I stumbled upon Scott Peterson’s awesome MusicBrainz-Sharp library and I’ve been talking to him re: some issues it has, but so far it’s been great help. Kudos to you, Scott!

Suggestions,  comments, etc? Feel free to leave a comment!

(And here I thought MBTagger/Picard were slow… and it’s MusicBrainz.Org forcing you to do 1 query per second. Is it time to implement a separate server cache? Hrm… Maybe.)

No updates

:(

School’s almost over, so it’s time to finish OpenID Mexico, Purrun, GPS… whoa, it’ll be a fun, fun winter break.

To be continued…