patkua@work

The intersection of technology and leadership

Page 53 of 53

Visual Studio 2005 Annoyances

Anyone who has worked with me knows how much I enjoy working with mainly the keyboard alone. IntelliJ and Eclipse have great ways of doing things with the mouse, and as I’m finding out, Visual Studio has a plethora of them as well. Unfortunately many of them trigger hidden buttons or menu items that don’t exist. We accidentally turned on a “feature” of showing spaces as dots and took a while searching out how to turn if off as shown in the diagram below.

Visual Studio showing spaces as dots

If it ever happens to you, you apparently have to drag a button onto one of the menu bars in order to disable it. Otherwise try the short cut keys, CTRL-R followed by CTRL-W. Of course…

Agile At Work

The thing that I enjoy the most about working on projects run with agile principles and practices is that it is really effective. I’m constantly impressed by how quickly things change and adapt in such a short time frame, though I know that this can be a little disorienting to people not used to it. I just got back from a week of skiing in Andorra (the snow was very nice for us despite their worst season ever) and in that time, five developers have completely changed the way an entire application looks as well as adding a whole heap of functionality that wasn’t there when I left seven days ago. Great stuff!

Getting NUnit ASP to work with .Net 2.0

On my current project we’ve been having a pretty good experience leveraging the NUnitASP library for automated testing of our website. In our second week of development, we noticed like many other people, that it is yet fully compatible with .Net 2.0 because of the way that ASP.Net now generates its javascript postback functions.

In the previous .Net version, ASP.Net seemed to generate a very simple function of the form of __doPostBack([targetId], [targetArguments]) that would effectively set two hidden variables (__EVENTTARGET and __EVENTARGUMENT respectively). In the current version, ASP.Net generates a much more complex javascript function (called WebForm_DoPostBackWithOptions) that I think is caused with use of any of the ASP validator components.

One work around that one person (Lance Ahlberg) found was to turn the “CausesValidation” property off for controls but this may or may not suit the way that you are developing your website. Looking at what the javascript generated does, I think that there must have been a better solution so I spent some time delving into the depths of NUnit ASP to find one.

The result is a patch to ControlTester.cs that allows the __EVENTTARGET and __EVENTARGUMENT to still be set by extracting out the appropriate values from the new WebForm_DoPostBackWithOptions javascript function. You can download the patch here but you have to build your own NUnit ASP, or wait until this is integrated with the next release. The ticket for my submission can be found here.

.Net 2.0 and IIS

I know this is old, but I’m putting up here as a note to myself… the installation order of IIS and .Net 2.0 matters. If you try running .Net 2.0 code on IIS that thinks it’s running a prior version of .Net (see the bottom part of the IIS error page to see what it is running), run the aspnet_regiis.exe /i command that sits deep in the bowels of the %windir%\Microsoft.NET\Framework\v2.0.50727 folder to make it run fine again.

Argos Uses Websphere

I’m not sure what makes it difficult people putting in a DNS entry so that [somesite].com redirects to www.[somesite].com. I hit Argos yesterday only to find out that apparently they use Websphere. That’s all very nice to know as a techie, but as a customer, it’s not quite the user experience I want.

Argos and Websphere

Starting from Principles

Starting new projects always carries great responsibility but also offers a great opportunity to improve it by applying learnings from previous projects. Fortunately I’m currently in this position as one of the early developers on a greenfields project that’s been running for the last two weeks.

What I’m attempting to do this time is that instead of defining and/or enforcing a set of coding standards and patterns used throughout the project, I’m hoping to capture the thinking that goes along side the decisions as we make them, distilling them into a set of core principles we’re striving for. By capturing these core principles I hope it makes it easier for new people to come on board, provide a better context for analysing the code artefacts we create and still leaves an open discussion for newcomers to suggest better ways of achieving these same principles.

New Site

I’ve decided that it’s about high time that I split my work and my life blog. Although the feeds from work related categories had been fed into various things, you really can’t stop the power of search engines from stumbling across content. Rather than confuse people with the two different sets of content, I’m splitting them out. Here’s my first post.

Newer posts »

© 2024 patkua@work

Theme by Anders NorenUp ↑