Snippet Tutorials

Objective-C Snippet Tutorial - The UIAlertView


Posted in:

Displaying a message box in an iPhone application is something I have to look up almost every time. I decided it was time to create a tutorial on the subject - then maybe I'd actually remember the syntax. This tutorial will be short, but should cover pretty much everything you'd need to know in order to show alerts in an iPhone application.

Read More Icon Read More

WPF Snippet Tutorial - Binding a DataTable to a DataGrid


Posted in:

This is something that I expected to be straightforward - binding a DataTable to a WPF DataGrid. The problem is that DataTable doesn't implement IEnumerable, and unfortunately that's what the DataGrid's ItemsSource property requires.

Read More Icon Read More

Mac Tutorial - How to Burn an ISO Image


Posted in:

After ruining a disk attempting to burn an ISO image, I thought it might be a good idea to share with everyone else how to correctly burn an image to a CD or DVD on a Mac. My first attempt consisted of right mouse clicking on the .iso file and selecting "Burn 'myImage.iso' to Disk..." This, of course, was taken a bit too literally by OSX and instead of receiving a disk with the contents of my image, I received a disk that contained the image file itself.

Read More Icon Read More

C# Snippet Tutorial - The checked and unchecked keywords


Posted in:

Every once and a while I run across a new C# keyword that I've never used before. Today it's checked and unchecked. Basically, these keywords control whether or not an exception will be thrown when an operation causes a number to overflow.

Read More Icon Read More

C# Snippet Tutorial - Determining if Aero is Enabled


Posted in:

Recently I was working on a project and the UI required minor tweaks depending on whether or not Aero was enabled. Fortunately, I came across an MSDN forum topic with the solution, so I thought I'd share.

Read More Icon Read More

WCF Snippet Tutorial - Overloading Methods


Posted in:

This snippet will show you how to add overloaded functions to your WCF service contracts.

Read More Icon Read More