Kris Krause .NET Meister

"If it is fast and ugly, they will use it and curse you; if it is slow, they will not use it."
- David Cheriton, The Art of Computer Systems Performance Analysis

Tuesday, July 24, 2007

Visual Studio 2005 on Mac OS X

Utilizing Parallels 3.0 http://www.parallels.com/en/products/desktop/ I am able to run Visual Studio 2005 on my Macbook (Mac OS X). Parallels Coherence makes it seem that I am running Visual Studio right inside my Mac desktop window instead of a separate virtualized window.

Here are some larger screenshots:

http://www.kriskrause.com/images/mac-vs-net-2005.jpg

http://www.kriskrause.com/images/mac-vs-net-2005-widgets.jpg (Widgets Overlay)

Labels: ,

Uninstall Mono on Mac OS X

To uninstall Mono on OS X utilize the uninstallMono.sh script. Where is it? How do you get it?

Utilize Finder to browse to /Library/Receipts. View the package contents of Contents/Resources/MonoFramework.pkg.

Drag a copy of uninstallMono.sh to the desktop. Open a Terminal window. Then cd desktop and run: sudo ./uninstallMono.sh and enter your password.

Mono on Mac OS X is then uninstalled (bin, Frameworks, etc.)

Labels: ,

Wednesday, February 02, 2005

Accessing iTunes With C#

The following example dumps your entire iTunes library to the console. You need to reference the COM iTunes 1.2 Type library. Currently I am running iTunes version 4.7.1.30.

using System;

namespace PlayListExample
{
class CMain
{
[STAThread]
static void Main(string[] args)
{
iTunesLib.IiTunes app = null;

try
{

app = new iTunesLib.iTunesAppClass();

foreach (iTunesLib.IITTrack track in app.LibraryPlaylist.Tracks)
{
Console.WriteLine("Artist: {0}\nSong: {1}\nGenre: {2}\n", track.Artist, track.Name, track.Genre);
}
}
catch (Exception e)
{
Console.WriteLine(e);
}
finally
{
app.Quit();

app = null;

Console.ReadLine();
}
}
}
}

Labels: ,