Rory Primrose

Learn from my mistakes, you don't have time to make them yourself

View project on GitHub

Ever heard of Script#?

I hadn’t heard of Script#, so when I saw it being referred to in one of Nikhil Kothari’s recent posts, I got a little curious.

The Script# compiler is a C# compiler that generates JavaScript as its output instead of IL. A key goal of the compiler to produce readable JavaScript (as if you had authored it by hand), and would be comfortable deploying into real apps. Hence the translation works from C# source directly into JavaScript without an intermediate IL layer. The compiler can also produce equivalent, but much more compact script for use in release mode deployment. The compiler does not introduce any additional levels of abstraction, thereby allowing you full control of what your application does. In essense the best of script with the best of C#!

How cool is that! Check out Nikhil’s Script# project page.

Read More

Assembly loading failure logging

This is basically a reminder post, but you might find it useful.

In the development I have been doing in the last few months, I have been doing a lot of config based assembly loading. Trying to find out why an assembly doesn’t load can be very difficult though. Check out Suzanne Cook’s post about fuslogvw.exe.

Read More

SandCastle - An NDoc replacement

NDoc has been a valuable tool for many years. Unfortunately, like many 3rd party free software projects, it is hard to publish version after version for a market that has time to use it, but a developer that doesn’t have time to develop it (I feel your pain Kevin!). As much as I would like to see NDoc mature to the 2.0 framework, it looks like Microsoft are finally going to roll their own project. Read about SandCastle here and here. It should be released as a CTP soon.

Thanks to Dwight for originally pointing me to this forum post.

Read More

ASP.Net Virtual Theme Provider 1.0 released

I have been working on a fun project recently. I have put together a VirtualThemeProvider that uses the VirtualPathProvider in the 2.0 framework.

The VirtualThemeProvider provides functionality for flexible ASP.Net theme support. It provides the ability to merge theme directories with a global theme directory and theme directory filtering.

Full source is provided with this project. I would like to get any feedback, comments and suggestions that you have for this project. If you have any, please visit the forum.

I have written an article that provides more detail about this project and how to use it.

Read the ASP.Net Virtual Theme Provider 1.0 article.

Download Neovolve.VirtualThemeProvider (275.96 kb)

Read More

ASP.Net Virtual Theme Provider 1.0

ASP.Net 2.0 is bundled with some great technology, especially what is available through the provider model. One of the new providers in 2.0 is the VirtualPathProvider. Scott Guthrie put out some information about this provider, as has David Ebbo in this post. My VirtualThemeProvider uses the ASP.Net VirtualPathProvider to provide flexible theme support for ASP.Net projects. There were two primary objectives for this provider. Firstly, I wanted to support the ability to filter directories and files that are available in a theme directory for a given named value. Secondly, I wanted to support a global theme concept that included the ability to merge the theme directory with the global directory.

Take the example of a web project that has mutliple themes that are assigned depending on the type of user. Each theme has a subset of styles that display that theme according to different accessibility requirements (such as vision impared users).

Read More

Triple grading

It has been quite a while since my last grading as I have spent this year focusing on the club and the students along with the other instructors. I was keen to move forward again, so my head instructor told me two weeks ago that I would be doing a triple grading, followed by a competition the week after that.

Yesterday was the grading/graduation. On the whole, it went really well. I graduated with three others, one beginner and two other advanced students. My wife and parents were there to support me which was really great.

The graduation started with kicking exercises which was a serious workout in itself. After the kicking exercises, we went into the patterns. We were asked to perform Gibbon Poomse and Taeguk Il Jang along with the beginner graduate. The other three of us were then asked to perform Taeguk Chil Jang and Taeguk Pal Jang. These last two are the ones that I have to perform at the competition next week. There were a few things that I could have done better with these yesterday so I will have the next week to work through that.

Read More