• ViewModel composition and using Partial views with Partials

    Slightly confused by the title of this topic? I can see why. Even I didn’t know what to give the name to the problem a recent problem I encountered and I ended up resolving it. Instead I’ll try and state the problem in my definition below: Please note. There might be better ways of doing this, or perhaps I’m doing it all wrong. Take this with a grain of salt and if it works for you, that’s great. Otherwise that’s great too… History Whilst being new to MVC .NET I did alot of reading on best practices, any practices and different methods of using the concept to achieve my desired…

  • The video referee and it’s place in sport

    I’ve never been a huge fan of video referee. I’ve always thought in sport that what goes around comes around and it all tends to even up over time. But with so much money involved in sport these days I admit that it’s becoming increasingly important to make sure these decisions are right. So I’ve grudgenly accepted that there is a place for video referring and providing assistance to the person on the field who has to make the decision in a blink of an eye. Recently down under the biggest event in the Rugby league calendar was held, namely the State of Origin. In this event there was a…

  • Calling Delphi 6 DLL from c#.NET and blasted rounding issues

    Recently I had the need to call a Delphi DLL from a .NET application. The delphi DLL would be performing a number of floating point arithmetic operations and returning results in as a string. In order to debug the delphi DLL another delphi application was written that uses this same interface and outputs the results. The problem I started experiencing was that the results produced when calling from my c# application varied from those called from the delphi application. Both used the same DLL and both produced the same inputs. I don’t have much in-depth knowledge about floating point numbers but I have read enough to know that most of…

  • Thread safe logging to file using Java

    In an attempt to create a simple logging class for a Java socket server application I was writing I wanted to make sure that the class captured all log events from the various threads sending messages to it. I didn’t want to have the situation where some messages were lost because the class could not handle the log messages being sent to it. In order to do this I decided to use a Consumer – Producer concept. Thankfully in Java this concept has already been thought of via the use of java.util.concurrent.BlockingQueue. The set of classes available for use with this include DelayQueue PriorityBlockingQueue SynchronousQueue ArrayBlockingQueue LinkedBlockingQueue From various readings…