a-jackson.co.uk
Generics | Andrew Jackson
http://www.a-jackson.co.uk/tag/generics
C#, Net Development, General Programming Pearls and Photography. Since I started using it a couple of years ago. I have found that it makes many tasks a lot easier and it is very easy to write your own extension methods. Firstly to get started with something easy. The Select method. Public static IEnumerable TResult MySelect TSource, TResult ( this IEnumerable TSource source, Func TType, TResul propertySelector) { foreach (var item in source) { yield return propertySelector(item); } }. This continues ove...
a-jackson.co.uk
Home Automation | Andrew Jackson
http://www.a-jackson.co.uk/tag/home-automation
C#, Net Development, General Programming Pearls and Photography. TV Sorter 1.1. I’ve released released the latest update to my open source project on GitHub, TV Sorter. The project was originally hosted on Google Code but I have moved it to GitHub. Version 1.0 was the first major update for 18 months, 1.1 has some bug fixes but since I didn’t post 1.0 I’ll include it here. 1.0 brought a lot of new features. Automatically unlock shows when they are matched. If shows are being automatically locked, the...
a-jackson.co.uk
Probabilities in Software | Andrew Jackson
http://www.a-jackson.co.uk/2013/10/probabilities-in-software
C#, Net Development, General Programming Pearls and Photography. It might seem strange to write about probabilities on a blog about programming but bear with me; it will all make sense soon. The specific case we will look at is that of sensor analysis. Previously I have written about path finding algorithms. These assume that you have a map of the world already. What if you want to build that map? To handle this cone, we must analyse all of the nodes that are within it. We need to calculate a probabi...
a-jackson.co.uk
Photography | Andrew Jackson
http://www.a-jackson.co.uk/category/photography
C#, Net Development, General Programming Pearls and Photography. It might seem strange to write about probabilities on a blog about programming but bear with me; it will all make sense soon. The specific case we will look at is that of sensor analysis. Previously I have written about path finding algorithms. These assume that you have a map of the world already. What if you want to build that map? To handle this cone, we must analyse all of the nodes that are within it. We need to calculate a probabi...
a-jackson.co.uk
Astrophotography | Andrew Jackson
http://www.a-jackson.co.uk/tag/astrophotography
C#, Net Development, General Programming Pearls and Photography. I bought it with the 18-55m F3.5-5.2 lens kit and currently that is the only lens that I have. The camera arrived on Monday and I’ve been snapping away a lot of the week. I have had the opportunity to go back out hiking again, hoping to do that tomorrow if the weather is good. September 7, 2013. September 27, 2013. Proudly powered by WordPress.
a-jackson.co.uk
C# | Andrew Jackson
http://www.a-jackson.co.uk/tag/c
C#, Net Development, General Programming Pearls and Photography. It might seem strange to write about probabilities on a blog about programming but bear with me; it will all make sense soon. The specific case we will look at is that of sensor analysis. Previously I have written about path finding algorithms. These assume that you have a map of the world already. What if you want to build that map? To handle this cone, we must analyse all of the nodes that are within it. We need to calculate a probabi...
a-jackson.co.uk
Threading | Andrew Jackson
http://www.a-jackson.co.uk/tag/threading
C#, Net Development, General Programming Pearls and Photography. When writing GUI applications, it is often necessary to execute long running tasks on a different thread. This is done because when it isn’t polling the message queue, the GUI becomes unresponsive, it appears as though the application has crashed. You may also need to use another thread for tasks that may wait a long time, such as network code. This would wait for data to arrive before it can read it. A simple implementation could be:.
a-jackson.co.uk
Object Orientation | Andrew Jackson
http://www.a-jackson.co.uk/2013/10/object-orientation
C#, Net Development, General Programming Pearls and Photography. Most of the software I see at work is written in C# which is an object-oriented language, but it is written without any understanding of what that means and how is affects your software design. Some of it might as well have been written in C and the classes are used to separate different functional areas but that is about it. Member – This is any item that is within a class such as fields, functions, events, properties and constructors.
a-jackson.co.uk
Photography | Andrew Jackson
http://www.a-jackson.co.uk/tag/photography
C#, Net Development, General Programming Pearls and Photography. It’s been a few weeks since I got my camera and I’ve taken a whole lot more photos. I still don’ t have many that I would consider really good but these 2 are amongst my favourites. Trent and Mersey Canal. They were taken about a couple of weeks apart but both are just down the road from me. The river and canal run parallel to one another with the tow path between them. Both of these picture where taken from that tow path. September 27, 2013.