I recently came upon the need to show a WPF window in an Outlook add-in, preferably centered on the Outlook window (WindowStartupLocation = CenterInParent). Easy enough, but without setting Window.Owner, it will appear in an uncontrolled location when calling ShowDialog(). Setting Window.Owner is where things get a little tricky. Searching online produced a few variations … Continue reading Centering a WPF Window in an Outlook 2013 Add-in
Tag: C#
Corel VideoStudio Pro and QuickTime, a Workaround
I really like Corel VideoStudio Pro for video editing, and I've been using it for 4 years now. Unfortunately it really falls down when it comes to QuickTime videos. Now that I own a Canon 7D that records in QuickTime format, this is a problem. The underlying issue is that the software seems to lose … Continue reading Corel VideoStudio Pro and QuickTime, a Workaround
iPhone Objective-C for the C# Developer
If you're a C# developer making your first foray into the land of iPhone and Objective-C programming, you probably have a question or two. I recently started working in earnest on an iPhone app, so I figured I would write down some of the tips I've picked up thus far. Here they are in no particular order. … Continue reading iPhone Objective-C for the C# Developer
More PowerShell – a Cmdlet
This past weekend I spent some time reading up on and writing my first PowerShell cmdlet. The cmdlet is an easy one, but replaces a PS function I have copy/pasted into several scripts here and there to handle cleaning out directories of old backups or other types of files. One scenario is my RadioShark which I have setup … Continue reading More PowerShell – a Cmdlet
iTunes is iAnnoying
Too bad the iPhone makes you get sucked into the world if iTunes - because it sucks. I knew this going in, but it still isn't fun when the limitations smack you in the face. The limitation of which I speak is its inability to detect new files in its directories, automatically update its library … Continue reading iTunes is iAnnoying
Unit Testing
I would love some input on this from you fellow developers out there, as this is something I continue to try and improve on... WARNING, CODE BELOW THE BREAK! (Note, I just realized the inline images here are overlapping like hell. Sorry, I've changed them to also be links you can click to view completely) … Continue reading Unit Testing
Recipe Slideshows
Chef has a feature called Recipe Slideshows which allow you to view a recipe fullscreen in a PowerPoint-like format that's much easier to read while you're cooking than the small text of a cookbook, or the regular view of a recipe in Chef for that matter. I've had that feature around for a while, but … Continue reading Recipe Slideshows
C# operator== overloading
I recently came to a situation where operator overloading C# (specifically the == operator) would really be beneficial. Since I've typically steered away from this technique, for readability and maintainability, I hadn't had much experience with it. My overloaded operator looks something like this: static bool operator==(Id<T> a, Id<T> b) { return a.Value == b.Value; … Continue reading C# operator== overloading