Tag Archives: C#

Building a Netduino Rover – Part 4

See other posts in this series Basic Object Avoidance I’ve designed this rover to be autonomous rather than remote controlled. The software is designed around the idea of combining many simple behaviours together to produce what appears to be complex … Continue reading

Posted in Projects | Tagged , , | Leave a comment

Building a Netduino Rover – Part 3

See other posts in this series Software Basics If this is your first Netduino project you’ll probably need to install a few things. Everything you need to get started is free, and can be found here on the Netduino website. … Continue reading

Posted in Projects | Tagged , , | Leave a comment

Wiki Markup Hyperlinks for WPF or HTML

This article shows an example of a Wiki-inspired markup for embedding hyperlinks in text – and how to render it as WPF and HTML. When building any kind of content management system, it’s a good idea to give users the … Continue reading

Posted in Tips and Tricks | Tagged , , | Leave a comment

Posting to Twitter with C#

In this post I’ll walk through the steps required to post to your own Twitter feed using C#. Step 1: Before you start you must register an application name with Twitter: dev.twitter.com/apps/new Step 2: Open Visual Studio 2010 and, using … Continue reading

Posted in Reference | Tagged , , | 2 Comments

WPF Expander HeaderTemplates – Don’t Forget The Binding!

Every time I customize an Expander in WPF using a HeaderTemplate, I make a critical mistake. I forget to set the binding for the header. Here’s a contrived example to demonstrate the problem – and the solution. Here’s what we’re … Continue reading

Posted in Reference | Tagged , , | 8 Comments

Posting to Facebook with C#

In this post I’ll walk through the steps required to register a Facebook app, and post to your own Facebook wall using C# and Visual Studio 2010. Step 1: Before starting, you’ll need to log on to the Facebook developer … Continue reading

Posted in Reference | Tagged , , | 6 Comments

Timing a Method in C#

Here’s a very quick way to check the performance of a block of code. I’m wrapping a System.Diagnostics.Stopwatch class and sending all timings directly to Debug.WriteLine(). Please be aware that this is a very simplistic approach, and does not guarantee … Continue reading

Posted in Tips and Tricks | Tagged , | 2 Comments